diff options
author | realOneplustwo <66292167+realOneplustwo@users.noreply.github.com> | 2020-10-21 13:23:44 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-21 13:23:44 -0700 |
commit | 7af3dee31c078d1f92fb241ddbaac4107d55d3e5 (patch) | |
tree | df3aa86f940a58a7a67814620a591412731c932d /src/gui/cheatMenu.h | |
parent | aea9b36ef70dd35e8dfa370043ae5e3f3c751cb4 (diff) | |
parent | 7aff09ab232704b0abc8d95d107c07f67f581e2e (diff) | |
download | dragonfireclient-7af3dee31c078d1f92fb241ddbaac4107d55d3e5.tar.xz |
Merge pull request #2 from JosiahWI/ui_revamp
Prepare CheatMenu::draw function for easier UI changes.
Diffstat (limited to 'src/gui/cheatMenu.h')
-rw-r--r-- | src/gui/cheatMenu.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/gui/cheatMenu.h b/src/gui/cheatMenu.h index 4ffaa177d..018b63ae0 100644 --- a/src/gui/cheatMenu.h +++ b/src/gui/cheatMenu.h @@ -39,12 +39,17 @@ class CheatMenu public: CheatMenu(Client *client); + Client* getScript() + { + return m_client->getScript(); + } + void draw(video::IVideoDriver *driver, bool show_debug); 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); + 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(); void selectDown(); |