J :
* Little progress on the interface for key bindings. * This seems to still be stable so I commit while I'm at it.
This commit is contained in:
@@ -487,6 +487,10 @@ struct WLFiltersSort{
|
|||||||
class WGuiKeyBinder : public WGuiList {
|
class WGuiKeyBinder : public WGuiList {
|
||||||
public:
|
public:
|
||||||
WGuiKeyBinder(string name);
|
WGuiKeyBinder(string name);
|
||||||
|
virtual bool isModal();
|
||||||
|
virtual bool CheckUserInput(JButton);
|
||||||
|
protected:
|
||||||
|
bool modal;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -1732,14 +1732,14 @@ string WGuiFilterItem::getCode(){
|
|||||||
return mCode;
|
return mCode;
|
||||||
}
|
}
|
||||||
|
|
||||||
WGuiKeyBinder::WGuiKeyBinder(string name) : WGuiList(name)
|
WGuiKeyBinder::WGuiKeyBinder(string name) : WGuiList(name), modal(false)
|
||||||
{
|
{
|
||||||
JGE* j = JGE::GetInstance();
|
JGE* j = JGE::GetInstance();
|
||||||
JGE::keybindings_it start = j->KeyBindings_begin(), end = j->KeyBindings_end();
|
JGE::keybindings_it start = j->KeyBindings_begin(), end = j->KeyBindings_end();
|
||||||
|
|
||||||
u32 y = 40;
|
u32 y = 40;
|
||||||
for (JGE::keybindings_it it = start; it != end; ++it)
|
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; }
|
||||||
|
|||||||
Reference in New Issue
Block a user