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

Engine.UIAction_RemovePage


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
/**
 * Removes an existing tab page from a tab control.
 *
 * Copyright 1998-2008 Epic Games, Inc. All Rights Reserved
 */
class UIAction_RemovePage extends UIAction_TabControl;

/** reference to the page that should be removed */
var		UITabPage	PageToRemove;

/* == Events == */
/**
 * Called when this event is activated.  Performs the logic for this action.
 */
event Activated()
{
	Super.Activated();

	if ( TabControl != None && PageToRemove != None )
	{
		if ( TabControl.RemovePage(PageToRemove, PlayerIndex) )
		{
			if ( !OutputLinks[0].bDisabled )
			{
				OutputLinks[0].bHasImpulse = true;
			}
		}
		else
		{
			if ( !OutputLinks[1].bDisabled )
			{
				OutputLinks[1].bHasImpulse = true;
			}
		}
	}
}

defaultproperties
{
   VariableLinks(3)=(ExpectedType=Class'Engine.SeqVar_Object',LinkDesc="Tab Page",PropertyName="PageToRemove",MinVars=1,MaxVars=255)
   ObjName="Remove Page"
   Name="Default__UIAction_RemovePage"
   ObjectArchetype=UIAction_TabControl'Engine.Default__UIAction_TabControl'
}

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