Attempt to fix loading RbxGui again

This commit is contained in:
Lewin Kelly 2023-04-22 12:43:23 +01:00
parent 7d2c4973ff
commit db585162a0
2 changed files with 3 additions and 4 deletions

View File

@ -42,7 +42,6 @@ if script.Parent:FindFirstChild("ControlFrame") then
else else
gui = script.Parent gui = script.Parent
end end
local RbxGui = assert(LoadLibrary("RbxGui"))
local syncVideoCaptureSetting local syncVideoCaptureSetting
local settingsButton, helpButton, settingsFrame, mouseLockLabel local settingsButton, helpButton, settingsFrame, mouseLockLabel
local updateCameraDropDownSelection local updateCameraDropDownSelection
@ -323,7 +322,7 @@ createHelpDialog = function(baseZIndex)
if UserSettings().GameSettings.ControlMode == Enum.ControlMode["Mouse Lock Switch"] then if UserSettings().GameSettings.ControlMode == Enum.ControlMode["Mouse Lock Switch"] then
image.Image = mouseLockLookScreenUrl image.Image = mouseLockLookScreenUrl
else else
image.Image = imageclassicLookScreenUrl image.Image = classicLookScreenUrl
end end
end end
buttons[2] = { } buttons[2] = { }

View File

@ -39,7 +39,6 @@ gui = if script.Parent\FindFirstChild "ControlFrame"
else else
script.Parent script.Parent
RbxGui = assert LoadLibrary "RbxGui"
local syncVideoCaptureSetting local syncVideoCaptureSetting
local settingsButton, helpButton, settingsFrame, mouseLockLabel local settingsButton, helpButton, settingsFrame, mouseLockLabel
local updateCameraDropDownSelection local updateCameraDropDownSelection
@ -370,7 +369,7 @@ createHelpDialog = (baseZIndex) ->
mouseLockLookScreenUrl mouseLockLookScreenUrl
else else
imageclassicLookScreenUrl classicLookScreenUrl
buttons[2] = {} buttons[2] = {}
@ -1340,6 +1339,7 @@ createGameSettingsMenu = (baseZIndex, _) ->
if LoadLibrary if LoadLibrary
global RbxGui = LoadLibrary "RbxGui"
baseZIndex = 0 baseZIndex = 0
if UserSettings if UserSettings
createSettingsDialog = -> createSettingsDialog = ->