(Added and defined + simple examples to 15 properties in SUI) |
(Added, defined, and gave simple examples for all members (6) of SUI) |
||
Line 1: | Line 1: | ||
=Members= | =Members= | ||
− | {{ScriptFunction| | + | {{ScriptFunction|void|OpenAppearanceEditor|()|Opens the Appearance Editor (Outfit)|5=<pre>Space.UI.OpenAppearanceEditor()</pre>}} |
+ | |||
+ | {{ScriptFunction|void|AddNotification|(string title, string text)|Shows a notification|5=<pre> Space.UI.AddNotification('Warning','This is a notification')</pre>}} | ||
+ | |||
+ | {{ScriptFunction|void|AddGlobalActionButton|(string button, string tooltip, closure action)|Adds a "Global Action Button" which is a custom button you add to the UI that calls an action of your choice then clears after being clicked|5=<pre>gbClick = function() | ||
+ | Space.Log("global action button pressed") | ||
+ | end | ||
+ | Space.UI.AddGlobalActionButton("The Button","The Tooltip", gbClick)</pre>}} | ||
+ | |||
+ | {{ScriptFunction|void|ClearGlobalActionButton|(string button)|Clears a previously added Global Action Button 'button'|5=<pre> Space.UI.ClearGlobalActionButton("The Button")</pre>}} | ||
+ | |||
+ | {{ScriptFunction|void|ShowLocation|(string reason, SVector location)|Shows given location|5=<pre> Space.UI.ShowLocation("the reason", Vector.New(5,1,0))</pre>}} | ||
+ | |||
+ | {{ScriptFunction|void|ShowPathToLocation|(string reason, SVector location)|Shows a path to given location|5=<pre> Space.UI.ShowPathToLocation("the reason", Vector.New(5,1,0))</pre>}} | ||
+ | |||
Opens the Appearance Editor (Outfit)
Space.UI.OpenAppearanceEditor()
Shows a notification
Space.UI.AddNotification('Warning','This is a notification')
Adds a "Global Action Button" which is a custom button you add to the UI that calls an action of your choice then clears after being clicked
gbClick = function() Space.Log("global action button pressed") end Space.UI.AddGlobalActionButton("The Button","The Tooltip", gbClick)
Clears a previously added Global Action Button 'button'
Space.UI.ClearGlobalActionButton("The Button")
Shows given location
Space.UI.ShowLocation("the reason", Vector.New(5,1,0))
Shows a path to given location
Space.UI.ShowPathToLocation("the reason", Vector.New(5,1,0))
Show the Auction button
Space.UI.ShowAuctionButton = false
Show the Chat
Space.UI.ShowChat = false
Show the Currency button
Space.UI.ShowCurrencyButton = false
Show the Explore button
Space.UI.ShowExploreButton = false
Show the Friends button
Space.UI.ShowFriendsButton = false
Show the Help button
Space.UI.ShowHelpButton = false
Show the Home button
Space.UI.ShowHomeButton = false
Show the Hot Bar
Space.UI.ShowHotBar = false
Show the Inventory button
Space.UI.ShowInventoryButton = false
Set to true to show the Minimap
Space.UI.ShowMiniMap = false
Set to true to show the Outfit button
Space.UI.ShowOutfitButton = false
Show the Quests button
Space.UI.ShowQuestsButton = false
Show the Shop button
Space.UI.ShowShopButton = false
Show the Snapshot button
Space.UI.ShowSnapshotButton = false
Show the User Interface
Space.UI.ShowUI = false
|