feat: MapRank localization
This commit is contained in:
parent
d519e2e772
commit
4eb6bb074a
Binary file not shown.
@ -2,11 +2,37 @@ Class xUI_MapRank extends KFGUI_Page;
|
|||||||
|
|
||||||
var xVotingReplication RepInfo;
|
var xVotingReplication RepInfo;
|
||||||
|
|
||||||
|
var KFGUI_TextLable InfoLabel;
|
||||||
|
var KFGUI_Button YesButton;
|
||||||
|
var KFGUI_Button NoButton;
|
||||||
|
|
||||||
|
var localized string InfoText;
|
||||||
|
var localized string YesButtonText;
|
||||||
|
var localized string YesButtonToolTip;
|
||||||
|
var localized string NoButtonText;
|
||||||
|
var localized string NoButtonToolTip;
|
||||||
|
|
||||||
|
function InitMenu()
|
||||||
|
{
|
||||||
|
Super.InitMenu();
|
||||||
|
|
||||||
|
YesButton = KFGUI_Button(FindComponentID('Yes'));
|
||||||
|
NoButton = KFGUI_Button(FindComponentID('No'));
|
||||||
|
InfoLabel = KFGUI_TextLable(FindComponentID('Info'));
|
||||||
|
|
||||||
|
InfoLabel.SetText(InfoText);
|
||||||
|
YesButton.ButtonText=YesButtonText;
|
||||||
|
YesButton.ToolTip=YesButtonToolTip;
|
||||||
|
NoButton.ButtonText=NoButtonText;
|
||||||
|
NoButton.ToolTip=NoButtonToolTip;
|
||||||
|
}
|
||||||
|
|
||||||
function CloseMenu()
|
function CloseMenu()
|
||||||
{
|
{
|
||||||
Super.CloseMenu();
|
Super.CloseMenu();
|
||||||
RepInfo = None;
|
RepInfo = None;
|
||||||
}
|
}
|
||||||
|
|
||||||
function ButtonClicked( KFGUI_Button Sender )
|
function ButtonClicked( KFGUI_Button Sender )
|
||||||
{
|
{
|
||||||
switch( Sender.ID )
|
switch( Sender.ID )
|
||||||
@ -32,15 +58,14 @@ defaultproperties
|
|||||||
XSize=0.3
|
XSize=0.3
|
||||||
YSize=0.2
|
YSize=0.2
|
||||||
|
|
||||||
// TODO: localize
|
|
||||||
Begin Object Class=KFGUI_TextLable Name=InfoLabel
|
Begin Object Class=KFGUI_TextLable Name=InfoLabel
|
||||||
|
ID="Info"
|
||||||
XPosition=0.1
|
XPosition=0.1
|
||||||
YPosition=0.15
|
YPosition=0.15
|
||||||
XSize=0.8
|
XSize=0.8
|
||||||
YSize=0.35
|
YSize=0.35
|
||||||
AlignX=1
|
AlignX=1
|
||||||
AlignY=1
|
AlignY=1
|
||||||
Text="Did you like this map?"
|
|
||||||
End Object
|
End Object
|
||||||
Begin Object Class=KFGUI_Button Name=YesButton
|
Begin Object Class=KFGUI_Button Name=YesButton
|
||||||
XPosition=0.3
|
XPosition=0.3
|
||||||
@ -48,8 +73,6 @@ defaultproperties
|
|||||||
XSize=0.2
|
XSize=0.2
|
||||||
YSize=0.3
|
YSize=0.3
|
||||||
ID="Yes"
|
ID="Yes"
|
||||||
ButtonText="Like"
|
|
||||||
ToolTip="Press this if you liked this map."
|
|
||||||
OnClickLeft=ButtonClicked
|
OnClickLeft=ButtonClicked
|
||||||
OnClickRight=ButtonClicked
|
OnClickRight=ButtonClicked
|
||||||
ExtravDir=1
|
ExtravDir=1
|
||||||
@ -61,8 +84,6 @@ defaultproperties
|
|||||||
XSize=0.2
|
XSize=0.2
|
||||||
YSize=0.3
|
YSize=0.3
|
||||||
ID="No"
|
ID="No"
|
||||||
ButtonText="Dislike"
|
|
||||||
ToolTip="Press this if you disliked this map."
|
|
||||||
OnClickLeft=ButtonClicked
|
OnClickLeft=ButtonClicked
|
||||||
OnClickRight=ButtonClicked
|
OnClickRight=ButtonClicked
|
||||||
TextColor=(R=255,G=128,B=128,A=255)
|
TextColor=(R=255,G=128,B=128,A=255)
|
||||||
|
Loading…
Reference in New Issue
Block a user