diff options
author | Ira Rice <irarice@gmail.com> | 2009-01-12 15:41:10 -0700 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2009-01-12 15:41:10 -0700 |
commit | 7f8f7bcd329e62d240914686b01a9cd68624309c (patch) | |
tree | 1256aff76fa3f81b62724e73197eb94d231d9045 /src/gui/itemshortcutcontainer.cpp | |
parent | fc1539e019b6d916d1470ddf1f31997044af8396 (diff) | |
download | mana-client-7f8f7bcd329e62d240914686b01a9cd68624309c.tar.gz mana-client-7f8f7bcd329e62d240914686b01a9cd68624309c.tar.bz2 mana-client-7f8f7bcd329e62d240914686b01a9cd68624309c.tar.xz mana-client-7f8f7bcd329e62d240914686b01a9cd68624309c.zip |
Some rather pedantic changes. Unified all naming for emoticons in the
code so that only one term is used everywhere (to simplify
maintainability), as well as corrected several variable names and
comments where there was copy/pasted code, but it wasn't corrected. Also
moved emote shortcuts back to where they were originally, to reduce
player confusion when the next build comes around.
Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/gui/itemshortcutcontainer.cpp')
-rw-r--r-- | src/gui/itemshortcutcontainer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/itemshortcutcontainer.cpp b/src/gui/itemshortcutcontainer.cpp index b576e843..7e2eeac0 100644 --- a/src/gui/itemshortcutcontainer.cpp +++ b/src/gui/itemshortcutcontainer.cpp @@ -50,8 +50,8 @@ ItemShortcutContainer::ItemShortcutContainer(): mBackgroundImg->setAlpha(config.getValue("guialpha", 0.8)); - mBoxHeight = 42; - mBoxWidth = 36; + mBoxHeight = mBackgroundImg->getHeight(); + mBoxWidth = mBackgroundImg->getWidth(); } ItemShortcutContainer::~ItemShortcutContainer() @@ -89,7 +89,7 @@ ItemShortcutContainer::draw(gcn::Graphics *graphics) // Draw item keyboard shortcut. const char *key = SDL_GetKeyName( - (SDLKey) keyboard.getKeyValue(keyboard.KEY_SHORTCUT_0 + i)); + (SDLKey) keyboard.getKeyValue(keyboard.KEY_SHORTCUT_1 + i)); graphics->setColor(0x000000); g->drawText(key, itemX + 2, itemY + 2, gcn::Graphics::LEFT); |