diff --git a/projects/mtg/include/WGui.h b/projects/mtg/include/WGui.h index 826737bbb..c74046051 100644 --- a/projects/mtg/include/WGui.h +++ b/projects/mtg/include/WGui.h @@ -487,6 +487,10 @@ struct WLFiltersSort{ class WGuiKeyBinder : public WGuiList { public: WGuiKeyBinder(string name); + virtual bool isModal(); + virtual bool CheckUserInput(JButton); + protected: + bool modal; }; #endif diff --git a/projects/mtg/src/WGui.cpp b/projects/mtg/src/WGui.cpp index 6b5081194..e4ad2c1bd 100644 --- a/projects/mtg/src/WGui.cpp +++ b/projects/mtg/src/WGui.cpp @@ -1732,14 +1732,14 @@ string WGuiFilterItem::getCode(){ return mCode; } -WGuiKeyBinder::WGuiKeyBinder(string name) : WGuiList(name) +WGuiKeyBinder::WGuiKeyBinder(string name) : WGuiList(name), modal(false) { JGE* j = JGE::GetInstance(); JGE::keybindings_it start = j->KeyBindings_begin(), end = j->KeyBindings_end(); u32 y = 40; for (JGE::keybindings_it it = start; it != end; ++it) - { - Add(NEW OptionKey(it->first, it->second)); - } + Add(NEW OptionKey(it->first, it->second)); } +bool WGuiKeyBinder::isModal() { return modal; } +bool WGuiKeyBinder::CheckUserInput(JButton key) { return false; }