Once I get that upgrade to 36-hour days, I will tackle that. – Mychaeel
UE3:Settings native functions (UDK)
Contents
- 1 Native functions
- 1.1 AppendContextsToURL
- 1.2 AppendDataBindingsToURL
- 1.3 AppendPropertiesToURL
- 1.4 BuildURL
- 1.5 GetFloatProperty
- 1.6 GetIntProperty
- 1.7 GetPropertyAsString
- 1.8 GetPropertyAsStringByName
- 1.9 GetPropertyColumnHeader
- 1.10 GetPropertyId
- 1.11 GetPropertyMappingType
- 1.12 GetPropertyName
- 1.13 GetPropertyRange
- 1.14 GetPropertyType
- 1.15 GetPropertyValueId
- 1.16 GetQoSAdvertisedProperties
- 1.17 GetQoSAdvertisedStringSettings
- 1.18 GetRangedPropertyValue
- 1.19 GetStringProperty
- 1.20 GetStringSettingColumnHeader
- 1.21 GetStringSettingId
- 1.22 GetStringSettingName
- 1.23 GetStringSettingValue
- 1.24 GetStringSettingValueByName
- 1.25 GetStringSettingValueName
- 1.26 GetStringSettingValueNameByName
- 1.27 GetStringSettingValueNames
- 1.28 HasProperty
- 1.29 HasStringSetting
- 1.30 IncrementStringSettingValue
- 1.31 IsWildcardStringSetting
- 1.32 SetFloatProperty
- 1.33 SetIntProperty
- 1.34 SetPropertyFromStringByName
- 1.35 SetPropertyValueId
- 1.36 SetRangedPropertyValue
- 1.37 SetStringProperty
- 1.38 SetStringSettingValue
- 1.39 SetStringSettingValueByName
- 1.40 SetStringSettingValueFromStringByName
- 1.41 UpdateFromURL
- 1.42 UpdateProperties
- 1.43 UpdateStringSettings
- Settings native functions in other games:
- UT3
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. |
Native functions[edit]
AppendContextsToURL[edit]
Appends contexts to the URL.
Parameters:
- OutURL - String to append contexts to.
AppendDataBindingsToURL[edit]
Appends databindings to the URL.
Parameters:
- OutURL - String to append bindings to.
AppendPropertiesToURL[edit]
Appends properties to the URL.
Parameters:
- OutURL - String to append properties to.
BuildURL[edit]
Builds an URL out of the string settings and properties
Parameters:
- URL - the string to populate
GetFloatProperty[edit]
Reads a property of type SDT_Float into the value specified. Does nothing if the property is not of the right type.
Parameters:
- PropertyId - the property to read the value of
- Value - the out value containing the property's value
Returns:
- true if found and is the right type, false otherwise
GetIntProperty[edit]
Reads a property of type SDT_Int32 into the value specified. Does nothing if the property is not of the right type.
Parameters:
- PropertyId - the property to change the value of
- Value - the out value containing the property's value
Returns:
- true if found and is the right type, false otherwise
GetPropertyAsString[edit]
Converts a property to a string. Searches by id
Parameters:
- PropertyId - the id to look up in the mappings table
Returns:
- the string form of the property value or an empty string if invalid/missing
GetPropertyAsStringByName[edit]
Converts a property to a string. Searches by name
Parameters:
- PropertyName - the name of the property to find
Returns:
- the string form of the property value or an empty string if invalid/missing
GetPropertyColumnHeader[edit]
Finds the localized column header text for the property
Parameters:
- PropertyId - the id to look up in the mappings table
Returns:
- the string to use as the list column header for the property that matches the id, or an empty string if not found.
GetPropertyId[edit]
Searches the property array for the matching property and returns the id
Parameters:
- PropertyName - the name of the property being searched for
- PropertyId - the id of the context that matches the name
Returns:
- true if the property was found, false otherwise
GetPropertyMappingType[edit]
Determines the mapping type for the specified property
Parameters:
- PropertyId - the ID to get the mapping type for
- OutType - the out var the value is placed in
Returns:
- TRUE if found, FALSE otherwise
GetPropertyName[edit]
Finds the human readable name for the property
Parameters:
- PropertyId - the id to look up in the mappings table
Returns:
- the name of the property that matches the id or NAME_None if not found
GetPropertyRange[edit]
Determines the min and max values of a property that is clamped to a range
Parameters:
- PropertyId - the ID to get the mapping type for
- OutMinValue - the out var the min value is placed in
- OutMaxValue - the out var the max value is placed in
- RangeIncrement - the amount the range can be adjusted by the UI in any single update
- bFormatAsInt - whether the range's value should be treated as an int.
Returns:
- TRUE if found and is a range property, FALSE otherwise
GetPropertyType[edit]
Determines the property type for the specified property id
Parameters:
- PropertyId - the property to change the value of
Returns:
- the type of property, or SDT_Empty if not found
GetPropertyValueId[edit]
Retrieves the id for a mapped property's current value.
Parameters:
- PropertyId - the property to change the value of
- ValueId - receives the id of the property value
Returns:
- true if the property was found and id mapped, false otherwise
GetQoSAdvertisedProperties[edit]
Scans the properties for the ones that need to be set via QoS data
Parameters:
- QoSProps - the out array holding the list of properties to advertise via QoS
GetQoSAdvertisedStringSettings[edit]
Scans the string settings for the ones that need to be set via QoS data
Parameters:
- QoSSettings - the out array holding the list of settings to advertise via QoS
GetRangedPropertyValue[edit]
Gets the value of a ranged property
Parameters:
- PropertyId - the ID to get the value of
- OutValue - the out var that receives the value
Returns:
- TRUE if found and is a range property, FALSE otherwise
GetStringProperty[edit]
Reads a property of type SDT_String into the value specified. Does nothing if the property is not of the right type.
Parameters:
- PropertyId - the property to change the value of
- Value - the out value containing the property's value
Returns:
- true if found and is the right type, false otherwise
GetStringSettingColumnHeader[edit]
Finds the localized column header text for the string setting
Parameters:
- StringSettingId - the id to look up in the mappings table
Returns:
- the string to use as the list column header for the string setting that matches the id, or an empty string if not found.
GetStringSettingId[edit]
Searches the context array for the matching string setting name and returns the id
Parameters:
- StringSettingName - the name of the string setting being searched for
- StringSettingId - the id of the context that matches the name
Returns:
- true if the seting was found, false otherwise
GetStringSettingName[edit]
Finds the human readable name for the localized string setting
Parameters:
- StringSettingId - the id to look up in the mappings table
Returns:
- the name of the string setting that matches the id or NAME_None if not found
GetStringSettingValue[edit]
Searches the localized string setting array for the matching id and returns its value
Parameters:
- StringSettingId - the string setting to find the value of
- ValueIndex - the out value that is set when found
Returns:
- true if found, false otherwise
GetStringSettingValueByName[edit]
Searches the localized string setting array for the matching name and returns its value
Parameters:
- StringSettingName - the setting name to find the value of
- ValueIndex - the out value that is set when found
Returns:
- true if found, false otherwise
GetStringSettingValueName[edit]
Finds the human readable name for a string setting's value. Searches the string settings mappings for the specifc string setting and then searches the set of values for the specific value index and returns that value's human readable name
Parameters:
- StringSettingId - the id to look up in the mappings table
- ValueIndex - the value index to find the string value of
Returns:
- the name of the string setting value that matches the id & index or NAME_None if not found
GetStringSettingValueNameByName[edit]
Finds the human readable name for a string setting's value. Searches the string settings mappings for the specifc string setting and then searches the set of values for the specific value index and returns that value's human readable name
Parameters:
- StringSettingName - the name of the string setting to find the string value of
Returns:
- the name of the string setting value that matches the name or NAME_None if not found
GetStringSettingValueNames[edit]
Searches the localized string setting array for the matching id and returns the list of possible values
Parameters:
- StringSettingId - the string setting to find the value of
- Values - the out value that is a list of value names and their ids
Returns:
- true if found, false otherwise
HasProperty[edit]
Determines if a given property is present for this object
Parameters:
- PropertyId - the ID to check on
Returns:
- TRUE if the property is part of this object, FALSE otherwise
HasStringSetting[edit]
Determines if a given localized string setting is present for this object
Parameters:
- SettingId - the ID to check on
Returns:
- TRUE if the setting is part of this object, FALSE otherwise
IncrementStringSettingValue[edit]
Searches the localized string setting array for the matching id and sets the selected value to the next (or prev) item in the list, wrapping if required
Parameters:
- StringSettingId - the string setting to find the value of
- Direction - the direction to move in the list (1 forward, -1 backward)
- bShouldWrap - if true out of bound access wraps around, false clamps to min/max
Returns:
- true if found, false otherwise
IsWildcardStringSetting[edit]
Determines if the value for the specified setting is a wildcard option
Parameters:
- StringSettingId - the id to check for being a wildcard
Returns:
- true if the current value is a wildcard, false otherwise
SetFloatProperty[edit]
Sets a property of type SDT_Float to the value specified. Does nothing if the property is not of the right type.
Parameters:
- PropertyId - the property to change the value of
- Value - the new value to assign
SetIntProperty[edit]
Sets a property of type SDT_Int32 to the value specified. Does nothing if the property is not of the right type.
Parameters:
- PropertyId - the property to change the value of
- Value - the new value to assign
SetPropertyFromStringByName[edit]
Searches for the property by name and sets the property to the value contained in the string
Parameters:
- PropertyName - the name of the property to find
- NewValue - the string value to use
Returns:
- true if the property was found and the value was set, false otherwise
SetPropertyValueId[edit]
Change the current value for a mapped property's using a value id.
Parameters:
- PropertyId - the property to change the value of
- ValueId - the id for the value to set.
Returns:
- true if the property was found and id mapped, false otherwise
SetRangedPropertyValue[edit]
Sets the value of a ranged property, clamping to the min/max values
Parameters:
- PropertyId - the ID of the property to set
- NewValue - the new value to apply to the
Returns:
- TRUE if found and is a range property, FALSE otherwise
SetStringProperty[edit]
Sets a property of type SDT_String to the value specified. Does nothing if the property is not of the right type.
Parameters:
- PropertyId - the property to change the value of
- Value - the new value to assign
SetStringSettingValue[edit]
Searches the localized string setting array for the matching id and sets the value
Parameters:
- StringSettingId - the string setting to set the value for
- ValueIndex - the value of the string setting
- bShouldAutoAdd - whether to add the context if it is missing
SetStringSettingValueByName[edit]
Searches the localized string setting array for the matching name and sets the value
Parameters:
- StringSettingName - the setting name to set the value for
- ValueIndex - the value of the string setting
- bShouldAutoAdd - whether to add the string setting if it is missing
SetStringSettingValueFromStringByName[edit]
Searches for the string setting by name and sets the value index to the value contained in the string setting meta data
Parameters:
- StringSettingName - the name of the string setting to find
- NewValue - the string value to use
Returns:
- true if the string setting was found and the value was set, false otherwise
UpdateFromURL[edit]
Updates the game settings object from parameters passed on the URL
Parameters:
- URL - the URL to parse for settings
UpdateProperties[edit]
Using the specified array, updates the matching properties to the new values in that array. Optionally, it will add properties that aren't currently part of this object.
Parameters:
- Props - the list of properties to update
- bShouldAddIfMissing - whether to automatically add the property if missing
UpdateStringSettings[edit]
Using the specified array, updates the matching settings to the new values in that array. Optionally, it will add settings that aren't currently part of this object.
Parameters:
- Settings - the list of settings to update
- bShouldAddIfMissing - whether to automatically add the setting if missing