Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- if mainmemory.readbyte(0x0117)==01 then
- Mod = mainmemory.read_u8(0x0401) % 10
- WonderArray = {"1/10","1/2","1/2","1","1","1","1","2","2","3"}
- for i = 0,2 do
- if mainmemory.read_u8(0x5e2d + (i*0x80) ) == 2 then
- Positions = {mainmemory.read_u8(0x975a+i), mainmemory.read_u8(0x9765+i) - 40}
- for n = 0,9 do
- if n == Mod then
- Colors={}
- Colors[0]=(0xb0ff2121)
- Colors[1]=(0xb0ffa217) Colors[2]=(0xb0ffa217)
- Colors[3]=(0xb0beff56) Colors[4]=(0xb0beff56) Colors[5]=(0xb0beff56) Colors[6]=(0xb0beff56)
- Colors[7]=(0xb031ff83) Colors[8]=(0xb031ff83)
- Colors[9] =(0xb00dffff)
- Box_Color = Colors[Mod] else
- Box_Color = (0xA0555555)
- end
- gui.drawRectangle(Positions[1] + ( (n-3) * 6 ) ,Positions[2],3,3,Box_Color,Box_Color)
- end
- gui.drawText(Positions[1]+ ( (Mod-4) * 6 ),Positions[2]-12,WonderArray[Mod+1],0xFFFFFFFF,10)
- end
- end
- end
- emu.frameadvance()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement