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

@ -26,4 +26,9 @@
If BoxID = 201729 Then
Var EnableMultiInstanceFromBoxID = 1
EndIf
If BoxID = 210699 Then
Var EnableMultiInstanceFromBoxID = 1
EndIf

View file

@ -0,0 +1,2 @@
OpenInst 15 "ROOT/taobin_project/inter/tha/xml/topview_helper.lxml"
RootLayoutVisible 15 "show"

View file

@ -79,7 +79,7 @@ Var InstanceTabOpenFile9 = InstanceTabOpenFile9 + "/page_catalog_group_frozen_fr
Var InstanceTabOpenFile11 = "ROOT/taobin_project/inter/tha/xml/multi/start_up_inst_dummy.lxml"
Var InstanceTabOpenFile12 = "ROOT/taobin_project/inter/tha/xml/multi/start_up_inst_dummy.lxml"
Var InstanceTabOpenFile12 = "ROOT/taobin_project/inter/tha/xml/topview_helper.lxml"
Var InstanceTabOpenFile10 = "ROOT/taobin_project/inter/tha/xml/multi/start_up_inst_dummy.lxml"
Var InstanceTabOpenFile13 = "ROOT/taobin_project/inter/tha/xml/multi/tab_menu.lxml"

View file

@ -12,6 +12,9 @@
TopView "show"
; On open
; helper
RootLayoutVisible 15 "hide"
Machine WakeUp
;include="ROOT/taobin_project/inter/tha/xml/multi/tab_menu_hide.lxml"

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,899 @@
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
<Background> "0xeae6e1" </Background>
<Volume> SoundVolume </Volume>
<EventOpen>
SAVELOG "======================================= Help Center ================================"
RootLayoutVisible 3 "show"
Var Timeout = 0
Var TelephoneNumber = ""
Var ShowTextNumber = "Enable"
Var ShowErrorText = "Invisible"
Var ShowErrorText2 = "Invisible"
Var Tel_Confirm_State = "Invisible"
</EventOpen>
<Timeout> 1000 </Timeout>
<EventTimeout>
If ReadyForBrew = "false" Then
SAVELOG "Back to main1"
Open "ROOT/taobin_project/xml/page_back_to_main.xml"
EndIf
DEBUGVAR Timeout
DEBUGVAR PayOK
DEBUGVAR ChangeOK
DEBUGVAR CancelFlag
If CreditCardButtonState = "Invisible" Then
Else
Var X_CASH1 = 216 - 113
Var X_CASH2 = 439 - 113
Var X_CASH3 = 664 - 113
EndIf
If CamFlag = 1 Then
Var CamCount = CamCount + 1
If CamCount > 2 Then
facecompare 10
Var CamFlag = 0
Var CamCount = 0
EndIf
EndIf
If AdultState2 = "Enable" Then
Var countAdultS2 = countAdultS2 + 1
If countAdultS2 > 60 Then
Var AdultState2 = "Invisible"
Var AdultState3 = "Enable"
EndIf
Else
Var countAdultS2 = 0
EndIf
Var Timeout = Timeout + 1
If Timeout >= 120 Then
Var alphaState = "Invisible"
Var cancelButtonQRPopupState = "Invisible"
Var PopupTimeoutEnable = "Invisible"
Var QRCodeImageState = "Invisible"
If RoadShow = "true" Then
Else
Var TaobinCreditButtonState = "Disable"
Var EWalletButtonState = "Disable"
EndIf
Var LOADING_STATE = "Invisible"
Var QRErrorState = "Invisible"
EndIf
If Timeout > 210 Then
If ActionOKCase = 1 Then
Var PayInfoCFlag = 1
EndIf
EndIf
If PayInfoCFlag = 1 Then
If Seeker.CodeChannel = 1 Then
Var SessionID2 = SelectSlot + ":"
Var SessionID2 = SessionID2 + Seeker.ExtendData
Var CreditAmount1 = ""
Var ServiceAmountFlow = ""
Var TelephoneNumber = "0899999999"
Var ServiceType = "coffee"
Var ECommerce = ""
Var ECommerce = ECommerce + PriceDrink
Var ECommerce = ECommerce + "/"
Var ECommerce = ECommerce + DiscountDrink
Var ECommerce = ECommerce + "/"
Var ECommerce = ECommerce + SessionID2
Var ECommerce = ECommerce + "/"
Var ECommerce = ECommerce + SelectDrink
Var ECommerce = ECommerce + "/"
Var ECommerce = ECommerce + Seeker.VendingCode
Var ECommerce = ECommerce + "/"
Var ECommerce = ECommerce + Seeker.CodeNumber
Var ECommerce = ECommerce + "/"
Var ECommerce = ECommerce + "C:"
Var ECommerce = ECommerce + Seeker.IntVendingCampaign
Var ServiceParameter = "max"
Var ServiceCharge = 0
Var AccountType = "new"
Var testservice = "kbank"
Var tc = ""
Var GetScore = ""
Var OperatorName = ""
Var SessionID = ""
GetPayInfo TelephoneNumber ECommerce ServiceType ServiceParameter SessionID OperatorName CreditAmount1 ServiceAmountFlow GetScore tc
;Var Timeout = 0
EndIf
If Seeker = "curr" Then
If PressCancel_CashPopup = 2 Then
Open "ROOT/taobin_project/xml/page_payment.xml"
EndIf
Open "ROOT/taobin_project/xml/page_catalog.xml"
Else
If PressCancel_CashPopup = 2 Then
Open "ROOT/taobin_project/xml/page_payment.xml"
EndIf
Open "ROOT/taobin_project/xml/page_brewing3Conti.xml"
EndIf
EndIf
If TestLoopMakeDrink = 1 Then
MakeDrinkV1 SelectDrink SelectSugarID
Open "ROOT/taobin_project/xml/page_thankyou.xml"
EndIf
If CoinInOK = 1 Then
Var CoinInCounter = CoinInCounter + 1
If CoinInCounter = 1 Then
SAVELOG "CoinInOk OK"
;Var ChangeOK = 1
Var Timeout = 180
Var PayOK = 1
EndIf
EndIf
Var stringLog = "Timeout " + Timeout
Var stringLog = stringLog + " PayOK"
Var stringLog = stringLog + PayOK
If Timeout > 180 Then
If PayOK = 1 Then
If Seeker = "curr" Then
If New_Payment = 1 Then
__CMD "SetPay" "coffee-payment" Seeker.VendingTSID Seeker.ORDER_ID
EndIf
MakeDrinkV1 SelectDrink SelectSugarID
Var TxRef1 = ""
CreateTxRef1 TxRef1
Else
Var TxRef1 = ""
CreateTxRef1 TxRef1
Var DrinkPaid = SelectDrink
Var PaidPaymentFromNextStage = 1
EndIf
Open "ROOT/taobin_project/xml/page_thankyou.xml"
Else
If CancelFlag = 0 Then
SAVELOG "Timeout > 180 s."
If ViewBill > 0 Then
CoinVending BILLREJECT
EndIf
CoinVending OFF
Var CancelFlag = 1
Var cancelState = "Enable"
If CashlessPayFlag = 1 Then
Var CashlessPayFlag = 0
If KBankCashlessMachine = 1 Then
Else
CashlessReq CANCEL Seeker.CashlessVendingTrackNumber
EndIf
EndIf
Var CancelCounter = 0
If CoinAmount = 0 Then
If Seeker.IntVendingCredit > 0 Then
Var BmiYear = Seeker.IntVendingCredit
Var GetScore = "useCredit"
AddData 24 Seeker.TNumberTaobinCredit BmiYear PointCrm GetScore
Var Seeker.IntVendingCredit = 0
Var Seeker.CurrCreditUse = 0
EndIf
If Seeker.IntVendingCampaign = 0 Then
VendingQR OFF
If Seeker = "curr" Then
Open "ROOT/taobin_project/xml/page_catalog.xml"
Else
Open "ROOT/taobin_project/xml/page_brewing3Conti.xml"
EndIf
EndIf
EndIf
EndIf
EndIf
EndIf
If CancelFlag = 1 Then
If Seeker.IntVendingCredit > 0 Then
Var BmiYear = Seeker.IntVendingCredit
Var GetScore = "useCredit"
AddData 24 Seeker.TNumberTaobinCredit BmiYear PointCrm GetScore
Var Seeker.IntVendingCredit = 0
Var Seeker.CurrCreditUse = 0
EndIf
Var CancelCounter = CancelCounter + 1
If CancelCounter = CancelNumber Then
;Change CoinAmount
If CoinAmount > 0 Then
If Seeker.StoreCreditFlag = 1 Then
Var ChangeOK = 1
Else
Change CoinAmount
EndIf
Else
If ActionOKCase = 0 Then
Var ActionOKCase = 1
Var PayInfoCFlag = 1
EndIf
If PressCancel_CashPopup = 1 Then
Var PressCancel_CashPopup = 2
EndIf
EndIf
VendingQR OFF
EndIf
If CancelCounter >= 43 Then
Var ChangeOK = 1
EndIf
; This copy in file menu_catalog.xml
If ChangeOK = 1 Then
If ActionOKCase = 0 Then
If Seeker.TNumberTaobinCredit = "" Then
Var TelephoneNumber = "0899999999"
Var PayO2 = ""
Else
Var TelephoneNumber = Seeker.TNumberTaobinCredit
Var PayO2 = Seeker.CoffeePinNumber
EndIf
Var VendingDiscount = 0
Var VendingCampaign = 0
Var ServiceType = "credit"
Var SessionID2 = SelectDrink
Var ServiceCredit = "coffee"
Var PayDetail2 = Seeker.PayDetail2
Pay ServiceType TelephoneNumber ServiceCredit SuggestID SessionID2 ServiceAmount2 ServiceCharge Donate
Var PayCredit = 1
Var ActionOKCase = 1
If Seeker = "curr" Then
If Seeker.IntVendingCampaign = 0 Then
If Seeker = "curr" Then
Open "ROOT/taobin_project/xml/page_catalog.xml"
Else
Open "ROOT/taobin_project/xml/page_brewing3Conti.xml"
EndIf
EndIf
Else
;wait ack
EndIf
EndIf
EndIf
EndIf
;Var CoinInCounter = CoinInCounter + 1
;If CoinInOK = 1 Then
; If CoinInCounter = 3 Then
;
; Var RemainAmount = PayAmount - CoinAmount
; If CoinAmount >= PayAmount Then
; Var Canout = CoinAmount - PayAmount
; If Canout > 0 Then
; Change Canout
; Else
; Var ChangeOK = 1
; EndIf
;
; Var Timeout = 118
; Var PayOK = 1
;
; MakeDrinkV1 SelectDrink SelectSugarID
;
; Open "ROOT/taobin_project/xml/page_thankyou.xml"
;
; EndIf
; EndIf
;EndIf
If CancelingPopupFlag = "Enable" Then
Var CancelingPopupCountDown = CancelingPopupCountDown + 1
DEBUGVAR CancelingPopupCountDown
If CancelingPopupCountDown > 3 Then
If SendCancelActionFlag = 0 Then
SAVELOG "Send Canceled Popup"
Var SendCancelActionFlag = 1
If QRPopupOpenFlag = 1 Then
VendingQR OFF
EndIf
If ReqPayInfoFromCashOther = 2 Then
DEBUGVAR "CashlessReq OFF "" by user"
CashlessReq OFF Seeker.CashlessVendingTrackNumber
EndIf
If CashlessPayFlag = 1 Then
Var CashlessPayFlag = 0
If KBankCashlessMachine = 1 Then
Else
CashlessReq CANCEL Seeker.CashlessVendingTrackNumber
EndIf
EndIf
EndIf
EndIf
If CancelingPopupCountDown > 5 Then
SAVELOG "Close Cancel Popup"
Var CancelingPopupFlag = "Invisible"
Var alphaState = "Invisible"
Var SendCancelActionFlag = 0
EndIf
EndIf
If KBankCashlessMachine = 1 Then
If alphaState = "Enable" Then
If ReqPayInfoFromCashOther = 2 Then
If PopupTimeoutEnable = "Enable" Then
If PopupTimeout > 0 Then
Var PopupTimeout = PopupTimeout - 1
Else
Var PopupTimeoutEnable = "Invisible"
Var cancelButtonQRPopupState = "Enable"
EndIf
EndIf
EndIf
EndIf
EndIf
Refresh
TimerReset
</EventTimeout>
<EventLanguageOnChange>
DEBUGVAR LanguageShow
;inter-image
If LanguageShow = "ENG" Then
EndIf
If LanguageShow = "THAI" Then
EndIf
If LanguageShow = "MYANMAR" Then
EndIf
If LanguageShow = "MSC" Then
EndIf
OpenInst 3 "ROOT/taobin_project/xml/topview2.xml"
RefreshAll
</EventLanguageOnChange>
; back
<Button>
<X> 19 </X>
<Y> 420 </Y>
<Filename> "ROOT/taobin_project/image/page2/bn_back_arrow.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page2/bn_back_arrow.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
If Seeker = "next" Then
RootLayoutVisible 3 "hide"
Open "ROOT/taobin_project/xml/page_brewing3Conti.xml"
Else
If BoxID = 210699 Then
OpenInst 3 "ROOT/taobin_project/xml/topview2.xml"
OpenInst 15 "/mnt/sdcard/coffeevending/taobin_project/inter/tha/xml/page_help_center.lxml"
Else
Open "ROOT/taobin_project/xml/page_back_to_main.xml"
EndIf
EndIf
</EventClick>
</Button>
<Text>
<X> 300 </X>
<Y> 420 </Y>
<Width> 500 </Width>
<Height> 72 </Height>
<Language>
<ID> 002300 </ID>
</Language>
</Text>
; helper
<Image>
<X> 440 </X>
<Y> 552 </Y>
<Width> 210 </Width>
<Height> 311 </Height>
<Filename> "ROOT/taobin_project/image/page_help_center/helper.png" </Filename>
</Image>
<Text>
<X> 0 </X>
<Y> 900 </Y>
<Language>
<ID> 002353 </ID>
</Language>
</Text>
<Image>
<X> 257 </X>
<Y> 1035 </Y>
<Filename> "ROOT/taobin_project/image/page_help_center/img3.png" </Filename>
</Image>
<Image>
<X> 399 </X>
<Y> 1080 </Y>
<State> ShowTextNumber </State>
<Refresh> "Enable" </Refresh>
<Filename> "ROOT/taobin_project/image/page_help_center/text15.png" </Filename>
</Image>
<Image>
<X> 298 </X>
<Y> 1055 </Y>
<State> ShowTextNumber </State>
<Refresh> "Enable" </Refresh>
<Filename> "ROOT/taobin_project/image/page_help_center/Group.png" </Filename>
</Image>
<Button>
<X> 343 </X>
<Y> 1203 </Y>
<Filename> "ROOT/taobin_project/image/page_help_center/bn_1.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_help_center/bp_1.png" </FilenamePress>
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var Timeout = 0
Var TelephoneNumber = TelephoneNumber + "1"
Var ShowTextNumber = "Invisible"
Trim TelephoneNumber MaxPhoneNumber
StrLen TelephoneNumber TelNumLen
If TelNumLen >= MinPhoneNumber Then
Var Tel_Confirm_State = "Enable"
EndIf
Var ShowErrorText = "Invisible"
Var ShowErrorText2 = "Invisible"
TimerReset
Refresh
</EventClick>
</Button>
<Button>
<X> 487 </X>
<Y> 1203 </Y>
<Filename> "ROOT/taobin_project/image/page_help_center/bn_2.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_help_center/bp_2.png" </FilenamePress>
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var Timeout = 0
Var TelephoneNumber = TelephoneNumber + "2"
Var ShowTextNumber = "Invisible"
Trim TelephoneNumber MaxPhoneNumber
TimerReset
Refresh
StrLen TelephoneNumber TelNumLen
If TelNumLen >= MinPhoneNumber Then
Var Tel_Confirm_State = "Enable"
EndIf
Var ShowErrorText = "Invisible"
Var ShowErrorText2 = "Invisible"
TimerReset
Refresh
</EventClick>
</Button>
<Button>
<X> 630 </X>
<Y> 1203 </Y>
<Filename> "ROOT/taobin_project/image/page_help_center/bn_3.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_help_center/bp_3.png" </FilenamePress>
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var Timeout = 0
Var TelephoneNumber = TelephoneNumber + "3"
Var ShowTextNumber = "Invisible"
Trim TelephoneNumber MaxPhoneNumber
TimerReset
Refresh
StrLen TelephoneNumber TelNumLen
If TelNumLen >= MinPhoneNumber Then
Var Tel_Confirm_State = "Enable"
EndIf
Var ShowErrorText = "Invisible"
Var ShowErrorText2 = "Invisible"
TimerReset
Refresh
</EventClick>
</Button>
<Button>
<X> 343 </X>
<Y> 1317 </Y>
<Filename> "ROOT/taobin_project/image/page_help_center/bn_4.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_help_center/bp_4.png" </FilenamePress>
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var Timeout = 0
Var TelephoneNumber = TelephoneNumber + "4"
Var ShowTextNumber = "Invisible"
Trim TelephoneNumber MaxPhoneNumber
TimerReset
Refresh
StrLen TelephoneNumber TelNumLen
If TelNumLen >= MinPhoneNumber Then
Var Tel_Confirm_State = "Enable"
EndIf
Var ShowErrorText = "Invisible"
Var ShowErrorText2 = "Invisible"
TimerReset
Refresh
</EventClick>
</Button>
<Button>
<X> 487 </X>
<Y> 1317 </Y>
<Filename> "ROOT/taobin_project/image/page_help_center/bn_5.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_help_center/bp_5.png" </FilenamePress>
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var Timeout = 0
Var TelephoneNumber = TelephoneNumber + "5"
Var ShowTextNumber = "Invisible"
Trim TelephoneNumber MaxPhoneNumber
TimerReset
Refresh
StrLen TelephoneNumber TelNumLen
If TelNumLen >= MinPhoneNumber Then
Var Tel_Confirm_State = "Enable"
EndIf
Var ShowErrorText = "Invisible"
Var ShowErrorText2 = "Invisible"
TimerReset
Refresh
</EventClick>
</Button>
<Button>
<X> 630 </X>
<Y> 1317 </Y>
<Filename> "ROOT/taobin_project/image/page_help_center/bn_6.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_help_center/bp_6.png" </FilenamePress>
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var Timeout = 0
Var TelephoneNumber = TelephoneNumber + "6"
Var ShowTextNumber = "Invisible"
Trim TelephoneNumber MaxPhoneNumber
TimerReset
Refresh
StrLen TelephoneNumber TelNumLen
If TelNumLen >= MinPhoneNumber Then
Var Tel_Confirm_State = "Enable"
EndIf
Var ShowErrorText = "Invisible"
Var ShowErrorText2 = "Invisible"
TimerReset
Refresh
</EventClick>
</Button>
<Button>
<X> 343 </X>
<Y> 1431 </Y>
<Filename> "ROOT/taobin_project/image/page_help_center/bn_7.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_help_center/bp_7.png" </FilenamePress>
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var Timeout = 0
Var TelephoneNumber = TelephoneNumber + "7"
Var ShowTextNumber = "Invisible"
Trim TelephoneNumber MaxPhoneNumber
TimerReset
Refresh
StrLen TelephoneNumber TelNumLen
If TelNumLen >= MinPhoneNumber Then
Var Tel_Confirm_State = "Enable"
EndIf
Var ShowErrorText = "Invisible"
Var ShowErrorText2 = "Invisible"
TimerReset
Refresh
</EventClick>
</Button>
<Button>
<X> 487 </X>
<Y> 1431 </Y>
<Filename> "ROOT/taobin_project/image/page_help_center/bn_8.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_help_center/bp_8.png" </FilenamePress>
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var Timeout = 0
Var TelephoneNumber = TelephoneNumber + "8"
Var ShowTextNumber = "Invisible"
Trim TelephoneNumber MaxPhoneNumber
TimerReset
Refresh
StrLen TelephoneNumber TelNumLen
If TelNumLen >= MinPhoneNumber Then
Var Tel_Confirm_State = "Enable"
EndIf
Var ShowErrorText = "Invisible"
Var ShowErrorText2 = "Invisible"
TimerReset
Refresh
</EventClick>
</Button>
<Button>
<X> 630 </X>
<Y> 1431 </Y>
<Filename> "ROOT/taobin_project/image/page_help_center/bn_9.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_help_center/bp_9.png" </FilenamePress>
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var Timeout = 0
Var TelephoneNumber = TelephoneNumber + "9"
Var ShowTextNumber = "Invisible"
Trim TelephoneNumber MaxPhoneNumber
TimerReset
Refresh
StrLen TelephoneNumber TelNumLen
If TelNumLen >= MinPhoneNumber Then
Var Tel_Confirm_State = "Enable"
EndIf
Var ShowErrorText = "Invisible"
Var ShowErrorText2 = "Invisible"
TimerReset
Refresh
</EventClick>
</Button>
<Button>
<X> 487 </X>
<Y> 1545 </Y>
<Filename> "ROOT/taobin_project/image/page_help_center/bn_0.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_help_center/bp_0.png" </FilenamePress>
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var Timeout = 0
Var TelephoneNumber = TelephoneNumber + "0"
Trim TelephoneNumber MaxPhoneNumber
StrLen TelephoneNumber TelNumLen
If TelNumLen >= MinPhoneNumber Then
Var Tel_Confirm_State = "Enable"
EndIf
Var ShowTextNumber = "Invisible"
TimerReset
Refresh
Var ShowErrorText = "Invisible"
Var ShowErrorText2 = "Invisible"
TimerReset
Refresh
</EventClick>
</Button>
<Button>
<X> 630 </X>
<Y> 1545 </Y>
<Filename> "ROOT/taobin_project/image/page_help_center/bn_back-1.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_help_center/bp_back-1.png" </FilenamePress>
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var Timeout = 0
Trim TelephoneNumber -1
StrLen TelephoneNumber TelNumLen
If TelNumLen < MinPhoneNumber Then
Var Tel_Confirm_State = "Invisible"
EndIf
If TelNumLen = 0 Then
Var ShowTextNumber = "Enable"
EndIf
;Var ShowErrorText = "Invisible"
Var ShowErrorText2 = "Invisible"
TimerReset
Refresh
</EventClick>
</Button>
<Text>
<X> 0 </X>
<Y> 1060 </Y>
<Width> 1080 </Width>
<Align> Center </Align>
<Size> 48 </Size>
<Font> RobotoBlack </Font>
<Color> 0x513C2F </Color>
<Refresh> "Enable" </Refresh>
<Value> TelephoneNumber </Value>
<Format> Telnum-mask-1 </Format>
</Text>
; confirm next
<Button>
<X> 652 </X>
<Y> 1735 </Y>
<Refresh> "Enable" </Refresh>
<State> Tel_Confirm_State </State>
<Filename> "ROOT/taobin_project/image/page_help_center/bn_accept_help.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_help_center/bp_accept_help.png" </FilenamePress>
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Open "ROOT/taobin_project/inter/tha/xml/page_smoothie_suggest_and_process.xml"
</EventClick>
</Button>
<Text>
<X> 585 </X>
<Y> 1765 </Y>
<State> Tel_Confirm_State </State>
<Width> 500 </Width>
<Height> 75 </Height>
<Language>
<X> 0 </X>
<Y> 0 </Y>
<ID> 002352 </ID>
</Language>
</Text>
<Button>
<X> 64 </X>
<Y> 1735 </Y>
<Refresh> "Enable" </Refresh>
<Filename> "ROOT/taobin_project/image/page_help_center/bn_back_to_help.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_help_center/bn_back_to_help.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
OpenInst 3 "ROOT/taobin_project/xml/topview2.xml"
OpenInst 15 "/mnt/sdcard/coffeevending/taobin_project/inter/tha/xml/page_help_center.lxml"
</EventClick>
</Button>
<Text>
<X> 115 </X>
<Y> 1765 </Y>
<Width> 250 </Width>
<Height> 75 </Height>
<Language>
<X> 0 </X>
<Y> 0 </Y>
<ID> 002351 </ID>
</Language>
</Text>
<EventUnitTest1>
</EventUnitTest1>
</Popup>

View file

@ -0,0 +1,38 @@
<Popup>
<Width> 1080</Width>
<Height> 1920 </Height>
<EventOpen>
RootLayoutVisible 3 "show"
RootLayoutVisible 13 "hide"
;OpenInst 0 "/mnt/sdcard/coffeevending/taobin_project/xml/page_main_blank.xml"
Var Timeout = 0
</EventOpen>
<Timeout> 1000 </Timeout>
<EventTimeout>
DEBUGVAR Timeout
If Timeout > 66 Then
SAVELOG "Timeout"
TabMenuVisibleInst 99
If Seeker = "next" Then
Open "ROOT/taobin_project/xml/page_brewing3Conti.xml"
Else
SAVELOG "Back"
Open "ROOT/taobin_project/xml/page_back_to_main.xml"
EndIf
EndIf
Var Timeout = Timeout + 1
TimerReset
</EventTimeout>
</Popup>

View file

@ -55,7 +55,7 @@
Var Seeker.CollectPointMain = 1
Open "ROOT/taobin_project/xml/page_payment.xml"
;Open "ROOT/taobin_project/xml/page_thankyou.xml"
EndIf
@ -69,45 +69,46 @@
<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>
<Text>
<X> 0 </X>
<Y> 1337 </Y>
<Width> 1080 </Width>
<Height> 85 </Height>
<Align> Center </Align>
<Language>
<ID> 1201 </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>
<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>
Var SmoothieProcessState = "press"
__CMD "UseArm" "2" "-" "-"
Machine InsertCupAndOpen
Machine InsertCupAndOpen
</EventClick>
</Button>
<Text>
<X> 0 </X>
<Y> 1571 </Y>
<Y> 1451 </Y>
<Width> 1080 </Width>
<Height> 85 </Height>
<Align> Center </Align>
@ -116,4 +117,23 @@
</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>

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>

View file

@ -0,0 +1,484 @@
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
;<Background> "0xeae6e1" </Background>
<Volume> SoundVolume </Volume>
<EventOpen>
SAVELOG "======================================= page_smoothie_suggest_and_process_2.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 = ""
DEBUGVAR TimeOutSmoothiesProcess
If TimeOutSmoothiesProcess < 101 Then
If TimeOutSmoothiesProcess < 11 Then
Var CountDown_x_1 = 515
Var Second_x_1 = 560
Else
Var CountDown_x_1 = 485
Var Second_x_1 = 560
EndIf
EndIf
If TimeOutSmoothiesProcess > 98 Then
Var CountDown_x_1 = 485
Var Second_x_1 = 585
EndIf
Var TextDoorButtonID = 001202
Var SmoothieProcessState = "idle"
Var CountDownCertainConfuse = 5
</EventOpen>
<Timeout> 1000 </Timeout>
<EventTimeout>
;SAVELOG SoundPlaying
; time moving
If TimeOutSmoothiesProcess < 101 Then
If TimeOutSmoothiesProcess < 11 Then
Var CountDown_x_1 = 515
Var Second_x_1 = 560
Else
Var CountDown_x_1 = 485
Var Second_x_1 = 560
EndIf
EndIf
If TimeOutSmoothiesProcess > 98 Then
Var CountDown_x_1 = 485
Var Second_x_1 = 585
EndIf
DEBUGVAR TimeOutSmoothiesProcess
If TimeOutSmoothiesProcess > 0 Then
Var TimeOutSmoothiesProcess = TimeOutSmoothiesProcess - 1
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
</EventTimeout>
;DEBUGVAR Var [CH9992_Status] = RUNNING
<EventLanguageOnChange>
DEBUGVAR LanguageShow
If LanguageShow = "THAI" Then
EndIf
If LanguageShow = "ENG" Then
EndIf
If LanguageShow = "MYANMAR" Then
EndIf
If LanguageShow = "MSC" Then
EndIf
Var LanguageButtonEnable = "Enable"
OpenInst 3 "ROOT/taobin_project/xml/topview2.xml"
RefreshAll
</EventLanguageOnChange>
<Image>
<X> 0 </X>
<Y> 380 </Y>
<Width> 1080 </Width>
<Height> 1540 </Height>
<Color> "0xeae6e1" </Color>
</Image>
; back
<Button>
<X> 19 </X>
<Y> 420 </Y>
<Filename> "ROOT/taobin_project/image/page2/bn_back_arrow.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page2/bn_back_arrow.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
;Open "ROOT/taobin_project/xml/page_back_to_main.xml"
DEBUGVAR OpenFileXML
Open OpenFromXML
</EventClick>
</Button>
;
;
;
; zone
;
;
;
<Video>
<X> 350 </X>
<Y> 800 </Y>
<Width> 400 </Width>
<Height> 500 </Height>
<Refresh> "Reload" </Refresh>
<Loop> "true" </Loop>
<Filename> "ROOT/taobin_project/animation01/TaoBin2_draft02_art41.mp4" </Filename>
</Video>
<Text>
<X> 300 </X>
<Y> 420 </Y>
<Width> 500 </Width>
<Height> 72 </Height>
<Language>
<ID> 002400 </ID>
</Language>
</Text>
<Text>
<X> 0 </X>
<Y> 550 </Y>
<Language>
<ID> 002405 </ID>
</Language>
</Text>
<Text>
<X> 0 </X>
<Y> 1280 </Y>
<Language>
<ID> 002407 </ID>
</Language>
</Text>
; cancel
<Button>
<X> 210 </X>
<Y> 1500 </Y>
<Filename> "ROOT/taobin_project/image/smoothie/proccess/bn_cancel_smoothie.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/smoothie/proccess/bp_cancel_smoothie.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var TimeOutSmoothiesProcess = 120
OpenInst 3 "ROOT/taobin_project/xml/topview2.xml"
Open "ROOT/taobin_project/xml/page_back_to_main.xml"
</EventClick>
</Button>
<Text>
<X> 0 </X>
<Y> 1530 </Y>
<Width> 1080 </Width>
<Height> 85 </Height>
<Align> Center </Align>
<Language>
<ID> 002402 </ID>
</Language>
</Text>
; go back
<Button>
<X> 210 </X>
<Y> 1650 </Y>
<Filename> "ROOT/taobin_project/image/smoothie/proccess/bn_back_smoothie.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/smoothie/proccess/bp_back_smoothie.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
DEBUGVAR OpenFromXML
OpenInst 3 "ROOT/taobin_project/xml/topview2.xml"
Open OpenFromXML
</EventClick>
</Button>
<Text>
<X> 0 </X>
<Y> 1682 </Y>
<Width> 1080 </Width>
<Height> 85 </Height>
<Align> Center </Align>
<Language>
<ID> 002403 </ID>
</Language>
</Text>
; second time
<Text>
<Refresh> "Enable" </Refresh>
<X> CountDown_x_1 </X>
<Y> 1743 </Y>
<Width> 150 </Width>
<Height> 72 </Height>
<Size> 44 </Size>
<Font> RobotoBold </Font>
<Color> 0xFFFFFF </Color>
<Value> TimeOutSmoothiesProcess </Value>
</Text>
<Image>
<Refresh> "Enable" </Refresh>
<X> Second_x_1 </X>
<Y> 1760 </Y>
<Width> 23 </Width>
<Height> 30 </Height>
<Filename> "ROOT/taobin_project/image/smoothie/proccess/second.png" </Filename>
</Image>
<Text>
<X> 5 </X>
<Y> 1880 </Y>
<Size> 24 </Size>
<Align> Center </Align>
<Width> 1080 </Width>
<Font> RobotoRegular </Font>
<Color> 0xFFFFFF </Color>
<Value> ProcessCupDebugText </Value>
</Text>
<Text>
<X> 1 </X>
<Y> 1 </Y>
<Font> KanitTTF </Font>
<Size> 22 </Size>
<Width> 1080 </Width>
<Align> end </Align>
<Color> 0xFF0000 </Color>
<Value> "V01 "</Value>
</Text>
<EventUnitTest1>
Open "ROOT/taobin_project/xml/page_back_to_main.xml"
</EventUnitTest1>
<EventUnitTest4>
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"
</EventUnitTest4>
<EventUnitTest2>
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"
</EventUnitTest2>
; Initial for jump to page_brewing3.xml
<EventUnitTest3>
Open "ROOT/taobin_project/inter/tha/xml/page_collect_point_1.lxml"
Open "ROOT/taobin_project/xml/page_check_member2.xml"
</EventUnitTest3>
<EventUnitTest5>
Open "ROOT/taobin_project/xml/page_check_member2_campaign.xml"
</EventUnitTest5>
<EventUnitTest6>
Open "ROOT/taobin_project/xml/page_before_check_member.xml"
</EventUnitTest6>
<EventUnitTest7>
Open "ROOT/taobin_project/xml/page_topup_credit3-TopupSuccess.xml"
</EventUnitTest7>
<EventUnitTest8>
Open "ROOT/taobin_project/xml/page_payment_credit3-TopupSuccess.xml"
</EventUnitTest8>
</Popup>

View file

@ -0,0 +1,386 @@
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
;<Background> "0xeae6e1" </Background>
<Volume> SoundVolume </Volume>
<EventOpen>
SAVELOG "======================================= page_smoothie_suggest_and_process_3.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"
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 TimeOutSmoothiesProcess = 0
DEBUGVAR TimeOutSmoothiesProcess
Var SmoothieProcessState = "idle"
Var CountDownCertainConfuse = 5
</EventOpen>
<Timeout> 1000 </Timeout>
<EventTimeout>
;SAVELOG SoundPlaying
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
Refresh
TimerReset
</EventTimeout>
;DEBUGVAR Var [CH9992_Status] = RUNNING
<EventLanguageOnChange>
DEBUGVAR LanguageShow
If LanguageShow = "THAI" Then
Var warning_time_x = 220
Var warning_time_y = 570
EndIf
If LanguageShow = "ENG" Then
Var warning_time_x = 240
Var warning_time_y = 570
EndIf
If LanguageShow = "MYANMAR" Then
Var warning_time_x = 110
Var warning_time_y = 555
EndIf
If LanguageShow = "MSC" Then
Var warning_time_x = 350
Var warning_time_y = 570
EndIf
Var LanguageButtonEnable = "Enable"
OpenInst 3 "ROOT/taobin_project/xml/topview2.xml"
RefreshAll
</EventLanguageOnChange>
<Image>
<X> 0 </X>
<Y> 380 </Y>
<Width> 1080 </Width>
<Height> 1540 </Height>
<Color> "0xeae6e1" </Color>
</Image>
; back
<Button>
<X> 19 </X>
<Y> 420 </Y>
<Filename> "ROOT/taobin_project/image/page2/bn_back_arrow.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page2/bn_back_arrow.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
;Open "ROOT/taobin_project/xml/page_back_to_main.xml"
DEBUGVAR OpenFileXML
Open OpenFromXML
</EventClick>
</Button>
;
;
;
; zone
;
;
;
<Video>
<X> 350 </X>
<Y> 800 </Y>
<Width> 400 </Width>
<Height> 500 </Height>
<Refresh> "Reload" </Refresh>
<Loop> "true" </Loop>
<Filename> "ROOT/taobin_project/animation01/TaoBin2_draft02_art41.mp4" </Filename>
</Video>
; warning time
<Image>
<Refresh> "Enable" </Refresh>
<X> warning_time_x </X>
<Y> warning_time_y </Y>
<Filename> "ROOT/taobin_project/image/smoothie/proccess/clock.png" </Filename>
</Image>
<Text>
<X> 50 </X>
<Y> 550 </Y>
<Language>
<ID> 002408 </ID>
</Language>
</Text>
<Text>
<X> 0 </X>
<Y> 1280 </Y>
<Language>
<ID> 002406 </ID>
</Language>
</Text>
; cancel to home
<Button>
<X> 210 </X>
<Y> 1730 </Y>
<Filename> "ROOT/taobin_project/image/smoothie/proccess/bn_cancel_smoothie_2.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/smoothie/proccess/bn_cancel_smoothie.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var TimeOutSmoothiesProcess = 120
OpenInst 3 "ROOT/taobin_project/xml/topview2.xml"
Open "ROOT/taobin_project/xml/page_back_to_main.xml"
</EventClick>
</Button>
<Text>
<X> 0 </X>
<Y> 1760 </Y>
<Width> 1080 </Width>
<Height> 85 </Height>
<Align> Center </Align>
<Language>
<ID> 002404 </ID>
</Language>
</Text>
<Text>
<X> 5 </X>
<Y> 1880 </Y>
<Size> 24 </Size>
<Align> Center </Align>
<Width> 1080 </Width>
<Font> RobotoRegular </Font>
<Color> 0xFFFFFF </Color>
<Value> ProcessCupDebugText </Value>
</Text>
<Text>
<X> 1 </X>
<Y> 1 </Y>
<Font> KanitTTF </Font>
<Size> 22 </Size>
<Width> 1080 </Width>
<Align> end </Align>
<Color> 0xFF0000 </Color>
<Value> "V01 "</Value>
</Text>
<EventUnitTest1>
Open "ROOT/taobin_project/xml/page_back_to_main.xml"
</EventUnitTest1>
<EventUnitTest4>
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"
</EventUnitTest4>
<EventUnitTest2>
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"
</EventUnitTest2>
; Initial for jump to page_brewing3.xml
<EventUnitTest3>
;Open "ROOT/taobin_project/inter/tha/xml/page_collect_point_1.lxml"
Open "ROOT/taobin_project/xml/page_check_member2.xml"
</EventUnitTest3>
<EventUnitTest5>
Open "ROOT/taobin_project/xml/page_check_member2_campaign.xml"
</EventUnitTest5>
<EventUnitTest6>
Open "ROOT/taobin_project/xml/page_before_check_member.xml"
</EventUnitTest6>
<EventUnitTest7>
Open "ROOT/taobin_project/xml/page_topup_credit3-TopupSuccess.xml"
</EventUnitTest7>
<EventUnitTest8>
Open "ROOT/taobin_project/xml/page_payment_credit3-TopupSuccess.xml"
</EventUnitTest8>
</Popup>

View file

@ -177,6 +177,69 @@
TimerReset
</EventTimeout>
<EventLanguageOnChange>
DEBUGVAR LanguageShow
DEBUGVAR InternationalEnable
SAVELOG "EventLanguageOnChange menu -list"
If InternationalEnable = 1 Then
If CountryName = "Thailand" Then
Var show_eng_button_stage = "Invisible"
Var LanguageButtonEnable = "Enable"
EndIf
If CountryName = "HongKong" Then
Var show_eng_button_stage = "Invisible"
Var LanguageButtonEnable = "Invisible"
Var BtnLangToggleIndex = "Enable"
EndIf
Else
Var LanguageButtonEnable = "Invisible"
Var show_eng_button_stage = "Enable"
EndIf
If LanguageShow = "ENG" Then
Var showname_max_size = 58
Var warning_image_x = 220
Var warning_image_y = 1333
Var warning_text_x = 20
Var warning_text_y = 1312
Var text_payment_next_x = 132
EndIf
If LanguageShow = "THAI" Then
Var showname_max_size = 68
Var warning_image_x = 335
Var warning_image_y = 1333
Var warning_text_x = 20
Var warning_text_y = 1312
Var text_payment_next_x = 142
EndIf
If LanguageShow = "MSC" Then
Var showname_max_size = 68
Var warning_image_x = 350
Var warning_image_y = 1333
Var warning_text_x = 20
Var warning_text_y = 1312
Var text_payment_next_x = 142
EndIf
If LanguageShow = "MYANMAR" Then
Var showname_max_size = 68
Var warning_image_x = 300
Var warning_image_y = 1333
Var warning_text_x = 10
Var warning_text_y = 1312
Var text_payment_next_x = 142
EndIf
;OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/inter/tha/xml/page_topping_frozen_fruit_select.lxml"
OpenInst 3 "ROOT/taobin_project/xml/topview2.xml"
RefreshAll
</EventLanguageOnChange>
<Image>
<X> 0 </X>
<Y> 380 </Y>
@ -266,7 +329,7 @@
; same
<Image>
<X> 374 </X>
<Y> 382 </Y>
<Y> 752 </Y>
<Width> 331 </Width>
<Height> 436 </Height>
<Filename> PictureDrink </Filename>
@ -291,27 +354,58 @@
; Text head
<Text>
<X> 0 </X>
<Y> 752 </Y>
<Y> 602 </Y>
<Width> 1080</Width>
<Align> Center </Align>
<Size> 68 </Size>
<MaxSize> showname_max_size </MaxSize>
<Size> Auto </Size>
<MaxLine> 2 </MaxLine>
<Font> KanitMediumTTF </Font>
<Color> 0x513C2F </Color>
<Value> showname </Value>
</Text>
; same
<Text>
<X> 0 </X>
<Y> 836 </Y>
<Y> 1082 </Y>
<Width> 1080</Width>
<Align> Center </Align>
<Size> 24 </Size>
<Font> KanitLightTTF </Font>
<Size> 68 </Size>
<Font> KanitMediumTTF </Font>
<Color> 0xEE8C62 </Color>
<Value> text_price_d3 </Value>
</Text>
; same
<Text>
<X> 25 </X>
<Y> 1232 </Y>
<Width> 1080</Width>
<Align> Center </Align>
<Size> 32 </Size>
<Font> KanitMediumTTF </Font>
<Color> 0x6F5F51 </Color>
<Value> showdesc </Value>
</Text>
; warning time
<Image>
<Refresh> "Enable" </Refresh>
<X> warning_image_x </X>
<Y> warning_image_y </Y>
<Filename> "ROOT/taobin_project/image/topping_inter/time.png" </Filename>
</Image>
<Text>
<Refresh> "Enable" </Refresh>
<X> warning_text_x </X>
<Y> warning_text_y </Y>
<Language>
<X> 0 </X>
<Y> 19 </Y>
<ID> 002290 </ID>
</Language>
</Text>
@ -324,33 +418,6 @@
; back
<Button>
<X> 44 </X>
<Y> 1785 </Y>
<Filename> "ROOT/taobin_project/image/topping_inter/bn_cancel.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/topping_inter/bp_cancel.png"</FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
If Seeker = "next" Then
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_blank.xml"
Open "ROOT/taobin_project/xml/page_brewing3Conti.xml"
Else
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert.xml"
Open "ROOT/taobin_project/xml/page_catalog.xml"
EndIf
</EventClick>
<Language>
<X> 53 </X>
<Y> 16 </Y>
<Width> 120 </Width>
<Height> 42 </Height>
<ID> 000074 </ID>
</Language>
</Button>
@ -437,10 +504,10 @@
; next
<Button>
<X> 673 </X>
<Y> 1785 </Y>
<Filename> "ROOT/taobin_project/image/topping_inter/bn_next.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/topping_inter/bp_next.png" </FilenamePress>
<X> 350 </X>
<Y> 1422 </Y>
<Filename> "ROOT/taobin_project/image/topping_inter/bn_next2.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/topping_inter/bp_next2.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
@ -637,8 +704,11 @@
Else
If SelectDrinkType = 1 Then
Var SmoothieToPayment = 1
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_blank.xml"
Open "ROOT/taobin_project/xml/page_payment.xml"
;Open "ROOT/taobin_project/spiral/xml/page_spiral_payment.xml"
Open "ROOT/taobin_project/xml/page_payment.xml"
;Open "ROOT/taobin_project/inter/tha/xml/page_smoothie_suggest_and_process.xml"
EndIf
EndIf
@ -669,12 +739,17 @@
</EventClick>
<Language>
<X> 64 </X>
<Y> 19 </Y>
<ID> 000073 </ID>
</Language>
</Button>
<Text>
<X> 420 </X>
<Y> 1442 </Y>
<Width> 250 </Width>
<Height> 75 </Height>
<Language>
<ID> 002291 </ID>
</Language>
</Text>
@ -990,5 +1065,8 @@
;
<EventUnitTest1>
OpenInst 2 "ROOT/taobin_project/inter/tha/xml/multi/page_catalog.lxml"
</EventUnitTest1>
</Page>

View file

@ -0,0 +1,5 @@
If TimeOutSmoothiesProcess > -1 Then
Var TimeOutSmoothiesProcess = TimeOutSmoothiesProcess
Else
Var TimeOutSmoothiesProcess = 120
EndIf

View file

@ -0,0 +1,52 @@
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
;<Background> "0xeae6e1" </Background>
<Volume> SoundVolume </Volume>
<EventOpen>
SAVELOG "======================================= Helper Icon ================================"
</EventOpen>
<EventOnShow>
;include="ROOT/taobin_project/inter/tha/xml/helper_show_and_refresh.lxml"
Var Timeout = 0
SetInstanceIgnoreTouch
DEBUGVAR SlientRefreshIndex
</EventOnShow>
<Timeout> 1000 </Timeout>
<EventTimeout>
Refresh
TimerReset
</EventTimeout>
; helper button
<Button>
<X> 920 </X>
<Y> 608 </Y>
<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 CurrHelpCenter = 1
OpenInst 3 "ROOT/taobin_project/xml/topview2.xml"
Open "ROOT/taobin_project/inter/tha/xml/page_help_center.lxml"
</EventClick>
</Button>
</Popup>