KF2-Server-Extension/ServerExt/Classes/xUI_MapRank.uc

74 lines
1.3 KiB
Ucode
Raw Normal View History

2017-10-20 02:00:49 +00:00
Class xUI_MapRank extends KFGUI_Page;
var xVotingReplication RepInfo;
function CloseMenu()
{
Super.CloseMenu();
RepInfo = None;
}
function ButtonClicked( KFGUI_Button Sender )
{
switch( Sender.ID )
{
case 'Yes':
RepInfo.ServerRankMap(true);
DoClose();
break;
case 'No':
RepInfo.ServerRankMap(false);
DoClose();
break;
}
}
defaultproperties
{
bPersistant=false
bAlwaysTop=true
bOnlyThisFocus=true
XPosition=0.35
YPosition=0.4
XSize=0.3
YSize=0.2
2020-06-26 06:32:40 +00:00
// TODO: localize
2017-10-20 02:00:49 +00:00
Begin Object Class=KFGUI_TextLable Name=InfoLabel
XPosition=0.1
YPosition=0.15
XSize=0.8
YSize=0.35
AlignX=1
AlignY=1
Text="Did you like this map?"
End Object
Begin Object Class=KFGUI_Button Name=YesButton
XPosition=0.3
YPosition=0.5
XSize=0.2
YSize=0.3
ID="Yes"
ButtonText="Like"
ToolTip="Press this if you liked this map."
OnClickLeft=ButtonClicked
OnClickRight=ButtonClicked
ExtravDir=1
TextColor=(R=128,G=255,B=128,A=255)
End Object
Begin Object Class=KFGUI_Button Name=NoButton
XPosition=0.5
YPosition=0.5
XSize=0.2
YSize=0.3
ID="No"
ButtonText="Dislike"
ToolTip="Press this if you disliked this map."
OnClickLeft=ButtonClicked
OnClickRight=ButtonClicked
TextColor=(R=255,G=128,B=128,A=255)
End Object
Components.Add(InfoLabel)
Components.Add(YesButton)
Components.Add(NoButton)
}