add TODO labels

This commit is contained in:
GenZmeY 2020-06-26 09:32:40 +03:00
parent e76c0ac5db
commit 5d42f7f9a3
24 changed files with 48 additions and 23 deletions

View File

@ -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"))

View File

@ -48,7 +48,7 @@ function UserPressedEsc();
defaultproperties
{
WindowTitle=""
WindowTitle="" // TODO: localize? WTF?
XPosition=0.01
XSize=0.73
YSize=0.73

View File

@ -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);

View File

@ -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)

View File

@ -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

View File

@ -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))

View File

@ -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()

View File

@ -260,6 +260,7 @@ function ButtonClicked( KFGUI_Button Sender )
defaultproperties
{
// TODO: localize
Begin Object Class=KFGUI_List Name=PerksList
ID="Perks"
XPosition=0

View File

@ -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"

View File

@ -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;

View File

@ -106,6 +106,7 @@ final function string ChopExtraDigits( float Value )
defaultproperties
{
// TODO: localize
Begin Object Class=KFGUI_TextLable Name=InfoLable
ID="Info"
XPosition=0

View File

@ -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))

View File

@ -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

View File

@ -50,6 +50,7 @@ function MOTDEdited( KFGUI_EditBox Sender )
defaultproperties
{
// TODO: localize
WindowTitle="Edit MOTD line"
XPosition=0.25
YPosition=0.2

View File

@ -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"

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -487,6 +487,7 @@ defaultproperties
Components.Empty
// TODO: localize
Begin Object Class=KFGUI_List_CD Name=PlayerList
bDrawBackground=false
OnDrawItem=DrawPlayerEntry

View File

@ -14,9 +14,9 @@ function InitMenu()
final function SetupTo( class<Ext_PerkBase> 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"

View File

@ -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

View File

@ -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

View File

@ -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 )
{