1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-05 00:49:09 +02:00

- ComponentBox usage in 2 windows: levelup and build screen

- Components have selectable image size
- fixed #794
This commit is contained in:
Ivan Savenko
2012-07-07 13:32:37 +00:00
parent 49d2ba1982
commit 55c78e9f16
8 changed files with 201 additions and 174 deletions

View File

@ -456,7 +456,8 @@ bool CIntObject::captureThisEvent(const SDL_KeyboardEvent & key)
void CKeyShortcut::keyPressed(const SDL_KeyboardEvent & key)
{
if(vstd::contains(assignedKeys,key.keysym.sym))
if(vstd::contains(assignedKeys,key.keysym.sym)
|| vstd::contains(assignedKeys, CGuiHandler::numToDigit(key.keysym.sym)))
{
bool prev = pressedL;
if(key.state == SDL_PRESSED)