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

UTGame.UTUIScene_DemoSell


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
/**
 * Copyright 1998-2008 Epic Games, Inc. All Rights Reserved.
 */

class UTUIScene_DemoSell extends UTUIScene
	native(UI);

var transient UIButton SellButton;
var transient UIButton ExitButton;

native function Sell();

event PostInitialize()
{
	Super.PostInitialize();

	SellButton = UIButton( FindChild('SellButton',true));
	SellButton.OnClicked = OnSell;

	ExitButton = UIButton(FindChild('ExitButton',true));
	ExitButton.OnClicked = OnExit;
}

function bool OnSell(UIScreenObject EventObject, int PlayerIndex)
{
	Sell();
	OnExit(EventObject, PlayerIndex);
	return true;
}

function bool OnExit(UIScreenObject EventObject, int PlayerIndex)
{
	GetUTPlayerOwner().ConsoleCommand("Quit");
	return true;
}

defaultproperties
{
   Begin Object Class=UIComp_Event Name=SceneEventComponent ObjName=SceneEventComponent Archetype=UIComp_Event'UTGame.Default__UTUIScene:SceneEventComponent'
      ObjectArchetype=UIComp_Event'UTGame.Default__UTUIScene:SceneEventComponent'
   End Object
   EventProvider=SceneEventComponent
   Name="Default__UTUIScene_DemoSell"
   ObjectArchetype=UTUIScene'UTGame.Default__UTUIScene'
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: tr 31-1-2018 17:18:26.000 - Creation time: sk 18-3-2018 10:01:27.331 - Created with UnCodeX