J :
* The key bindings now display (semi-)correctly.
- Here, "semi-" means the local keys display as a string under X and
a number everywhere else. The number is all but helpful and will
have to be replaced before it is usable, but at the moment, the
code is stable afaik.
This commit is contained in:
@@ -131,4 +131,12 @@ private:
|
||||
string preview;
|
||||
size_t initialValue;
|
||||
};
|
||||
|
||||
class OptionKey : public WGuiItem {
|
||||
public:
|
||||
OptionKey(LocalKeySym, JButton);
|
||||
LocalKeySym from;
|
||||
JButton to;
|
||||
virtual void Render();
|
||||
};
|
||||
#endif
|
||||
|
||||
18
projects/mtg/include/TranslateKeys.h
Normal file
18
projects/mtg/include/TranslateKeys.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#ifndef _TRANSLATEKEYS_H_
|
||||
#define _TRANSLATEKEYS_H_
|
||||
|
||||
#include <string>
|
||||
#include "JGE.h"
|
||||
|
||||
struct KeyRep
|
||||
{
|
||||
KeyRep(JQuad*, std::string);
|
||||
JQuad* icon;
|
||||
std::string text;
|
||||
};
|
||||
|
||||
|
||||
const KeyRep& translateKey(LocalKeySym);
|
||||
const KeyRep& translateKey(JButton);
|
||||
|
||||
#endif
|
||||
@@ -484,10 +484,9 @@ struct WLFiltersSort{
|
||||
bool operator()(const WGuiBase*l, const WGuiBase*r);
|
||||
};
|
||||
|
||||
class WGuiKeyBinder : public WGuiItem {
|
||||
class WGuiKeyBinder : public WGuiList {
|
||||
public:
|
||||
WGuiKeyBinder();
|
||||
virtual void Render();
|
||||
WGuiKeyBinder(string name);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user