taobin_project/xml_main/offline.xml

76 lines
1.6 KiB
XML
Raw Normal View History

2024-07-11 15:49:47 +07:00
<BeginX>28</BeginX>
<BeginY>255</BeginY>
<OverrideBackground> "ROOT/ui/bg_main_menu2.png"</OverrideBackground>
2022-08-05 14:16:20 +07:00
<Page>
<Width> 1024 </Width>
<Height> 600 </Height>
<Background> "/ROOT/pictures/offline.bmp" </Background>
<Volume> SoundVolume </Volume>
<Timeout> 10000 </Timeout>
<EventOpen>
TopView "hide"
If DeactivateCause = "Deactive Coin-Sensor(BO)" Then
Open "/ROOT/xml/offline_coinsensor.xml"
EndIf
If DeactivateCause = "xml error" Then
Open "/ROOT/xml/offline_xml_error.xml"
EndIf
If NetworkStatus = "DEACTIVE" Then
If TopupType = "OIL" Then
If XMLProfile = "General_NoCharge_100Up" Then
If DeactivateCause = "credit full" Then
Var ImageStaus01 = "Disable"
Open "/ROOT/xml/main.xml"
EndIf
EndIf
EndIf
EndIf
2023-06-16 15:33:37 +07:00
If CountryName = "Thailand" Then
Play "/ROOT/sounds/outofservice.wav"
EndIf
2024-07-11 15:49:47 +07:00
Var OfflinePageXMLTimeout = 0
2022-08-05 14:16:20 +07:00
</EventOpen>
<EventTimeout>
If BatteryStatus = "LOW" Then
If PowerStatus = "BATTERY" Then
Shutdown
Open "/app/xml/shutdown_comp.xml"
EndIf
EndIf
DEBUGVAR NetworkStatus
2023-10-09 21:43:05 +07:00
If SELLSTATUS = "DEACTIVE" Then
2022-08-05 14:16:20 +07:00
2024-07-11 15:49:47 +07:00
2022-08-05 14:16:20 +07:00
Else
2023-10-09 21:43:05 +07:00
Open "/ROOT/xml/main.xml"
2022-08-05 14:16:20 +07:00
EndIf
2024-07-11 15:49:47 +07:00
DEBUGVAR OfflinePageXMLTimeout
If OfflinePageXMLTimeout > 6 Then
Open "/ROOT/xml/offline.xml"
EndIf
Var OfflinePageXMLTimeout = OfflinePageXMLTimeout + 1
TimerReset
2022-08-05 14:16:20 +07:00
</EventTimeout>
<EventNetDown>
Open "/ROOT/xml/outservice.xml"
</EventNetDown>
<EventSecurity>
Open "/ROOT/xml/security_alarm.xml"
</EventSecurity>
; image click for maintenance
<Image>
<X> 900 </X>
<Y> 0 </Y>
<Width> 120 </Width>
<Height> 120 </Height>
<Visible> False </Visible>
<EventClick> Open "/ROOT/xml/page_board.xml" </EventClick>
</Image>
</Page>