feat: AdminPerkLevel localization
This commit is contained in:
parent
c74aa02086
commit
6a2cf92603
Binary file not shown.
@ -2,13 +2,34 @@ Class UI_AdminPerkLevel extends KFGUI_FloatingWindow;
|
|||||||
|
|
||||||
var KFGUI_NumericBox LevelBox;
|
var KFGUI_NumericBox LevelBox;
|
||||||
var int PlayerID,BaseValue;
|
var int PlayerID,BaseValue;
|
||||||
|
var KFGUI_Button YesButton;
|
||||||
|
var KFGUI_Button NoButton;
|
||||||
|
|
||||||
|
var localized string WindowTitleSetLevel;
|
||||||
|
var localized string WindowTitleSetPrestigeLevel;
|
||||||
|
var localized string WindowTitleSetLevelOf;
|
||||||
|
var localized string WindowTitleSetPrestigeLevelOf;
|
||||||
|
var localized string YesButtonText;
|
||||||
|
var localized string YesButtonToolTip;
|
||||||
|
var localized string NoButtonText;
|
||||||
|
var localized string NoButtonToolTip;
|
||||||
|
var localized string LevelBoxToolTip;
|
||||||
|
|
||||||
function InitMenu()
|
function InitMenu()
|
||||||
{
|
{
|
||||||
Super.InitMenu();
|
Super.InitMenu();
|
||||||
|
|
||||||
LevelBox = KFGUI_NumericBox(FindComponentID('Edit'));
|
LevelBox = KFGUI_NumericBox(FindComponentID('Edit'));
|
||||||
|
YesButton = KFGUI_Button(FindComponentID('Yes'));
|
||||||
|
NoButton = KFGUI_Button(FindComponentID('No'));
|
||||||
|
|
||||||
|
YesButton.ButtonText=YesButtonText;
|
||||||
|
YesButton.Tooltip=YesButtonToolTip;
|
||||||
|
NoButton.ButtonText=NoButtonText;
|
||||||
|
NoButton.Tooltip=NoButtonToolTip;
|
||||||
|
LevelBox.Tooltip=LevelBoxToolTip;
|
||||||
}
|
}
|
||||||
|
|
||||||
final function InitPage( int UserID, byte Mode )
|
final function InitPage( int UserID, byte Mode )
|
||||||
{
|
{
|
||||||
local PlayerReplicationInfo PRI;
|
local PlayerReplicationInfo PRI;
|
||||||
@ -23,10 +44,10 @@ final function InitPage( int UserID, byte Mode )
|
|||||||
}
|
}
|
||||||
if( ExtPlayerReplicationInfo(PRI)==None )
|
if( ExtPlayerReplicationInfo(PRI)==None )
|
||||||
{
|
{
|
||||||
WindowTitle = Mode==1 ? "Set level" : "Set prestige level"; // TODO: localize
|
WindowTitle = Mode==1 ? WindowTitleSetLevel : WindowTitleSetPrestigeLevel;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
WindowTitle = (Mode==1 ? "Set level of " : "Set prestige level of ")$PRI.GetHumanReadableName(); // TODO: localize
|
WindowTitle = (Mode==1 ? WindowTitleSetLevelOf : WindowTitleSetPrestigeLevelOf)$" "$PRI.GetHumanReadableName();
|
||||||
LevelBox.ChangeValue(string(Mode==1 ? ExtPlayerReplicationInfo(PRI).ECurrentPerkLevel : ExtPlayerReplicationInfo(PRI).ECurrentPerkPrestige));
|
LevelBox.ChangeValue(string(Mode==1 ? ExtPlayerReplicationInfo(PRI).ECurrentPerkLevel : ExtPlayerReplicationInfo(PRI).ECurrentPerkPrestige));
|
||||||
BaseValue = (Mode==1 ? 100 : 100000);
|
BaseValue = (Mode==1 ? 100 : 100000);
|
||||||
}
|
}
|
||||||
@ -53,11 +74,8 @@ defaultproperties
|
|||||||
bAlwaysTop=true
|
bAlwaysTop=true
|
||||||
bOnlyThisFocus=true
|
bOnlyThisFocus=true
|
||||||
|
|
||||||
// TODO: localize
|
|
||||||
Begin Object Class=KFGUI_Button Name=YesButten
|
Begin Object Class=KFGUI_Button Name=YesButten
|
||||||
ID="Yes"
|
ID="Yes"
|
||||||
ButtonText="Submit"
|
|
||||||
Tooltip="Set the perk/prestige level"
|
|
||||||
XPosition=0.4
|
XPosition=0.4
|
||||||
YPosition=0.5
|
YPosition=0.5
|
||||||
XSize=0.09
|
XSize=0.09
|
||||||
@ -68,8 +86,6 @@ defaultproperties
|
|||||||
End Object
|
End Object
|
||||||
Begin Object Class=KFGUI_Button Name=NoButten
|
Begin Object Class=KFGUI_Button Name=NoButten
|
||||||
ID="No"
|
ID="No"
|
||||||
ButtonText="Cancel"
|
|
||||||
Tooltip="Abort without doing anything"
|
|
||||||
XPosition=0.5
|
XPosition=0.5
|
||||||
YPosition=0.5
|
YPosition=0.5
|
||||||
XSize=0.09
|
XSize=0.09
|
||||||
@ -79,7 +95,6 @@ defaultproperties
|
|||||||
End Object
|
End Object
|
||||||
Begin Object Class=KFGUI_NumericBox Name=EditBox
|
Begin Object Class=KFGUI_NumericBox Name=EditBox
|
||||||
ID="Edit"
|
ID="Edit"
|
||||||
Tooltip="Enter the new perk/prestige level to set this player to."
|
|
||||||
XPosition=0.05
|
XPosition=0.05
|
||||||
YPosition=0.2
|
YPosition=0.2
|
||||||
XSize=0.9
|
XSize=0.9
|
||||||
|
Loading…
Reference in New Issue
Block a user