Explorar el Código

#793 U shortcut for creature stack stats window

Andrii Danylchenko hace 3 años
padre
commit
23bbb69eb9
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  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));
 			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;
 			upgrade[buttonIndex] = upgradeBtn;
 		}
 		}
 	}
 	}