From 5d42f7f9a3cd85f5e95ca37fdbaef8f3265084eb Mon Sep 17 00:00:00 2001 From: GenZmeY Date: Fri, 26 Jun 2020 09:32:40 +0300 Subject: [PATCH] add TODO labels --- ServerExt/Classes/ExtEmoteList.uc | 1 + ServerExt/Classes/ExtGUI_PerkSelectionPage.uc | 2 +- ServerExt/Classes/ExtHUD_SpectatorInfo.uc | 1 + ServerExt/Classes/Ext_PerkBase.uc | 1 + ServerExt/Classes/UIP_About.uc | 1 + ServerExt/Classes/UIP_AdminMenu.uc | 3 ++- ServerExt/Classes/UIP_News.uc | 2 +- ServerExt/Classes/UIP_PerkSelection.uc | 1 + ServerExt/Classes/UIP_PlayerSpecs.uc | 1 + ServerExt/Classes/UIP_Settings.uc | 3 ++- ServerExt/Classes/UIR_PerkStat.uc | 1 + ServerExt/Classes/UIR_PerkTraitList.uc | 1 + ServerExt/Classes/UIR_TraitInfoPopup.uc | 3 ++- ServerExt/Classes/UI_AdminMOTD.uc | 1 + ServerExt/Classes/UI_AdminPerkLevel.uc | 5 +++-- ServerExt/Classes/UI_MidGameMenu.uc | 8 +++++--- ServerExt/Classes/UI_PrestigeNote.uc | 2 ++ ServerExt/Classes/UI_ResetWarning.uc | 3 ++- ServerExt/Classes/UI_Scoreboard.uc | 1 + ServerExt/Classes/UI_Scoreboard_CD.uc | 1 + ServerExt/Classes/UI_UnloadInfo.uc | 7 +++++-- ServerExt/Classes/xUI_MapRank.uc | 1 + ServerExt/Classes/xUI_MapVote.uc | 1 + ServerExt/Classes/xVotingReplication.uc | 20 +++++++++---------- 24 files changed, 48 insertions(+), 23 deletions(-) diff --git a/ServerExt/Classes/ExtEmoteList.uc b/ServerExt/Classes/ExtEmoteList.uc index 988ddac..d9e85b0 100644 --- a/ServerExt/Classes/ExtEmoteList.uc +++ b/ServerExt/Classes/ExtEmoteList.uc @@ -67,6 +67,7 @@ static final function name GetEmoteFromIndex(byte EmoteIndex) defaultproperties { + // TODO: localize Emotes.Add((Id=4515, ItemName = "LetsGetCrazy", AnimName="Emote_01_LetsGetCrazy", IconPath="EMOTE_TEX.Emote_LetsGoCrazy_512")) Emotes.Add((Id=4516, ItemName = "ThunderClap", AnimName="Emote_02_ThunderClap", IconPath="EMOTE_TEX.Emote_Thunderclap_512")) Emotes.Add((Id=4517, ItemName = "UncleCharlie", AnimName="Emote_03_UncleCharlie", IconPath="EMOTE_TEX.Emote_UncleCharlie_512")) diff --git a/ServerExt/Classes/ExtGUI_PerkSelectionPage.uc b/ServerExt/Classes/ExtGUI_PerkSelectionPage.uc index b789463..8ace20e 100644 --- a/ServerExt/Classes/ExtGUI_PerkSelectionPage.uc +++ b/ServerExt/Classes/ExtGUI_PerkSelectionPage.uc @@ -48,7 +48,7 @@ function UserPressedEsc(); defaultproperties { - WindowTitle="" + WindowTitle="" // TODO: localize? WTF? XPosition=0.01 XSize=0.73 YSize=0.73 diff --git a/ServerExt/Classes/ExtHUD_SpectatorInfo.uc b/ServerExt/Classes/ExtHUD_SpectatorInfo.uc index 6f49a38..5b8f696 100644 --- a/ServerExt/Classes/ExtHUD_SpectatorInfo.uc +++ b/ServerExt/Classes/ExtHUD_SpectatorInfo.uc @@ -8,6 +8,7 @@ function LocalizeText() local GFxObject TempObject; TempObject = CreateObject("Object"); + // TODO: localize? TempObject.SetString("prevPlayer", "FREE CAMERA"); TempObject.SetString("nextPlayer", PrevPlayerString); TempObject.SetString("changeCamera", ChangeCameraString); diff --git a/ServerExt/Classes/Ext_PerkBase.uc b/ServerExt/Classes/Ext_PerkBase.uc index b67507b..c87dde1 100644 --- a/ServerExt/Classes/Ext_PerkBase.uc +++ b/ServerExt/Classes/Ext_PerkBase.uc @@ -1411,6 +1411,7 @@ defaultproperties WebConfigs.Add((PropType=0,PropName="MaxPrestige",UIName="Max Prestige",UIDesc="Maximum prestige level")) WebConfigs.Add((PropType=0,PropName="PrestigeXPReduce",UIName="Prestige XP Reduce",UIDesc="Percent amount of XP cost is reduced for each prestige (1.0 = 1/2, or 50 % of XP)")) + // TODO: localize DefPerkStats(0)=(MaxValue=50,CostPerValue=1,StatType="Speed",UIName="Movement Speed (+&%)",Progress=0.4) DefPerkStats(1)=(MaxValue=1000,CostPerValue=1,StatType="Damage",UIName="Perk Damage (+&%)",Progress=0.5) DefPerkStats(2)=(MaxValue=90,CostPerValue=1,StatType="Recoil",UIName="Fire Recoil (-&%)",Progress=1) diff --git a/ServerExt/Classes/UIP_About.uc b/ServerExt/Classes/UIP_About.uc index a73ad75..f23d51a 100644 --- a/ServerExt/Classes/UIP_About.uc +++ b/ServerExt/Classes/UIP_About.uc @@ -26,6 +26,7 @@ defaultproperties { ForumURL="forums.tripwireinteractive.com/showthread.php?t=106926" + // TODO: localize Begin Object Class=KFGUI_TextField Name=AboutText XPosition=0.025 YPosition=0.025 diff --git a/ServerExt/Classes/UIP_AdminMenu.uc b/ServerExt/Classes/UIP_AdminMenu.uc index 73d55e4..51230e0 100644 --- a/ServerExt/Classes/UIP_AdminMenu.uc +++ b/ServerExt/Classes/UIP_AdminMenu.uc @@ -30,7 +30,7 @@ function SelectedRow( KFGUI_ListItem Item, int Row, bool bRight, bool bDblClick { if( bRight || bDblClick ) { - PlayerContext.ItemRows[0].Text = "-- EDIT: "$Item.Columns[0]; + PlayerContext.ItemRows[0].Text = "-- EDIT: "$Item.Columns[0]; // TODO: localize? SelectedID = Item.Value; PlayerContext.OpenMenu(Self); } @@ -56,6 +56,7 @@ function ButtonClicked( KFGUI_Button Sender ) defaultproperties { + // TODO: localize Begin Object Class=KFGUI_RightClickMenu Name=PlayerContextMenu ItemRows.Add((Text="",Value=-1)) ItemRows.Add((Text="Show Debug Info",Value=9)) diff --git a/ServerExt/Classes/UIP_News.uc b/ServerExt/Classes/UIP_News.uc index 35f8bc7..a4c01b1 100644 --- a/ServerExt/Classes/UIP_News.uc +++ b/ServerExt/Classes/UIP_News.uc @@ -23,7 +23,7 @@ function ShowMenu() if( !WebsiteButton.bDisabled ) { WebsiteURL = GRI.ServerAdInfo.WebsiteLink; - WebsiteButton.ChangeToolTip("Visit the server website at: "$WebsiteURL); + WebsiteButton.ChangeToolTip("Visit the server website at: "$WebsiteURL); // TODO: localize } } function Timer() diff --git a/ServerExt/Classes/UIP_PerkSelection.uc b/ServerExt/Classes/UIP_PerkSelection.uc index 53438d3..89f376b 100644 --- a/ServerExt/Classes/UIP_PerkSelection.uc +++ b/ServerExt/Classes/UIP_PerkSelection.uc @@ -260,6 +260,7 @@ function ButtonClicked( KFGUI_Button Sender ) defaultproperties { + // TODO: localize Begin Object Class=KFGUI_List Name=PerksList ID="Perks" XPosition=0 diff --git a/ServerExt/Classes/UIP_PlayerSpecs.uc b/ServerExt/Classes/UIP_PlayerSpecs.uc index 2823841..0f42db9 100644 --- a/ServerExt/Classes/UIP_PlayerSpecs.uc +++ b/ServerExt/Classes/UIP_PlayerSpecs.uc @@ -166,6 +166,7 @@ function SelectedRow( KFGUI_ListItem Item, int Row, bool bRight, bool bDblClick defaultproperties { + // TODO: localize Begin Object Class=KFGUI_Button Name=B_ShowStats ButtonText="Show Stats" Tooltip="Show the stats of the current players in server" diff --git a/ServerExt/Classes/UIP_Settings.uc b/ServerExt/Classes/UIP_Settings.uc index ab2fb7e..5ea3903 100644 --- a/ServerExt/Classes/UIP_Settings.uc +++ b/ServerExt/Classes/UIP_Settings.uc @@ -13,6 +13,7 @@ function InitMenu() // Client settings SettingsBox = KFGUI_ComponentList(FindComponentID('SettingsBox')); + // TODO: localize //AddCheckBox("Text-To-Speech:","Enable Text-to-Speech talk for player chat messages",'TTS', bool bDefault ); AddCheckBox("First person legs:","Show first person body",'FP',class'ExtPlayerController'.Default.bShowFPLegs); if( class'ExtPlayerController'.Default.bShowFPLegs ) @@ -131,7 +132,7 @@ function ButtonClicked( KFGUI_Button Sender ) switch( Sender.ID ) { case 'KB': - KeyBindButton.ButtonText = "Press a button"; + KeyBindButton.ButtonText = "Press a button"; // TODO: localize KeyBindButton.SetDisabled(true); GrabKeyFocus(); bSetKeybind = true; diff --git a/ServerExt/Classes/UIR_PerkStat.uc b/ServerExt/Classes/UIR_PerkStat.uc index 6cd12e7..8c2f3d1 100644 --- a/ServerExt/Classes/UIR_PerkStat.uc +++ b/ServerExt/Classes/UIR_PerkStat.uc @@ -106,6 +106,7 @@ final function string ChopExtraDigits( float Value ) defaultproperties { + // TODO: localize Begin Object Class=KFGUI_TextLable Name=InfoLable ID="Info" XPosition=0 diff --git a/ServerExt/Classes/UIR_PerkTraitList.uc b/ServerExt/Classes/UIR_PerkTraitList.uc index 68bb0fe..a26723c 100644 --- a/ServerExt/Classes/UIR_PerkTraitList.uc +++ b/ServerExt/Classes/UIR_PerkTraitList.uc @@ -110,6 +110,7 @@ function NotifyMousePaused() defaultproperties { + // TODO: localize Columns.Add((Text="Trait name",Width=0.6)) Columns.Add((Text="Level",Width=0.2)) Columns.Add((Text="Cost",Width=0.2)) diff --git a/ServerExt/Classes/UIR_TraitInfoPopup.uc b/ServerExt/Classes/UIR_TraitInfoPopup.uc index e6213c7..f30c92f 100644 --- a/ServerExt/Classes/UIR_TraitInfoPopup.uc +++ b/ServerExt/Classes/UIR_TraitInfoPopup.uc @@ -50,7 +50,7 @@ function Timer() return; } Cost = MyTrait.Static.GetTraitCost(OldLevel); - YesButton.ButtonText = "Buy ("$Cost$")"; + YesButton.ButtonText = "Buy ("$Cost$")"; // TODO: localize if( Cost>OldPoints || !MyTrait.Static.MeetsRequirements(OldLevel,MyPerk) ) YesButton.SetDisabled(true); else YesButton.SetDisabled(false); @@ -78,6 +78,7 @@ defaultproperties bAlwaysTop=true bOnlyThisFocus=true + // TODO: localize Begin Object Class=KFGUI_TextField Name=TraitInfoLbl ID="Info" XPosition=0.05 diff --git a/ServerExt/Classes/UI_AdminMOTD.uc b/ServerExt/Classes/UI_AdminMOTD.uc index 7ee1309..8847649 100644 --- a/ServerExt/Classes/UI_AdminMOTD.uc +++ b/ServerExt/Classes/UI_AdminMOTD.uc @@ -50,6 +50,7 @@ function MOTDEdited( KFGUI_EditBox Sender ) defaultproperties { + // TODO: localize WindowTitle="Edit MOTD line" XPosition=0.25 YPosition=0.2 diff --git a/ServerExt/Classes/UI_AdminPerkLevel.uc b/ServerExt/Classes/UI_AdminPerkLevel.uc index 0b602d1..f43606f 100644 --- a/ServerExt/Classes/UI_AdminPerkLevel.uc +++ b/ServerExt/Classes/UI_AdminPerkLevel.uc @@ -23,10 +23,10 @@ final function InitPage( int UserID, byte Mode ) } if( ExtPlayerReplicationInfo(PRI)==None ) { - WindowTitle = Mode==1 ? "Set level" : "Set prestige level"; + WindowTitle = Mode==1 ? "Set level" : "Set prestige level"; // TODO: localize return; } - WindowTitle = (Mode==1 ? "Set level of " : "Set prestige level of ")$PRI.GetHumanReadableName(); + WindowTitle = (Mode==1 ? "Set level of " : "Set prestige level of ")$PRI.GetHumanReadableName(); // TODO: localize LevelBox.ChangeValue(string(Mode==1 ? ExtPlayerReplicationInfo(PRI).ECurrentPerkLevel : ExtPlayerReplicationInfo(PRI).ECurrentPerkPrestige)); BaseValue = (Mode==1 ? 100 : 100000); } @@ -53,6 +53,7 @@ defaultproperties bAlwaysTop=true bOnlyThisFocus=true + // TODO: localize Begin Object Class=KFGUI_Button Name=YesButten ID="Yes" ButtonText="Submit" diff --git a/ServerExt/Classes/UI_MidGameMenu.uc b/ServerExt/Classes/UI_MidGameMenu.uc index 574ead9..1f112e7 100644 --- a/ServerExt/Classes/UI_MidGameMenu.uc +++ b/ServerExt/Classes/UI_MidGameMenu.uc @@ -16,6 +16,8 @@ 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"); AddMenuButton('Disconnect',"Disconnect","Disconnect from this server"); @@ -43,8 +45,8 @@ function Timer() { bInitSpectate = true; bOldSpectate = PRI.bOnlySpectator; - SpectateButton.ButtonText = (bOldSpectate ? "Join" : "Spectate"); - SpectateButton.ChangeToolTip(bOldSpectate ? "Click to become an active player" : "Click to become a spectator"); + SpectateButton.ButtonText = (bOldSpectate ? "Join" : "Spectate"); // TODO: localize + SpectateButton.ChangeToolTip(bOldSpectate ? "Click to become an active player" : "Click to become a spectator"); // TODO: localize } } @@ -128,7 +130,7 @@ final function KFGUI_Button AddMenuButton( name ButtonID, string Text, optional defaultproperties { - WindowTitle="Killing Floor 2 - Survival" + WindowTitle="Killing Floor 2 - Survival" // TODO: wtf? XPosition=0.1 YPosition=0.1 XSize=0.8 diff --git a/ServerExt/Classes/UI_PrestigeNote.uc b/ServerExt/Classes/UI_PrestigeNote.uc index d78ec6b..01a2c19 100644 --- a/ServerExt/Classes/UI_PrestigeNote.uc +++ b/ServerExt/Classes/UI_PrestigeNote.uc @@ -3,6 +3,7 @@ Class UI_PrestigeNote extends UI_ResetWarning; function SetupTo( Ext_PerkBase P ) { PerkToReset = P.Class; + // TODO: localize WindowTitle = "NOTICE: Prestige "$P.PerkName; InfoLabel.SetText("NOTICE: If you prestige your perk, you can not undo this operation!|All your gained XP and level will be reset to #{FF0000}0#{DEF}.|But this will also increase the amount of points by #{F7FE2E}+"$P.PrestigeSPIncrease$"#{DEF} you earn for every level up in the future.||Are you sure you want to do this?"); } @@ -11,6 +12,7 @@ defaultproperties { bIsPrestige=true + // TODO: localize Begin Object Name=YesButten Tooltip="Prestige the perk (you can not undo this action!)" End Object diff --git a/ServerExt/Classes/UI_ResetWarning.uc b/ServerExt/Classes/UI_ResetWarning.uc index 408c325..32df906 100644 --- a/ServerExt/Classes/UI_ResetWarning.uc +++ b/ServerExt/Classes/UI_ResetWarning.uc @@ -12,7 +12,7 @@ function InitMenu() function SetupTo( Ext_PerkBase P ) { PerkToReset = P.Class; - WindowTitle = "WARNING: Reset "$P.PerkName; + WindowTitle = "WARNING: Reset "$P.PerkName; // TODO: localize } function ButtonClicked( KFGUI_Button Sender ) { @@ -38,6 +38,7 @@ defaultproperties bAlwaysTop=true bOnlyThisFocus=true + // TODO: localize Begin Object Class=KFGUI_TextField Name=WarningLabel ID="Info" XPosition=0.01 diff --git a/ServerExt/Classes/UI_Scoreboard.uc b/ServerExt/Classes/UI_Scoreboard.uc index 554da03..03ee3c0 100644 --- a/ServerExt/Classes/UI_Scoreboard.uc +++ b/ServerExt/Classes/UI_Scoreboard.uc @@ -570,6 +570,7 @@ defaultproperties SBTextColor=(R=250,G=250,B=250,A=255) ScoreboardSpacing=4 + // TODO: localize Begin Object Class=KFGUI_List Name=PlayerList bDrawBackground=false OnDrawItem=DrawPlayerEntry diff --git a/ServerExt/Classes/UI_Scoreboard_CD.uc b/ServerExt/Classes/UI_Scoreboard_CD.uc index 4391a30..522e9e4 100644 --- a/ServerExt/Classes/UI_Scoreboard_CD.uc +++ b/ServerExt/Classes/UI_Scoreboard_CD.uc @@ -487,6 +487,7 @@ defaultproperties Components.Empty + // TODO: localize Begin Object Class=KFGUI_List_CD Name=PlayerList bDrawBackground=false OnDrawItem=DrawPlayerEntry diff --git a/ServerExt/Classes/UI_UnloadInfo.uc b/ServerExt/Classes/UI_UnloadInfo.uc index a6c1f32..131d51e 100644 --- a/ServerExt/Classes/UI_UnloadInfo.uc +++ b/ServerExt/Classes/UI_UnloadInfo.uc @@ -14,9 +14,9 @@ function InitMenu() final function SetupTo( class P ) { PerkToReset = P; - WindowTitle = "NOTICE: Unload stats for "$P.Default.PerkName; + WindowTitle = "NOTICE: Unload stats for "$P.Default.PerkName; // TODO: localize YesButten.SetDisabled(true); - InfoLabel.SetText("Please wait..."); + InfoLabel.SetText("Please wait..."); // TODO: localize ++CurCallCode; ExtPlayerController(GetPlayer()).OnClientGetResponse = ReceivedInfo; ExtPlayerController(GetPlayer()).ServerGetUnloadInfo(CurCallCode,PerkToReset,false); @@ -45,6 +45,7 @@ function ReceivedInfo( byte CallID, byte Code, int DataA, int DataB ) { if( CurCallCode!=CallID ) return; + // TODO: localize switch( Code ) { case 0: @@ -76,6 +77,8 @@ defaultproperties XSize=0.98 YSize=0.775 End Object + + // TODO: localize Begin Object Class=KFGUI_Button Name=YesButten ID="Yes" ButtonText="YES" diff --git a/ServerExt/Classes/xUI_MapRank.uc b/ServerExt/Classes/xUI_MapRank.uc index 7b9c521..657cf24 100644 --- a/ServerExt/Classes/xUI_MapRank.uc +++ b/ServerExt/Classes/xUI_MapRank.uc @@ -32,6 +32,7 @@ defaultproperties XSize=0.3 YSize=0.2 + // TODO: localize Begin Object Class=KFGUI_TextLable Name=InfoLabel XPosition=0.1 YPosition=0.15 diff --git a/ServerExt/Classes/xUI_MapVote.uc b/ServerExt/Classes/xUI_MapVote.uc index b5d69ff..f89b5db 100644 --- a/ServerExt/Classes/xUI_MapVote.uc +++ b/ServerExt/Classes/xUI_MapVote.uc @@ -148,6 +148,7 @@ defaultproperties XSize=0.6 YSize=0.8 + // TODO: localize Begin Object Class=KFGUI_ColumnList Name=CurrentVotesList XPosition=0.015 YPosition=0.075 diff --git a/ServerExt/Classes/xVotingReplication.uc b/ServerExt/Classes/xVotingReplication.uc index 502db95..fc42191 100644 --- a/ServerExt/Classes/xVotingReplication.uc +++ b/ServerExt/Classes/xVotingReplication.uc @@ -115,13 +115,13 @@ reliable client simulated function ClientReady( int CurGame ) { ClientCurrentGame = CurGame; bAllReceived = true; - MapVoteMsg("Maplist successfully received."); + MapVoteMsg("Maplist successfully received."); // TODO: localize } simulated final function MapVoteMsg( string S ) { if( S!="" ) - GetPlayer().ClientMessage("MapVote: "$S); + GetPlayer().ClientMessage("MapVote: "$S); // TODO: localize } reliable client simulated function ClientNotifyVote( PlayerReplicationInfo PRI, int GameIndex, int MapIndex ) { @@ -133,15 +133,15 @@ reliable client simulated function ClientNotifyVote( PlayerReplicationInfo PRI, reliable client simulated function ClientNotifyVoteTime( int Time ) { if( Time==0 ) - MapVoteMsg("Initializing mid-game mapvote..."); + MapVoteMsg("Initializing mid-game mapvote..."); // TODO: localize if( Time<=10 ) MapVoteMsg(string(Time)$"..."); else if( Time<60 ) - MapVoteMsg(string(Time)$" seconds..."); + MapVoteMsg(string(Time)$" seconds..."); // TODO: localize else if( Time==60 ) - MapVoteMsg("1 minute remains..."); + MapVoteMsg("1 minute remains..."); // TODO: localize else if( Time==120 ) - MapVoteMsg("2 minutes remain..."); + MapVoteMsg("2 minutes remain..."); // TODO: localize } reliable client simulated function ClientNotifyVoteWin( int GameIndex, int MapIndex, bool bAdminForce ) { @@ -149,12 +149,12 @@ reliable client simulated function ClientNotifyVoteWin( int GameIndex, int MapIn if( bAdminForce ) { if( bAllReceived ) - MapVoteMsg("An admin has forced mapswitch to "$Maps[MapIndex].MapTitle$" ("$GameModes[GameIndex].GameShortName$")."); - else MapVoteMsg("An admin has forced a mapswitch."); + MapVoteMsg("An admin has forced mapswitch to "$Maps[MapIndex].MapTitle$" ("$GameModes[GameIndex].GameShortName$")."); // TODO: localize + else MapVoteMsg("An admin has forced a mapswitch."); // TODO: localize } else if( bAllReceived ) - MapVoteMsg(Maps[MapIndex].MapTitle$" ("$GameModes[GameIndex].GameShortName$") has won mapvote, switching map..."); - else MapVoteMsg("A map has won mapvote, switching map..."); + MapVoteMsg(Maps[MapIndex].MapTitle$" ("$GameModes[GameIndex].GameShortName$") has won mapvote, switching map..."); // TODO: localize + else MapVoteMsg("A map has won mapvote, switching map..."); // TODO: localize } reliable client simulated function ClientOpenMapvote( optional bool bShowRank ) {