Select screen with a centered preview and a portrait taskbar
This commit is contained in:
1 parent
e0e43d9285
commit
ee13be56d7
8 files changed
+168
-161
No files matched your search
@@ -23,7 +23,8 @@ enum Panel
|
||||
PANEL_STATS,
|
||||
PANEL_CATALOG,
|
||||
PANEL_SETTINGS,
|
||||
PANEL_CHEATS
|
||||
PANEL_CHEATS,
|
||||
PANEL_CREDITS
|
||||
};
|
||||
|
||||
enum ButtonState
|
||||
@@ -61,6 +62,7 @@ public:
|
||||
std::vector<Canvas> itemCanvases;
|
||||
std::vector<ImVec2> itemSizes;
|
||||
Actor previewActor;
|
||||
Anm2 iconsDefault;
|
||||
Canvas previewCanvas;
|
||||
Stats selectedStats;
|
||||
Audio* audio = nullptr;
|
||||
@@ -77,7 +79,9 @@ public:
|
||||
Panel panel = PANEL_NONE;
|
||||
bool isFullscreen = false;
|
||||
bool isNewGameWarning = false;
|
||||
bool isPreviewRender = false;
|
||||
bool isSelectedSaved = false;
|
||||
bool isWindowOpen = false;
|
||||
|
||||
void play_update(Play& play, Settings& settings);
|
||||
void select_update(std::vector<Character>& characters, Settings& settings);
|
||||
@@ -87,9 +91,10 @@ private:
|
||||
bool icon_button(const char* icon, const char* tooltip, ButtonState state);
|
||||
void icon_draw(const char* name, ImVec2 position, float size, ImU32 tint);
|
||||
void command_add(CommandType type, const std::string& key = "");
|
||||
void window_open(Play& play, Panel next);
|
||||
void sound_play(SoundId id);
|
||||
void taskbar_draw(Play& play, ImVec2 screen);
|
||||
void window_draw(Play& play, Settings& settings, ImVec2 screen);
|
||||
bool window_begin(ImVec2 screen, float inset);
|
||||
void window_end();
|
||||
void stats_draw(Play& play);
|
||||
void cheats_draw(Play& play);
|
||||
void catalog_draw(Play& play);
|
||||
|
||||
Reference in new issue
Block a user