Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

GUI2K4.UT2K4SP_CGBRUnTrade


00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090
00091
00092
00093
00094
00095
00096
00097
00098
00099
00100
00101
00102
00103
00104
00105
00106
00107
00108
00109
00110
00111
00112
00113
00114
00115
00116
00117
00118
00119
00120
00121
00122
00123
00124
00125
00126
00127
//==============================================================================
// Single Player Challenge Bloodrite Trade page
// Message that you lost a player, no interaction, just a notice
//
// Written by Michiel Hendriks
// (c) 2003, 2004, Epic Games, Inc. All Rights Reserved
//==============================================================================

class UT2K4SP_CGBRUnTrade extends LargeWindow;

var automated GUIScrollTextBox sbMessage;
var automated GUIButton btnOk;
var automated GUIImage imgPicture, imgPictureBg;
var automated GUILabel lblTitle;

/** class reference to the team this challenge was about */
var class<UT2K4TeamRoster> ETI;

/** The player this challenge was all about */
var string TargetPlayerName;

/** the message */
var localized string Message;

/**
    Param1 = enemy team class name
    Param2 = player name
*/
event HandleParameters(string Param1, string Param2)
{
    local xUtil.PlayerRecord PR;

    ETI = class<UT2K4TeamRoster>(DynamicLoadObject(Param1, class'Class'));
    TargetPlayerName = Param2;

    PR = class'xUtil'.static.FindPlayerRecord(Param2);
    imgPicture.Image = PR.Portrait;

    SetDescription();
}

function SetDescription()
{
    local string tmp;
    tmp = repl(Message, "%player%", TargetPlayerName);
    tmp = repl(tmp, "%enemyteam%", ETI.default.TeamName);
    sbMessage.SetContent(tmp);
}

function bool onOkClick(GUIComponent Sender)
{
    Controller.CloseMenu(false);
    return true;
}

defaultproperties
{
     Begin Object Class=GUIScrollTextBox Name=SPCsbDetails
         bNoTeletype=True
         OnCreateComponent=SPCsbDetails.InternalOnCreateComponent
         WinTop=0.166488
         WinLeft=0.316875
         WinWidth=0.377082
         WinHeight=0.318611
         RenderWeight=0.200000
         TabOrder=1
         bBoundToParent=True
     End Object
     sbMessage=GUIScrollTextBox'GUI2K4.UT2K4SP_CGBRUnTrade.SPCsbDetails'

     Begin Object Class=GUIButton Name=SPMbtnOk
         Caption="OK"
         FontScale=FNS_Small
         WinTop=0.821064
         WinLeft=0.310070
         WinWidth=0.222222
         WinHeight=0.050694
         TabOrder=1
         bBoundToParent=True
         OnClick=UT2K4SP_CGBRUnTrade.onOkClick
         OnKeyEvent=SPMbtnOk.InternalOnKeyEvent
     End Object
     btnOK=GUIButton'GUI2K4.UT2K4SP_CGBRUnTrade.SPMbtnOk'

     Begin Object Class=GUIImage Name=SPCimgPicture
         ImageStyle=ISTY_Scaled
         WinTop=0.172531
         WinLeft=0.060972
         WinWidth=0.116667
         WinHeight=0.312500
         RenderWeight=0.150000
         bBoundToParent=True
     End Object
     imgPicture=GUIImage'GUI2K4.UT2K4SP_CGBRUnTrade.SPCimgPicture'

     Begin Object Class=GUIImage Name=SPCimgPictureBg
         Image=Texture'2K4Menus.Controls.sectionback'
         ImageStyle=ISTY_Scaled
         WinTop=0.157531
         WinLeft=0.057222
         WinWidth=0.121667
         WinHeight=0.326250
         bBoundToParent=True
     End Object
     imgPictureBg=GUIImage'GUI2K4.UT2K4SP_CGBRUnTrade.SPCimgPictureBg'

     Begin Object Class=GUILabel Name=SPClblTitle
         Caption="Bloodrites"
         TextAlign=TXTA_Center
         FontScale=FNS_Large
         StyleName="TextLabel"
         WinTop=0.067846
         WinLeft=0.024063
         WinWidth=0.568750
         WinHeight=0.046250
         RenderWeight=0.200000
         bBoundToParent=True
     End Object
     lblTitle=GUILabel'GUI2K4.UT2K4SP_CGBRUnTrade.SPClblTitle'

     Message="Because you lost the challenge against %enemyteam% you have to give up your team mate %player%.|%player% now belongs to the %enemyteam%"
     DefaultTop=0.250000
     DefaultHeight=0.500000
     WinTop=0.250000
     WinHeight=0.500000
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Tue 24/10/2006 17:13:16.000 - Creation time: Wed 7/2/2007 19:16:57.109 - Created with UnCodeX