diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-05-25 12:52:07 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-05-25 12:52:07 +1000 |
commit | f3adb0b9d01783822a48d50111a9b99673b6b718 (patch) | |
tree | fc3bafee4d86d6c7ab3447e6c05a0d974253aa60 /assets/opensb/interface/windowconfig/graphicsmenu.config.patch.lua | |
parent | e31a37421214db40a631c2721381f240f03c770e (diff) |
Add an interface scale slider
Diffstat (limited to 'assets/opensb/interface/windowconfig/graphicsmenu.config.patch.lua')
-rw-r--r-- | assets/opensb/interface/windowconfig/graphicsmenu.config.patch.lua | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/assets/opensb/interface/windowconfig/graphicsmenu.config.patch.lua b/assets/opensb/interface/windowconfig/graphicsmenu.config.patch.lua index 50cf130..c808db7 100644 --- a/assets/opensb/interface/windowconfig/graphicsmenu.config.patch.lua +++ b/assets/opensb/interface/windowconfig/graphicsmenu.config.patch.lua @@ -17,14 +17,21 @@ end function patch(config) local layout = config.paneLayout layout.panefeature.positionLocked = false + layout.panefeature.anchor = "center" + for i = 1, 32 do config.zoomList[i] = i end -- Create the camera pan speed widgets shift(clone(layout, "zoomLabel", "cameraSpeedLabel"), 100).value = "CAMERA PAN SPEED" shift(clone(layout, "zoomSlider", "cameraSpeedSlider"), 100) shift(clone(layout, "zoomValueLabel", "cameraSpeedValueLabel"), 100) - -- Populate camera speed list config.cameraSpeedList = jarray() for i = 1, 50 do config.cameraSpeedList[i] = i / 10 end - for i = 1, 32 do config.zoomList[i] = i end + + -- Create the interface scale widgets + shift(clone(layout, "zoomLabel", "interfaceScaleLabel"), 0, 28).value = "INTERFACE SCALE" + shift(clone(layout, "zoomSlider", "interfaceScaleSlider"), 0, 28) + shift(clone(layout, "zoomValueLabel", "interfaceScaleValueLabel"), 0, 28) + config.interfaceScaleList = {0, 1, 2, 3, 4, 5, 6} -- 0 = AUTO! + -- Create anti-aliasing toggle shift(clone(layout, "multiTextureLabel", "antiAliasingLabel"), 98).value = "SUPER-SAMPLED AA" shift(clone(layout, "multiTextureCheckbox", "antiAliasingCheckbox"), 99) @@ -34,5 +41,10 @@ function patch(config) -- Create hardware cursor toggle shift(clone(layout, "multiTextureLabel", "hardwareCursorLabel"), 98, -11).value = "HARDWARE CURSOR" shift(clone(layout, "multiTextureCheckbox", "hardwareCursorCheckbox"), 99, -11) + + shift(layout.title, 0, 28) + shift(layout.resLabel, 0, 28) + shift(layout.resSlider, 0, 28) + shift(layout.resValueLabel, 0, 28) return config end
\ No newline at end of file |