Attempt to fix RbxGui script (again)
This commit is contained in:
parent
595169f751
commit
970792c039
|
|
@ -1007,7 +1007,7 @@ createGameSettingsMenu = function(baseZIndex, _)
|
||||||
backButton.Name = "BackButton"
|
backButton.Name = "BackButton"
|
||||||
backButton.ZIndex = baseZIndex + 4
|
backButton.ZIndex = baseZIndex + 4
|
||||||
backButton.Parent = gameSettingsMenuFrame
|
backButton.Parent = gameSettingsMenuFrame
|
||||||
local syncVideoCaptureSetting = nil
|
syncVideoCaptureSetting = nil
|
||||||
if not macClient then
|
if not macClient then
|
||||||
local videoCaptureLabel = Instance.new("TextLabel")
|
local videoCaptureLabel = Instance.new("TextLabel")
|
||||||
videoCaptureLabel.Name = "VideoCaptureLabel"
|
videoCaptureLabel.Name = "VideoCaptureLabel"
|
||||||
|
|
@ -1092,13 +1092,13 @@ createGameSettingsMenu = function(baseZIndex, _)
|
||||||
return gameSettingsMenuFrame
|
return gameSettingsMenuFrame
|
||||||
end
|
end
|
||||||
if LoadLibrary then
|
if LoadLibrary then
|
||||||
local RbxGui = LoadLibrary("RbxGui")
|
RbxGui = LoadLibrary("RbxGui")
|
||||||
local baseZIndex = 0
|
local baseZIndex = 0
|
||||||
if UserSettings then
|
if UserSettings then
|
||||||
local createSettingsDialog
|
local createSettingsDialog
|
||||||
createSettingsDialog = function()
|
createSettingsDialog = function()
|
||||||
waitForChild(gui, "BottomLeftControl")
|
waitForChild(gui, "BottomLeftControl")
|
||||||
local settingsButton = gui.BottomLeftControl:FindFirstChild("SettingsButton")
|
settingsButton = gui.BottomLeftControl:FindFirstChild("SettingsButton")
|
||||||
if settingsButton == nil then
|
if settingsButton == nil then
|
||||||
settingsButton = Instance.new("ImageButton")
|
settingsButton = Instance.new("ImageButton")
|
||||||
settingsButton.Name = "SettingsButton"
|
settingsButton.Name = "SettingsButton"
|
||||||
|
|
|
||||||
|
|
@ -1246,7 +1246,7 @@ createGameSettingsMenu = (baseZIndex, _) ->
|
||||||
backButton.ZIndex = baseZIndex + 4
|
backButton.ZIndex = baseZIndex + 4
|
||||||
backButton.Parent = gameSettingsMenuFrame
|
backButton.Parent = gameSettingsMenuFrame
|
||||||
|
|
||||||
syncVideoCaptureSetting = nil
|
global syncVideoCaptureSetting = nil
|
||||||
|
|
||||||
if not macClient
|
if not macClient
|
||||||
videoCaptureLabel = Instance.new "TextLabel"
|
videoCaptureLabel = Instance.new "TextLabel"
|
||||||
|
|
@ -1335,12 +1335,12 @@ createGameSettingsMenu = (baseZIndex, _) ->
|
||||||
gameSettingsMenuFrame
|
gameSettingsMenuFrame
|
||||||
|
|
||||||
if LoadLibrary
|
if LoadLibrary
|
||||||
RbxGui = LoadLibrary "RbxGui"
|
global RbxGui = LoadLibrary "RbxGui"
|
||||||
baseZIndex = 0
|
baseZIndex = 0
|
||||||
if UserSettings
|
if UserSettings
|
||||||
createSettingsDialog = ->
|
createSettingsDialog = ->
|
||||||
waitForChild gui, "BottomLeftControl"
|
waitForChild gui, "BottomLeftControl"
|
||||||
settingsButton = gui.BottomLeftControl\FindFirstChild "SettingsButton"
|
global settingsButton = gui.BottomLeftControl\FindFirstChild "SettingsButton"
|
||||||
|
|
||||||
if settingsButton == nil
|
if settingsButton == nil
|
||||||
settingsButton = Instance.new "ImageButton"
|
settingsButton = Instance.new "ImageButton"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue