aboutsummaryrefslogtreecommitdiff
path: root/src/gui/cheatMenu.h
diff options
context:
space:
mode:
authorrealOneplustwo <66292167+realOneplustwo@users.noreply.github.com>2020-10-20 16:32:49 -0700
committerGitHub <noreply@github.com>2020-10-20 16:32:49 -0700
commite22e334e9c21c2561a8ae56067e0594f72b4b61f (patch)
tree972029e089dfb365d1bb5ecee714b2e0a13a7bdc /src/gui/cheatMenu.h
parent130d476f6a00416809e0cf89adf5f7e8caa3df08 (diff)
parentf605308ee3da739aee2a690c870c5b567d11d859 (diff)
downloaddragonfireclient-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.h10
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();