Fix sponsor splash
parent
e683d50dc5
commit
760e203456
|
@ -15,13 +15,16 @@ ___bootstrapped___ = True
|
||||||
import ugfx
|
import ugfx
|
||||||
from homescreen import *
|
from homescreen import *
|
||||||
import time
|
import time
|
||||||
|
from tilda import Buttons
|
||||||
|
|
||||||
# We ❤️ our sponsors
|
# We ❤️ our sponsors
|
||||||
|
init()
|
||||||
ugfx.display_image(0, 0, "shared/sponsors.png")
|
ugfx.display_image(0, 0, "shared/sponsors.png")
|
||||||
wait = 5
|
wait_until = time.ticks_ms() + 3000
|
||||||
while wait:
|
while time.ticks_ms() < wait_until:
|
||||||
wait-=1
|
time.sleep(0.1)
|
||||||
sleep_or_exit(0.5)
|
if Buttons.is_pressed(Buttons.BTN_A) or Buttons.is_pressed(Buttons.BTN_B) or Buttons.is_pressed(Buttons.BTN_Menu):
|
||||||
|
break
|
||||||
|
|
||||||
# Padding for name
|
# Padding for name
|
||||||
intro_height = 30
|
intro_height = 30
|
||||||
|
@ -37,7 +40,7 @@ logo_width = 56
|
||||||
max_name = 8
|
max_name = 8
|
||||||
|
|
||||||
# Background stuff
|
# Background stuff
|
||||||
init()
|
|
||||||
ugfx.clear(ugfx.html_color(0x800080))
|
ugfx.clear(ugfx.html_color(0x800080))
|
||||||
|
|
||||||
# Colour stuff
|
# Colour stuff
|
||||||
|
|
Loading…
Reference in New Issue