AUS: Add New_Payment
|
Before Width: | Height: | Size: 60 KiB After Width: | Height: | Size: 60 KiB |
|
Before Width: | Height: | Size: 60 KiB After Width: | Height: | Size: 61 KiB |
|
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 28 KiB |
|
Before Width: | Height: | Size: 63 KiB After Width: | Height: | Size: 63 KiB |
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 16 KiB |
1534
inter/aus/xml/page_NewBrewing3.lxml
Normal file
987
inter/aus/xml/page_NewBrewing3Conti.lxml
Normal file
|
|
@ -0,0 +1,987 @@
|
|||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
<Background> "0xeae6e1" </Background>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventOpen>
|
||||
|
||||
Var ActionOKCase = 0
|
||||
Var Seeker = "curr"
|
||||
|
||||
If show_eng = "true" Then
|
||||
Var DirImage = "ROOT/taobin_project/image/page_payment_en/page_payment"
|
||||
Var DirImage2 = "ROOT/taobin_project/image/topping2_en"
|
||||
Var IMG_CNT = "ROOT/taobin_project/image/page_doing/img2_eng.png"
|
||||
Else
|
||||
Var DirImage = "ROOT/taobin_project/image/page_payment"
|
||||
Var DirImage2 = "ROOT/taobin_project/image/topping2"
|
||||
Var IMG_CNT = "ROOT/taobin_project/image/page_doing/img2.png"
|
||||
EndIf
|
||||
|
||||
Var next_pic_bn = DirImage + "/bn_add_order.png"
|
||||
Var next_pic_bp = DirImage + "/bp_add_order.png"
|
||||
Var text_next_order = DirImage + "/text_next_order.png"
|
||||
|
||||
Var topup_credit_bn = DirImage + "/bn_topup_credit.png"
|
||||
Var topup_credit_bp = DirImage + "/bp_topup_credit.png"
|
||||
|
||||
Var EnableTopupCreditBetweenBrew = "Invisible"
|
||||
|
||||
If NextOrder = "true" Then
|
||||
Var EnableSelectMenuBetweenBrew = "Invisible"
|
||||
Else
|
||||
Var EnableSelectMenuBetweenBrew = "Enable"
|
||||
EndIf
|
||||
|
||||
If GetFreeFromError = 1 Then
|
||||
Var EnableSelectMenuBetweenBrew = "Invisible"
|
||||
Var EnableTopupCreditBetweenBrew = "Invisible"
|
||||
EndIf
|
||||
|
||||
If EnableSelectMenuBetweenBrew = "Enable" Then
|
||||
Var EnableSelectMenuBetweenBrewBlink = "Enable"
|
||||
Else
|
||||
Var EnableSelectMenuBetweenBrewBlink = "Invisible"
|
||||
EndIf
|
||||
|
||||
|
||||
Var bg_strawlid = DirImage2 + "/bg_strawlidSmall.png"
|
||||
If Seeker.thankLidFlag = 1 Then
|
||||
Var bg_strawlid = DirImage2 + "/bg_strawSmall.png"
|
||||
Var LidStateX = "Invisible"
|
||||
EndIf
|
||||
|
||||
Var TimeoutWaitPay = 10
|
||||
|
||||
Var PayReference = ""
|
||||
Var PayType = "newpay"
|
||||
Var MachineState_Result = 0
|
||||
|
||||
If LastMakeDrinkResult = "success" Then
|
||||
Var MachineState_Result = 1
|
||||
EndIf
|
||||
|
||||
If LastMakeDrinkResult = "fail" Then
|
||||
Var MachineState_Result = 2
|
||||
EndIf
|
||||
|
||||
|
||||
Var ExtendData = Seeker.ExtendData
|
||||
Var SelectDrink = Seeker.selected_a_drink
|
||||
Var ServiceAmount2 = Seeker.ServiceAmount2
|
||||
Var PriceDrink = Seeker.ServiceAmount2
|
||||
|
||||
DEBUGVAR Seeker
|
||||
DEBUGVAR Seeker.selected_a_drink
|
||||
DEBUGVAR Seeker.ServiceAmount2
|
||||
DEBUGVAR Seeker.CashlessVendingTrackNumber
|
||||
|
||||
DEBUGVAR Seeker.CodeNumber
|
||||
|
||||
Var SessionID2 = SelectSlot + ":"
|
||||
Var SessionID2 = SessionID2 + ExtendData
|
||||
|
||||
|
||||
; On open move from page_brewing3.xml
|
||||
Var countClick2 = 0
|
||||
|
||||
Var Timeout = 0
|
||||
|
||||
Var PrintCoinAmount = 0
|
||||
|
||||
DEBUGVAR Seeker.TNumberTaobinMember
|
||||
DEBUGVAR Seeker.PointTaobinStr
|
||||
|
||||
If LedLidBlink = "true" Then
|
||||
Var LedLidBlink = "no"
|
||||
LED LedDoorLid Blink 255 255 255 255
|
||||
EndIf
|
||||
|
||||
|
||||
Var CreditReference = Seeker.CreditReferenceTmp
|
||||
Var VendingDiscount = Seeker.VendingDiscount
|
||||
Var VendingCampaign = Seeker.VendingCampaign
|
||||
Var TxReference = Seeker.TxRef1
|
||||
DEBUGVAR TxReference
|
||||
|
||||
|
||||
Var DirImage = "ROOT/taobin_project/image/complete/"
|
||||
Var next_pic_bg = DirImage + "/Preparing.png"
|
||||
|
||||
Var bg_strawlid_ST = "Invisible"
|
||||
Var bg_strawProblem_ST = "Invisible"
|
||||
Var StrawStateX = "Invisible"
|
||||
Var LidStateX = "Invisible"
|
||||
|
||||
If MachineState_Result > 0 Then
|
||||
Var EnableTopupCreditBetweenBrew = "Invisible"
|
||||
EndIf
|
||||
|
||||
Var CreditCardVoid = 0
|
||||
|
||||
DEBUGVAR ButtonGameCountDownState
|
||||
|
||||
DEBUGVAR ButtonGameCountDownState
|
||||
|
||||
SAVELOG "New brewing3 conti AUS"
|
||||
|
||||
</EventOpen>
|
||||
|
||||
|
||||
<EventActionOk>
|
||||
|
||||
If CreditCardVoid = 1 Then
|
||||
Var ChangeOK = 2
|
||||
EndIf
|
||||
|
||||
If ActionOKCase = 1 Then
|
||||
If Seeker.CodeChannel = 1 Then
|
||||
Var SessionID2 = SelectSlot + ":"
|
||||
Var SessionID2 = SessionID2 + ExtendData
|
||||
|
||||
DEBUGVAR SessionID2
|
||||
|
||||
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
|
||||
Var ActionOKCase = 2
|
||||
|
||||
SAVELOG "back_to_main from line > 142."
|
||||
Open "ROOT/taobin_project/xml/page_drinkfail2.xml"
|
||||
|
||||
Else
|
||||
|
||||
SAVELOG "back_to_main from line > 147."
|
||||
Open "ROOT/taobin_project/xml/page_drinkfail2.xml"
|
||||
EndIf
|
||||
|
||||
Else
|
||||
|
||||
|
||||
|
||||
EndIf
|
||||
|
||||
</EventActionOk>
|
||||
|
||||
<EventActionError>
|
||||
If ActionOKCase = 1 Then
|
||||
If Seeker.CodeChannel = 1 Then
|
||||
Var SessionID2 = SelectSlot + ":"
|
||||
Var SessionID2 = SessionID2 + ExtendData
|
||||
|
||||
DEBUGVAR SessionID2
|
||||
|
||||
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
|
||||
Var ActionOKCase = 2
|
||||
|
||||
SAVELOG "back_to_main from line > 204."
|
||||
Open "ROOT/taobin_project/xml/page_drinkfail2.xml"
|
||||
|
||||
Else
|
||||
SAVELOG "back_to_main from line > 173."
|
||||
Open "ROOT/taobin_project/xml/page_drinkfail2.xml"
|
||||
EndIf
|
||||
|
||||
Else
|
||||
|
||||
|
||||
|
||||
EndIf
|
||||
</EventActionError>
|
||||
|
||||
|
||||
<Timeout> 1000 </Timeout>
|
||||
<EventTimeout>
|
||||
|
||||
Var Timeout = Timeout + 1
|
||||
|
||||
If MOVE_CUP_TO_DOOR = "true" Then
|
||||
Var MOVE_CUP_TO_DOOR = "false"
|
||||
EndIf
|
||||
|
||||
If BREW_COUNT_DOWN_FROM_APP = "on" Then
|
||||
Var CountDownBrewing = BREW_CNT
|
||||
Else
|
||||
|
||||
If CountDownBrewing > 0 Then
|
||||
Var CountDownBrewing = CountDownBrewing - 1
|
||||
EndIf
|
||||
Endif
|
||||
|
||||
|
||||
If Timeout = 4 Then
|
||||
PlayLong "/mnt/sdcard/coffeevending/taobin_project/sounds/music1.mp3"
|
||||
EndIf
|
||||
|
||||
Var ShowCountDownBrewing = CountDownBrewing
|
||||
|
||||
|
||||
If Timeout > 540 Then
|
||||
SAVELOG "back_to_main from line > 217."
|
||||
Open "ROOT/taobin_project/xml/page_drinkfail2.xml"
|
||||
EndIf
|
||||
|
||||
|
||||
If Timeout > 480 Then
|
||||
Var MachineState_Result = 2
|
||||
EndIf
|
||||
|
||||
If ChangeFlag = 1 Then
|
||||
Var ChangeTimeout = ChangeTimeout + 1
|
||||
EndIf
|
||||
|
||||
If waitAckPay = 2 Then
|
||||
If Timeout > TimeoutWaitPay Then
|
||||
|
||||
If Seeker.CodeChannel = 1 Then
|
||||
Var SessionID2 = SelectSlot + ":"
|
||||
Var SessionID2 = SessionID2 + ExtendData
|
||||
|
||||
DEBUGVAR SessionID2
|
||||
|
||||
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
|
||||
|
||||
SAVELOG "back_to_main from line > 309."
|
||||
Open "ROOT/taobin_project/xml/page_drinkfail2.xml"
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
|
||||
If ChangeOK = 2 Then
|
||||
If ActionOKCase = 0 Then
|
||||
|
||||
If Seeker.TNumberTaobinCredit = "" Then
|
||||
Var TelephoneNumber = "0899999999"
|
||||
Var PayO2 = ""
|
||||
|
||||
If Seeker.TNumberTaobinMember = "" Then
|
||||
Else
|
||||
Var TelephoneNumber = Seeker.TNumberTaobinMember
|
||||
EndIf
|
||||
|
||||
Else
|
||||
Var TelephoneNumber = Seeker.TNumberTaobinCredit
|
||||
Var PayO2 = Seeker.CoffeePinNumber
|
||||
EndIf
|
||||
|
||||
|
||||
If HURR_FOREVER = "S:0" Then
|
||||
Var HURR_FOREVER = "F:1303"
|
||||
EndIf
|
||||
|
||||
|
||||
Var ServiceType = "coffee-refund"
|
||||
Var ServiceCredit = SelectDrink
|
||||
Var SuggestID = ""
|
||||
Var SessionID2 = ""
|
||||
|
||||
Var VendingDiscount = 0
|
||||
Var VendingCampaign = 0
|
||||
Var PayDetail = ""
|
||||
Var PayDetail2 = ""
|
||||
Var VendingOrderID = Seeker.ORDER_ID
|
||||
Var ServiceRefund = 0
|
||||
Var ServiceCharge = Seeker.ServiceCharge
|
||||
Pay ServiceType TelephoneNumber ServiceCredit SuggestID SessionID2 ServiceRefund ServiceCharge Donate
|
||||
|
||||
Var waitAckPay = 2
|
||||
Var TimeoutWaitPay = 45
|
||||
Var Timeout = 5
|
||||
Var ActionOKCase = 1
|
||||
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If ChangeTimeout > 30 Then
|
||||
If ActionOKCase = 0 Then
|
||||
If Seeker.TNumberTaobinCredit = "" Then
|
||||
Var TelephoneNumber = "0899999999"
|
||||
Var PayO2 = ""
|
||||
|
||||
If Seeker.TNumberTaobinMember = "" Then
|
||||
Else
|
||||
Var TelephoneNumber = Seeker.TNumberTaobinMember
|
||||
EndIf
|
||||
|
||||
Else
|
||||
Var TelephoneNumber = Seeker.TNumberTaobinCredit
|
||||
Var PayO2 = Seeker.CoffeePinNumber
|
||||
EndIf
|
||||
|
||||
|
||||
Var ServiceType = "coffee-refund"
|
||||
Var ServiceCredit = SelectDrink
|
||||
Var SuggestID = ""
|
||||
Var SessionID2 = ""
|
||||
|
||||
Var VendingDiscount = 0
|
||||
Var VendingCampaign = 0
|
||||
Var PayDetail = ""
|
||||
Var PayDetail2 = ""
|
||||
Var VendingOrderID = Seeker.ORDER_ID
|
||||
Var ServiceRefund = 0
|
||||
Var ServiceCharge = Seeker.ServiceCharge
|
||||
Pay ServiceType TelephoneNumber ServiceCredit SuggestID SessionID2 ServiceRefund ServiceCharge Donate
|
||||
|
||||
Var waitAckPay = 2
|
||||
Var TimeoutWaitPay = 45
|
||||
Var Timeout = 5
|
||||
Var ActionOKCase = 1
|
||||
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If ChangeOK = 3 Then
|
||||
If ActionOKCase = 0 Then
|
||||
|
||||
Var ActionOKCase = 1
|
||||
If Seeker.CodeChannel = 0 Then
|
||||
SAVELOG "back_to_main from line > 391."
|
||||
Open "ROOT/taobin_project/xml/page_drinkfail2.xml"
|
||||
EndIf
|
||||
|
||||
Var waitAckPay = 2
|
||||
Var TimeoutWaitPay = 45
|
||||
Var Timeout = 5
|
||||
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If MachineState_Result = 1 Then
|
||||
|
||||
;Var MachineState_Result = 2
|
||||
|
||||
EndIf
|
||||
|
||||
If MachineState_Result = 1 Then
|
||||
DEBUGVAR PaySuccessWithDaemonTask
|
||||
|
||||
If waitAckPay = 0 Then
|
||||
|
||||
Var waitAckPay = 0
|
||||
Var Timeout = 0
|
||||
|
||||
If Seeker.PayWithQR = 0 Then
|
||||
|
||||
If Seeker.CreditCard = 1 Then
|
||||
CashlessReq SUCCESS Seeker.CashlessVendingTrackNumber
|
||||
EndIf
|
||||
|
||||
Else
|
||||
|
||||
EndIf
|
||||
|
||||
EndIf
|
||||
|
||||
__CMD "clear-stock-data" 0 "-" "-"
|
||||
|
||||
Var ServiceSuccess = "yes"
|
||||
If waitAckPay = 0 Then
|
||||
|
||||
SAVELOG "waitAckPay = 0 Timeout"
|
||||
|
||||
Open "ROOT/taobin_project/xml/page_drinkok.xml"
|
||||
EndIf
|
||||
|
||||
EndIf
|
||||
|
||||
If MachineState_Result = 2 Then
|
||||
|
||||
SAVELOG MachineStage
|
||||
|
||||
If ErrTimeout = 0 Then
|
||||
Var ErrTimeout = 1
|
||||
|
||||
If Seeker.PayWithQR = 0 Then
|
||||
|
||||
If Seeker.CreditCard = 1 Then
|
||||
CashlessReq FAIL Seeker.CashlessVendingTrackNumber
|
||||
Var ChangeFlag = 1
|
||||
Var CreditCardVoid = 1
|
||||
Else
|
||||
|
||||
|
||||
If Seeker.CodeChannel = 0 Then
|
||||
If ChangeFlag = 0 Then
|
||||
Var ChangeFlag = 1
|
||||
|
||||
If Seeker.StoreCreditFlag = 1 Then
|
||||
Var ChangeOK = 2
|
||||
Else
|
||||
If GetFreeFromError = 1 Then
|
||||
Var ChangeOK = 2
|
||||
Else
|
||||
Change ServiceAmount2
|
||||
EndIf
|
||||
|
||||
EndIf
|
||||
|
||||
EndIf
|
||||
|
||||
Else
|
||||
|
||||
|
||||
|
||||
If ChangeFlag = 0 Then
|
||||
Var ChangeFlag = 1
|
||||
Var ServiceAmount3 = ServiceAmount2 - Seeker.IntVendingCampaign
|
||||
|
||||
If Seeker.StoreCreditFlag = 1 Then
|
||||
Var ChangeOK = 2
|
||||
Else
|
||||
Change ServiceAmount3
|
||||
EndIf
|
||||
|
||||
EndIf
|
||||
|
||||
|
||||
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
Else
|
||||
Var ChangeOK = 3
|
||||
EndIf
|
||||
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
|
||||
|
||||
DEBUGVAR LastMakeDrinkResult
|
||||
DEBUGVAR MachineStage
|
||||
|
||||
|
||||
If LastMakeDrinkResult = "success" Then
|
||||
Var MachineState_Result = 1
|
||||
EndIf
|
||||
|
||||
If LastMakeDrinkResult = "fail" Then
|
||||
Var MachineState_Result = 2
|
||||
EndIf
|
||||
|
||||
If MachineStage = "drink-success" Then
|
||||
Var MachineState_Result = 1
|
||||
EndIf
|
||||
|
||||
If MachineStage = "drink-failed" Then
|
||||
If RoadShow = "true" Then
|
||||
Open "ROOT/taobin_project/xml/page_back_to_error.xml"
|
||||
Else
|
||||
Var MachineState_Result = 2
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If MachineState_Result > 0 Then
|
||||
Var EnableSelectMenuBetweenBrew = "Invisible"
|
||||
Var EnableTopupCreditBetweenBrew = "Invisible"
|
||||
EndIf
|
||||
|
||||
If EnableSelectMenuBetweenBrew = "Enable" Then
|
||||
If EnableSelectMenuBetweenBrewBlink = "Enable" Then
|
||||
Var EnableSelectMenuBetweenBrewBlink = "Invisible"
|
||||
Else
|
||||
Var EnableSelectMenuBetweenBrewBlink = "Enable"
|
||||
EndIf
|
||||
|
||||
Else
|
||||
Var EnableSelectMenuBetweenBrewBlink = "Invisible"
|
||||
EndIf
|
||||
|
||||
DEBUGVAR CountUpBrewing
|
||||
; animation video loop
|
||||
If AnimationOn = "true" Then
|
||||
Var CountUpBrewing = CountUpBrewing + 1
|
||||
|
||||
Var SlotVideo = CountUpBrewing / AnimationVideoPlayTime
|
||||
|
||||
If PreviseStepVideo = SlotVideo Then
|
||||
;SAVELOG SlotVideo
|
||||
Else
|
||||
Var PreviseStepVideo = SlotVideo
|
||||
;SAVELOG PreviseStepVideo
|
||||
;SAVELOG SlotVideo
|
||||
;SAVELOG CountUpBrewing
|
||||
|
||||
;Var CountDownVideoTime = CountDownVideoTimeReload
|
||||
|
||||
Var StepVideo = SlotVideo + 2
|
||||
|
||||
;SAVELOG StepVideo
|
||||
|
||||
If StepVideo = 1 Then
|
||||
Var videoID = VideoID1
|
||||
EndIf
|
||||
If StepVideo = 2 Then
|
||||
Var videoID = VideoID2
|
||||
EndIf
|
||||
If StepVideo = 3 Then
|
||||
Var videoID = VideoID3
|
||||
EndIf
|
||||
If StepVideo = 4 Then
|
||||
Var videoID = VideoID4
|
||||
EndIf
|
||||
If StepVideo = 5 Then
|
||||
Var videoID = VideoID5
|
||||
EndIf
|
||||
If StepVideo = 6 Then
|
||||
Var videoID = VideoID6
|
||||
EndIf
|
||||
If StepVideo = 7 Then
|
||||
Var videoID = VideoID7
|
||||
EndIf
|
||||
If StepVideo = 8 Then
|
||||
Var videoID = VideoID8
|
||||
EndIf
|
||||
If StepVideo = 9 Then
|
||||
Var videoID = VideoID9
|
||||
EndIf
|
||||
|
||||
;SAVELOG videoID
|
||||
|
||||
If videoID = 0 Then
|
||||
|
||||
Else
|
||||
If videoID = "---" Then
|
||||
|
||||
Else
|
||||
|
||||
Var VideoPlayFile = VideoPath
|
||||
Var VideoPlayFile = VideoPlayFile + VideoFileBegin
|
||||
Var VideoPlayFile = VideoPlayFile + videoID
|
||||
Var VideoPlayFile = VideoPlayFile + VideoFileEnd
|
||||
|
||||
Var PictureFile = PicturePath
|
||||
Var PictureFile = PictureFile + PictureBegin
|
||||
Var PictureFile = PictureFile + videoID
|
||||
Var PictureFile = PictureFile + PictureEnd
|
||||
|
||||
DEBUGVAR VideoPlayFile
|
||||
DEBUGVAR PictureFile
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
|
||||
If IgnoreNetCore = "true" Then
|
||||
If CountDownBrewing = 0 Then
|
||||
SAVELOG "CountDownBrewing = 0"
|
||||
Open "ROOT/taobin_project/xml/page_drinkok.xml"
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
|
||||
If ButtonGameCountDown > 0 Then
|
||||
If ButtonGameCountDown = 1 Then
|
||||
Var ButtonGameCountDownState = "Invisible"
|
||||
Var ButtonGamePressToPlayState = "Enable"
|
||||
EndIf
|
||||
Var ButtonGameCountDown = ButtonGameCountDown - 1
|
||||
DEBUGVAR ButtonGameCountDown
|
||||
EndIf
|
||||
|
||||
|
||||
DEBUGVAR BREW_CNT
|
||||
DEBUGVAR ButtonGamePressToPlayState
|
||||
If BREW_CNT > 60 Then
|
||||
|
||||
Else
|
||||
Var ButtonGamePressToPlayState = "Invisible"
|
||||
Var Game01Enable = 0
|
||||
EndIf
|
||||
|
||||
|
||||
; TODO
|
||||
DEBUGVAR EnableDoubleCupNoError
|
||||
DEBUGVAR HURR_FOREVER
|
||||
DEBUGVAR RequestPickupCupAlert
|
||||
If RequestPickupCupAlert = "true" Then
|
||||
Open "ROOT/taobin_project/xml/page_pickup_cup_between_order.xml"
|
||||
EndIf
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/inc/timeout_lid_and_straw_step.inc"
|
||||
|
||||
|
||||
|
||||
Refresh
|
||||
TimerReset
|
||||
|
||||
</EventTimeout>
|
||||
|
||||
<EventMachine>
|
||||
|
||||
</EventMachine>
|
||||
|
||||
; this copy in file menu_brew2.xml and menu_lid_straw.xml
|
||||
<EventChangeStatus>
|
||||
If ChangeStatus = "payout-end" Then
|
||||
If ChangeFlag = 1 Then
|
||||
Var ChangeOK = 2
|
||||
EndIf
|
||||
EndIf
|
||||
</EventChangeStatus>
|
||||
|
||||
<Video>
|
||||
<X> 0 </X>
|
||||
<Y> 380 </Y>
|
||||
<Width> 1080</Width>
|
||||
<Height> 840 </Height>
|
||||
<Refresh> "Reload" </Refresh>
|
||||
<Loop> "true" </Loop>
|
||||
<Filename> VideoPlayFile </Filename>
|
||||
</Video>
|
||||
|
||||
;include="ROOT/taobin_project/inc/video.inc"
|
||||
|
||||
|
||||
;<Image>
|
||||
;<X> 0 </X>
|
||||
;<Y> 0 </Y>
|
||||
;<Filename> "ROOT/taobin_project/image/ad_medium_2.png" </Filename>
|
||||
;</Image>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<Image>
|
||||
<X> 60 </X>
|
||||
<Y> 1290 </Y>
|
||||
<Filename> PictureFile</Filename>
|
||||
</Image>
|
||||
|
||||
;<Image>
|
||||
;<X> 60 </X>
|
||||
;<Y> 1649 </Y>
|
||||
;<Filename> BottomText </Filename>
|
||||
;</Image>
|
||||
|
||||
<Image>
|
||||
<X> 0 </X>
|
||||
<Y> 1655 </Y>
|
||||
<State>EnableSelectMenuBetweenBrew</State>
|
||||
<Filename> text_next_order </Filename>
|
||||
<Image>
|
||||
|
||||
<Image>
|
||||
<X> 835 </X>
|
||||
<Y> 1735 </Y>
|
||||
<State>EnableSelectMenuBetweenBrewBlink</State>
|
||||
<Filename> "ROOT/taobin_project/image/page_payment/arrow_1.png" </Filename>
|
||||
<Image>
|
||||
|
||||
|
||||
|
||||
|
||||
;
|
||||
<Image>
|
||||
<X> 751 </X>
|
||||
<Y> 413 </Y>
|
||||
<Filename> IMG_CNT </Filename>
|
||||
</Image>
|
||||
;
|
||||
<Text>
|
||||
<X> XPosiShowCountDownBrew </X>
|
||||
<Y> 470 </Y>
|
||||
<Align> End </Align>
|
||||
<Width> 153 </Width>
|
||||
<Size> 88 </Size>
|
||||
<Font> RobotoBold </Font>
|
||||
<Color> 0x513C2F </Color>
|
||||
<Value> ShowCountDownBrewing </Value>
|
||||
</Text>
|
||||
|
||||
<Text>
|
||||
<X> 816 </X>
|
||||
<Y> 429 </Y>
|
||||
<State> LanguageObjectShow </State>
|
||||
<Language>
|
||||
<ID> 000405 </ID>
|
||||
</Language>
|
||||
</Text>
|
||||
|
||||
<Text>
|
||||
<X> 941 </X>
|
||||
<Y> 518 </Y>
|
||||
<State> LanguageObjectShow </State>
|
||||
<Language>
|
||||
<ID> 000406 </ID>
|
||||
</Language>
|
||||
</Text>
|
||||
|
||||
<Button>
|
||||
<X> 792 </X>
|
||||
<Y> 1787 </Y>
|
||||
<State>EnableSelectMenuBetweenBrew</State>
|
||||
<Filename> next_pic_bn </Filename>
|
||||
<FilenamePress> next_pic_bp </FilenamePress>
|
||||
<EventClick>
|
||||
If MachineState_Result = 0 Then
|
||||
|
||||
SAVELOG "User click next button"
|
||||
|
||||
Var Seeker = "next"
|
||||
Var MultiPayEnable = "false"
|
||||
CoinPause
|
||||
Var PayCredit = 0
|
||||
|
||||
Open "ROOT/taobin_project/xml/page_catalog.xml"
|
||||
EndIf
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
|
||||
<GIF>
|
||||
<X> 526 </X>
|
||||
<Y> 1680 </Y>
|
||||
<Width> 241 </Width>
|
||||
<Height> 204 </Height>
|
||||
<State> ButtonGamePressToPlayState </State>
|
||||
<Filename> "ROOT/taobin_project/app/game/TAMATIAN-01.gif" </Filename>
|
||||
</GIF>
|
||||
|
||||
<Image>
|
||||
<X> 526 </X>
|
||||
<Y> 1680 </Y>
|
||||
<Width> 241 </Width>
|
||||
<Height> 204 </Height>
|
||||
<State> ButtonGamePressToPlayState </State>
|
||||
<EventClick>
|
||||
DEBUGVAR Game01Enable
|
||||
SAVELOG "Press play game conti"
|
||||
Var Game01Enable = 0
|
||||
Var ButtonGamePressToPlayState = "Invisible"
|
||||
RunApp "com.NDF.taobin"
|
||||
</EventClick>
|
||||
</Image>
|
||||
|
||||
|
||||
|
||||
<Button>
|
||||
<X> 10 </X>
|
||||
<Y> 500 </Y>
|
||||
<State>bg_strawlid_ST</State>
|
||||
<Filename> bg_strawlid </Filename>
|
||||
<EventClick>
|
||||
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
; straw left
|
||||
<Button>
|
||||
<X> 50 </X>
|
||||
<Y> 572 </Y>
|
||||
<State> StrawStateX </State>
|
||||
<Mode> "No" </Mode>
|
||||
<Filename> "ROOT/taobin_project/image/topping2/bn_straw.png" </Filename>
|
||||
<FilenamePress> "ROOT/taobin_project/image/topping2/bp_straw.png" </FilenamePress>
|
||||
<FilenameDisable> "ROOT/taobin_project/image/topping2/bd_straw.png" </FilenameDisable>
|
||||
<EventClick>
|
||||
SAVELOG "Click straw cb"
|
||||
If StrawStateX = "Press" Then
|
||||
;Var StrawStateX = "Enable"
|
||||
Else
|
||||
Var StrawStateX = "Press"
|
||||
Var Seeker.strawAction = 1
|
||||
|
||||
EndIf
|
||||
Refresh
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
<Button>
|
||||
<X> 377 </X>
|
||||
<Y> 579 </Y>
|
||||
<State> StrawStateX </State>
|
||||
<Mode> "No" </Mode>
|
||||
<Filename> "ROOT/taobin_project/image/topping2/cb_notcheck.png" </Filename>
|
||||
<FilenamePress> "ROOT/taobin_project/image/topping2/cb_checked.png" </FilenamePress>
|
||||
<FilenameDisable> Var( DirImage + "/cb_checkdis.png" ) </FilenameDisable>
|
||||
<EventClick>
|
||||
SAVELOG "Click straw cb"
|
||||
If StrawStateX = "Press" Then
|
||||
;Var StrawStateX = "Enable"
|
||||
Else
|
||||
Var StrawStateX = "Press"
|
||||
Var Seeker.strawAction = 1
|
||||
EndIf
|
||||
Refresh
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
|
||||
|
||||
; LID left
|
||||
<Button>
|
||||
<X> 50 </X>
|
||||
<Y> 648 </Y>
|
||||
<State> LidStateX </State>
|
||||
<Mode> "No" </Mode>
|
||||
<Filename> "ROOT/taobin_project/image/topping2/bn_lid.png" </Filename>
|
||||
<FilenamePress> "ROOT/taobin_project/image/topping2/bp_lid.png" </FilenamePress>
|
||||
<FilenameDisable> Var( DirImage + "/bd_lid.png" ) </FilenameDisable>
|
||||
<EventClick>
|
||||
|
||||
If Seeker.thankLidFlag = 0 Then
|
||||
|
||||
SAVELOG "Click LID pic"
|
||||
If LidStateX = "Press" Then
|
||||
;Var LidStateX = "Enable"
|
||||
Else
|
||||
Var LidStateX = "Press"
|
||||
Var Seeker.lidAction = 1
|
||||
EndIf
|
||||
|
||||
|
||||
DEBUGVAR SugarState1
|
||||
Refresh
|
||||
|
||||
EndIf
|
||||
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
<Button>
|
||||
<X> 377 </X>
|
||||
<Y> 655 </Y>
|
||||
<State> LidStateX </State>
|
||||
<Mode> "No" </Mode>
|
||||
<Filename> "ROOT/taobin_project/image/topping2/cb_notcheck.png" </Filename>
|
||||
<FilenamePress> "ROOT/taobin_project/image/topping2/cb_checked.png" </FilenamePress>
|
||||
<FilenameDisable> Var( DirImage + "/cb_checkdis.png" ) </FilenameDisable>
|
||||
<EventClick>
|
||||
|
||||
If Seeker.thankLidFlag = 0 Then
|
||||
|
||||
SAVELOG "Click LID cb"
|
||||
If LidStateX = "Press" Then
|
||||
;Var LidStateX = "Enable"
|
||||
Else
|
||||
Var LidStateX = "Press"
|
||||
Var Seeker.lidAction = 1
|
||||
EndIf
|
||||
Refresh
|
||||
|
||||
EndIf
|
||||
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
|
||||
<Button>
|
||||
<X> 526 </X>
|
||||
<Y> 1787 </Y>
|
||||
<State> ButtonGameCountDownState </State>
|
||||
<Filename> "ROOT/taobin_project/image/page_doing/bn_game_cnt_down.png" </Filename>
|
||||
<FilenamePress> "ROOT/taobin_project/image/page_doing/bn_game_cnt_down.png" </FilenamePress>
|
||||
<EventClick>
|
||||
|
||||
</EventClick>
|
||||
<Text>
|
||||
<X> 0 </X>
|
||||
<Y> 0 </Y>
|
||||
<Size> 64 </Size>
|
||||
<Align> Center </Align>
|
||||
<Width> 240 </Width>
|
||||
<Font> KanitBoldTTF </Font>
|
||||
<Color> 0xFFFFFF </Color>
|
||||
<State> ButtonGameCountDownState </State>
|
||||
<Value> ButtonGameCountDown </Value>
|
||||
</Text>
|
||||
</Button>
|
||||
|
||||
;include="ROOT/taobin_project/inc/button_request_lid_and_straw.inc"
|
||||
|
||||
</Popup>
|
||||
|
|
@ -5,6 +5,11 @@
|
|||
<Background> "0xeae6e1" </Background>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventOpen>
|
||||
|
||||
If New_Payment = 1 Then
|
||||
Open "ROOT/taobin_project/inter/aus/xml/page_NewBrewing3.lxml"
|
||||
EndIf
|
||||
|
||||
Var SendNotiPaySuccess = 2
|
||||
|
||||
Var GetMoreStrawCount = 3
|
||||
|
|
|
|||
|
|
@ -6,6 +6,10 @@
|
|||
<Volume> SoundVolume </Volume>
|
||||
<EventOpen>
|
||||
|
||||
If New_Payment = 1 Then
|
||||
Open "ROOT/taobin_project/inter/aus/xml/page_NewBrewing3Conti.lxml"
|
||||
EndIf
|
||||
|
||||
If CoffeeFreeEnable = "true" Then
|
||||
Var RoadShow = "false"
|
||||
EndIf
|
||||
|
|
|
|||