mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-09-03 04:52:35 +02:00
compat.lua: Fix tpt.brushx, tpt.brushy, and tpt.watertest
This commit is contained in:
@@ -391,7 +391,7 @@ function tpt.toggle_pause()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function tpt.watertest()
|
function tpt.watertest()
|
||||||
sim.waterEqualization(not sim.waterEqualization())
|
sim.waterEqualization(sim.waterEqualization() == 1 and 0 or 1)
|
||||||
return sim.waterEqualization()
|
return sim.waterEqualization()
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -689,9 +689,11 @@ function tpt_mt:__newindex(key, value)
|
|||||||
elseif key == "brushx" then
|
elseif key == "brushx" then
|
||||||
local w, h = ui.brushRadius()
|
local w, h = ui.brushRadius()
|
||||||
ui.brushRadius(value, h)
|
ui.brushRadius(value, h)
|
||||||
|
return
|
||||||
elseif key == "brushy" then
|
elseif key == "brushy" then
|
||||||
local w, h = ui.brushRadius()
|
local w, h = ui.brushRadius()
|
||||||
ui.brushRadius(w, value)
|
ui.brushRadius(w, value)
|
||||||
|
return
|
||||||
elseif key == "decoSpace" then
|
elseif key == "decoSpace" then
|
||||||
return sim.decoSpace(value)
|
return sim.decoSpace(value)
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user