SUI

Functions

AddNotification

void AddNotification (string title, string text)

Shows a notification

Parameter
Type
Description

 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

void OpenAppearanceEditor()

Opens the Appearance Editor (Outfit)

ShowPathToLocation

void ShowPathToLocation (string reason, SVector location)

Shows a path to given location

Parameter
Type
Description

ShowLocation

void ShowLocation (string reason, SVector location)

Shows given location

Parameter
Type
Description

AddGlobalActionButton

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

Parameter
Type
Description

ClearGlobalActionButton

void ClearGlobalActionButton (string button)

Clears a previously added Global Action Button 'button'

Parameter
Type
Description

OpenQuestsWindow

void OpenQuestsWindow ()

Opens the Quests window. (white-label grid only)

HideQuestsWindow

void HideQuestsWindow ()

Hides the Quests window. (white-label grid only)

OpenSettingsWindow

void OpenSettingsWindow ()

Opens the Settings window. (white-label grid only)

HideSettingsWindow

void HideSettingsWindow ()

Hides the Settings window. (white-label grid only)

OpenFriendsWindow

void OpenFriendsWindow ()

Opens the Friends window. (white-label grid only)

HideFriendsWindow

void HideFriendsWindow ()

Hides the Friends window. (white-label grid only)

OpenExploreWindow

void OpenExploreWindow ()

Opens the Explore window. (white-label grid only)

HideExploreWindow

void HideExploreWindow ()

Hides the Explore window (white-label grid only)

OpenEventsWindow

void OpenEventsWindow ()

Opens the Events window (white-label grid only)

HideEventsWindow

void HideEventsWindow ()

Hides the Events window (white-label grid only)

OpenHomeWindow

void OpenHomeWindow ()

Opens the Home window (white-label grid only)

HideHomeWindow

void HideHomeWindow ()

Hides the Home window (white-label grid only)

OpenInventoryWindow

void OpenInventoryWindow ()

Opens the Inventory window (white-label grid only)

HideInventoryWindow

void HideInventoryWindow ()

Hides the Inventory window (white-label grid only)

OpenOutfitWindow

void OpenOutfitWindow ()

Opens the Outfit window (white-label grid only)

HideOutfitWindow

void HideOutfitWindow ()

Hides the Outfit window (white-label grid only)

OpenShopWindow

void OpenShopWindow ()

Opens the Shop window (white-label grid only)

HideShopWindow

void HideShopWindow ()

Hides the Shop window (white-label grid only)

OpenSnapshotWindow

void OpenSnapshotWindow ()

Opens the Snapshot window (white-label grid only)

HideSnapshotWindow

void HideSnapshotWindow ()

Hides the Snapshot window (white-label grid only)

OpenHelpWindow

void OpenHelpWindow ()

Opens the Help window (white-label grid only)

HideHelpWindow

void HideHelpWindow ()

Hides the Help window (white-label grid only)

OpenProfileWin

void OpenProfileWin ()

Opens the Profile window (white-label grid only)

HideProfileWindow

void HideProfileWindow()

Hides the Profile window (white-label grid only)

OpenUpgradeAccountWindow

void OpenUpgradeAccountWindow ()

Opens the Upgrade Account window (white-label grid only)

HideUpgradeAccountWindow

void HideUpgradeAccountWindow ()

Hides the Upgrade Account window (white-label grid only)

OpenRegionInfoWindow

void OpenRegionInfoWindow ()

Opens the Region Info window (white-label grid only)

HideRegionInfoWindow

void HideRegionInfoWindow ()

Hides the Region Info window (white-label grid only)

OpenExitWindow

void OpenExitWindow ()

Opens the Exit window (white-label grid only)

HideExitWindow

void HideExitWindow ()

Hides the Exit window (white-label grid only)

OpenMailWindow

void OpenMailWindow ()

Opens the Mail window (white-label grid only)

HideMailWindow

void HideMailWindow ()

Hides the Mail window (white-label grid only)

OpenFeedbackWindow

void OpenFeedbackWindow ()

Shows the Feedback window (white-label grid only)

HideFeedbackWindow

void HideFeedbackWindow ()

Hides the Feedback window (white-label grid only)

OpenBuyGoldWindow

void OpenBuyGoldWindow ()

Opens the Buy Gold window (white-label grid only)

HideBuyGoldWindow

void HideBuyGoldWindow ()

Hides the Buy Gold window (white-label grid only)

OpenChatWindow

void OpenChatWindow ()

Opens the Chat window (white-label grid only)

HideChatWindow

void HideChatWindow ()

Hides the Chat window (white-label grid only)

OpenRoomEditorWindow

void OpenRoomEditorWindow ()

Opens the Room Editor window (white-label grid only)

HideRoomEditorWindow

void HideRoomEditorWindow ()

Hides the Room Editor window (white-label grid only)

OpenDevicePicker

void OpenDevicePicker ()

Opens the Device Picker

OpenDeviceTester

void OpenDeviceTester ()

Opens the Device Tester

Raycast

SUIRaycastResult Raycast ()

Shoots a UI Raycast and returns the result as SUIRayCastResult

Properties

ShowUI

bool ShowUI get set

Show the User Interface

ShowWorldUI

bool ShowWorldUI get set

Show the World User Interface.

MusicVolume

int MusicVolume get set

Set/Get the Music volume (set: white-label grid only)

MasterVolume

int MasterVolume get set

Set/Get the Master volume (set: white-label grid only)

SFXVolume

int SFXVolume get set

Set/Get the SFX volume (set: white-label grid only)

UIVolume

int UIVolume get set

Set/Get the UI volume (set: white-label grid only)

VOIPVolume

int VOIPVolume get set

Set/Get the VOIP volume (set: white-label grid only)

ShowFriendsButton

bool ShowFriendsButton get set

Show the Friends button. (white-label grid only)

ShowExploreButton

bool ShowExploreButton get set

Show the Explore button. (white-label grid only)

ShowQuestsButton

bool ShowQuestsButton get set

Show the Quests button. (white-label grid only)

ShowInventoryButton

bool ShowInventoryButton get set

Show the Inventory button. (white-label grid only)

ShowOutfitButton

bool ShowOutfitButton get set

Set to true to show the Outfit button. (white-label grid only)

ShowShopButton

bool ShowShopButton get set

Show the Shop button. (white-label grid only)

ShowAuctionButton

bool ShowAuctionButton get set

Show the Auction button. (white-label grid only)

ShowSnapshotButton

bool ShowSnapshotButton get set

Show the Snapshot button.(white-label grid only)

ShowHelpButton

bool ShowHelpButton get set

Show the Help button. (white-label grid only)

ShowCurrencyButton

bool ShowCurrencyButton get set

Show the Currency button. (white-label grid only)

ShowGoldAndBuyButton

bool ShowGoldAndBuyButton get set

Show the Gold and Buy button. (white-label grid only)

ShowChat

bool ShowChat get set

Show the Chat. (white-label grid only)

ShowMiniMap

bool ShowMiniMap get set

Set to true to show the Minimap. (white-label grid only)

ShowHotBar

bool ShowHotBar get set

Show the Hot Bar. (white-label grid only)

ShowEventsButton

bool ShowEventsButton get set

Show the Events button. (white-label grid only)

ShowHomeButton

bool ShowHomeButton get set

Show the Home button. (white-label grid only)

ShowActivityPanel

bool ShowActivityPanel get set

Show the Activity Panel. (white-label grid only)

ShowProfileImage

bool ShowProfileImage get set

Show the Profile Image. (white-label grid only)

ShowRightButtonGroup

bool ShowRightButtonGroup get set

Show the Right Button Group. (white-label grid only)

ShowRoomInfoOption

bool ShowRoomInfoOption get set

Show the Room Info Option. (white-label grid only)

ShowSearch

bool ShowSearch get set

Show the Search bar. (white-label grid only)

ShowMailButton

bool ShowMailButton get set

Show the Mail button. (white-label grid only)

ShowNotificationButton

bool ShowNotificationButton get set

Show the Notification button. (white-label grid only)

ShowClock

bool ShowClock get set

Show the clock. (white-label grid only)

Last updated

Was this helpful?