taobin_project/spiral/xml/page_spiral_check_cash.xml

159 lines
3.3 KiB
XML
Raw Normal View History

2022-09-14 17:40:48 +07:00
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
<Background> "0xeae6e1" </Background>
;<Sound> "ROOT/taobin_project/sounds/chaching.mp3" </Sound>
<Volume> SoundVolume </Volume>
<EventOpen>
Var Timeout = 0
Var GotoStoreCredit0 = 0
Var LastMakeSpiralResult = 0
Var MachineSpiralStage = ""
2023-04-26 10:43:37 +07:00
2022-11-16 15:02:31 +07:00
If SellLeaw = 0 Then
SPIRAL_SELL ServiceCredit SpiralRef
Var TestSellSpiral = 1
DEBUGVAR TestSellSpiral
2023-04-26 10:43:37 +07:00
If Seeker.thankToppingFlag = 1 Then
If StrawState = "Press" Then
Machine StrawOrder
Var LedLidBlink = "true"
EndIf
If LidState = "Press" Then
Machine LidOrder
Var LedLidBlink = "true"
EndIf
Var SelectDrink = "12-05-02-0017"
Var SelectSugarID = 0
MakeDrinkV1 SelectDrink SelectSugarID
EndIf
2022-11-16 15:02:31 +07:00
Var SellLeaw = 1
EndIf
2022-09-14 17:40:48 +07:00
</EventOpen>
<Timeout> 1000 </Timeout>
<EventTimeout>
Var Timeout = Timeout + 1
If Timeout = 3 Then
If Seeker.PayWithQR = 0 Then
If Seeker.FreeVendingCampaign = 0 Then
If Seeker.IntVendingCampaign < PayAmount Then
Var SumCoinAmount = CoinAmount + Seeker.IntVendingCampaign
Var SumCoinAmount = SumCoinAmount + Seeker.IntVendingCredit
If SumCoinAmount >= PayAmount Then
Var Canout = SumCoinAmount - PayAmount
If Canout > 0 Then
Var GotoStoreCredit0 = 1
Var StoreCreditAmount = Canout
EndIf
EndIf
EndIf
Else
Var Canout = CoinAmount
If Canout > 0 Then
Var GotoStoreCredit0 = 1
Var StoreCreditAmount = Canout
EndIf
EndIf
Else
Var Canout = CoinAmount
If Canout > 0 Then
Var GotoStoreCredit0 = 1
Var StoreCreditAmount = Canout
EndIf
EndIf
If GotoStoreCredit0 = 1 Then
Open "ROOT/taobin_project/spiral/xml/page_spiral_payment_storeCredit0.xml"
Else
Open "ROOT/taobin_project/spiral/xml/page_spiral_thankyou.xml"
EndIf
EndIf
If Timeout >= 10 Then
Open "ROOT/taobin_project/spiral/xml/page_spiral_thankyou.xml"
EndIf
Refresh
TimerReset
</EventTimeout>
<Image>
<X> 89 </X>
<Y> 700 </Y>
<Width> 902 </Width>
<Height> 902 </Height>
<Filename> "ROOT/taobin_project/spiral/image/page_spiral/spiral_wait.png" </Filename>
</Image>
<Video>
<X> 0 </X>
<Y> 0 </Y>
<Width> 1080</Width>
<Height> 380 </Height>
<Loop> "true" </Loop>
<Filename> video_menu_0 </Filename>
</Video>
;<Text>
;<X> 492 </X>
;<Y> 1121 </Y>
;<Width>150</Width>
;<Size> 60 </Size>
;<Font> KanitTTF </Font>
;<Color> 0xB78F24 </Color>
;<Value> Timeout </Value>
;</Text>
;<Text>
;<X> 92 </X>
;<Y> 501 </Y>
;<Size> 60 </Size>
;<Font> KanitTTF </Font>
;<Color> 0xB78F24 </Color>
;<Value> GotoStoreCredit0 </Value>
;</Text>
;
;<Text>
;<X> 92 </X>
;<Y> 551 </Y>
;<Size> 60 </Size>
;<Font> KanitTTF </Font>
;<Color> 0xB78F24 </Color>
;<Value> Canout </Value>
;</Text>
;
;<Text>
;<X> 92 </X>
;<Y> 601 </Y>
;<Size> 60 </Size>
;<Font> KanitTTF </Font>
;<Color> 0xB78F24 </Color>
;<Value> clickedChangeFlag </Value>
;</Text>
;
;
;<Text>
;<X> 92 </X>
;<Y> 651 </Y>
;<Size> 60 </Size>
;<Font> KanitTTF </Font>
;<Color> 0xB78F24 </Color>
;<Value> StoreCreditAmount </Value>
;</Text>
</Popup>