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

View file

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

View file

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