SUI
On this classAddNotification
- Functions
- Add
Notification - Open
Appearance Editor - Show
Path To Location - Show
Location - Add
Global Action Button - Clear
Global Action Button - Open
Quests Window - Hide
Quests Window - Open
Settings Window - Hide
Settings Window - Open
Friends Window - Hide
Friends Window - Open
Explore Window - Hide
Explore Window - Open
Events Window - Hide
Events Window - Open
Home Window - Hide
Home Window - Open
Inventory Window - Hide
Inventory Window - Open
Outfit Window - Hide
Outfit Window - Open
Shop Window - Hide
Shop Window - Open
Snapshot Window - Hide
Snapshot Window - Open
Help Window - Hide
Help Window - Open
Profile Win - Hide
Profile Window - Open
Upgrade Account Window - Hide
Upgrade Account Window - Open
Region Info Window - Hide
Region Info Window - Open
Exit Window - Hide
Exit Window - Open
Mail Window - Hide
Mail Window - Open
Feedback Window - Hide
Feedback Window - Open
Buy Gold Window - Hide
Buy Gold Window - Open
Chat Window - Hide
Chat Window - Open
Room Editor Window - Hide
Room Editor Window - Open
Device Picker - Open
Device Tester - Raycast
- Properties
- ShowUI
- Show
WorldUI - Music
Volume - Master
Volume - SFX
Volume - UI
Volume - VOIP
Volume - Show
Friends Button - Show
Explore Button - Show
Quests Button - Show
Inventory Button - Show
Outfit Button - Show
Shop Button - Show
Auction Button - Show
Snapshot Button - Show
Help Button - Show
Currency Button - Show
Gold And Buy Button - Show
Chat - Show
Mini Map - Show
Hot Bar - Show
Events Button - Show
Home Button - Show
Activity Panel - Show
Profile Image - Show
Right Button Group - Show
Room Info Option - Show
Search - Show
Mail Button - Show
Notification Button - Show
Clock
| Function | AddNotification | Shows a notification |
| Function | OpenAppearanceEditor | Opens the Appearance Editor (Outfit) |
| Function | ShowPathToLocation | Shows a path to given location |
| Function | ShowLocation | Shows given location |
| Function | AddGlobalActionButton | 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 |
| Function | ClearGlobalActionButton | Clears a previously added Global Action Button 'button' |
| Function | OpenQuestsWindow | Opens the Quests window. (white-label grid only) |
| Function | HideQuestsWindow | Hides the Quests window. (white-label grid only) |
| Function | OpenSettingsWindow | Opens the Settings window. (white-label grid only) |
| Function | HideSettingsWindow | Hides the Settings window. (white-label grid only) |
| Function | OpenFriendsWindow | Opens the Friends window. (white-label grid only) |
| Function | HideFriendsWindow | Hides the Friends window. (white-label grid only) |
| Function | OpenExploreWindow | Opens the Explore window. (white-label grid only) |
| Function | HideExploreWindow | Hides the Explore window (white-label grid only) |
| Function | OpenEventsWindow | Opens the Events window (white-label grid only) |
| Function | HideEventsWindow | Hides the Events window (white-label grid only) |
| Function | OpenHomeWindow | Opens the Home window (white-label grid only) |
| Function | HideHomeWindow | Hides the Home window (white-label grid only) |
| Function | OpenInventoryWindow | Opens the Inventory window (white-label grid only) |
| Function | HideInventoryWindow | Hides the Inventory window (white-label grid only) |
| Function | OpenOutfitWindow | Opens the Outfit window (white-label grid only) |
| Function | HideOutfitWindow | Hides the Outfit window (white-label grid only) |
| Function | OpenShopWindow | Opens the Shop window (white-label grid only) |
| Function | HideShopWindow | Hides the Shop window (white-label grid only) |
| Function | OpenSnapshotWindow | Opens the Snapshot window (white-label grid only) |
| Function | HideSnapshotWindow | Hides the Snapshot window (white-label grid only) |
| Function | OpenHelpWindow | Opens the Help window (white-label grid only) |
| Function | HideHelpWindow | Hides the Help window (white-label grid only) |
| Function | OpenProfileWin | Opens the Profile window (white-label grid only) |
| Function | HideProfileWindow | Hides the Profile window (white-label grid only) |
| Function | OpenUpgradeAccountWindow | Opens the Upgrade Account window (white-label grid only) |
| Function | HideUpgradeAccountWindow | Hides the Upgrade Account window (white-label grid only) |
| Function | OpenRegionInfoWindow | Opens the Region Info window (white-label grid only) |
| Function | HideRegionInfoWindow | Hides the Region Info window (white-label grid only) |
| Function | OpenExitWindow | Opens the Exit window (white-label grid only) |
| Function | HideExitWindow | Hides the Exit window (white-label grid only) |
| Function | OpenMailWindow | Opens the Mail window (white-label grid only) |
| Function | HideMailWindow | Hides the Mail window (white-label grid only) |
| Function | OpenFeedbackWindow | Shows the Feedback window (white-label grid only) |
| Function | HideFeedbackWindow | Hides the Feedback window (white-label grid only) |
| Function | OpenBuyGoldWindow | Opens the Buy Gold window (white-label grid only) |
| Function | HideBuyGoldWindow | Hides the Buy Gold window (white-label grid only) |
| Function | OpenChatWindow | Opens the Chat window (white-label grid only) |
| Function | HideChatWindow | Hides the Chat window (white-label grid only) |
| Function | OpenRoomEditorWindow | Opens the Room Editor window (white-label grid only) |
| Function | HideRoomEditorWindow | Hides the Room Editor window (white-label grid only) |
| Function | OpenDevicePicker | Opens the Device Picker |
| Function | OpenDeviceTester | Opens the Device Tester |
| Function | Raycast | Shoots a UI Raycast and returns the result as SUIRayCastResult |
| Property | ShowUI | Show the User Interface |
| Property | ShowWorldUI | Show the World User Interface. |
| Property | MusicVolume | Set/Get the Music volume (set: white-label grid only) |
| Property | MasterVolume | Set/Get the Master volume (set: white-label grid only) |
| Property | SFXVolume | Set/Get the SFX volume (set: white-label grid only) |
| Property | UIVolume | Set/Get the UI volume (set: white-label grid only) |
| Property | VOIPVolume | Set/Get the VOIP volume (set: white-label grid only) |
| Property | ShowFriendsButton | Show the Friends button. (white-label grid only) |
| Property | ShowExploreButton | Show the Explore button. (white-label grid only) |
| Property | ShowQuestsButton | Show the Quests button. (white-label grid only) |
| Property | ShowInventoryButton | Show the Inventory button. (white-label grid only) |
| Property | ShowOutfitButton | Set to true to show the Outfit button. (white-label grid only) |
| Property | ShowShopButton | Show the Shop button. (white-label grid only) |
| Property | ShowAuctionButton | Show the Auction button. (white-label grid only) |
| Property | ShowSnapshotButton | Show the Snapshot button.(white-label grid only) |
| Property | ShowHelpButton | Show the Help button. (white-label grid only) |
| Property | ShowCurrencyButton | Show the Currency button. (white-label grid only) |
| Property | ShowGoldAndBuyButton | Show the Gold and Buy button. (white-label grid only) |
| Property | ShowChat | Show the Chat. (white-label grid only) |
| Property | ShowMiniMap | Set to true to show the Minimap. (white-label grid only) |
| Property | ShowHotBar | Show the Hot Bar. (white-label grid only) |
| Property | ShowEventsButton | Show the Events button. (white-label grid only) |
| Property | ShowHomeButton | Show the Home button. (white-label grid only) |
| Property | ShowActivityPanel | Show the Activity Panel. (white-label grid only) |
| Property | ShowProfileImage | Show the Profile Image. (white-label grid only) |
| Property | ShowRightButtonGroup | Show the Right Button Group. (white-label grid only) |
| Property | ShowRoomInfoOption | Show the Room Info Option. (white-label grid only) |
| Property | ShowSearch | Show the Search bar. (white-label grid only) |
| Property | ShowMailButton | Show the Mail button. (white-label grid only) |
| Property | ShowNotificationButton | Show the Notification button. (white-label grid only) |
| Property | ShowClock | Show the clock. (white-label grid only) |
Functions
AddNotification
Shows a notification
Parameters
| Name | Type | Default |
|---|---|---|
| title | string | – |
| text | string | – |
Returns
void
Example
Space.UI.AddNotification('Warning','This is a notification')
--This script will send a notification every time a new player joins region
--including the users name
function sendNotification(Av)
Space.UI.AddNotification("New User","User joined: " .. Av.Username)
end
Space.Scene.OnPlayerJoin(sendNotification)
OpenAppearanceEditor
Opens the Appearance Editor (Outfit)
Returns
void
Example
Space.UI.OpenAppearanceEditor()
--This script will make a button open the Appearance Editor
--(example: tools for user to customize UI)
--[You need to add a UI Button as a reference in the Scripting Runtime Component]
theButton = Space.Host.GetReference('TheButton')
OnClick = function()
Space.UI.OpenAppearanceEditor()
end
theButton.UIButton.OnClick(OnClick)
ShowPathToLocation
Shows a path to given location
Parameters
| Name | Type | Default |
|---|---|---|
| reason | string | – |
| location | SVector | – |
Returns
void
Example
Space.UI.ShowPathToLocation("A Reason", aLocation)
ShowLocation
Shows given location
Parameters
| Name | Type | Default |
|---|---|---|
| reason | string | – |
| location | SVector | – |
Returns
void
Example
Space.UI.ShowLocation("the reason", aLocation)
AddGlobalActionButton
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
Parameters
| Name | Type | Default |
|---|---|---|
| button | string | – |
| tooltip | string | – |
| action | Closure | – |
Returns
void
Example
Space.UI.AddGlobalActionButton("Button 1", "Stand Up", aFunction)
ClearGlobalActionButton
Clears a previously added Global Action Button 'button'
Parameters
| Name | Type | Default |
|---|---|---|
| button | string | – |
Returns
void
Example
Space.UI.ClearGlobalActionButton("The Button")
--This script will make this object make you dance when clicked
--and also show a Global Action button to let you stop the dance (and clear that button)
--[required: Add the dance animation to the Scripting Runtime's "Resources" section with name "dance"]
thisObj = Space.Host.ExecutingObject
danceAnim = Space.GetResource("dance")
isDancing = false
gbClick = function()
Space.Scene.PlayerAvatar.StopCustomAnimation()
Space.UI.ClearGlobalActionButton("Stop Dance")
isDancing = false
end
OnClick = function()
if not isDancing then
Space.Scene.PlayerAvatar.PlayCustomAnimation(danceAnim)
Space.UI.AddGlobalActionButton("Stop Dance","", gbClick)
isDancing = true
end
end
thisObj.AddClickable()
thisObj.Clickable.OnClick(OnClick)
OpenQuestsWindow
Opens the Quests window. (white-label grid only)
Returns
void
Example
Space.UI.OpenQuestsWindow()
example --This script will make a button show/hide the Quests Window
--(example: tools for user to customize UI)
--[You need to add a UI Button as a reference in the Scripting Runtime Component]
theButton = Space.Host.GetReference('TheButton')
local isShown = false
OnClick = function()
if isShown then
Space.UI.HideQuestsWindow()
isShown = false
else
Space.UI.OpenQuestsWindow()
isShown = true
end
end
theButton.UIButton.OnClick(OnClick)
HideQuestsWindow
Hides the Quests window. (white-label grid only)
Returns
void
Example
Space.UI.HideQuestsWindow()
--This script will make a button show/hide the Quests Window
--(example: tools for user to customize UI)
--[You need to add a UI Button as a reference in the Scripting Runtime Component]
theButton = Space.Host.GetReference('TheButton')
local isShown = false
OnClick = function()
if isShown then
Space.UI.HideQuestsWindow()
isShown = false
else
Space.UI.OpenQuestsWindow()
isShown = true
end
end
theButton.UIButton.OnClick(OnClick)
OpenSettingsWindow
Opens the Settings window. (white-label grid only)
Returns
void
Example
Space.UI.OpenSettingsWindow()
--This script will make a button show/hide the Settings Window
--(example: tools for user to customize UI)
--[You need to add a UI Button as a reference in the Scripting Runtime Component]
theButton = Space.Host.GetReference('TheButton')
local isShown = false
OnClick = function()
if isShown then
Space.UI.HideSettingsWindow()
isShown = false
else
Space.UI.OpenSettingsWindow()
isShown = true
end
end
theButton.UIButton.OnClick(OnClick)
HideSettingsWindow
Hides the Settings window. (white-label grid only)
Returns
void
Example
Space.UI.HideSettingsWindow()
--This script will make a button show/hide the Settings Window
--(example: tools for user to customize UI)
--[You need to add a UI Button as a reference in the Scripting Runtime Component]
theButton = Space.Host.GetReference('TheButton')
local isShown = false
OnClick = function()
if isShown then
Space.UI.HideSettingsWindow()
isShown = false
else
Space.UI.OpenSettingsWindow()
isShown = true
end
end
theButton.UIButton.OnClick(OnClick)
OpenFriendsWindow
Opens the Friends window. (white-label grid only)
Returns
void
Example
Space.UI.OpenFriendsWindow()
--This script will make a button show/hide the Friends Window--(example: tools for user to customize UI)--[You need to add a UI Button as a reference in the Scripting Runtime Component]theButton = Space.Host.GetReference('TheButton')local isShown = falseOnClick = function() if isShown then Space.UI.HideFriendsWindow() isShown = false else Space.UI.OpenFriendsWindow() isShown = true endendtheButton.UIButton.OnClick(OnClick)
HideFriendsWindow
HideFriendsWindow
Hides the Friends window. (white-label grid only)
Returns
void
Example
Space.UI.HideFriendsWindow()
--This script will make a button show/hide the Friends Window
--(example: tools for user to customize UI)
--[You need to add a UI Button as a reference in the Scripting Runtime Component]
theButton = Space.Host.GetReference('TheButton')
local isShown = false
OnClick = function()
if isShown then
Space.UI.HideFriendsWindow()
isShown = false
else
Space.UI.OpenFriendsWindow()
isShown = true
end
end
theButton.UIButton.OnClick(OnClick)
OpenExploreWindow
Opens the Explore window. (white-label grid only)
Returns
void
Example
Space.UI.OpenExploreWindow()
--This script will make a button show/hide the Explore Window
--(example: tools for user to customize UI)
--[You need to add a UI Button as a reference in the Scripting Runtime Component]
theButton = Space.Host.GetReference('TheButton')
local isShown = false
OnClick = function()
if isShown then
Space.UI.HideExploreWindow()
isShown = false
else
Space.UI.OpenExploreWindow()
isShown = true
end
end
theButton.UIButton.OnClick(OnClick)
HideExploreWindow
Hides the Explore window (white-label grid only)
Returns
void
Example
Space.UI.HideExploreWindow()
--This script will make a button show/hide the Explore Window
--(example: tools for user to customize UI)
--[You need to add a UI Button as a reference in the Scripting Runtime Component]
theButton = Space.Host.GetReference('TheButton')
local isShown = false
OnClick = function()
if isShown then
Space.UI.HideExploreWindow()
isShown = false
else
Space.UI.OpenExploreWindow()
isShown = true
end
end
theButton.UIButton.OnClick(OnClick)
OpenEventsWindow
Opens the Events window (white-label grid only)
Returns
void
Example
Space.UI.OpenEventsWindow()
--This script will make a button show/hide the Events Window
--(example: tools for user to customize UI)
--[You need to add a UI Button as a reference in the Scripting Runtime Component]
theButton = Space.Host.GetReference('TheButton')
local isShown = false
OnClick = function()
if isShown then
Space.UI.HideEventsWindow()
isShown = false
else
Space.UI.OpenEventsWindow()
isShown = true
end
end
theButton.UIButton.OnClick(OnClick)
HideEventsWindow
Hides the Events window (white-label grid only)
Returns
void
Example
Space.UI.HideEventsWindow()
--This script will make a button show/hide the Events Window
--(example: tools for user to customize UI)
--[You need to add a UI Button as a reference in the Scripting Runtime Component]
theButton = Space.Host.GetReference('TheButton')
local isShown = false
OnClick = function()
if isShown then
Space.UI.HideEventsWindow()
isShown = false
else
Space.UI.OpenEventsWindow()
isShown = true
end
end
theButton.UIButton.OnClick(OnClick)
OpenHomeWindow
Opens the Home window (white-label grid only)
Returns
void
Example
Space.UI.OpenHomeWindow()
--This script will make a button show/hide the Home Window
--(example: tools for user to customize UI)
--[You need to add a UI Button as a reference in the Scripting Runtime Component]
theButton = Space.Host.GetReference('TheButton')
local isShown = false
OnClick = function()
if isShown then
Space.UI.HideHomeWindow()
isShown = false
else
Space.UI.OpenHomeWindow()
isShown = true
end
end
theButton.UIButton.OnClick(OnClick)
HideHomeWindow
Hides the Home window (white-label grid only)
Returns
void
Example
Space.UI.HideHomeWindow()
--This script will make a button show/hide the Home Window
--(example: tools for user to customize UI)
--[You need to add a UI Button as a reference in the Scripting Runtime Component]
theButton = Space.Host.GetReference('TheButton')
local isShown = false
OnClick = function()
if isShown then
Space.UI.HideHomeWindow()
isShown = false
else
Space.UI.OpenHomeWindow()
isShown = true
end
end
theButton.UIButton.OnClick(OnClick)
OpenInventoryWindow
Opens the Inventory window (white-label grid only)
Returns
void
Example
Space.UI.OpenInventoryWindow()
--This script will make a button show/hide the Inventory Window
--(example: tools for user to customize UI)
--[You need to add a UI Button as a reference in the Scripting Runtime Component]
theButton = Space.Host.GetReference('TheButton')
local isShown = false
OnClick = function()
if isShown then
Space.UI.HideInventoryWindow()
isShown = false
else
Space.UI.OpenInventoryWindow()
isShown = true
end
end
theButton.UIButton.OnClick(OnClick)
HideInventoryWindow
Hides the Inventory window (white-label grid only)
Returns
void
Example
Space.UI.HideInventoryWindow()
--This script will make a button show/hide the Inventory Window
--(example: tools for user to customize UI)
--[You need to add a UI Button as a reference in the Scripting Runtime Component]
theButton = Space.Host.GetReference('TheButton')
local isShown = false
OnClick = function()
if isShown then
Space.UI.HideInventoryWindow()
isShown = false
else
Space.UI.OpenInventoryWindow()
isShown = true
end
end
theButton.UIButton.OnClick(OnClick)
OpenOutfitWindow
Opens the Outfit window (white-label grid only)
Returns
void
Example
Space.UI.OpenOutfitWindow()
--This script will make a button show/hide the Outfit Window
--(example: tools for user to customize UI)
--[You need to add a UI Button as a reference in the Scripting Runtime Component]
theButton = Space.Host.GetReference('TheButton')
local isShown = false
OnClick = function()
if isShown then
Space.UI.HideOutfitWindow()
isShown = false
else
Space.UI.OpenOutfitWindow()
isShown = true
end
end
theButton.UIButton.OnClick(OnClick)
HideOutfitWindow
Hides the Outfit window (white-label grid only)
Returns
void
Example
Space.UI.HideOutfitWindow()
--This script will make a button show/hide the Outfit Window
--(example: tools for user to customize UI)
--[You need to add a UI Button as a reference in the Scripting Runtime Component]
theButton = Space.Host.GetReference('TheButton')
local isShown = false
OnClick = function()
if isShown then
Space.UI.HideOutfitWindow()
isShown = false
else
Space.UI.OpenOutfitWindow()
isShown = true
end
end
theButton.UIButton.OnClick(OnClick)
OpenShopWindow
Opens the Shop window (white-label grid only)
Returns
void
Example
Space.UI.OpenShopWindow()
--This script will make a button show/hide the Shop Window
--(example: tools for user to customize UI)
--[You need to add a UI Button as a reference in the Scripting Runtime Component]
theButton = Space.Host.GetReference('TheButton')
local isShown = false
OnClick = function()
if isShown then
Space.UI.HideShopWindow()
isShown = false
else
Space.UI.OpenShopWindow()
isShown = true
end
end
theButton.UIButton.OnClick(OnClick)
HideShopWindow
Hides the Shop window (white-label grid only)
Returns
void
Example
Space.UI.HideShopWindow()
--This script will make a button show/hide the Shop Window
--(example: tools for user to customize UI)
--[You need to add a UI Button as a reference in the Scripting Runtime Component]
theButton = Space.Host.GetReference('TheButton')
local isShown = false
OnClick = function()
if isShown then
Space.UI.HideShopWindow()
isShown = false
else
Space.UI.OpenShopWindow()
isShown = true
end
end
theButton.UIButton.OnClick(OnClick)
OpenSnapshotWindow
Opens the Snapshot window (white-label grid only)
Returns
void
Example
Space.UI.OpenSnapshotWindow()
--This script will make a button show/hide the Snapshot Window
--(example: tools for user to customize UI)
--[You need to add a UI Button as a reference in the Scripting Runtime Component]
theButton = Space.Host.GetReference('TheButton')
local isShown = false
OnClick = function()
if isShown then
Space.UI.HideSnapshotWindow()
isShown = false
else
Space.UI.OpenSnapshotWindow()
isShown = true
end
end
theButton.UIButton.OnClick(OnClick)
HideSnapshotWindow
Hides the Snapshot window (white-label grid only)
Returns
void
Example
Space.UI.HideSnapshotWindow()
--This script will make a button show/hide the Snapshot Window
--(example: tools for user to customize UI)
--[You need to add a UI Button as a reference in the Scripting Runtime Component]
theButton = Space.Host.GetReference('TheButton')
local isShown = false
OnClick = function()
if isShown then
Space.UI.HideSnapshotWindow()
isShown = false
else
Space.UI.OpenSnapshotWindow()
isShown = true
end
end
theButton.UIButton.OnClick(OnClick)
OpenHelpWindow
Opens the Help window (white-label grid only)
Returns
void
Example
Space.UI.OpenHelpWindow()
--This script will make a button show/hide the Help Window
--(example: tools for user to customize UI)
--[You need to add a UI Button as a reference in the Scripting Runtime Component]
theButton = Space.Host.GetReference('TheButton')
local isShown = false
OnClick = function()
if isShown then
Space.UI.HideHelpWindow()
isShown = false
else
Space.UI.OpenHelpWindow()
isShown = true
end
end
theButton.UIButton.OnClick(OnClick)
HideHelpWindow
Hides the Help window (white-label grid only)
Returns
void
Example
Space.UI.HideHelpWindow()
--This script will make a button show/hide the Help Window
--(example: tools for user to customize UI)
--[You need to add a UI Button as a reference in the Scripting Runtime Component]
theButton = Space.Host.GetReference('TheButton')
local isShown = false
OnClick = function()
if isShown then
Space.UI.HideHelpWindow()
isShown = false
else
Space.UI.OpenHelpWindow()
isShown = true
end
end
theButton.UIButton.OnClick(OnClick)
OpenProfileWin
Opens the Profile window (white-label grid only)
Returns
void
Example
Space.UI.OpenProfileWin()
--This script will make a button show/hide the Profile Win
--(example: tools for user to customize UI)
--[You need to add a UI Button as a reference in the Scripting Runtime Component]
theButton = Space.Host.GetReference('TheButton')
local isShown = false
OnClick = function()
if isShown then
Space.UI.HideProfileWindow()
isShown = false
else
Space.UI.OpenProfileWin()
isShown = true
end
end
theButton.UIButton.OnClick(OnClick)
HideProfileWindow
Hides the Profile window (white-label grid only)
Returns
void
Example
Space.UI.HideProfileWindow()
--This script will make a button show/hide the Profile Win
--[You need to add a UI Button as a reference in the Scripting Runtime Component]
theButton = Space.Host.GetReference('TheButton')
local isShown = false
OnClick = function()
if isShown then
Space.UI.HideProfileWindow()
isShown = false
else
Space.UI.OpenProfileWin()
isShown = true
end
end
theButton.UIButton.OnClick(OnClick)
OpenUpgradeAccountWindow
Opens the Upgrade Account window (white-label grid only)
Returns
void
Example
Space.UI.OpenUpgradeAccountWindow()
--This script will make a button show/hide the Upgrade Account Window
--(example: tools for user to customize UI)
--[You need to add a UI Button as a reference in the Scripting Runtime Component]
theButton = Space.Host.GetReference('TheButton')
local isShown = false
OnClick = function()
if isShown then
Space.UI.HideUpgradeAccountWindow()
isShown = false
else
Space.UI.OpenUpgradeAccountWindow()
isShown = true
end
end
theButton.UIButton.OnClick(OnClick)
HideUpgradeAccountWindow
Hides the Upgrade Account window (white-label grid only)
Returns
void
Example
Space.UI.HideUpgradeAccountWindow()
--This script will make a button show/hide the Upgrade Account Window
--(example: tools for user to customize UI)
--[You need to add a UI Button as a reference in the Scripting Runtime Component]
theButton = Space.Host.GetReference('TheButton')
local isShown = false
OnClick = function()
if isShown then
Space.UI.HideUpgradeAccountWindow()
isShown = false
else
Space.UI.OpenUpgradeAccountWindow()
isShown = true
end
end
theButton.UIButton.OnClick(OnClick)
OpenRegionInfoWindow
Opens the Region Info window (white-label grid only)
Returns
void
Example
Space.UI.OpenRegionInfoWindow()
--This script will make a button show/hide the Region Info Window
--(example: tools for user to customize UI)
--[You need to add a UI Button as a reference in the Scripting Runtime Component]
theButton = Space.Host.GetReference('TheButton')
local isShown = false
OnClick = function()
if isShown then
Space.UI.HideRegionInfoWindow()
isShown = false
else
Space.UI.OpenRegionInfoWindow()
isShown = true
end
end
theButton.UIButton.OnClick(OnClick)
HideRegionInfoWindow
Hides the Region Info window (white-label grid only)
Returns
void
Example
Space.UI.HideRegionInfoWindow()
--This script will make a button show/hide the Region Info Window
--(example: tools for user to customize UI)
--[You need to add a UI Button as a reference in the Scripting Runtime Component]
theButton = Space.Host.GetReference('TheButton')
local isShown = false
OnClick = function()
if isShown then
Space.UI.HideRegionInfoWindow()
isShown = false
else
Space.UI.OpenRegionInfoWindow()
isShown = true
end
end
theButton.UIButton.OnClick(OnClick)
OpenExitWindow
Opens the Exit window (white-label grid only)
Returns
void
Example
Space.UI.OpenExitWindow()
--This script will make a button show/hide the Exit Window
--(example: tools for user to customize UI)
--[You need to add a UI Button as a reference in the Scripting Runtime Component]
theButton = Space.Host.GetReference('TheButton')
local isShown = false
OnClick = function()
if isShown then
Space.UI.HideExitWindow()
isShown = false
else
Space.UI.OpenExitWindow()
isShown = true
end
end
theButton.UIButton.OnClick(OnClick)
HideExitWindow
Hides the Exit window (white-label grid only)
Returns
void
Example
Space.UI.HideExitWindow()
--This script will make a button show/hide the Exit Window
--(example: tools for user to customize UI)
--[You need to add a UI Button as a reference in the Scripting Runtime Component]
theButton = Space.Host.GetReference('TheButton')
local isShown = false
OnClick = function()
if isShown then
Space.UI.HideExitWindow()
isShown = false
else
Space.UI.OpenExitWindow()
isShown = true
end
end
theButton.UIButton.OnClick(OnClick)
OpenMailWindow
Opens the Mail window (white-label grid only)
Returns
void
Example
Space.UI.OpenMailWindow()
--This script will make a button show/hide the Mail Window
--(example: tools for user to customize UI)
--[You need to add a UI Button as a reference in the Scripting Runtime Component]
theButton = Space.Host.GetReference('TheButton')
local isShown = false
OnClick = function()
if isShown then
Space.UI.HideMailWindow()
isShown = false
else
Space.UI.OpenMailWindow()
isShown = true
end
end
theButton.UIButton.OnClick(OnClick)
HideMailWindow
Hides the Mail window (white-label grid only)
Returns
void
Example
Space.UI.HideMailWindow()
--This script will make a button show/hide the Mail Window
--(example: tools for user to customize UI)
--[You need to add a UI Button as a reference in the Scripting Runtime Component]
theButton = Space.Host.GetReference('TheButton')
local isShown = false
OnClick = function()
if isShown then
Space.UI.HideMailWindow()
isShown = false
else
Space.UI.OpenMailWindow()
isShown = true
end
end
theButton.UIButton.OnClick(OnClick)
OpenFeedbackWindow
Shows the Feedback window (white-label grid only)
Returns
void
Example
Space.UI.OpenFeedbackWindow()
--This script will make a button show/hide the Feedback Window
--(example: tools for user to customize UI)
--[You need to add a UI Button as a reference in the Scripting Runtime Component]
theButton = Space.Host.GetReference('TheButton')
local isShown = false
OnClick = function()
if isShown then
Space.UI.HideFeedbackWindow()
isShown = false
else
Space.UI.OpenFeedbackWindow()
isShown = true
end
end
theButton.UIButton.OnClick(OnClick)
HideFeedbackWindow
Hides the Feedback window (white-label grid only)
Returns
void
Example
Space.UI.HideFeedbackWindow()
--This script will make a button show/hide the Mail Window
--(example: tools for user to customize UI)
--[You need to add a UI Button as a reference in the Scripting Runtime Component]
theButton = Space.Host.GetReference('TheButton')
local isShown = false
OnClick = function()
if isShown then
Space.UI.HideFeedbackWindow()
isShown = false
else
Space.UI.OpenFeedbackWindow()
isShown = true
end
end
theButton.UIButton.OnClick(OnClick)
OpenBuyGoldWindow
Opens the Buy Gold window (white-label grid only)
Returns
void
Example
Space.UI.OpenBuyGoldWindow()
--This script will make a button show/hide the Buy Gold Window
--(example: tools for user to customize UI)
--[You need to add a UI Button as a reference in the Scripting Runtime Component]
theButton = Space.Host.GetReference('TheButton')
local isShown = false
OnClick = function()
if isShown then
Space.UI.HideBuyGoldWindow()
isShown = false
else
Space.UI.OpenBuyGoldWindow()
isShown = true
end
end
theButton.UIButton.OnClick(OnClick)
HideBuyGoldWindow
Hides the Buy Gold window (white-label grid only)
Returns
void
Example
Space.UI.HideBuyGoldWindow()
--This script will make a button show/hide the Buy Gold Window
--(example: tools for user to customize UI)
--[You need to add a UI Button as a reference in the Scripting Runtime Component]
theButton = Space.Host.GetReference('TheButton')
local isShown = false
OnClick = function()
if isShown then
Space.UI.HideBuyGoldWindow()
isShown = false
else
Space.UI.OpenBuyGoldWindow()
isShown = true
end
end
theButton.UIButton.OnClick(OnClick)
OpenChatWindow
Opens the Chat window (white-label grid only)
Returns
void
Example
Space.UI.OpenChatWindow()
--This script will make a button show/hide the Chat Window
--(example: tools for user to customize UI)
--[You need to add a UI Button as a reference in the Scripting Runtime Component]
theButton = Space.Host.GetReference('TheButton')
local isShown = false
OnClick = function()
if isShown then
Space.UI.HideChatWindow()
isShown = false
else
Space.UI.OpenChatWindow()
isShown = true
end
end
theButton.UIButton.OnClick(OnClick)
HideChatWindow
Hides the Chat window (white-label grid only)
Returns
void
Example
Space.UI.HideChatWindow()
--This script will make a button show/hide the Chat Window
--(example: tools for user to customize UI)
--[You need to add a UI Button as a reference in the Scripting Runtime Component]
theButton = Space.Host.GetReference('TheButton')
local isShown = true
OnClick = function()
if isShown then
Space.UI.HideChatWindow()
isShown = false
else
Space.UI.OpenChatWindow()
isShown = true
end
end
theButton.UIButton.OnClick(OnClick)
OpenRoomEditorWindow
Opens the Room Editor window (white-label grid only)
Returns
void
Example
Space.UI.OpenRoomEditorWindow()
--This script will make a button show/hide the Room Editor Window
--(example: tools for user to customize UI)
--[You need to add a UI Button as a reference in the Scripting Runtime Component]
theButton = Space.Host.GetReference('TheButton')
local isShown = false
OnClick = function()
if isShown then
Space.UI.HideRoomEditorWindow()
isShown = false
else
Space.UI.OpenRoomEditorWindow()
isShown = true
end
end
theButton.UIButton.OnClick(OnClick)
HideRoomEditorWindow
Hides the Room Editor window (white-label grid only)
Returns
void
Example
Space.UI.HideRoomEditorWindow()
--This script will make a button show/hide the Room Editor Window
--(example: tools for user to customize UI)
--[You need to add a UI Button as a reference in the Scripting Runtime Component]
theButton = Space.Host.GetReference('TheButton')
local isShown = false
OnClick = function()
if isShown then
Space.UI.HideRoomEditorWindow()
isShown = false
else
Space.UI.OpenRoomEditorWindow()
isShown = true
end
end
theButton.UIButton.OnClick(OnClick)
OpenDevicePicker
Opens the Device Picker
Returns
void
Example
Space.UI.OpenDevicePicker()
--This script will make a button open the Device Picker
--[You need to add a UI Button as a reference in the Scripting Runtime Component]
theButton = Space.Host.GetReference('TheButton')
OnClick = function()
Space.UI.OpenDevicePicker()
end
theButton.UIButton.OnClick(OnClick)
OpenDeviceTester
Opens the Device Tester
Returns
void
Example
Space.UI.OpenDeviceTester()
Raycast
Shoots a UI Raycast and returns the result as SUIRayCastResult
Returns
SUIRaycastResult
Example
RayCastResult = Space.UI.Raycast()
--This script will update a UIText element with the result of a UIRaycast whenever...
--the player clicks on a Sinespace UI element
thisObject = Space.Host.ExecutingObject
uiText = Space.Host.GetReference("text").UIText --Add this object with UIText component as reference in Scripting Runtime
OnUpdate = function()
if Space.Input.GetMouseDown(0) == true then
result = Space.UI.Raycast()
if result.IsValid then
uiText = result.ToString()
end
end
end
thisObject.OnUpdate(OnUpdate)
Properties
ShowUI
Show the User Interface
Example
Space.UI.ShowUI = false
--This script will make a UI Toggle show/hide theUser Interface
--[You need to add an object with UI Toggle as a reference (scripting runtime)]
toggle = Space.Host.GetReference("Toggle").UIToggle
OnValueChanged = function()
if toggle.IsOn then
Space.UI.ShowUI= true
else
Space.UI.ShowUI= false
end
end
toggle.OnValueChanged(OnValueChanged)
ShowWorldUI
Show the World User Interface.
Example
Space.UI.ShowWorldUI = false
--This script will make a UI Toggle show/hide the World UI
--(example: tools for user to customize UI)
--[You need to add an object with UI Toggle as a reference (scripting runtime)]
toggle = Space.Host.GetReference("Toggle").UIToggle
OnValueChanged = function()
if toggle.IsOn then
Space.UI.ShowWorldUI= true
else
Space.UI.ShowWorldUI= false
end
end
toggle.OnValueChanged(OnValueChanged)
MusicVolume
Set/Get the Music volume (set: white-label grid only)
Example
MusicVolume = Space.UI.MusicVolume
--This script will make moving a slider control the Music Volume
--and also update a text field with the current Music Volume
--(example: custom UI)
--[You need to add the slider and text field as a reference]
slider = Space.Host.GetReference("Slider").UISlider
textField = Space.Host.GetReference("Text Field").UIText
OnValueChanged = function()
Space.UI.MusicVolume = slider.NormalizedValue * 100
textField.Text = Space.UI.MusicVolume
end
slider.OnValueChanged(OnValueChanged)
MasterVolume
Set/Get the Master volume (set: white-label grid only)
Example
MasterVolume = Space.UI.MasterVolume
--This script will make moving a slider control the Master Volume
--and also update a text field with the current Master Volume
--(example: custom UI)
--[You need to add the slider and text field as a reference]
slider = Space.Host.GetReference("Slider").UISlider
textField = Space.Host.GetReference("Text Field").UIText
OnValueChanged = function()
Space.UI.MasterVolume = slider.NormalizedValue * 100
textField.Text = Space.UI.MasterVolume
end
slider.OnValueChanged(OnValueChanged)
SFXVolume
Set/Get the SFX volume (set: white-label grid only)
Example
SFXVolume = Space.UI.SFXVolume
--This script will make moving a slider control the SFX Volume
--and also update a text field with the current SFX Volume
--(example: custom UI)
--[You need to add the slider and text field as a reference]
slider = Space.Host.GetReference("Slider").UISlider
textField = Space.Host.GetReference("Text Field").UIText
OnValueChanged = function()
Space.UI.SFXVolume = slider.NormalizedValue * 100
textField.Text = Space.UI.SFXVolume
end
slider.OnValueChanged(OnValueChanged)
UIVolume
Set/Get the UI volume (set: white-label grid only)
Example
UIVolume = Space.UI.UIVolume
--This script will make moving a slider control the UI Volume
--and also update a text field with the current UI Volume
--[You need to add the slider and text field as a reference]
slider = Space.Host.GetReference("Slider").UISlider
textField = Space.Host.GetReference("Text Field").UIText
OnValueChanged = function()
Space.UI.UIVolume = slider.NormalizedValue * 100
textField.Text = Space.UI.UIVolume
end
slider.OnValueChanged(OnValueChanged)
VOIPVolume
Set/Get the VOIP volume (set: white-label grid only)
Example
VOIPVolume = Space.UI.VOIPVolume
--This script will make moving a slider control the Voice Volume
--and also update a text field with the current Voice Volume
--[You need to add the slider and text field as a reference]
slider = Space.Host.GetReference("Slider").UISlider
textField = Space.Host.GetReference("Text Field").UIText
OnValueChanged = function()
Space.UI.VOIPVolume = slider.NormalizedValue * 100
textField.Text = Space.UI.VOIPVolume
end
slider.OnValueChanged(OnValueChanged)
ShowFriendsButton
Show the Friends button. (white-label grid only)
Example
Space.UI.ShowFriendsButton = false
--This script will make a UI Toggle show/hide the Friends Button
--(example: tools for user to customize UI)
--[You need to add an object with UI Toggle as a reference (scripting runtime)]
toggle = Space.Host.GetReference("Toggle").UIToggle
OnValueChanged = function()
if toggle.IsOn then
Space.UI.ShowFriendsButton = true
else
Space.UI.ShowFriendsButton = false
end
end
toggle.OnValueChanged(OnValueChanged)
ShowExploreButton
Show the Explore button. (white-label grid only)
Example
Space.UI.ShowExploreButton = false
--This script will make a UI Toggle show/hide the Explore Button
--(example: tools for user to customize UI)
--[You need to add an object with UI Toggle as a reference (scripting runtime)]
toggle = Space.Host.GetReference("Toggle").UIToggle
OnValueChanged = function()
if toggle.IsOn then
Space.UI.ShowExploreButton = true
else
Space.UI.ShowExploreButton = false
end
end
toggle.OnValueChanged(OnValueChanged)
ShowQuestsButton
Show the Quests button. (white-label grid only)
Example
Space.UI.ShowQuestsButton = false
--This script will make a UI Toggle show/hide the Quests button
--(example: tools for user to customize UI)
--[You need to add an object with UI Toggle as a reference (scripting runtime)]
toggle = Space.Host.GetReference("Toggle").UIToggle
OnValueChanged = function()
if toggle.IsOn then
Space.UI.ShowQuestsButton= true
else
Space.UI.ShowQuestsButton= false
end
end
toggle.OnValueChanged(OnValueChanged)
ShowInventoryButton
Show the Inventory button. (white-label grid only)
Example
Space.UI.ShowInventoryButton = false
--This script will make a UI Toggle show/hide the Inventory Button
--(example: tools for user to customize UI)
--[You need to add an object with UI Toggle as a reference (scripting runtime)]
toggle = Space.Host.GetReference("Toggle").UIToggle
OnValueChanged = function()
if toggle.IsOn then
Space.UI.ShowInventoryButton= true
else
Space.UI.ShowInventoryButton= false
end
end
toggle.OnValueChanged(OnValueChanged)
ShowOutfitButton
Set to true to show the Outfit button. (white-label grid only)
Example
Space.UI.ShowOutfitButton = false
--This script will make a UI Toggle show/hide the Outfit Button
--(example: tools for user to customize UI)
--[You need to add an object with UI Toggle as a reference (scripting runtime)]
toggle = Space.Host.GetReference("Toggle").UIToggle
OnValueChanged = function()
if toggle.IsOn then
Space.UI.ShowOutfitButton= true
else
Space.UI.ShowOutfitButton= false
end
end
toggle.OnValueChanged(OnValueChanged)
ShowShopButton
Show the Shop button. (white-label grid only)
Example
Space.UI.ShowShopButton = false
--This script will make a UI Toggle show/hide the Shop Button
--(example: tools for user to customize UI)
--[You need to add an object with UI Toggle as a reference (scripting runtime)]
toggle = Space.Host.GetReference("Toggle").UIToggle
OnValueChanged = function()
if toggle.IsOn then
Space.UI.ShowShopButton= true
else
Space.UI.ShowShopButton= false
end
end
toggle.OnValueChanged(OnValueChanged)
ShowAuctionButton
Show the Auction button. (white-label grid only)
Example
Space.UI.ShowAuctionButton = false
--This script will make a UI Toggle show/hide the Auction Button
--(example: tools for user to customize UI)
--[You need to add an object with UI Toggle as a reference (scripting runtime)]
toggle = Space.Host.GetReference("Toggle").UIToggle
OnValueChanged = function()
if toggle.IsOn then
Space.UI.ShowAuctionButton = true
else
Space.UI.ShowAuctionButton = false
end
end
toggle.OnValueChanged(OnValueChanged)
ShowSnapshotButton
Show the Snapshot button.(white-label grid only)
Example
Space.UI.ShowSnapshotButton = false
--This script will make a UI Toggle show/hide the Snapshot Button
--(example: tools for user to customize UI)
--[You need to add an object with UI Toggle as a reference (scripting runtime)]
toggle = Space.Host.GetReference("Toggle").UIToggle
OnValueChanged = function()
if toggle.IsOn then
Space.UI.ShowSnapshotButton= true
else
Space.UI.ShowSnapshotButton= false
end
end
toggle.OnValueChanged(OnValueChanged)
ShowHelpButton
Show the Help button. (white-label grid only)
Example
Space.UI.ShowHelpButton = false
--This script will make a UI Toggle show/hide the Help Button
--(example: tools for user to customize UI)
--[You need to add an object with UI Toggle as a reference (scripting runtime)]
toggle = Space.Host.GetReference("Toggle").UIToggle
OnValueChanged = function()
if toggle.IsOn then
Space.UI.ShowHelpButton= true
else
Space.UI.ShowHelpButton= false
end
end
toggle.OnValueChanged(OnValueChanged)
ShowCurrencyButton
Show the Currency button. (white-label grid only)
Example
Space.UI.ShowCurrencyButton = false
--This script will make a UI Toggle show/hide the Currency Button
--(example: tools for user to customize UI)
--[You need to add an object with UI Toggle as a reference (scripting runtime)]
toggle = Space.Host.GetReference("Toggle").UIToggle
OnValueChanged = function()
if toggle.IsOn then
Space.UI.ShowCurrencyButton= true
else
Space.UI.ShowCurrencyButton= false
end
end
toggle.OnValueChanged(OnValueChanged)
ShowGoldAndBuyButton
Show the Gold and Buy button. (white-label grid only)
Example
Space.UI.ShowGoldAndBuyButton = false
--This script will make a UI Toggle show/hide the Gold and Buy button
--(example: tools for user to customize UI)
--[You need to add an object with UI Toggle as a reference (scripting runtime)]
toggle = Space.Host.GetReference("Toggle").UIToggle
OnValueChanged = function()
if toggle.IsOn then
Space.UI.ShowGoldAndBuyButton= true
else
Space.UI.ShowGoldAndBuyButton= false
end
end
toggle.OnValueChanged(OnValueChanged)
ShowChat
Show the Chat. (white-label grid only)
Example
Space.UI.ShowChat = false
--This script will make a UI Toggle show/hide the Chat
--(example: tools for user to customize UI)
--[You need to add an object with UI Toggle as a reference (scripting runtime)]
toggle = Space.Host.GetReference("Toggle").UIToggle
OnValueChanged = function()
if toggle.IsOn then
Space.UI.ShowChat= true
else
Space.UI.ShowChat= false
end
end
toggle.OnValueChanged(OnValueChanged)
ShowMiniMap
Set to true to show the Minimap. (white-label grid only)
Example
Space.UI.ShowMiniMap = false
--This script will make a UI Toggle show/hide the Minimap
--(example: tools for user to customize UI)
--[You need to add an object with UI Toggle as a reference (scripting runtime)]
toggle = Space.Host.GetReference("Toggle").UIToggle
OnValueChanged = function()
if toggle.IsOn then
Space.UI.ShowMiniMap= true
else
Space.UI.ShowMiniMap= false
end
end
toggle.OnValueChanged(OnValueChanged)
ShowHotBar
Show the Hot Bar. (white-label grid only)
Example
Space.UI.ShowHotBar = false
--This script will make a UI Toggle show/hide the Hot Bar
--(example: tools for user to customize UI)
--[You need to add an object with UI Toggle as a reference (scripting runtime)]
toggle = Space.Host.GetReference("Toggle").UIToggle
OnValueChanged = function()
if toggle.IsOn then
Space.UI.ShowHotBar= true
else
Space.UI.ShowHotBar= false
end
end
toggle.OnValueChanged(OnValueChanged)
ShowEventsButton
Show the Events button. (white-label grid only)
Example
Space.UI.ShowEventsButton = false
--This script will make a UI Toggle show/hide the Events button
--[You need to add an object with UI Toggle as a reference (scripting runtime)]
toggle = Space.Host.GetReference("Toggle").UIToggle
OnValueChanged = function()
if toggle.IsOn then
Space.UI.ShowEventsButton= true
else
Space.UI.ShowEventsButton= false
end
end
toggle.OnValueChanged(OnValueChanged)
ShowHomeButton
Show the Home button. (white-label grid only)
Example
Space.UI.ShowHomeButton = false
--This script will make a UI Toggle show/hide the Home Button
--(example: tools for user to customize UI)
--[You need to add an object with UI Toggle as a reference (scripting runtime)]
toggle = Space.Host.GetReference("Toggle").UIToggle
OnValueChanged = function()
if toggle.IsOn then
Space.UI.ShowHomeButton= true
else
Space.UI.ShowHomeButton= false
end
end
toggle.OnValueChanged(OnValueChanged)
ShowActivityPanel
Show the Activity Panel. (white-label grid only)
Example
Space.UI.ShowActivityPanel = false
--This script will make a UI Toggle show/hide the Activity Panel
--[You need to add an object with UI Toggle as a reference (scripting runtime)]
toggle = Space.Host.GetReference("Toggle").UIToggle
OnValueChanged = function()
if toggle.IsOn then
Space.UI.ShowActivityPanel= true
else
Space.UI.ShowActivityPanel= false
end
end
toggle.OnValueChanged(OnValueChanged)
ShowProfileImage
Show the Profile Image. (white-label grid only)
Example
Space.UI.ShowProfileImage = false
--This script will make a UI Toggle show/hide the Profile Image
--(example: tools for user to customize UI)
--[You need to add an object with UI Toggle as a reference (scripting runtime)]
toggle = Space.Host.GetReference("Toggle").UIToggle
OnValueChanged = function()
if toggle.IsOn then
Space.UI.ShowProfileImage= true
else
Space.UI.ShowProfileImage= false
end
end
toggle.OnValueChanged(OnValueChanged)
ShowRightButtonGroup
Show the Right Button Group. (white-label grid only)
Example
Space.UI.ShowRightButtonGroup = false
--This script will make a UI Toggle show/hide the Right Button Group
--(example: tools for user to customize UI)
--[You need to add an object with UI Toggle as a reference (scripting runtime)]
toggle = Space.Host.GetReference("Toggle").UIToggle
OnValueChanged = function()
if toggle.IsOn then
Space.UI.ShowRightButtonGroup= true
else
Space.UI.ShowRightButtonGroup= false
end
end
toggle.OnValueChanged(OnValueChanged)
ShowRoomInfoOption
Show the Room Info Option. (white-label grid only)
Example
Space.UI.ShowRoomInfoOption = false
--This script will make a UI Toggle show/hide the Room Info Option
--[You need to add an object with UI Toggle as a reference (scripting runtime)]
toggle = Space.Host.GetReference("Toggle").UIToggle
OnValueChanged = function()
if toggle.IsOn then
Space.UI.ShowRoomInfoOption= true
else
Space.UI.ShowRoomInfoOption= false
end
end
toggle.OnValueChanged(OnValueChanged)
ShowSearch
Show the Search bar. (white-label grid only)
Example
Space.UI.ShowSearch = false
--This script will make a UI Toggle show/hide the Search Bar
--(example: tools for user to customize UI)
--[You need to add an object with UI Toggle as a reference (scripting runtime)]
toggle = Space.Host.GetReference("Toggle").UIToggle
OnValueChanged = function()
if toggle.IsOn then
Space.UI.ShowSearch= true
else
Space.UI.ShowSearch= false
end
end
toggle.OnValueChanged(OnValueChanged)
ShowMailButton
Show the Mail button. (white-label grid only)
Example
Space.UI.ShowMailButton = false
--This script will make a UI Toggle show/hide the Mail Button
--(example: tools for user to customize UI)
--[You need to add an object with UI Toggle as a reference (scripting runtime)]
toggle = Space.Host.GetReference("Toggle").UIToggle
OnValueChanged = function()
if toggle.IsOn then
Space.UI.ShowMailButton = true
else
Space.UI.ShowMailButton = false
end
end
toggle.OnValueChanged(OnValueChanged)
ShowNotificationButton
Show the Notification button. (white-label grid only)
Example
Space.UI.ShowNotificationButton = false
--This script will make a UI Toggle show/hide the Notification Button
--(example: tools for user to customize UI)
--[You need to add an object with UI Toggle as a reference (scripting runtime)]
toggle = Space.Host.GetReference("Toggle").UIToggle
OnValueChanged = function()
if toggle.IsOn then
Space.UI.ShowNotificationButton= true
else
Space.UI.ShowNotificationButton= false
end
end
toggle.OnValueChanged(OnValueChanged)
ShowClock
Show the clock. (white-label grid only)
Example
Space.UI.ShowClock = false
--This script will make a UI Toggle show/hide the Clock
--(example: tools for user to customize UI)
--[You need to add an object with UI Toggle as a reference (scripting runtime)]
toggle = Space.Host.GetReference("Toggle").UIToggle
OnValueChanged = function()
if toggle.IsOn then
Space.UI.ShowClock= true
else
Space.UI.ShowClock= false
end
end
toggle.OnValueChanged(OnValueChanged)



