Update graphicsmenu.config.patch.lua
This commit is contained in:
parent
9cff2ce433
commit
8dbbbcb086
@ -13,6 +13,12 @@ local function shift(thing, x, y)
|
|||||||
return thing
|
return thing
|
||||||
end
|
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
|
-- patch function, called by the game
|
||||||
function patch(config)
|
function patch(config)
|
||||||
local layout = config.paneLayout
|
local layout = config.paneLayout
|
||||||
@ -42,6 +48,10 @@ function patch(config)
|
|||||||
shift(clone(layout, "multiTextureLabel", "hardwareCursorLabel"), 98, -11).value = "HARDWARE CURSOR"
|
shift(clone(layout, "multiTextureLabel", "hardwareCursorLabel"), 98, -11).value = "HARDWARE CURSOR"
|
||||||
shift(clone(layout, "multiTextureCheckbox", "hardwareCursorCheckbox"), 99, -11)
|
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.title, 0, 24)
|
||||||
shift(layout.resLabel, 0, 28)
|
shift(layout.resLabel, 0, 28)
|
||||||
shift(layout.resSlider, 0, 28)
|
shift(layout.resSlider, 0, 28)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user