taobin_project/xml/sold_cup_count.xml

338 lines
7.3 KiB
XML
Raw Normal View History

2024-03-14 11:29:20 +07:00
<Page>
<Scale> "ALL" </Scale>
<Width> HeadScreenWidth </Width>
<Height> HeadScreenHeight </Height>
2024-09-30 11:08:04 +07:00
<Background> BackgroundColor </Background>
2024-03-14 11:29:20 +07:00
<EventOpen>
SAVELOG "Sold Cup Count inst 1"
DEBUGVAR CurrentTotalCup
Var totalCup = CurrentTotalCup
SPLITDIGIT totalCup 9 SoldCupDigit
2024-03-18 16:04:41 +07:00
Var ClickCountMainTe = 0
2024-03-24 14:37:28 +07:00
Var SoldCupTimeout = 0
Var KanitMediumTTF = "ROOT/taobin_project/font/Kanit/Kanit-Regular.ttf"
Var XMLFileVideo = "true"
DEBUGVAR XMLFileVideo
2024-10-03 12:10:27 +07:00
Var SoldCupStage = "Enable"
If CountryName = "Singapore" Then
Var SoldCupStage = "Invisible"
EndIf
2024-03-14 11:29:20 +07:00
</EventOpen>
;include="ROOT/taobin_project/inc/video.inc"
2024-03-14 11:29:20 +07:00
<Timeout> 1000 </Timeout>
<EventTimeout>
2024-03-24 14:37:28 +07:00
Var SoldCupTimeout = SoldCupTimeout + 1
2024-03-14 11:29:20 +07:00
SPLIT XMLLiveInfo "/" 2 CurrentTotalCup
If totalCup = CurrentTotalCup Then
Else
SAVELOG "Sold Cup on change."
DEBUGVAR totalCup
DEBUGVAR CurrentTotalCup
Var totalCup = CurrentTotalCup
SPLITDIGIT totalCup 9 SoldCupDigit
Refresh
EndIf
2024-03-14 11:29:20 +07:00
TimerReset
</EventTimeout>
<Image>
<X> 39 </X>
<Y> 450 </Y>
<Filename> "ROOT/taobin_project/image/sold_cup/rectangle.png" </Filename>
2024-10-03 12:10:27 +07:00
<State> SoldCupStage </State>
2024-03-14 11:29:20 +07:00
</Image>
<Image>
<X> 148 </X>
<Y> 450 </Y>
<Filename> "ROOT/taobin_project/image/sold_cup/rectangle.png" </Filename>
2024-10-03 12:10:27 +07:00
<State> SoldCupStage </State>
2024-03-14 11:29:20 +07:00
</Image>
<Image>
<X> 257 </X>
<Y> 450 </Y>
<Filename> "ROOT/taobin_project/image/sold_cup/rectangle.png" </Filename>
2024-10-03 12:10:27 +07:00
<State> SoldCupStage </State>
2024-03-14 11:29:20 +07:00
</Image>
<Image>
2024-03-14 15:35:29 +07:00
<X> 383 </X>
2024-03-14 11:29:20 +07:00
<Y> 450 </Y>
<Filename> "ROOT/taobin_project/image/sold_cup/rectangle.png" </Filename>
2024-10-03 12:10:27 +07:00
<State> SoldCupStage </State>
2024-03-14 11:29:20 +07:00
</Image>
<Image>
<X> 492 </X>
<Y> 450 </Y>
<Filename> "ROOT/taobin_project/image/sold_cup/rectangle.png" </Filename>
2024-10-03 12:10:27 +07:00
<State> SoldCupStage </State>
2024-03-14 11:29:20 +07:00
</Image>
<Image>
<X> 601 </X>
<Y> 450 </Y>
<Filename> "ROOT/taobin_project/image/sold_cup/rectangle.png" </Filename>
2024-10-03 12:10:27 +07:00
<State> SoldCupStage </State>
2024-03-14 11:29:20 +07:00
</Image>
<Image>
<X> 730 </X>
<Y> 450 </Y>
<Filename> "ROOT/taobin_project/image/sold_cup/rectangle.png" </Filename>
2024-10-03 12:10:27 +07:00
<State> SoldCupStage </State>
2024-03-14 11:29:20 +07:00
</Image>
<Image>
<X> 839 </X>
<Y> 450 </Y>
<Filename> "ROOT/taobin_project/image/sold_cup/rectangle.png" </Filename>
2024-10-03 12:10:27 +07:00
<State> SoldCupStage </State>
2024-03-14 11:29:20 +07:00
</Image>
<Image>
<X> 948 </X>
<Y> 450 </Y>
<Filename> "ROOT/taobin_project/image/sold_cup/rectangle.png" </Filename>
2024-10-03 12:10:27 +07:00
<State> SoldCupStage </State>
2024-03-14 11:29:20 +07:00
</Image>
<FlipNumber>
<X> 39 </X>
<Y> 450 </Y>
<Width> 94 </Width>
<Height> 126 </Height>
<Font> KanitMediumTTF </Font>
<Size> 128 </Size>
2024-09-30 11:08:04 +07:00
<Color> HeadlineColor </Color>
2024-03-14 11:29:20 +07:00
<Delay> 1300 </Delay>
<Duration> 1500 </Duration>
<Align> center-vertical-horizontal </Align>
<Value> SoldCupDigit[0] </Value>
2024-10-03 12:10:27 +07:00
<State> SoldCupStage </State>
2024-03-14 11:29:20 +07:00
</FlipNumber>
<FlipNumber>
<X> 148 </X>
<Y> 450 </Y>
<Width> 94 </Width>
<Height> 126 </Height>
<Font> KanitMediumTTF </Font>
<Size> 128 </Size>
2024-09-30 11:08:04 +07:00
<Color> HeadlineColor </Color>
2024-03-14 11:29:20 +07:00
<Delay> 1150 </Delay>
<Duration> 1500 </Duration>
<Align> center-vertical-horizontal </Align>
<Value> SoldCupDigit[1] </Value>
2024-10-03 12:10:27 +07:00
<State> SoldCupStage </State>
2024-03-14 11:29:20 +07:00
</FlipNumber>
<FlipNumber>
<X> 257 </X>
<Y> 450 </Y>
<Width> 94 </Width>
<Height> 126 </Height>
<Font> KanitMediumTTF </Font>
<Size> 128 </Size>
2024-09-30 11:08:04 +07:00
<Color> HeadlineColor </Color>
2024-03-14 11:29:20 +07:00
<Delay> 1000 </Delay>
<Duration> 1500 </Duration>
<Align> center-vertical-horizontal </Align>
<Value> SoldCupDigit[2] </Value>
2024-10-03 12:10:27 +07:00
<State> SoldCupStage </State>
2024-03-14 11:29:20 +07:00
</FlipNumber>
<FlipNumber>
2024-03-14 15:35:29 +07:00
<X> 383 </X>
2024-03-14 11:29:20 +07:00
<Y> 450 </Y>
<Width> 94 </Width>
<Height> 126 </Height>
<Font> KanitMediumTTF </Font>
<Size> 128 </Size>
2024-09-30 11:08:04 +07:00
<Color> HeadlineColor </Color>
2024-03-14 11:29:20 +07:00
<Delay> 850 </Delay>
<Duration> 1500 </Duration>
<Align> center-vertical-horizontal </Align>
<Value> SoldCupDigit[3] </Value>
2024-10-03 12:10:27 +07:00
<State> SoldCupStage </State>
2024-03-14 11:29:20 +07:00
</FlipNumber>
<FlipNumber>
<X> 492 </X>
<Y> 450 </Y>
<Width> 94 </Width>
<Height> 126 </Height>
<Font> KanitMediumTTF </Font>
<Size> 128 </Size>
2024-09-30 11:08:04 +07:00
<Color> HeadlineColor </Color>
2024-03-14 11:29:20 +07:00
<Delay> 700 </Delay>
<Duration> 1500 </Duration>
<Align> center-vertical-horizontal </Align>
<Value> SoldCupDigit[4] </Value>
2024-10-03 12:10:27 +07:00
<State> SoldCupStage </State>
2024-03-14 11:29:20 +07:00
</FlipNumber>
<FlipNumber>
<X> 601 </X>
<Y> 450 </Y>
<Width> 94 </Width>
<Height> 126 </Height>
<Font> KanitMediumTTF </Font>
<Size> 128 </Size>
2024-09-30 11:08:04 +07:00
<Color> HeadlineColor </Color>
2024-03-14 11:29:20 +07:00
<Delay> 550 </Delay>
<Duration> 1500 </Duration>
<Align> center-vertical-horizontal </Align>
<Value> SoldCupDigit[5] </Value>
2024-10-03 12:10:27 +07:00
<State> SoldCupStage </State>
2024-03-14 11:29:20 +07:00
</FlipNumber>
<FlipNumber>
<X> 730 </X>
<Y> 450 </Y>
<Width> 94 </Width>
<Height> 126 </Height>
<Font> KanitMediumTTF </Font>
<Size> 128 </Size>
2024-09-30 11:08:04 +07:00
<Color> HeadlineColor </Color>
2024-03-14 11:29:20 +07:00
<Delay> 400 </Delay>
<Duration> 1500 </Duration>
<Align> center-vertical-horizontal </Align>
<Value> SoldCupDigit[6] </Value>
2024-10-03 12:10:27 +07:00
<State> SoldCupStage </State>
2024-03-14 11:29:20 +07:00
</FlipNumber>
<FlipNumber>
<X> 839 </X>
<Y> 450 </Y>
<Width> 94 </Width>
<Height> 126 </Height>
<Font> KanitMediumTTF </Font>
<Size> 128 </Size>
2024-09-30 11:08:04 +07:00
<Color> HeadlineColor </Color>
2024-03-14 11:29:20 +07:00
<Delay> 250 </Delay>
<Duration> 1500 </Duration>
<Align> center-vertical-horizontal </Align>
<Value> SoldCupDigit[7] </Value>
2024-10-03 12:10:27 +07:00
<State> SoldCupStage </State>
2024-03-14 11:29:20 +07:00
</FlipNumber>
<FlipNumber>
<X> 948 </X>
<Y> 450 </Y>
<Width> 94 </Width>
<Height> 126 </Height>
<Font> KanitMediumTTF </Font>
<Size> 128 </Size>
2024-09-30 11:08:04 +07:00
<Color> HeadlineColor </Color>
2024-03-14 11:29:20 +07:00
<Delay> 100 </Delay>
<Duration> 1500 </Duration>
<Align> center-vertical-horizontal </Align>
<Value> SoldCupDigit[8] </Value>
2024-10-03 12:10:27 +07:00
<State> SoldCupStage </State>
2024-03-14 11:29:20 +07:00
</FlipNumber>
<Text>
<X> 421 </X>
<Y> 407 </Y>
<Size> 25 </Size>
<Width>400</Width>
<Font> KanitMediumTTF </Font>
2024-09-30 11:08:04 +07:00
<Color> HeadlineColor </Color>
2024-04-05 17:15:02 +07:00
<Value> cups_sold_text </Value>
2024-10-03 12:10:27 +07:00
<State> SoldCupStage </State>
2024-03-14 11:29:20 +07:00
</Text>
<Text>
2024-03-14 15:35:29 +07:00
<X> 355 </X>
<Y> 430 </Y>
2024-03-14 11:29:20 +07:00
<Size> 130 </Size>
<Width>50</Width>
<Height>220</Height>
<Font> KanitMediumTTF </Font>
2024-09-30 11:08:04 +07:00
<Color> HeadlineColor </Color>
2024-03-14 11:29:20 +07:00
<Value> "," </Value>
2024-10-03 12:10:27 +07:00
<State> SoldCupStage </State>
2024-03-14 11:29:20 +07:00
</Text>
<Text>
<X> 695 </X>
2024-03-14 15:35:29 +07:00
<Y> 430 </Y>
2024-03-14 11:29:20 +07:00
<Size> 130 </Size>
<Width>50</Width>
<Height>220</Height>
<Font> KanitMediumTTF </Font>
2024-09-30 11:08:04 +07:00
<Color> HeadlineColor </Color>
2024-03-14 11:29:20 +07:00
<Value> "," </Value>
2024-10-03 12:10:27 +07:00
<State> SoldCupStage </State>
2024-03-14 11:29:20 +07:00
</Text>
<Image>
<X> 670 </X>
<Y> 0 </Y>
<Width> 400 </Width>
<Height> 400 </Height>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClickLong>
OpenInst 0 "//mnt/sdcard/coffeevending/taobin_project/xml/vending_info.xml"
</EventClickLong>
<EventClick>
Var ClickCountMainTe = ClickCountMainTe + 1
DEBUGVAR ClickCountMainTe
If ClickCountMainTe = 2 Then
OpenInst 0 "/mnt/sdcard/coffeevending/taobin_project/xml/vending_info.xml"
2024-04-08 21:55:56 +07:00
Var ClickCountMainTe = 0
2024-03-14 11:29:20 +07:00
EndIf
;OpenInst 0 "//mnt/sdcard/coffeevending/taobin_project/xml/page_remove_cup.xml"
</EventClick>
</Image>
</Page>