22 #ifndef ALCACHOFA_MENU_H 23 #define ALCACHOFA_MENU_H 25 #include "common/savefile.h" 31 enum class MainMenuAction : int32 {
44 enum class OptionsMenuAction : int32 {
54 enum class OptionsMenuValue : int32 {
63 inline bool isOpen()
const {
return _isOpen; }
64 inline uint32 millisBeforeMenu()
const {
return _millisBeforeMenu; }
65 inline Room *previousRoom() {
return _previousRoom; }
66 inline FakeSemaphore &interactionSemaphore() {
return _interactionSemaphore; }
68 void resetAfterLoad();
69 void updateOpeningMenu();
70 void triggerMainMenuAction(MainMenuAction action);
73 void openOptionsMenu();
74 void triggerOptionsAction(OptionsMenuAction action);
75 void triggerOptionsValue(OptionsMenuValue valueId,
float value);
84 void updateSelectedSavefile(
bool hasJustSaved);
85 bool tryReadOldSavefile();
87 void continueMainMenu();
88 void setOptionsState();
92 _openAtNextFrame =
false;
94 _millisBeforeMenu = 0,
95 _selectedSavefileI = 0;
96 Room *_previousRoom =
nullptr;
108 #endif // ALCACHOFA_MENU_H Definition: managed_surface.h:51
Definition: alcachofa.h:45
Definition: savefile.h:142
This fake semaphore does not work in multi-threaded scenarios It is used as a safer option for a simp...
Definition: common.h:84