Always snap to grid
UE3:UISkin (UT3)
Object >> UIRoot >> UIDataProvider >> UIDataStore >> UISkin |
Contents
- Package:
- Engine
- Known classes within UISkin:
- UIStyle
- Direct subclass:
- UICustomSkin
- This class in other games:
- UDK
This is an auto-generated page and may need human attention. Please remove the {{autogenerated}} tag if the page seems reasonably complete or replace it with the {{expand}} tag if the page is not yet complete. |
Represents a collection of UIStyles.
When a style is created, it is assigned a persistent STYLE_ID. All styles for a particular widget are stored in a single unreal package file. The root object for this package is a UISkin object. The resources required by the style may also be stored in the skin file, or they might be located in another package.
A game UI is required to have at least one UISkin package that will serve as the default skin. Only one UISkin can be active at a time, and all custom UISkins are based on the default UISkin. Custom UISkins may decide to override a style completely by creating a new style that has the same STYLE_ID as the skin to be replaced, and placing that skin into the StyleLookupTable under that STYLE_ID. Any styles which aren't specifically overridden in the custom UISkin are inherited from the default skin. By default, widgets will automatically be mapped to the customized version of the UIStyle contained in the custom UISkin, but the user may choose to assign a completely different style to a particular widget. This only changes the style of that widget for that skin set and any UISkin that is based on the custom UISkin. Custom UISkins can be hierarchical, in that custom UISkins can be based on other custom UISkins. Copyright 1998-2007 Epic Games, Inc. All Rights Reserved.
Properties[edit]
CursorMap[edit]
Type: Map{FName,struct FUIMouseCursor}
Modifiers: const, native, duplicatetransient
The cursors contained by this skin. Maps a unique tag (i.e. Arrow) to a cursor resource.
SoundCueMap[edit]
Type: Map{FName,class USoundCue*}
Modifiers: const, native, transient
Maps UI sound cue names to their corresponding sound cues. Used for quick lookup of USoundCues based on the UI sound cue name. Built at runtime from the SoundCues array.
SoundCues[edit]
Type: array<UISoundCue>
Modifiers: const, protected
the UI sound cues contained in this UISkin
StyleGroupMap[edit]
Type: Object.Map_Mirror{TLookupMap<FString>}
Modifiers: const, native, transient
Contains the style group names for this style and all parent styles.
StyleGroups[edit]
Modifiers: const, protected
The group names used by the styles in the skin package
StyleLookupTable[edit]
Type: Map{struct FSTYLE_ID,class UUIStyle*}
Modifiers: const, native, transient
maps STYLE_ID to the UIStyle that corresonds to that STYLE_ID. Used for quickly finding a UIStyle based on a STYLE_ID. Built at runtime as the UISkin serializes its list of styles
StyleNameMap[edit]
Type: Map{FName,class UUIStyle*}
Modifiers: const, native, transient
Maps StyleTag to the UIStyle that has that tag. Used for quickly finding a UIStyle based on a style tag. Built at runtime as the UISkin serializes its list of styles.
Styles[edit]
Modifiers: const, instanced, protected
the styles stored in this UISkin
Default values[edit]
Property | Value |
---|---|
Tag | 'Styles' |
Structs[edit]
UISoundCue[edit]
Modifiers: native
Associates an arbitrary
- name SoundName
- the name for this UISoundCue. this name is used by widgets to reference this sound, and must match
one of the values from the GameUISceneCient's list of available sound cue names
- SoundCue SoundToPlay
- the actual sound that should be played
Native functions[edit]
AddStyleGroupName[edit]
Adds a new style group to this skin.
Parameters:
- StyleGroupName - the style group name to add
Returns:
- TRUE if the group name was successfully added.
AddUISoundCue[edit]
Adds a new sound cue mapping to this skin's list of UI sound cues.
Parameters:
- SoundCueName - the name to use for this UISoundCue. should correspond to one of the values of the UIInteraction.SoundCueNames array.
- SoundToPlay - the sound cue that should be associated with this name; NULL values are OK.
Returns:
- TRUE if the sound mapping was successfully added to this skin; FALSE if the specified name was invalid or wasn't found in the UIInteraction's array of available sound cue names.
FindStyleGroupIndex[edit]
Finds the index for the specified group name.
Parameters:
- StyleGroupName - the group name to find
Returns:
- the index [into the skin's StyleGroupMap] for the specified style group, or INDEX_NONE if it wasn't found.
GetAvailableStyles[edit]
Retrieve the list of styles available from this skin.
Parameters:
- out_Styles - filled with the styles available from this UISkin, including styles contained by parent skins.
- bIncludeInheritedStyles - if TRUE, out_Styles will also contain styles inherited from parent styles which aren't explicitely overridden in this skin
GetCursorResource[edit]
Looks up the cursor resource associated with the specified name in this skin's CursorMap.
Parameters:
- CursorName - the name of the cursor to retrieve.
Returns:
- a pointer to an instance of the resource associated with the cursor name specified, or NULL if no cursors exist that are using that name
GetSkinSoundCues[edit]
Retrieves the list of UISoundCues contained by this UISkin.
GetStyleGroupAtIndex[edit]
Gets the group name at the specified index
Parameters:
- Index - the index [into the skin's StyleGroupMap] of the style to get
Returns:
- the group name at the specified index, or an empty string if the index is invalid.
GetStyleGroups[edit]
Retrieves the full list of style group names.
Parameters:
- StyleGroupArray - recieves the array of group names
- bIncludeInheritedGroupNames - specify FALSE to exclude group names inherited from base skins.
GetUISoundCue[edit]
Retrieves the SoundCue associated with the specified UISoundCue name.
Parameters:
- SoundCueName - the name of the sound cue to find. should correspond to the SoundName for a UISoundCue contained by this skin
- out_UISoundCue - will receive the value for the sound cue associated with the sound cue name specified; might be NULL if there is no actual sound cue associated with the sound cue name specified, or if this skin doesn't contain a sound cue using that name (use the return value to determine which of these is the case)
Returns:
- TRUE if this skin contains a UISoundCue that is using the sound cue name specified, even if that sound cue name is not assigned to a sound cue object; FALSE if this skin doesn't contain a UISoundCue using the specified name.
IsInheritedGroupName[edit]
Returns:
- TRUE if the specified group name exists and was inherited from this skin's base skin; FALSE if the group name doesn't exist or belongs to this skin.
RemoveStyleGroupName[edit]
Removes a style group name from this skin.
Parameters:
- StyleGroupName - the group name to remove
Returns:
- TRUE if this style group was successfully removed from this skin.
RemoveUISoundCue[edit]
Removes the specified sound cue name from this skin's list of UISoundCues
Parameters:
- SoundCueName - the name of the UISoundCue to remove. should correspond to one of the values of the UIInteraction.SoundCueNames array.
Returns:
- TRUE if the sound mapping was successfully removed from this skin or this skin didn't contain any sound cues using that name;
RenameStyleGroup[edit]
Renames a style group in this skin.
Parameters:
- OldStyleGroupName - the style group to rename
- NewStyleGroupName - the new name to use for the style group
Returns:
- TRUE if the style group was successfully renamed; FALSE if it wasn't found or couldn't be renamed.