73 lines
1.3 KiB
Ucode
73 lines
1.3 KiB
Ucode
|
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
|
||
|
|
||
|
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)
|
||
|
}
|