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
00050
// ====================================================================
// (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
		WinWidth=0.96
		WinHeight=0.96
		WinLeft=0.02
		WinTop=0.02
        TabOrder=0
        bVisibleWhenEmpty=true
        bNoTeletype=true
	End Object
    CommunityNews=lbCommunityNews
	Tag=0

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

}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Di 5.9.2006 22:28:52.000 - Creation time: Do 14.8.2014 09:58:53.194 - Created with UnCodeX