File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ CameraModeRight=right
1111CameraModeUp =up
1212CameraModeDown =down
1313PauseGame =P
14- ChangeFontColor =C
14+ ChangeFontColor =O
1515GameSpeedIncrease =' +'
1616GameSpeedDecrease =' -'
1717ExitKey =escape
@@ -40,6 +40,8 @@ CommandKey7=D
4040CommandKey8 =F
4141CommandKey9 =Z
4242CommandKey10 =X
43+ CommandKey11 =C
44+ CommandKey12 =V
4345HotKeyCenterCameraOnSelection =G
4446HotKeySelectIdleHarvesterUnit =I
4547HotKeySelectBuiltBuilding =B
@@ -48,7 +50,7 @@ HotKeyDumpWorldToLog=\
4850HotKeyRotateUnitDuringPlacement =R
4951HotKeySelectDamagedUnit =U
5052HotKeySelectStoreUnit =T
51- HotKeySelectedUnitsAttack =V
53+ HotKeySelectedUnitsAttack =,
5254HotKeySelectedUnitsStop =;
5355HotKeyToggleOSMouseEnabled =/
5456ChatTeamMode =H
Original file line number Diff line number Diff line change @@ -449,7 +449,7 @@ void Gui::hotKey(SDL_KeyboardEvent key) {
449449 clickCommonCommand (ccStop);
450450 }
451451
452- for (int i=0 ; i<10 ; i++) {
452+ for (int i=0 ; i<commandKeys ; i++) {
453453 string name = " CommandKey" + intToStr (i+1 );
454454 if (isKeyPressed (configKeys.getSDLKey (name.c_str ()),key) == true ) {
455455 if (activeCommandType != NULL && activeCommandType->getClass () == ccBuild) {
@@ -800,7 +800,7 @@ void Gui::computeInfoString(int posDisplay){
800800
801801 if (posDisplay!=invalidPos && selection.isCommandable ()){
802802 string hotkey = " " ;
803- if (posDisplay < 10 ) { // there's 10 configurable command hotkeys
803+ if (posDisplay < commandKeys ) {
804804 hotkey=lang.getString (" HotKey" )+" : " +SDL_GetKeyName (configKeys.getSDLKey (commandKeyName.c_str ())) +" \n\n " ;
805805 }
806806 if (!selectingBuilding){
You can’t perform that action at this time.
0 commit comments