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 |
/** * Copyright 1998-2008 Epic Games, Inc. All Rights Reserved. * * Version of UTUIOptionList which allows you to add options at runtime, but which doesn't use data providers */ Class UTUIDynamicOptionList extends UTUIOptionList native(UIFrontEnd) dependson(UTUIDataProvider_MenuOption); // Struct which holds information for a dynamic menu option (based off of UTUIDataProvider_MenuOption) struct native DynamicMenuOption { var name OptionName; // The name used to identify the menu option var EUTOptionType OptionType; // Name of the option set that this option belongs to var name RequiredGameMode; // Game mode required for this option to appear var string FriendlyName; // Friendly name which is displayed to the player (should be localized before assigment) var string Description; // Description of the option (should also be localized) var bool bEditableCombo; // Whether or not the options presented to the user are the only options they can choose from var bool bNumericCombo; // Whether or not the combobox is numeric var int EditBoxMaxLength; // Maximum length of the editbox property var EEditBoxCharacterSet EditboxAllowedChars; // The allowed character set for editboxes var UIRangeData RangeData; // Range data for the option, only used if its a slider type var bool bKeyboardOrMouseOption; // Whether the option is a keyboard or mouse option var bool bOnlineOnly; // Whether the option is an online only option or not var bool bOfflineOnly; // Whether the option is an offline only option or not }; // The list of menu option templates which are automatically created var array<DynamicMenuOption> DynamicOptionTemplates; // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // Called when setting up option bindings, after the options have been generated delegate OnSetupOptionBindings(); // Function stub function RefreshAllOptions(); function SetupOptionBindings() { Super.SetupOptionBindings(); OnSetupOptionBindings(); } // Returns a 'DynamicOptionTemplates' index based upon name function int GetDynamicOptionIndexByName(name InName) { return DynamicOptionTemplates.Find('OptionName', InName); } // Returns a 'DynamicOptionTemplates' index based upon an object instance function int GetDynamicOptionIndexByObject(UIObject InObject) { local int i; i = GetObjectInfoIndexFromObject(InObject); if (i != INDEX_None) return GetDynamicOptionIndexByName(GeneratedObjects[i].OptionProviderName); return INDEX_None; } defaultproperties { Begin Object Class=UIComp_Event Name=WidgetEventComponent ObjName=WidgetEventComponent Archetype=UIComp_Event'UTGame.Default__UTUIOptionList:WidgetEventComponent' ObjectArchetype=UIComp_Event'UTGame.Default__UTUIOptionList:WidgetEventComponent' End Object EventProvider=WidgetEventComponent Name="Default__UTUIDynamicOptionList" ObjectArchetype=UTUIOptionList'UTGame.Default__UTUIOptionList' } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |