taobin_project/xml/page_drinkok.xml

145 lines
2.6 KiB
XML
Raw Normal View History

2020-09-16 18:42:32 +07:00
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
<Background> "0xeae6e1" </Background>
<Volume> SoundVolume </Volume>
2021-01-08 13:04:13 +07:00
<Sound> "ROOT/sounds/Ding-dong.wav" </Sound>
2020-09-16 18:42:32 +07:00
<EventOpen>
; On open
Var LidState = "Enable"
Var StarwState = "Enable"
2020-10-08 10:01:31 +07:00
Var videoEnd = 0
2020-09-16 18:42:32 +07:00
2020-10-30 18:21:06 +07:00
If show_eng = "true" Then
Var DirImage = "ROOT/taobin_project/image/complete_en/"
Else
Var DirImage = "ROOT/taobin_project/image/complete/"
EndIf
2020-12-03 14:21:46 +07:00
Var VideoPlayFile = VideoPath
Var VideoPlayFile = VideoPlayFile + VideoFileBegin
Var VideoPlayFile = VideoPlayFile + "24"
Var VideoPlayFile = VideoPlayFile + VideoFileEnd
2021-01-08 13:04:13 +07:00
Var Timeout = 0
2021-01-19 23:43:43 +07:00
2021-01-21 15:18:23 +07:00
If TNumberTaobinMember = "" Then
Else
If PayWithQR = 1 Then
Var VendingTSID = VendingTSIDTmp
EndIf
2021-02-05 14:11:05 +07:00
2021-01-28 13:41:28 +07:00
Var BmiYear = PointTaobinStr
2021-02-02 13:33:11 +07:00
Var PointCrm = ""
If FromConsent = 1 Then
Var PointCrm = "pdpa1"
EndIf
2021-01-21 15:18:23 +07:00
Var GetScore = VendingTSID
2021-01-28 13:41:28 +07:00
AddData 11 TNumberTaobinMember BmiYear PointCrm GetScore
2021-01-21 15:18:23 +07:00
Var TNumberTaobinMember = ""
Var VendingTSID = ""
EndIf
2021-01-19 23:43:43 +07:00
StopLongPlay
2021-02-05 14:11:05 +07:00
2020-09-16 18:42:32 +07:00
</EventOpen>
2020-12-26 01:33:30 +07:00
<Timeout> 500 </Timeout>
2020-09-16 18:42:32 +07:00
<EventTimeout>
2020-09-17 19:08:21 +07:00
If HaveCup = "false" Then
2020-10-15 13:14:09 +07:00
Open "ROOT/taobin_project/xml/page_back_to_main.xml"
2020-09-17 19:08:21 +07:00
EndIf
2020-12-05 22:46:39 +07:00
If MachineStage = "remove-cup" Then
Open "ROOT/taobin_project/xml/page_back_to_main.xml"
EndIf
2021-01-08 13:04:13 +07:00
If Timeout = 5 Then
If show_eng = "true" Then
Play "/mnt/sdcard/coffeevending/taobin_project/sound_eng/Straw.mp3"
Else
2021-01-19 23:43:43 +07:00
Play "/mnt/sdcard/coffeevending/taobin_project/sound_thai/drinkfinish.mp3"
2021-01-08 13:04:13 +07:00
EndIf
EndIf
Var Timeout = Timeout + 1
2020-09-17 19:08:21 +07:00
TimerReset
2020-09-16 18:42:32 +07:00
</EventTimeout>
2020-11-22 21:50:53 +07:00
;<Image>
;<X> 0 </X>
;<Y> 0 </Y>
;<Filename> "ROOT/taobin_project/image/ad_medium_2.png" </Filename>
;</Image>
<Video>
2020-09-16 18:42:32 +07:00
<X> 0 </X>
<Y> 0 </Y>
2020-11-22 21:50:53 +07:00
<Width> 1080</Width>
<Height> 380 </Height>
<Loop> "true" </Loop>
<Filename> "ROOT/taobin_project/video/taobin_adv2.mp4" </Filename>
</Video>
2020-09-16 18:42:32 +07:00
2020-10-30 18:21:06 +07:00
2020-12-03 14:21:46 +07:00
2020-10-08 10:01:31 +07:00
<Video>
2020-12-03 14:21:46 +07:00
<X> 0 </X>
<Y> 380 </Y>
<Refresh> "Reload" </Refresh>
2020-10-08 10:01:31 +07:00
<Loop> "true" </Loop>
2020-12-03 14:21:46 +07:00
<Filename> VideoPlayFile </Filename>
2020-10-08 10:01:31 +07:00
</Video>
2020-09-16 18:42:32 +07:00
2020-12-03 14:21:46 +07:00
;<Image>
;<X> 0 </X>
;<Y> 547 </Y>
;<Filename> Var( DirImage + "/img2.png" ) </Filename>
;</Image>
2020-10-08 11:54:55 +07:00
2020-10-30 18:21:06 +07:00
2020-09-16 18:42:32 +07:00
<Button>
2020-10-30 18:21:06 +07:00
<X> 870 </X>
<Y> 1860 </Y>
<Width> 200 </Width>
<Height> 50 </Height>
2020-09-16 18:42:32 +07:00
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
2020-10-30 18:21:06 +07:00
Var countClick2 = countClick2 + 1
If countClick2 = 3 Then
EndIf
If countClick2 >= 5 Then
Open "ROOT/taobin_project/xml/page_back_to_main.xml"
EndIf
Refresh
2020-09-16 18:42:32 +07:00
</EventClick>
</Button>
2020-10-30 18:21:06 +07:00
<Text>
<X> 0 </X>
<Y> 1886 </Y>
<Size> 20 </Size>
<Width> 1080</Width>
<Align> end </Align>
<Font> RobotoBlack </Font>
<Color> 0x513C2F </Color>
<Value> countClick2 </Value>
</Text>
2020-09-16 18:42:32 +07:00
</Popup>