aboutsummaryrefslogtreecommitdiff
path: root/src/gui/cheatMenu.h
diff options
context:
space:
mode:
authorJosiah VanderZee <josiah_vanderzee@mediacombb.net>2020-10-20 18:28:25 -0500
committerJosiah VanderZee <josiah_vanderzee@mediacombb.net>2020-10-20 18:28:25 -0500
commitf605308ee3da739aee2a690c870c5b567d11d859 (patch)
tree972029e089dfb365d1bb5ecee714b2e0a13a7bdc /src/gui/cheatMenu.h
parent130d476f6a00416809e0cf89adf5f7e8caa3df08 (diff)
downloaddragonfireclient-f605308ee3da739aee2a690c870c5b567d11d859.tar.xz
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();