Browse Source

#793 U shortcut for creature stack stats window

Andrii Danylchenko 3 years ago
parent
commit
23bbb69eb9
1 changed files with 5 additions and 0 deletions
  1. 5 0
      client/windows/CCreatureWindow.cpp

+ 5 - 0
client/windows/CCreatureWindow.cpp

@@ -324,6 +324,11 @@ CStackWindow::ButtonsSection::ButtonsSection(CStackWindow * owner, int yOffset)
 
 			upgradeBtn->addOverlay(std::make_shared<CAnimImage>("CPRSMALL", VLC->creh->objects[upgradeInfo.info.newID[buttonIndex]]->iconIndex));
 
+			if(buttonsToCreate == 1) // single upgrade avaialbe
+			{
+				upgradeBtn->assignedKeys.insert(SDLK_u);
+			}
+
 			upgrade[buttonIndex] = upgradeBtn;
 		}
 	}