- [NEW] Brymode
- [FIX] El switches no es resetejaven al eixir de una habitació - [NEW] [EDITOR] Es mostra el tile sobre el que està el cursor - [NEW] [EDITOR]: Es mostra el nom de l'actor sobre el que està el cursor - [FIX] Durant una escena es repinta abans de seguir al seguent punt de l'script - [NEW] [EDITOR] Es mostra la posició dels switches parpadejant
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
switches={
|
||||
list={},
|
||||
col=0,
|
||||
|
||||
reset=function()
|
||||
switches.list={}
|
||||
end,
|
||||
|
||||
add=function(switch)
|
||||
if not switch.w then switch.w=1 end
|
||||
@@ -15,4 +20,14 @@ switches={
|
||||
end
|
||||
return nil
|
||||
end,
|
||||
|
||||
draw=function()
|
||||
text(#switches.list,1,25,8)
|
||||
if switches.col<16 then
|
||||
for i,v in ipairs(switches.list) do
|
||||
rect(v.x*8, v.y*8, (v.x+v.w+1)*8-1, (v.y+v.h)*8-1, 8);
|
||||
end
|
||||
end
|
||||
switches.col=(switches.col+1)%32
|
||||
end,
|
||||
}
|
||||
Reference in New Issue
Block a user