feat: PrestigeNote localization

This commit is contained in:
GenZmeY 2020-09-01 06:20:02 +03:00
parent 1fed799819
commit d519e2e772
2 changed files with 13 additions and 5 deletions

Binary file not shown.

View File

@ -1,19 +1,27 @@
Class UI_PrestigeNote extends UI_ResetWarning;
var localized string WindowTitleText;
var localized string PrestigeButtonToolTip;
var localized string InfoLabelTextPart1;
var localized string InfoLabelTextPart2;
function InitMenu()
{
Super.InitMenu();
YesButton.ToolTip=PrestigeButtonToolTip;
}
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?");
WindowTitle = WindowTitleText$" "$P.PerkName;
InfoLabel.SetText(InfoLabelTextPart1$P.PrestigeSPIncrease$InfoLabelTextPart2);
}
defaultproperties
{
bIsPrestige=true
// TODO: localize
Begin Object Name=YesButten
Tooltip="Prestige the perk (you can not undo this action!)"
End Object
}