"Enable" 1080 1920
; "0xeae6e1" SoundVolume
SAVELOG "======================================= page_smoothie_suggest_and_process.xml ================================"
; On open
TopView "show"
; On open
Machine WakeUp
RootLayoutVisible 3 "show"
;include="ROOT/taobin_project/inter/tha/xml/multi/tab_menu_hide.lxml"
DEBUGVAR ToppingNewShow
TRY "/mnt/sdcard/coffeevending/taobin_project/xml/sometime/campaign_sound.ev"
TRY "/mnt/sdcard/coffeevending/taobin_project/inter/tha/xml/ticket_time_blending.ev"
DEBUGVAR OpenFromPageBoard
If OpenFromPageBoard = 1 Then
Var OpenFromPageBoard = 0
Var langnext1 = "true"
Var langnext2 = "true"
Var langnext3 = "true"
Var langnext4 = "true"
Var langnext5 = "true"
Var langnext6 = "true"
Var langnext7 = "true"
Var langnext8 = "true"
Var langnext9 = "true"
EndIf
Var NextPage = "-"
If Seeker = "curr" Then
Machine DoorLidClose
EndIf
CoinVending OFF
; Clear value
Topping "clear" "-"
Var DirImage = "ROOT/taobin_project/image/smoothie/proccess"
Var ProcessCupDebugText = ""
Var FromSmoothieProcess = "Enable"
Var FromPaymentCash = "Invisible"
Var FromBrewingProcess = "Invisible"
Var TimeOutHandPoint = 0
Var ShowHandPoint = "Invisible"
Var MotionHandPoint = 0
Var Show_btn_process = "Enable"
Var Showhelper = "Invisible"
Var EnableBtnLangWithHelper = 1
Var VideoSmoothieProcess = "ROOT/taobin_project/animation01/Taobin_empty.mp4"
DEBUGVAR TimeOutSmoothiesProcess
If TimeOutSmoothiesProcess < 100 Then
Var Second_x = 580
Var CountDown_x = 475
EndIf
If TimeOutSmoothiesProcess > 99 Then
Var Second_x = 600
Var CountDown_x = 460
EndIf
Var TextDoorButtonID = 001202
Var SmoothieProcessState = "idle"
Var CountDownCertainConfuse = 5
1000
;SAVELOG SoundPlaying
Var TimeOutHandPoint = TimeOutHandPoint + 1
If TextDoorButtonID = 001202 Then
If Show_btn_process = "Disable" Then
Var ShowHandPoint = "Invisible"
Else
If TimeOutHandPoint > 9 Then
If MotionHandPoint = 0 Then
Var ShowHandPoint = "Enable"
Var MotionHandPoint = 1
Else
Var ShowHandPoint = "Invisible"
Var MotionHandPoint = 0
EndIf
EndIf
EndIf
Else
Var ShowHandPoint = "Invisible"
EndIf
If BoxID = 210699 Then
If TextDoorButtonID = 001206 Then
If Show_btn_process = "Disable" Then
Var ShowHandPoint = "Invisible"
Else
If TimeOutHandPoint > 9 Then
If MotionHandPoint = 0 Then
Var ShowHandPoint = "Enable"
Var MotionHandPoint = 1
Else
Var ShowHandPoint = "Invisible"
Var MotionHandPoint = 0
EndIf
EndIf
EndIf
Else
Var ShowHandPoint = "Invisible"
EndIf
;Var Show_btn_process = "Disable"
EndIf
If Show_btn_process = "Disable" Then
Var VideoSmoothieProcess = "ROOT/taobin_project/animation01/Taobin_pause_art41.mp4"
Var Showhelper = "Enable"
Var Show_btn_help = "Invisible"
Else
If EnableHelperShow = 1 Then
Var Show_btn_help = "Enable"
Else
Var Show_btn_help = "Invisible"
EndIf
Var VideoSmoothieProcess = "ROOT/taobin_project/animation01/TaoBin2_draft02_art41.mp4"
Var Showhelper = "Invisible"
EndIf
If TimeOutSmoothiesProcess < 100 Then
Var Second_x = 580
Var CountDown_x = 475
EndIf
If TimeOutSmoothiesProcess > 99 Then
Var Second_x = 600
Var CountDown_x = 460
EndIf
DEBUGVAR TimeOutSmoothiesProcess
If TimeOutSmoothiesProcess > 0 Then
If Show_btn_process = "Disable" Then
; do not thing
Else
Var TimeOutSmoothiesProcess = TimeOutSmoothiesProcess - 1
EndIf
EndIf
If TimeOutSmoothiesProcess = 0 Then
Open "ROOT/taobin_project/inter/tha/xml/page_smoothie_suggest_and_process_3.xml"
EndIf
DEBUGVAR CH9991_Status
DEBUGVAR CH9992_Status
DEBUGVAR CH9993_Status
DEBUGVAR CH9994_Status
DEBUGVAR HaveCup
DEBUGVAR CupOnArm
DEBUGVAR DoorCupPosition
DEBUGVAR CupChecking
DEBUGVAR CupArmMove
DEBUGVAR buttonRemoveCup
DEBUGVAR SmoothieProcessState
DEBUGVAR AnyArmConfuse
DEBUGVAR SensorDoorCupStatus
If CH9992_Status = "READY" Then
If DoorCupPosition = "bottom" Then
If SmoothieProcessState = "idle" Then
Var TextDoorButtonID = 001202
Else
If SmoothieProcessState = "insert" Then
Var TextDoorButtonID = 001203
Else
EndIf
EndIf
Else
If DoorCupPosition = "top" Then
Var TextDoorButtonID = 001204
If SmoothieProcessState = "press" Then
Var SmoothieProcessState = "insert"
EndIf
Else
If SmoothieProcessState = "idle" Then
Else
If SmoothieProcessState = "press" Then
Else
Var TextDoorButtonID = 001205
EndIf
EndIf
EndIf
EndIf
If AnyArmConfuse = 1 Then
If CountDownCertainConfuse > 0 Then
Var CountDownCertainConfuse = CountDownCertainConfuse - 1
If CountDownCertainConfuse = 0 Then
Machine DoorClose
EndIf
EndIf
EndIf
Else
If CH9992_Status = "RUNNING" Then
Var SmoothieProcessState = "blendnow"
EndIf
EndIf
If SmoothieProcessState = "blendnow" Then
Var TextDoorButtonID = 001206
Var SelectDrink = "12-01-07-0001"
Var SelectSugarID = ""
Topping "Select" SelectDrink
Var SmoothieProcessState = "blending"
EndIf
If SmoothieProcessState = "blending" Then
Menu "set-name" "Smoothie "
Menu "set-image" Seeker.PictureDrink
Open "ROOT/taobin_project/inter/tha/xml/page_payment_pack_and_send.xml"
EndIf
DEBUGVAR TextDoorButtonID
Refresh
TimerReset
;DEBUGVAR Var [CH9992_Status] = RUNNING
0 380 1080 1540 "0xeae6e1"
DEBUGVAR LanguageShow
Var ButtonLanguageCurrentXPosition = 1015
Var ButtonLanguageCurrentYPosition = 458 - 38
Var ButtonLanguageListXPosition = 990
Var ButtonLanguageListYPosition = 450 - 38
Var LanguageButtonEnable = "Enable"
OpenInst 3 "ROOT/taobin_project/xml/topview2.xml"
RefreshAll
; back
;
;
;
; zone
;
;
;
; helper
;
; 420
; 652
; Showhelper
; 240
; 341
; "ROOT/taobin_project/image/page_help_center/helper.png"
;
; Showhelper
;
; 0
; 1080
; Showhelper
;
; 002409
;
;
; helper button
; helper button lead
0 1451 1080 85 Center TextDoorButtonID
; second time
"Enable" CountDown_x 1540 72
RobotoBold
0xFFFFFF TimeOutSmoothiesProcess "Enable" Second_x 1560 52
RobotoBold
0xFFFFFF "S" 725 1431 ShowHandPoint "ROOT/taobin_project/image/smoothie/proccess/hand_point.png"
; cancel
0 1724 1080 85 Center 002402 5 1880 24 Center 1080
RobotoRegular
0xFFFFFF ProcessCupDebugText 1 1
KanitTTF
22 1080 end 0xFF0000 "V01 "
Open "ROOT/taobin_project/xml/page_back_to_main.xml"
Var StrawGetMoreState = "Invisible"
Var bg_lidProblem_ST = "Enable"
Var GetLidButtonState2 = "Invisible"
Var bg_lidProblem_ST2 ="Enable"
Var XStraw = 376
Var EnableGetMoreStrawFileName2 = "Invisible"
Var bg_strawProblem_ST2 ="Enable"
Var MachineState_Result = 0
Var waitAckPay = 1
Var BREW_COUNT_DOWN_FROM_APP = "on"
Var CountDownBrewing = 122
Var MachineStage = "testing"
Var BREW_CNT = 122
Var InternationalEnable = 1
DEBUGVAR InternationalEnable
Var LanguageObjectShow = "Enable"
Var NoLangObjectShow = "Invisible"
Var Top2Timeout = 19
DEBUGVAR CountDownBrewing
;Open "/mnt/sdcard/coffeevending/taobin_project/xml/page_lid_straw.xml"
; Initial for jump to page_brewing3.xml
;Open "ROOT/taobin_project/inter/tha/xml/page_collect_point_1.lxml"
Open "ROOT/taobin_project/xml/page_check_member2.xml"
Open "ROOT/taobin_project/xml/page_check_member2_campaign.xml"
Open "ROOT/taobin_project/xml/page_before_check_member.xml"
Open "ROOT/taobin_project/xml/page_topup_credit3-TopupSuccess.xml"
Open "ROOT/taobin_project/xml/page_payment_credit3-TopupSuccess.xml"