WIP: Settings up settings menu

> TODO: Fix broken behaiour in the refacto process
This commit is contained in:
2026-01-12 21:34:41 +01:00
parent 24d8a092e4
commit 14126d6b5b
7 changed files with 221 additions and 103 deletions

View File

@@ -0,0 +1,44 @@
/*
* File name: settings_menu.hpp
* Author: lejulien
* Date created: 01-01-1970 00:59:59
// Date modified: 12-01-2026 21:28:03
* ------
*/
#pragma once
#include <context.hpp>
namespace gol {
class SettingsMenu {
public:
SettingsMenu(ctx &context);
~SettingsMenu() = default;
void update();
void display();
bool isOpen();
void Toogle();
// Getter/Setters
int getFPS();
void setFPS(int);
int getCellSize();
void setCellSize(int);
int getWidth();
void setWidth(int);
int getHeight();
void setHeight(int);
private:
ctx context_;
int fps_ctrl_ = false;
int cell_size_ctrl_ = false;
bool settings_window_ = false;
int width_ctrl_ = false;
int height_ctrl_ = false;
bool dark_theme_ctrl_ = false;
bool apply_ctrl_ = false;
};
} // namespace gol