Rename HotKeyBuildN to CommandKeyN

This commit is contained in:
Rampoina 2022-07-21 07:35:34 +02:00
parent 1922522009
commit 3313f187bb
2 changed files with 11 additions and 11 deletions

View File

@ -30,16 +30,16 @@ CameraRotateLeft=O
CameraRotateRight=P
CameraRotateUp=S
CameraRotateDown=W
HotKeyBuild1=Q
HotKeyBuild2=W
HotKeyBuild3=E
HotKeyBuild4=R
HotKeyBuild5=A
HotKeyBuild6=S
HotKeyBuild7=D
HotKeyBuild8=F
HotKeyBuild9=Z
HotKeyBuild10=X
CommandKey1=Q
CommandKey2=W
CommandKey3=E
CommandKey4=R
CommandKey5=A
CommandKey6=S
CommandKey7=D
CommandKey8=F
CommandKey9=Z
CommandKey10=X
HotKeyCenterCameraOnSelection=G
HotKeySelectIdleHarvesterUnit=I
HotKeySelectBuiltBuilding=B

View File

@ -450,7 +450,7 @@ void Gui::hotKey(SDL_KeyboardEvent key) {
}
for (int i=0; i<10; i++) {
string name = "HotKeyBuild" + intToStr(i+1);
string name = "CommandKey" + intToStr(i+1);
if(isKeyPressed(configKeys.getSDLKey(name.c_str()),key) == true) {
if(activeCommandType != NULL && activeCommandType->getClass() == ccBuild) {
mouseDownDisplayUnitBuild(i);