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