Difference between revisions of "UI Script"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Snakster
imported>CraftySentinel
m (→‎SKSE Global Functions: Reverted to List)
Line 17: Line 17:
== SKSE Global Functions ==
== SKSE Global Functions ==


{|class="wikitable" width =100%
:'''Bool [[IsMenuOpen - UI|IsMenuOpen]](String ''menuName'')'''
!style="text-align:left;"|Function
:*Returns if the menu is currently open.
!style="text-align:left;"|Description
|-
|[[IsMenuOpen - UI|Bool '''IsMenuOpen'''(String ''menuName'')]]
|Returns if the menu is currently open.
|-


|[[SetBool - UI|'''SetBool'''(String ''menuName'', String ''target'', Bool ''value'')]]
:'''[[SetBool - UI|SetBool]](String ''menuName'', String ''target'', Bool ''value'')'''
|Sets bool value at existing target location.
:*Sets bool value at existing target location.
|-


|[[SetInt - UI|'''SetInt'''(String ''menuName'', String ''target'', Int ''value'')]]
:'''[[SetInt - UI|SetInt]](String ''menuName'', String ''target'', Int ''value'')'''
|Sets the Integer value at existing target location.
:*Sets the Integer value at existing target location.
|-


|[[SetFloat - UI|'''SetFloat'''(String ''menuName'', String ''target'', Float ''value'')]]
:'''[[SetFloat - UI|SetFloat]](String ''menuName'', String ''target'', Float ''value'')'''
|Sets the Float value at existing target location.
:*Sets the Float value at existing target location.
|-


|[[SetNumber - UI|'''SetNumber'''(String ''menuName'', String ''target'', Float ''value'')]] '''(DEPRECATED)'''
:'''[[SetNumber - UI|SetNumber]](String ''menuName'', String ''target'', Float ''value'') {DEPRECATED}'''
|Sets numerical value at existing target location.
:*Sets numerical value at existing target location.
|-


|[[SetString - UI|'''SetString'''(String ''menuName'', String ''target'', String ''value'')]]
:'''[[SetString - UI|SetString]](String ''menuName'', String ''target'', String ''value'')'''
|Sets string value at existing target location.
:*Sets string value at existing target location.
|-


|[[GetBool - UI|Bool '''GetBool'''(String ''menuName'', String ''target'')]]
:'''Bool [[GetBool - UI|GetBool]](String ''menuName'', String ''target'')'''
|Gets bool value at existing target location.
:*Gets bool value at existing target location.
|-


|[[GetInt - UI|Int '''GetInt'''(String ''menuName'', String ''target'')]]
:'''Int [[GetInt - UI|GetInt]](String ''menuName'', String ''target'')'''
|Gets the Integer value at existing target location.
:*Gets the Integer value at existing target location.
|-


|[[GetFloat - UI|Float '''GetFloat'''(String ''menuName'', String ''target'')]]
:'''Float [[GetFloat - UI|GetFloat]](String ''menuName'', String ''target'')'''
|Gets the Float value at existing target location.
:*Gets the Float value at existing target location.
|-


|[[GetNumber - UI|Float '''GetNumber'''(String ''menuName'', String ''target'')]] '''(DEPRECATED)'''
:'''Float [[GetNumber - UI|GetNumber]](String ''menuName'', String ''target'') {DEPRECATED}'''
|Gets numerical value at existing target location.  
:*Gets numerical value at existing target location.  
|-


|[[GetString - UI|String '''GetString'''(String ''menuName'', String ''target'')]]
:'''String [[GetString - UI|GetString]](String ''menuName'', String ''target'')'''
|Gets string value at existing target location.
:*Gets string value at existing target location.
|-


|[[Invoke - UI|'''Invoke'''(String ''menuName'', String ''target'')]]
:'''[[Invoke - UI|Invoke]](String ''menuName'', String ''target'')'''
|Invokes the ActionScript function at given Target location.
:*Invokes the ActionScript function at given Target location.
|-


|[[InvokeBool - UI|'''InvokeBool'''(String ''menuName'', String ''target'', Bool ''arg'')]]
:'''[[InvokeBool - UI|InvokeBool]](String ''menuName'', String ''target'', Bool ''arg'')'''
|Invokes the bool ActionScript function at given Target location.
:*Invokes the bool ActionScript function at given Target location.
|-


|[[InvokeInt - UI|'''InvokeInt'''(String ''menuName'', String ''target'', Int ''arg'')]]
:'''[[InvokeInt - UI|InvokeInt]](String ''menuName'', String ''target'', Int ''arg'')'''
|Invokes the Integer ActionScript function at given Target location.  
:*Invokes the Integer ActionScript function at given Target location.  
|-


|[[InvokeFloat- UI|'''InvokeFloat'''(String ''menuName'', String ''target'', Float ''arg'')]]
:'''[[InvokeFloat- UI|InvokeFloat(]]String ''menuName'', String ''target'', Float ''arg'')'''
|Invokes the Float ActionScript function at given Target location.  
:*Invokes the Float ActionScript function at given Target location.  
|-


|[[InvokeNumber - UI|'''InvokeNumber'''(String ''menuName'', String ''target'', Float ''arg'')]] '''(DEPRECATED)'''
:'''[[InvokeNumber - UI|InvokeNumber]](String ''menuName'', String ''target'', Float ''arg'') {DEPRECATED}'''
|Invokes the numerical ActionScript function at given Target location.  
:*Invokes the numerical ActionScript function at given Target location.  
|-


|[[InvokeString - UI|'''InvokeString'''(String ''menuName'', String ''target'', String ''arg'')]]
:'''[[InvokeString - UI|InvokeString]](String ''menuName'', String ''target'', String ''arg'')'''
|Invokes the string ActionScript function at given Target location.
:*Invokes the string ActionScript function at given Target location.
|-


|[[InvokeBoolA - UI|'''InvokeBoolA'''(String ''menuName'', String ''target'', Bool[] ''arg'')]]
:'''[[InvokeBoolA - UI|InvokeBoolA]](String ''menuName'', String ''target'', Bool[] ''arg'')'''
|Invokes the bool array of ActionScript function at given Target location.
:*Invokes the bool array of ActionScript function at given Target location.
|-


|[[InvokeIntA - UI|'''InvokeIntA'''(String ''menuName'', String ''target'', Int[] ''arg'')]]
:'''[[InvokeIntA - UI|InvokeIntA]](String ''menuName'', String ''target'', Int[] ''arg'')'''
|Invokes the Integer array of ActionScript function at given Target location.
:*Invokes the Integer array of ActionScript function at given Target location.
|-


|[[InvokeFloatA - UI|'''InvokeFloatA'''(String ''menuName'', String ''target'', Float[] ''arg'')]]
:'''[[InvokeFloatA - UI|InvokeFloatA]](String ''menuName'', String ''target'', Float[] ''arg'')'''
|Invokes the Float array of ActionScript function at given Target location.
:*Invokes the Float array of ActionScript function at given Target location.
|-


|[[InvokeNumberA - UI|'''InvokeNumberA'''(String ''menuName'', String ''target'', Float[] ''arg'')]] '''(DEPRECATED)'''
:'''[[InvokeNumberA - UI|InvokeNumberA]](String ''menuName'', String ''target'', Float[] ''arg'') {DEPRECATED}'''
|Invokes the numerical array of ActionScript function at given Target location.
:*Invokes the numerical array of ActionScript function at given Target location.
|-


|[[InvokeStringA - UI|'''InvokeStringA'''(String ''menuName'', String ''target'', String[] ''arg'')]]
:'''[[InvokeStringA - UI|InvokeStringA]](String ''menuName'', String ''target'', String[] ''arg'')'''
|Invokes the string array of ActionScript function at given Target location.
:*Invokes the string array of ActionScript function at given Target location.
|-


|[[InvokeForm - UI|'''InvokeForm'''(String ''menuName'', String ''target'', Form ''arg'')]]
:'''[[InvokeForm - UI|InvokeForm]](String ''menuName'', String ''target'', Form ''arg'')'''
|Sends Form data to Scaleform as a Flash object, FormLists included.
:*Sends Form data to Scaleform as a Flash object, FormLists included.
|-


|[[IsTextInputEnabled - UI|Bool '''IsTextInputEnabled'''()]]
:'''Bool [[IsTextInputEnabled - UI|IsTextInputEnabled]]()'''
|Returns if scaleform is in 'text input' mode.
:*Returns if scaleform is in 'text input' mode.
|-
 
|}


== Member Functions ==
== Member Functions ==

Revision as of 23:13, 2 February 2014


Minimum required SKSE Version: 1.06.00

Menu related functions. (Requires SKSE)

Definition

ScriptName UI Hidden

Properties

None

SKSE Global Functions

Bool IsMenuOpen(String menuName)
  • Returns if the menu is currently open.
SetBool(String menuName, String target, Bool value)
  • Sets bool value at existing target location.
SetInt(String menuName, String target, Int value)
  • Sets the Integer value at existing target location.
SetFloat(String menuName, String target, Float value)
  • Sets the Float value at existing target location.
SetNumber(String menuName, String target, Float value) {DEPRECATED}
  • Sets numerical value at existing target location.
SetString(String menuName, String target, String value)
  • Sets string value at existing target location.
Bool GetBool(String menuName, String target)
  • Gets bool value at existing target location.
Int GetInt(String menuName, String target)
  • Gets the Integer value at existing target location.
Float GetFloat(String menuName, String target)
  • Gets the Float value at existing target location.
Float GetNumber(String menuName, String target) {DEPRECATED}
  • Gets numerical value at existing target location.
String GetString(String menuName, String target)
  • Gets string value at existing target location.
Invoke(String menuName, String target)
  • Invokes the ActionScript function at given Target location.
InvokeBool(String menuName, String target, Bool arg)
  • Invokes the bool ActionScript function at given Target location.
InvokeInt(String menuName, String target, Int arg)
  • Invokes the Integer ActionScript function at given Target location.
InvokeFloat(String menuName, String target, Float arg)
  • Invokes the Float ActionScript function at given Target location.
InvokeNumber(String menuName, String target, Float arg) {DEPRECATED}
  • Invokes the numerical ActionScript function at given Target location.
InvokeString(String menuName, String target, String arg)
  • Invokes the string ActionScript function at given Target location.
InvokeBoolA(String menuName, String target, Bool[] arg)
  • Invokes the bool array of ActionScript function at given Target location.
InvokeIntA(String menuName, String target, Int[] arg)
  • Invokes the Integer array of ActionScript function at given Target location.
InvokeFloatA(String menuName, String target, Float[] arg)
  • Invokes the Float array of ActionScript function at given Target location.
InvokeNumberA(String menuName, String target, Float[] arg) {DEPRECATED}
  • Invokes the numerical array of ActionScript function at given Target location.
InvokeStringA(String menuName, String target, String[] arg)
  • Invokes the string array of ActionScript function at given Target location.
InvokeForm(String menuName, String target, Form arg)
  • Sends Form data to Scaleform as a Flash object, FormLists included.
Bool IsTextInputEnabled()
  • Returns if scaleform is in 'text input' mode.

Member Functions

None

Events

None

Valid Menu Names

  • BarterMenu
  • Book Menu
  • Console
  • Console Native UI Menu
  • ContainerMenu
  • Crafting Menu
  • Credits Menu
  • Cursor Menu
  • Debug Text Menu
  • Dialogue Menu
  • Fader Menu
  • FavoritesMenu
  • GiftMenu
  • HUD Menu
  • InventoryMenu
  • Journal Menu
  • Kinect Menu
  • LevelUp Menu
  • Loading Menu
  • Lockpicking Menu
  • MagicMenu
  • Main Menu
  • MapMenu
  • MessageBoxMenu
  • Mist Menu
  • Overlay Interaction Menu
  • Overlay Menu
  • Quantity Menu
  • RaceSex Menu
  • Sleep/Wait Menu
  • StatsMenu
  • TitleSequence Menu
  • Top Menu
  • Training Menu
  • Tutorial Menu
  • TweenMenu

Notes

  • The Target parameter requires one the following prefixes
  • For the default namespace: _Global
  • For the movie root: _root