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

GUI2K4.Ut2K4Community


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
// ====================================================================
// (C) 2002, Epic Games
// ====================================================================

class Ut2K4Community extends ModsAndDemosTabs;

var automated GUIScrollTextBox  CommunityNews;
var bool                        GotNews;
var localized string            DefaultNews;
var MasterServerClient          MSC;

var config int  ModRevLevel;
var config int  LastModRevLevel;

function InitComponent(GUIController MyController, GUIComponent MyOwner)
{
    Super.InitComponent(MyController, MyOwner);
    CommunityNews.SetContent(DefaultNews);
    CommunityNews.MyScrollText.bClickText=true;
    CommunityNews.MyScrollText.OnDblClick=LaunchURL;
}

function bool LaunchURL(GUIComponent Sender)
{
    local string ClickString;

    ClickString = StripColorCodes(CommunityNews.MyScrollText.ClickedString);
    Controller.LaunchURL(ClickString);
    return true;
}

defaultproperties
{
     Begin Object Class=GUIScrollTextBox Name=lbCommunityNews
         bNoTeletype=True
         bVisibleWhenEmpty=True
         OnCreateComponent=lbCommunityNews.InternalOnCreateComponent
         WinTop=0.020000
         WinLeft=0.020000
         WinWidth=0.960000
         WinHeight=0.960000
         TabOrder=0
     End Object
     CommunityNews=GUIScrollTextBox'GUI2K4.Ut2K4Community.lbCommunityNews'

     DefaultNews="Thank you for purchasing Unreal Tournament 2004||Attempting to retrieve the latest news from the Master Server, please stand by..."
     Tag=0
}

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