Realign
This commit is contained in:
parent
179cecd9fa
commit
adc431f5cd
2 changed files with 4 additions and 4 deletions
|
|
@ -3,7 +3,7 @@
|
||||||
"id": "Roland",
|
"id": "Roland",
|
||||||
"name": "Roland",
|
"name": "Roland",
|
||||||
"prefix": "Roland",
|
"prefix": "Roland",
|
||||||
"version": "2.9.57",
|
"version": "2.9.58",
|
||||||
"badge_colour": "8BE9FD",
|
"badge_colour": "8BE9FD",
|
||||||
"display_name": "Roland",
|
"display_name": "Roland",
|
||||||
"main_file": "src/main.lua",
|
"main_file": "src/main.lua",
|
||||||
|
|
|
||||||
|
|
@ -32,10 +32,10 @@ local _ = Balatest and f {"joker", "blind", "spectral"}:each(function(v)
|
||||||
assert(SMODS.load_file("src/tests/" .. v .. ".tests.lua"))(qol)
|
assert(SMODS.load_file("src/tests/" .. v .. ".tests.lua"))(qol)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
local function realign(tbl, align)
|
local function realign(tbl)
|
||||||
f(tbl):where(function(v, k)
|
f(tbl):where(function(v, k)
|
||||||
if k == "align" and type(v) == "string" then
|
if k == "align" and type(v) == "string" then
|
||||||
tbl[k] = align
|
tbl[k] = "tr"
|
||||||
end
|
end
|
||||||
|
|
||||||
return k ~= "nodes" and type(v) == "table"
|
return k ~= "nodes" and type(v) == "table"
|
||||||
|
|
@ -50,7 +50,7 @@ local function toggle(id)
|
||||||
ref_table = SMODS.Mods.Roland.config,
|
ref_table = SMODS.Mods.Roland.config,
|
||||||
ref_value = id,
|
ref_value = id,
|
||||||
scale = 1.5,
|
scale = 1.5,
|
||||||
}, "tr")
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
SMODS.current_mod.qol = qol
|
SMODS.current_mod.qol = qol
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue