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 CameraRotateRight=P
CameraRotateUp=S CameraRotateUp=S
CameraRotateDown=W CameraRotateDown=W
HotKeyBuild1=Q CommandKey1=Q
HotKeyBuild2=W CommandKey2=W
HotKeyBuild3=E CommandKey3=E
HotKeyBuild4=R CommandKey4=R
HotKeyBuild5=A CommandKey5=A
HotKeyBuild6=S CommandKey6=S
HotKeyBuild7=D CommandKey7=D
HotKeyBuild8=F CommandKey8=F
HotKeyBuild9=Z CommandKey9=Z
HotKeyBuild10=X CommandKey10=X
HotKeyCenterCameraOnSelection=G HotKeyCenterCameraOnSelection=G
HotKeySelectIdleHarvesterUnit=I HotKeySelectIdleHarvesterUnit=I
HotKeySelectBuiltBuilding=B HotKeySelectBuiltBuilding=B

View File

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