taobin_project/xml/page_pickup_cup_from_error.xml

190 lines
3.5 KiB
XML

<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
<Background> "0xeae6e1" </Background>
<Volume> SoundVolume </Volume>
<EventOpen>
Var Timeout = 0
Var Timeout2 = 0
SAVELOG "page_pickup_cup_from_error.xml"
DEBUGVAR EnableDoubleCupNoError
DEBUGVAR HURR_FOREVER
If show_eng = "true" Then
Var DirImage = "ROOT/taobin_project/image/user_take_cup_en/"
Else
Var DirImage = "ROOT/taobin_project/image/user_take_cup_th/"
EndIf
DEBUGVAR Seeker.showname
DEBUGVAR UserSelectProductCode
DEBUGVAR topping1
DEBUGVAR topping2
DEBUGVAR topping3
DEBUGVAR topping4
DEBUGVAR topping5
DEBUGVAR topping6
DEBUGVAR topping7
DEBUGVAR topping8
DEBUGVAR topping9
DEBUGVAR topping10
Var PayCredit = 1
</EventOpen>
<Timeout> 1000 </Timeout>
<EventTimeout>
Var Timeout = Timeout + 1
DEBUGVAR MachineStage
DEBUGVAR HaveCup
DEBUGVAR CHECKCUP
DEBUGVAR DoorCupPosition
DEBUGVAR Timeout
DEBUGVAR Timeout2
If Timeout = 3 Then
If DoorCupPosition = "bottom" Then
Machine RemoveCup
EndIf
EndIf
If show_eng = "true" Then
Else
If HaveCup = "true" Then
If InternationalEnable = 1 Then
Else
If Timeout = 4 Then
Play "/mnt/sdcard/coffeevending/taobin_project/sound_thai/remove_cup.mp3"
EndIf
If Timeout = 54 Then
Play "/mnt/sdcard/coffeevending/taobin_project/sound_thai/remove_cup.mp3"
EndIf
If Timeout = 90 Then
Play "/mnt/sdcard/coffeevending/taobin_project/sound_thai/remove_cup.mp3"
EndIf
EndIf
EndIf
EndIf
If Timeout > 180 Then
If DoorCupPosition = "bottom" Then
SAVELOG "Not pickup CUP"
Open "ROOT/taobin_project/xml/page_brewing3Conti.xml"
Else
Machine DoorClose
EndIf
EndIf
If Timeout > 240 Then
SAVELOG "Timeout 240 from can not close door"
Open "ROOT/taobin_project/xml/page_brewing3Conti.xml"
EndIf
; Do not change
;
If MachineStage = "show-menu" Then
If HaveCup = "false" Then
If DoorCupPosition = "bottom" Then
Var Timeout2 = Timeout2 + 1
EndIf
EndIf
EndIf
If DoorCupPosition = "bottom" Then
Var buttonRemoveCup = "Enable"
Else
Var buttonRemoveCup = "Invisible"
EndIf
If MachineStage = "close-maintenance" Then
Var buttonRemoveCup = "Disable"
EndIf
If Timeout2 = 1 Then
;include="ROOT/taobin_project/inc/select_drink_current.inc"
EndIf
If Timeout2 = 5 Then
MakeDrinkV1 UserSelectProductCode SelectSugarID
Var HURR_FOREVER = "F:1115"
Var MachineState_Result = 0
Var LastMakeDrinkResult = "-"
Open "ROOT/taobin_project/xml/page_brewing3Conti.xml"
EndIf
TimerReset
Refresh
</EventTimeout>
<EventChangeStatus>
If ChangeStatus = "payout-end" Then
Var MultiGo = 1
EndIf
</EventChangeStatus>
;include="ROOT/taobin_project/inc/video.inc"
<Image>
<X> 335 </X>
<Y> 1090 </Y>
<Filename> "ROOT/taobin_project/image/user_take_cup_th/img_take_cup.png" </Filename>
</Image>
<Image>
<X> 0 </X>
<Y> 609 </Y>
<Filename> Var(DirImage + "/img_take_cup_for_next_brew.png") </Filename>
</Image>
<Button>
<X> 212 </X>
<Y> 1673 </Y>
<State> buttonRemoveCup </State>
<Filename> Var( DirImage + "/bn_door_open_take_double_cup.png" ) </Filename>
<FilenamePress> Var( DirImage + "/bp_door_open_take_double_cup.png" ) </FilenamePress>
<FilenameDisable> Var( DirImage + "/bd_door_open_take_double_cup.png" ) </FilenameDisable>
<EventClick>
Machine RemoveCup
Machine DoorLidOpen
Refresh
</EventClick>
</Button>
<EventUnitTest1>
Var MachineStage = "show-menu"
</EventUnitTest1>
</Popup>