diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-07-12 20:11:09 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-07-12 20:20:59 +0300 |
commit | aeec9ca9881bbd4fdc332b342b09a795ee3961b4 (patch) | |
tree | 3e32a1dd828464a7e6e8c439f658421772a62f40 /src/gui/widgets/browserbox.h | |
parent | 36027fc87b99b8f048265f6ac470227a1c32d481 (diff) | |
download | manaverse-aeec9ca9881bbd4fdc332b342b09a795ee3961b4.tar.gz manaverse-aeec9ca9881bbd4fdc332b342b09a795ee3961b4.tar.bz2 manaverse-aeec9ca9881bbd4fdc332b342b09a795ee3961b4.tar.xz manaverse-aeec9ca9881bbd4fdc332b342b09a795ee3961b4.zip |
add ability to show assigned keys in browserbox.
Example: This is chat modifier key: ###ChatMod;.
If chat mod key is left shift, it will show:
"This is chat modifier key: left shift."
Diffstat (limited to 'src/gui/widgets/browserbox.h')
-rw-r--r-- | src/gui/widgets/browserbox.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/widgets/browserbox.h b/src/gui/widgets/browserbox.h index 3fa8bf579..c9219f9ba 100644 --- a/src/gui/widgets/browserbox.h +++ b/src/gui/widgets/browserbox.h @@ -225,6 +225,9 @@ class BrowserBox final : public gcn::Widget, void setEnableImages(bool n) { mEnableImages = n; } + void setEnableKeys(bool n) + { mEnableKeys = n; } + std::string getTextAtPos(const int x, const int y) const A_WARN_UNUSED; int getPadding() const A_WARN_UNUSED @@ -261,6 +264,7 @@ class BrowserBox final : public gcn::Widget, bool mAlwaysUpdate; bool mProcessVersion; bool mEnableImages; + bool mEnableKeys; int mPadding; int mNewLinePadding; |