Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |
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 |
/** * Adds a new page to a tab control at the specified location. * * Copyright 1998-2008 Epic Games, Inc. All Rights Reserved */ class UIAction_InsertPage extends UIAction_TabControl; var() class<UITabPage> TabPageClass; /** * The position [into the tab control's Pages array] to insert the new tab page. If not specified (value of INDEX_NONE), * will be added to the end of the list. */ var() int InsertIndex; /** * Specifies whether the page should also be given focus once it's successfully added to the tab control. */ var() bool bFocusPage; /** * Reference to an existing page instance. If non-NULL, this page will be inserted rather than creating a new one. */ var UITabPage PageToInsert; /** * Optional UIPrefab to use as the template for the new page. If specified, this will be used instead of the value of TabPageClass. */ var UITabPage PagePrefab; /* == Events == */ /** * Called when this event is activated. Performs the logic for this action. */ event Activated() { local bool bSuccess; local UITabPage NewPage; local SeqVar_Object ObjVar; Super.Activated(); if ( TabControl != None && (TabPageClass != None || PageToInsert != None) ) { NewPage = PageToInsert; if ( NewPage == None ) { if ( PagePrefab != None ) { TabPageClass = PagePrefab.Class; } NewPage = TabControl.CreateTabPage( TabPageClass, PagePrefab ); } if ( NewPage != None ) { bSuccess = TabControl.InsertPage(NewPage, PlayerIndex, InsertIndex, bFocusPage); foreach LinkedVariables( class'SeqVar_Object', ObjVar, "New Page" ) { ObjVar.SetObjectValue(NewPage); } } } if ( bSuccess ) { if ( !OutputLinks[0].bDisabled ) { OutputLinks[0].bHasImpulse = true; } } else { if ( !OutputLinks[1].bDisabled ) { OutputLinks[1].bHasImpulse = true; } } } defaultproperties { TabPageClass=Class'Engine.UITabPage' InsertIndex=-1 bFocusPage=True VariableLinks(3)=(ExpectedType=Class'Engine.SeqVar_Int',LinkDesc="Position",PropertyName="InsertIndex",bHidden=True,MinVars=1,MaxVars=255) VariableLinks(4)=(ExpectedType=Class'Engine.SeqVar_Object',LinkDesc="Page To Insert",PropertyName="PageToInsert",bHidden=True,MinVars=1,MaxVars=255) VariableLinks(5)=(ExpectedType=Class'Engine.SeqVar_Object',LinkDesc="Page Prefab",PropertyName="PagePrefab",bHidden=True,MinVars=1,MaxVars=255) VariableLinks(6)=(ExpectedType=Class'Engine.SeqVar_Object',LinkDesc="New Page",bWriteable=True,MinVars=1,MaxVars=255) ObjName="Add Page" Name="Default__UIAction_InsertPage" ObjectArchetype=UIAction_TabControl'Engine.Default__UIAction_TabControl' } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |