taobin_project/xml/page_display_get_drink_5_baht.xml
2025-04-23 09:53:57 +07:00

168 lines
No EOL
3.2 KiB
XML

<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
<Background> "0xeae6e1" </Background>
<Volume> SoundVolume </Volume>
<EventOpen>
; On open
Var Timeout = 0
If show_eng = "true" Then
Var DirImage = "ROOT/taobin_project/image/display_get_discount_en"
Else
Var DirImage = "ROOT/taobin_project/image/display_get_discount"
EndIf
;inter-image
If LanguageShow = "MYANMAR" Then
Var DirImage = "ROOT/taobin_project/image/display_get_discount_mmr"
EndIf
If LanguageShow = "MSC" Then
Var DirImage = "ROOT/taobin_project/image/display_get_discount_msc"
EndIf
Var PopUpState1 = "Enable"
Var PopUpState2 = "Invisible"
Var PopUpErrorState = "Invisible"
If PayOfflineMode = 1 Then
Var PopUpErrorState = "Enable"
Var PopUpState1 = "Invisible"
Var PopUpState2 = "Invisible
EndIf
If FromCheckMemberPoint = 1 Then
Var PointTaobinStr = "0/00-00-00-0000/cash"
Var PointCrm = "0"
Var GetScore = "0"
AddData 40 TNumberTaobinMemberXXX PointTaobinStr PointCrm GetScore
EndIf
</EventOpen>
<Timeout> 1000 </Timeout>
<EventTimeout>
Var Timeout = Timeout + 1
If Timeout > 5 Then
; goto lid straw
If PopUpState1 = "Enable" Then
Var Timeout = 0
Var PopUpState1 = "Invisible"
Var PopUpState2 = "Enable"
If PayOfflineMode = 1 Then
Var PopUpErrorState = "Enable"
Var PopUpState1 = "Invisible"
Var PopUpState2 = "Invisible
EndIf
Else
If FromCheckMemberPoint = 1 Then
Open "ROOT/taobin_project/xml/page_check_member2.xml"
Else
;include="ROOT/taobin_project/xml/sometime/after_collect_point.xml"
EndIf
EndIf
EndIf
TimerReset
Refresh
</EventTimeout>
<EventSecurity>
Open "/media/bt/xml/security_alarm.xml"
</EventSecurity>
<EventActionOk>
;
</EventActionOk>
<EventMachine>
If MachineStage = "drink-success" Then
Var MachineState_Result = 1
EndIf
If MachineStage = "drink-failed" Then
Var MachineState_Result = 2
EndIf
</EventMachine>
;include="ROOT/taobin_project/inc/video.inc"
<Image>
<X> 0 </X>
<Y> 380 </Y>
<Filename> Var( DirImage + "/alpha.png" ) </Filename>
</Image>
<Image>
<X> 158 </X>
<Y> 665 </Y>
<State> PopUpState1 </State>
<Filename> Var( DirImage + "/img_popup3.png" )</Filename>
</Image>
<Image>
<X> 158 </X>
<Y> 665 </Y>
<State> PopUpState2 </State>
<Filename> Var( DirImage + "/img_popup4.png" )</Filename>
</Image>
<Image>
<X> 158 </X>
<Y> 665 </Y>
<State> PopUpErrorState </State>
<Filename> Var( DirImage + "/img_popup_drink5baht_error.png" )</Filename>
</Image>
<Button>
<X> 397 </X>
<Y> 1680 </Y>
<Filename> Var( DirImage + "/bn_accept.png" ) </Filename>
<FilenamePress> Var( DirImage + "/bp_accept.png" )</FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
; goto lid straw
If PopUpState1 = "Enable" Then
Var Timeout = 0
Var PopUpState1 = "Invisible"
Var PopUpState2 = "Enable"
If PayOfflineMode = 1 Then
Var PopUpErrorState = "Enable"
Var PopUpState1 = "Invisible"
Var PopUpState2 = "Invisible
EndIf
Refresh
Else
If FromCheckMemberPoint = 1 Then
Open "ROOT/taobin_project/xml/page_check_member2.xml"
Else
;include="ROOT/taobin_project/xml/sometime/after_collect_point.xml"
EndIf
EndIf
</EventClick>
</Button>
</Popup>