Adding controls to control_menu
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
* File name: control_menu.cpp
|
||||
* Author: lejulien
|
||||
* Date created: 10-01-2026 22:12:44
|
||||
// Date modified: 10-01-2026 22:21:20
|
||||
// Date modified: 10-01-2026 22:43:36
|
||||
* ------
|
||||
*/
|
||||
|
||||
@@ -11,7 +11,20 @@
|
||||
namespace gol {
|
||||
|
||||
ControlMenu::ControlMenu(ctx context):context_(context) {
|
||||
// TODO: load content from json
|
||||
}
|
||||
fps_ctrl_ = context.config_json["fps"].get<int>();
|
||||
cell_size_ctrl_ = context.config_json["cell_size"].get<int>();
|
||||
play_ctrl_ = true;
|
||||
step_ctrl_ = false;
|
||||
step_back_ctrl_ = false;
|
||||
rand_ctrl_ = false;
|
||||
edit_ctrl_ = false;
|
||||
clear_ctrl_ = false;
|
||||
settings_window_ = false;
|
||||
paterns_ctrl_ = false;
|
||||
width_ctrl_ = context.config_json["screen_width"].get<int>();
|
||||
height_ctrl_ = context.config_json["screen_height"].get<int>();
|
||||
dark_theme_ctrl_ = context.config_json["dark_theme"].get<bool>();
|
||||
apply_ctrl_ = false;
|
||||
}
|
||||
|
||||
} // namespace gol
|
||||
|
||||
Reference in New Issue
Block a user