sale on out of service mode

This commit is contained in:
miggaze 2021-08-16 11:24:01 +07:00
parent 2a666ba79a
commit 8c4c7fd928
3 changed files with 29 additions and 7 deletions

View file

@ -43,6 +43,7 @@
Var ShowButtonClick = "Enable"
Var ShowButtonClickFull = "Invisible"
Var ShowButtonClick2 = "Enable"
;SAVELOG DisplayType
@ -87,6 +88,8 @@
Var TaobinOnline = "false"
STRCONTAIN "9501" MaterialAvailable TaobinOnline
STRCONTAIN "9505" MaterialAvailable TermTemOnline
Var TaobinOnlineX = "true"
DEBUGVAR TaobinOnline
DEBUGVAR TermTemOnline
@ -96,7 +99,7 @@
Var CAMPAIGN1 = "false"
If TaobinOnline = "true" Then
If TaobinOnlineX = "true" Then
Var CountDownShowButton = 35
Var ShowButtonClickFull = "Invisible"
Var VideoMainPage = "ROOT/taobin_project/video/main_page.mp4"
@ -107,13 +110,20 @@
Var VideoMainPage = "ROOT/termtem_project/video/termtem01.mp4"
EndIf
If TaobinOnline = "false" Then
If TaobinOnlineX = "false" Then
If TermTemOnline = "false" Then
; TODO
Machine Initial
Open "/ROOT/xml/outservice.xml"
EndIf
EndIf
If NetworkStatus = "ACTIVATE" Then
Else
Var ShowButtonClick2 = "Invisible"
EndIf
@ -303,7 +313,7 @@
;SAVELOG CountDownShowButton
;SAVELOG ShowButtonClickFull
If TaobinOnline = "true" Then
If TaobinOnlineX = "true" Then
If CountDownShowButton = 31 Then
Var ShowButtonClickFull = "Enable"
@ -401,7 +411,7 @@
<EventEnd>
;SAVELOG ShowButtonClick
If TaobinOnline = "true" Then
If TaobinOnlineX = "true" Then
Var CountDownShowButton = 35
EndIf
@ -410,7 +420,7 @@
EndIf
Var CountDownPauseVideo = 6
If TaobinOnline = "true" Then
If TaobinOnlineX = "true" Then
TouchTapClose
EndIf

View file

@ -657,8 +657,11 @@
EndIf
If MachineStage = "close-maintenance" Then
SAVELOG "back_to_main from line > 488."
Open "ROOT/taobin_project/xml/page_drinkfail2.xml"
If MachineState_Result = 0 Then
SAVELOG "back_to_main from line > 488."
Var MachineState_Result = 2
;Open "ROOT/taobin_project/xml/page_drinkfail2.xml"
EndIf
EndIf
If MachineStage = "drink-success" Then

View file

@ -46,6 +46,13 @@
Machine DoorClose
If NetworkStatus = "ACTIVATE" Then
Var ShowButtonClick2 = "Enable"
Else
Var ShowButtonClick2 = "Invisible"
EndIf
</EventOpen>
<Timeout> 1000 </Timeout>
<EventTimeout>
@ -222,6 +229,7 @@
<Button>
<X> 392 </X>
<Y> 424 </Y>
<State> ShowButtonClick2 </State>
<Filename> Var(DirImage + "/bn_main_page_member.png") </Filename>
<FilenamePress> Var(DirImage + "/bp_main_page_member.png") </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
@ -236,6 +244,7 @@
<Button>
<X> 696 </X>
<Y> 424 </Y>
<State> ShowButtonClick2 </State>
<Filename> Var(DirImage + "/bn_main_page_topup.png") </Filename>
<FilenamePress> Var(DirImage + "/bp_main_page_topup.png") </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>