diff options
author | realOneplustwo <66292167+realOneplustwo@users.noreply.github.com> | 2020-10-20 16:32:49 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-20 16:32:49 -0700 |
commit | e22e334e9c21c2561a8ae56067e0594f72b4b61f (patch) | |
tree | 972029e089dfb365d1bb5ecee714b2e0a13a7bdc /src/gui/cheatMenu.h | |
parent | 130d476f6a00416809e0cf89adf5f7e8caa3df08 (diff) | |
parent | f605308ee3da739aee2a690c870c5b567d11d859 (diff) | |
download | dragonfireclient-e22e334e9c21c2561a8ae56067e0594f72b4b61f.tar.xz |
Merge pull request #1 from JosiahWI/ui_revamp
Improve drawEntry.
Diffstat (limited to 'src/gui/cheatMenu.h')
-rw-r--r-- | src/gui/cheatMenu.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/gui/cheatMenu.h b/src/gui/cheatMenu.h index 61637b1d4..e7fb4dc93 100644 --- a/src/gui/cheatMenu.h +++ b/src/gui/cheatMenu.h @@ -20,6 +20,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #pragma once #include "irrlichttypes_extrabloated.h" +#include <cstddef> #include <string> #define CHEAT_MENU_GET_SCRIPTPTR \ @@ -29,12 +30,12 @@ with this program; if not, write to the Free Software Foundation, Inc., class Client; -typedef enum +enum CheatMenuEntryType { CHEAT_MENU_ENTRY_TYPE_HEAD, CHEAT_MENU_ENTRY_TYPE_CATEGORY, CHEAT_MENU_ENTRY_TYPE_ENTRY, -} CheatMenuEntryType; +}; class CheatMenu { @@ -43,8 +44,9 @@ public: void draw(video::IVideoDriver *driver, bool show_debug); - void drawEntry(video::IVideoDriver *driver, std::string name, int number, - bool selected, bool active, int category_count, + void drawEntry(video::IVideoDriver *driver, std::string name, + std::size_t column_align_index, std::size_t cheat_entry_index, + bool is_selected, bool is_enabled, CheatMenuEntryType entry_type = CHEAT_MENU_ENTRY_TYPE_ENTRY); void selectUp(); |