Do offline

This commit is contained in:
wanlop run 2024-07-11 15:49:47 +07:00
parent e261359202
commit db807bb234
5 changed files with 405 additions and 3 deletions

View file

@ -1,3 +1,6 @@
<BeginX>28</BeginX>
<BeginY>255</BeginY>
<OverrideBackground> "ROOT/ui/bg_main_menu2.png"</OverrideBackground>
<Page>
<Width> 1024 </Width>
@ -27,6 +30,7 @@
If CountryName = "Thailand" Then
Play "/ROOT/sounds/outofservice.wav"
EndIf
Var OfflinePageXMLTimeout = 0
</EventOpen>
<EventTimeout>
If BatteryStatus = "LOW" Then
@ -38,10 +42,19 @@
DEBUGVAR NetworkStatus
If SELLSTATUS = "DEACTIVE" Then
TimerReset
Else
Open "/ROOT/xml/main.xml"
EndIf
DEBUGVAR OfflinePageXMLTimeout
If OfflinePageXMLTimeout > 6 Then
Open "/ROOT/xml/offline.xml"
EndIf
Var OfflinePageXMLTimeout = OfflinePageXMLTimeout + 1
TimerReset
</EventTimeout>
<EventNetDown>
Open "/ROOT/xml/outservice.xml"