Line 138: | Line 138: | ||
{{ScriptFunction|int|SFXVolume|{ get; set; }|Set/Get the SFX volume|5= <pre>SFXVolume= Space.UI.SFXVolume</pre>}} | {{ScriptFunction|int|SFXVolume|{ get; set; }|Set/Get the SFX volume|5= <pre>SFXVolume= Space.UI.SFXVolume</pre>}} | ||
− | {{ScriptFunction|int|UIVolume|{ get; set; }|Set/Get the UI volume|5= <pre>UIVolume= Space.UI.UIVolume</pre>}} | + | {{ScriptFunction|int|UIVolume|{ get; set; }|Set/Get the UI volume|5= <pre>UIVolume= Space.UI.UIVolume</pre>|6=<pre>--This script will make moving a slider control the UI Volume |
+ | --and also update a text field with the current UI 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.UIVolume = slider.NormalizedValue * 100 | ||
+ | textField.Text = Space.UI.UIVolume | ||
+ | end | ||
+ | |||
+ | slider.OnValueChanged(OnValueChanged)</pre>}} | ||
{{ScriptFunction|int|VOIPVolume|{ get; set; }|Set/Get the VOIP volume|5= <pre>VOIPVolume = Space.UI.VOIPVolume</pre>|6=<pre> --This script will make moving a slider control the Voice Volume | {{ScriptFunction|int|VOIPVolume|{ get; set; }|Set/Get the VOIP volume|5= <pre>VOIPVolume = Space.UI.VOIPVolume</pre>|6=<pre> --This script will make moving a slider control the Voice Volume |
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))
Opens the Quests window
Space.UI.OpenQuestsWindow()
Hides the Quests window
Space.UI.HideQuestsWindow()
Opens the Settings window
Space.UI.OpenSettingsWindow()
Hides the Settings window
Space.UI.HideSettingsWindow()
Opens the Friends window
Space.UI.OpenFriendsWindow()
Hides the Friends window
Space.UI.HideFriendsWindow()
Opens the Explore window
Space.UI.OpenExploreWindow()
Hides the Explore window
Space.UI.HideExploreWindow()
Opens the Events window
Space.UI.OpenEventsWindow()
Hides the Events window
Space.UI.HideEventsWindow()
Opens the Home window
Space.UI.OpenHomeWindow()
Hides the Home window
Space.UI.HideHomeWindow()
Opens the Inventory window
Space.UI.OpenInventoryWindow()
Hides the Inventory window
Space.UI.HideInventoryWindow()
Opens the Outfit window
Space.UI.OpenOutfitWindow()
Hides the Outfit window
Space.UI.HideOutfitWindow()
Opens the Shop window
Space.UI.OpenShopWindow()
Hides the Shop window
Space.UI.HideShopWindow()
Opens the Snapshot window
Space.UI.OpenSnapshotWindow()
Hides the Snapshot window
Space.UI.HideSnapshotWindow()
Opens the Help window
Space.UI.OpenHelpWindow()
Hides the Help window
Space.UI.HideHelpWindow()
Opens the Profile window
Space.UI.OpenProfileWin()
Hides the Profile window
Space.UI.HideProfileWin()
Opens the Upgrade Account window
Space.UI.OpenUpgradeAccountWindow()
Hides the Upgrade Account window
Space.UI.HideUpgradeAccountWindow()
Opens the Region Info window
Space.UI.OpenRegionInfoWindow()
Hides the Region Info window
Space.UI.HideRegionInfoWindow()
Opens the Exit window
Space.UI.OpenExitWindow()
Hides the Exit window
Space.UI.HideExitWindow()
Opens the Mail window
Space.UI.OpenMailWindow()
Hides the Mail window
Space.UI.HideMailWindow()
Opens the Buy Gold window
Space.UI.OpenBuyGoldWindow()
Hides the Buy Gold window
Space.UI.HideBuyGoldWindow()
Opens the Chat window
Space.UI.OpenChatWindow()
Hides the Chat window
Space.UI.HideChatWindow()
Opens the Room Editor window
Space.UI.OpenRoomEditorWindow()
Hides the Room Editor window
Space.UI.HideRoomEditorWindow()
Opens the Device Picker
Space.UI.OpenDevicePicker()
Shoots a UI Raycast and returns the result as SUIRayCastResult
RayCastResult= Space.UI.Raycast()
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
Show the World User Interface
Space.UI.ShowUI = false
Set/Get the Music volume
MusicVolume= Space.UI.MusicVolume
Set/Get the Master volume
MasterVolume= Space.UI.MasterVolume
Set/Get the SFX volume
SFXVolume= Space.UI.SFXVolume
Set/Get the UI volume
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 --(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.UIVolume = slider.NormalizedValue * 100 textField.Text = Space.UI.UIVolume end slider.OnValueChanged(OnValueChanged)
Set/Get the VOIP volume
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 --(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.VOIPVolume = slider.NormalizedValue * 100 textField.Text = Space.UI.VOIPVolume end slider.OnValueChanged(OnValueChanged)
Show the Events button
Space.UI.ShowEventsButton= false
Show the Gold and Buy button
Space.UI.ShowGoldAndBuyButton= false
Show the clock
Space.UI.ShowClock= false
Show the Activity Panel
Space.UI.ShowActivityPanel= false
Show the Profile Image
Space.UI.ShowProfileImage= false
Show the Button group on the right
Space.UI.ShowRightButtonGroup= false
Show the Room Info Option
Space.UI.ShowRoomInfoOption= false
Show the Search bar
Space.UI.ShowSearch= false
Show the Mail button
Space.UI.ShowMailButton= false
Show the Notification button
Space.UI.ShowNotificationButton= false
|