Jelajahi Sumber

Update utility.tscript

Fixed so remappable actions bound to the control key show the proper bitmap in the menu.
Sir-Skurpsalot 1 bulan lalu
induk
melakukan
b55be19d7a
1 mengubah file dengan 5 tambahan dan 2 penghapusan
  1. 5 2
      Templates/BaseGame/game/data/UI/scripts/utility.tscript

+ 5 - 2
Templates/BaseGame/game/data/UI/scripts/utility.tscript

@@ -115,7 +115,10 @@ function getButtonBitmap(%device, %button)
    {
       if(%button $= "lshift" || %button $= "rshift")
          %button = "shift";
-         
+
+      if(%button $= "lcontrol" || %button $= "rcontrol")
+         %button = "ctrl";
+
       %assetId = "UI:Keyboard_Black_" @ %button @ "_image";
    }
    else if(%device !$= "")
@@ -192,4 +195,4 @@ function switchLanguage(%language) //use here the #n as it's the order of inclus
     // swap existing language from the current core langtable and refresh the gui contents
 	getCoreLangTable().setCurrentLanguage(%language);
 	Canvas.setContent(Canvas.getContent());
-}
+}