THAI INTER: Smoothie, Help center

This commit is contained in:
Ittipat Lusuk 2025-04-30 10:48:55 +07:00
parent aaeb2fa8bc
commit f9fea323bc
76 changed files with 3713 additions and 117 deletions

View file

@ -14,12 +14,16 @@
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
@ -52,7 +56,30 @@
Var ProcessCupDebugText = ""
Var TimeOutSmoothiesProcess = 120
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 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
@ -65,13 +92,80 @@
;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
Var TimeOutSmoothiesProcess = TimeOutSmoothiesProcess - 1
If Show_btn_process = "Disable" Then
; do not thing
Else
Var TimeOutSmoothiesProcess = TimeOutSmoothiesProcess - 1
EndIf
EndIf
If TimeOutSmoothiesProcess = 0 Then
Open "ROOT/taobin_project/xml/page_back_to_main.xml"
Open "ROOT/taobin_project/inter/tha/xml/page_smoothie_suggest_and_process_3.xml"
EndIf
@ -183,8 +277,11 @@
<EventLanguageOnChange>
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"
@ -201,7 +298,9 @@
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Open "ROOT/taobin_project/xml/page_back_to_main.xml"
;Open "ROOT/taobin_project/xml/page_back_to_main.xml"
DEBUGVAR OpenFileXML
Open OpenFromXML
</EventClick>
</Button>
@ -217,33 +316,77 @@
<Video>
<X> 0 </X>
<Y> 380 </Y>
<Y> 500 </Y>
<Refresh> "Reload" </Refresh>
<Loop> "true" </Loop>
<Filename> "ROOT/taobin_project/animation01/TaoBin2_draft02_art41.mp4" </Filename>
<Filename> VideoSmoothieProcess </Filename>
</Video>
; helper
;<Image>
;<X> 420 </X>
;<Y> 652 </Y>
;<State> Showhelper </State>
;<Width> 240 </Width>
;<Height> 341 </Height>
;<Filename> "ROOT/taobin_project/image/page_help_center/helper.png" </Filename>
;</Image>
; Showhelper
;<Text>
;<X> 0 </X>
;<Y> 1080 </Y>
;<State> Showhelper </State>
;<Language>
;<ID> 002409 </ID>
;</Language>
;</Text>
<Text>
<X> 0 </X>
<Y> 1337 </Y>
<Width> 1080 </Width>
<Height> 85 </Height>
<Align> Center </Align>
<Language>
<ID> 1201 </ID>
</Language>
</Text>
; helper button
<Button>
<X> 940 </X>
<Y> 420 </Y>
<State> Show_btn_help </State>
<Filename> "ROOT/taobin_project/image/page_payment/helper.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_payment/helper.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var OpenFromXML = "ROOT/taobin_project/inter/tha/xml/page_smoothie_suggest_and_process.xml"
OpenInst 3 "ROOT/taobin_project/xml/topview2.xml"
Open "ROOT/taobin_project/inter/tha/xml/page_help_center.lxml"
</EventClick>
</Button>
; helper button lead
<Button>
<X> 940 </X>
<Y> 420 </Y>
<State> Showhelper </State>
<Filename> "ROOT/taobin_project/image/page_help_center/help_lead.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_payment/helper.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var OpenFromXML = "ROOT/taobin_project/inter/tha/xml/page_smoothie_suggest_and_process.xml"
Open "ROOT/taobin_project/xml/page_drinkfail2.xml"
</EventClick>
</Button>
<Button>
<X> 77 </X>
<Y> 1531 </Y>
<Filename> Var(DirImage + "/bn_main_button.png") </Filename>
<FilenamePress> Var(DirImage + "/bp_main_button.png") </FilenamePress>
<X> 210 </X>
<Y> 1431 </Y>
<State> Show_btn_process </State>
<Filename> "ROOT/taobin_project/image/smoothie/proccess/bn_get_blend.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/smoothie/proccess/bp_get_blend.png" </FilenamePress>
<FilenameDisable> "ROOT/taobin_project/image/smoothie/proccess/bd_get_blend.png" </FilenameDisable>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
@ -255,7 +398,7 @@
<Text>
<X> 0 </X>
<Y> 1571 </Y>
<Y> 1451 </Y>
<Width> 1080 </Width>
<Height> 85 </Height>
<Align> Center </Align>
@ -264,28 +407,63 @@
</Language>
</Text>
; second time
<Text>
<Refresh> "Enable" </Refresh>
<X> CountDown_x </X>
<Y> 1540 </Y>
<Size> 72 </Size>
<Font> RobotoBold </Font>
<Color> 0xFFFFFF </Color>
<Value> TimeOutSmoothiesProcess </Value>
</Text>
<Text>
<Refresh> "Enable" </Refresh>
<X> Second_x </X>
<Y> 1560 </Y>
<Size> 52 </Size>
<Font> RobotoBold </Font>
<Color> 0xFFFFFF </Color>
<Value> "S" </Value>
</Text>
<Image>
<X> 725 </X>
<Y> 1431 </Y>
<State> ShowHandPoint </State>
<Filename> "ROOT/taobin_project/image/smoothie/proccess/hand_point.png" </Filename>
<Image>
; cancel
<Button>
<X> 337 </X>
<Y> 1743 </Y>
<Filename> Var(DirImage + "/bn_cancel.png") </Filename>
<FilenamePress> Var(DirImage + "/bp_cancel.png") </FilenamePress>
<X> 210 </X>
<Y> 1700 </Y>
<State> Show_btn_process </State>
<Filename> "ROOT/taobin_project/image/smoothie/proccess/bn_cancel_smoothie.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/smoothie/proccess/bp_cancel_smoothie.png" </FilenamePress>
<FilenameDisable> "ROOT/taobin_project/image/smoothie/proccess/bp_cancel_smoothie.png" </FilenameDisable>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Open "ROOT/taobin_project/xml/page_back_to_main.xml"
Var OpenFromXML = "ROOT/taobin_project/inter/tha/xml/page_smoothie_suggest_and_process.xml"
OpenInst 3 "ROOT/taobin_project/xml/topview2.xml"
Open "ROOT/taobin_project/inter/tha/xml/page_smoothie_suggest_and_process_2.xml"
</EventClick>
</Button>
<Text>
<X> 0 </X>
<Y> 1767 </Y>
<Y> 1724 </Y>
<Width> 1080 </Width>
<Height> 85 </Height>
<Align> Center </Align>
<Language>
<ID> 001210 </ID>
<ID> 002402 </ID>
</Language>
</Text>