From d07c52ea4ccd57435a8f5e7ce6aaa9f5df89d76f Mon Sep 17 00:00:00 2001 From: GenZmeY Date: Wed, 12 Aug 2020 14:32:24 +0300 Subject: [PATCH] feat: MidGameMenu localization --- Localization/INT/ServerExt.int | Bin 33032 -> 34306 bytes ServerExt/Classes/UI_MidGameMenu.uc | 40 +++++++++++++++++++--------- 2 files changed, 27 insertions(+), 13 deletions(-) diff --git a/Localization/INT/ServerExt.int b/Localization/INT/ServerExt.int index 33c50f537a375dbf0ecdc81f8fc01fef7fbb63fb..ad95a1d53c1bbae2b6ce4b3300f99d71c28708bd 100644 GIT binary patch delta 1130 zcmah|%}T>S7#xZRDR>YsLKQ>bKsodGOCZVa&NnmP&(3F!*>~f2{cEy;CT?+!bKIi`9|N4h!x%%Zh6wPAI|!!7-3T`b zk#fJo{gh8g#1+>c{69oHM>z$qy(%_4m~LLWcp}p~9O{b7TdpE&?LqUnT#2er)e({^ z7uiqTYAwNK`_rvSm+_KCOvRMiLw-kj)(&~gDn|R6x)HODi5#ftx+=KPSf_+8cy^W% zDT4`Zc@#=%Ocz6^?BJ255!*>2ky?g~L_~Xi#j&heF4M7bMf7%Q+saazJH`tW=+l5y zFXa0{;X~CehsMR8O)Zu+xx|L5!WL_3f)YD_^er-0duZJ&B{WHPT%a?Nt@}_krz~y kfw3Y>H8$t9Xwf-c-RFSi_SB&H98 delta 9 QcmZqbVd`jN+Q88W01<2hRsaA1 diff --git a/ServerExt/Classes/UI_MidGameMenu.uc b/ServerExt/Classes/UI_MidGameMenu.uc index 7b52305..ce40e44 100644 --- a/ServerExt/Classes/UI_MidGameMenu.uc +++ b/ServerExt/Classes/UI_MidGameMenu.uc @@ -9,6 +9,23 @@ var transient KFGUI_Button PrevButton; var transient int NumButtons,NumButtonRows; var transient bool bInitSpectate,bOldSpectate,bInitSkipTrader; +var localized string MapVoteButtonText; +var localized string MapVoteButtonToolTip; +var localized string SettingsButtonText; +var localized string SettingsButtonToolTip; +var localized string SkipTraderButtonText; +var localized string SkipTraderButtonToolTip; +var localized string SpectateButtonText; +var localized string SpectateButtonToolTip; +var localized string CloseButtonText; +var localized string CloseButtonToolTip; +var localized string DisconnectButtonText; +var localized string DisconnectButtonToolTip; +var localized string ExitButtonText; +var localized string ExitButtonToolTip; +var localized string JoinButtonText; +var localized string JoinButtonToolTip; + function InitMenu() { local int i; @@ -17,14 +34,13 @@ function InitMenu() PageSwitcher = KFGUI_SwitchMenuBar(FindComponentID('Pager')); Super(KFGUI_Page).InitMenu(); - // TODO: localize - AddMenuButton('Mapvote',"Map Vote","Show mapvote menu"); - AddMenuButton('Settings',"Settings","Enter the game settings"); - SkipTraderButton = AddMenuButton('SkipTrader',"Skip Trader","start voting for skip trader"); - SpectateButton = AddMenuButton('Spectate',"",""); - AddMenuButton('Close',"Close","Close this menu"); - AddMenuButton('Disconnect',"Disconnect","Disconnect from this server"); - AddMenuButton('Exit',"Exit","Exit this game"); + AddMenuButton('Mapvote',MapVoteButtonText,MapVoteButtonToolTip); + AddMenuButton('Settings',SettingsButtonText,SettingsButtonToolTip); + SkipTraderButton = AddMenuButton('SkipTrader',SkipTraderButtonText,SkipTraderButtonToolTip); + SpectateButton = AddMenuButton('Spectate',SpectateButtonText,SpectateButtonToolTip); + AddMenuButton('Close',CloseButtonText,CloseButtonToolTip); + AddMenuButton('Disconnect',DisconnectButtonText,DisconnectButtonToolTip); + AddMenuButton('Exit',ExitButtonText,ExitButtonToolTip); for( i=0; i