forked from pyrex/chameleonic
Convert level text to gsv
This commit is contained in:
parent
fe72d6b92b
commit
051d682f2e
@ -1713,22 +1713,18 @@ end
|
|||||||
-- text
|
-- text
|
||||||
level_text={by_lvl={}}
|
level_text={by_lvl={}}
|
||||||
add(real_modules,level_text)
|
add(real_modules,level_text)
|
||||||
level_text_raw={
|
level_text_raw=gsv[[
|
||||||
"0`9`11`\f7\#0press 🅾️ to mlem & unmlem",
|
0`9`11`press 🅾️ to mlem & unmlem,
|
||||||
"0`33`17`\f7\#0❎ to yoink"
|
0`33`17`❎ to yoink]]
|
||||||
}
|
|
||||||
function level_text:init()
|
function level_text:init()
|
||||||
for i=0,32 do level_text.by_lvl[i]={} end
|
for i=0,31 do self.by_lvl[i]={} end
|
||||||
for row in all(level_text_raw) do
|
for row in all(level_text_raw) do
|
||||||
if row then
|
if (row) add(self.by_lvl[row[1]],row)
|
||||||
lvlxys=split(row,"`")
|
|
||||||
add(level_text.by_lvl[lvlxys[1]],lvlxys)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
function level_text:draw2()
|
||||||
function level_text:draw()
|
for xys in all(self.by_lvl[level.ix]) do
|
||||||
for xys in all(level_text.by_lvl[level.ix]) do
|
print(xys[4],xys[2],xys[3],7)
|
||||||
print(xys[4],xys[2],xys[3],6)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user