Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/assets/opensb
diff options
context:
space:
mode:
authorBottinator22 <59987380+Bottinator22@users.noreply.github.com>2024-12-18 22:33:27 -0800
committerGitHub <noreply@github.com>2024-12-18 22:33:27 -0800
commit8dbbbcb0861583a650d83c8f7e0793eafe972bed (patch)
tree5254bce1fbb7a127347a584b8e28a7ceac4836f9 /assets/opensb
parent9cff2ce433b676b10aad43e6304fb0c5216cbb39 (diff)
Update graphicsmenu.config.patch.lua
Diffstat (limited to 'assets/opensb')
-rw-r--r--assets/opensb/interface/windowconfig/graphicsmenu.config.patch.lua12
1 files changed, 11 insertions, 1 deletions
diff --git a/assets/opensb/interface/windowconfig/graphicsmenu.config.patch.lua b/assets/opensb/interface/windowconfig/graphicsmenu.config.patch.lua
index 7d7ab44..b17053a 100644
--- a/assets/opensb/interface/windowconfig/graphicsmenu.config.patch.lua
+++ b/assets/opensb/interface/windowconfig/graphicsmenu.config.patch.lua
@@ -13,6 +13,12 @@ local function shift(thing, x, y)
return thing
end
+local function moveto(thing, otherthing)
+ thing.position[1] = otherthing.position[1]
+ thing.position[2] = otherthing.position[2]
+ return thing
+end
+
-- patch function, called by the game
function patch(config)
local layout = config.paneLayout
@@ -41,10 +47,14 @@ function patch(config)
-- Create hardware cursor toggle
shift(clone(layout, "multiTextureLabel", "hardwareCursorLabel"), 98, -11).value = "HARDWARE CURSOR"
shift(clone(layout, "multiTextureCheckbox", "hardwareCursorCheckbox"), 99, -11)
+
+ -- Create shader menu button
+ shift(moveto(clone(layout, "accept", "showShadersMenu"), layout.interfaceScaleSlider), 112, -2).caption = "Shaders"
+
shift(layout.title, 0, 24)
shift(layout.resLabel, 0, 28)
shift(layout.resSlider, 0, 28)
shift(layout.resValueLabel, 0, 28)
return config
-end \ No newline at end of file
+end