45 lines
790 B
C++
45 lines
790 B
C++
/*
|
|
* 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
|