THAI: Added Sold Cup Total
This commit is contained in:
parent
3a9410f899
commit
d1ea1bafe2
4 changed files with 307 additions and 1 deletions
BIN
image/sold_cup/rectangle.png
Normal file
BIN
image/sold_cup/rectangle.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 402 B |
|
|
@ -17,6 +17,10 @@ Var video_menu_0 = "00"
|
|||
Var video_menu2_1 = "00"
|
||||
|
||||
|
||||
; DEBUG
|
||||
;Var XMLLiveInfo = "1/392930293"
|
||||
;Var AdvertiseProfile = "00/01/02/03/04/05/06/07/08/09/10/11/12/13/14/15/16/17/18/19/20"
|
||||
|
||||
If XMLLiveInfo = "" Then
|
||||
Var showMultiAds = "false"
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,12 @@
|
|||
|
||||
|
||||
OpenInst 0 "/mnt/sdcard/coffeevending/taobin_project/xml/page_board.xml"
|
||||
|
||||
If showMultiAds = "true" Then
|
||||
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/sold_cup_count.xml"
|
||||
Else
|
||||
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/test_video_loop.xml"
|
||||
EndIf
|
||||
|
||||
TopView "hide"
|
||||
|
||||
|
|
|
|||
297
xml/sold_cup_count.xml
Normal file
297
xml/sold_cup_count.xml
Normal file
|
|
@ -0,0 +1,297 @@
|
|||
|
||||
<Page>
|
||||
<Scale> "ALL" </Scale>
|
||||
<Width> HeadScreenWidth </Width>
|
||||
<Height> HeadScreenHeight </Height>
|
||||
<EventOpen>
|
||||
SAVELOG "Sold Cup Count inst 1"
|
||||
DEBUGVAR CurrentTotalCup
|
||||
|
||||
Var totalCup = CurrentTotalCup
|
||||
|
||||
SPLITDIGIT totalCup 9 SoldCupDigit
|
||||
|
||||
DEBUGVAR SoldCupDigit[0]
|
||||
DEBUGVAR SoldCupDigit[1]
|
||||
DEBUGVAR SoldCupDigit[2]
|
||||
DEBUGVAR SoldCupDigit[3]
|
||||
DEBUGVAR SoldCupDigit[4]
|
||||
DEBUGVAR SoldCupDigit[5]
|
||||
DEBUGVAR SoldCupDigit[6]
|
||||
DEBUGVAR SoldCupDigit[7]
|
||||
DEBUGVAR SoldCupDigit[8]
|
||||
|
||||
|
||||
Var Timeout = 0
|
||||
</EventOpen>
|
||||
|
||||
;include="ROOT/taobin_project/inc/video.inc"
|
||||
|
||||
<Timeout> 1000 </Timeout>
|
||||
<EventTimeout>
|
||||
Var Timeout = Timeout + 1
|
||||
|
||||
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
|
||||
|
||||
DEBUGVAR SoldCupDigit[0]
|
||||
DEBUGVAR SoldCupDigit[1]
|
||||
DEBUGVAR SoldCupDigit[2]
|
||||
DEBUGVAR SoldCupDigit[3]
|
||||
DEBUGVAR SoldCupDigit[4]
|
||||
DEBUGVAR SoldCupDigit[5]
|
||||
DEBUGVAR SoldCupDigit[6]
|
||||
DEBUGVAR SoldCupDigit[7]
|
||||
DEBUGVAR SoldCupDigit[8]
|
||||
|
||||
Refresh
|
||||
EndIf
|
||||
|
||||
TimerReset
|
||||
</EventTimeout>
|
||||
|
||||
<Image>
|
||||
<X> 39 </X>
|
||||
<Y> 450 </Y>
|
||||
<Filename> "ROOT/taobin_project/image/sold_cup/rectangle.png" </Filename>
|
||||
</Image>
|
||||
|
||||
<Image>
|
||||
<X> 148 </X>
|
||||
<Y> 450 </Y>
|
||||
<Filename> "ROOT/taobin_project/image/sold_cup/rectangle.png" </Filename>
|
||||
</Image>
|
||||
|
||||
<Image>
|
||||
<X> 257 </X>
|
||||
<Y> 450 </Y>
|
||||
<Filename> "ROOT/taobin_project/image/sold_cup/rectangle.png" </Filename>
|
||||
</Image>
|
||||
|
||||
<Image>
|
||||
<X> 393 </X>
|
||||
<Y> 450 </Y>
|
||||
<Filename> "ROOT/taobin_project/image/sold_cup/rectangle.png" </Filename>
|
||||
</Image>
|
||||
|
||||
<Image>
|
||||
<X> 492 </X>
|
||||
<Y> 450 </Y>
|
||||
<Filename> "ROOT/taobin_project/image/sold_cup/rectangle.png" </Filename>
|
||||
</Image>
|
||||
|
||||
<Image>
|
||||
<X> 601 </X>
|
||||
<Y> 450 </Y>
|
||||
<Filename> "ROOT/taobin_project/image/sold_cup/rectangle.png" </Filename>
|
||||
</Image>
|
||||
|
||||
<Image>
|
||||
<X> 730 </X>
|
||||
<Y> 450 </Y>
|
||||
<Filename> "ROOT/taobin_project/image/sold_cup/rectangle.png" </Filename>
|
||||
</Image>
|
||||
|
||||
<Image>
|
||||
<X> 839 </X>
|
||||
<Y> 450 </Y>
|
||||
<Filename> "ROOT/taobin_project/image/sold_cup/rectangle.png" </Filename>
|
||||
</Image>
|
||||
|
||||
<Image>
|
||||
<X> 948 </X>
|
||||
<Y> 450 </Y>
|
||||
<Filename> "ROOT/taobin_project/image/sold_cup/rectangle.png" </Filename>
|
||||
</Image>
|
||||
|
||||
<FlipNumber>
|
||||
<X> 39 </X>
|
||||
<Y> 450 </Y>
|
||||
<Width> 94 </Width>
|
||||
<Height> 126 </Height>
|
||||
<Font> KanitMediumTTF </Font>
|
||||
<Size> 128 </Size>
|
||||
<Color> 0x523D30 </Color>
|
||||
<Delay> 1300 </Delay>
|
||||
<Duration> 1500 </Duration>
|
||||
<Align> center-vertical-horizontal </Align>
|
||||
<Value> SoldCupDigit[0] </Value>
|
||||
</FlipNumber>
|
||||
|
||||
<FlipNumber>
|
||||
<X> 148 </X>
|
||||
<Y> 450 </Y>
|
||||
<Width> 94 </Width>
|
||||
<Height> 126 </Height>
|
||||
<Font> KanitMediumTTF </Font>
|
||||
<Size> 128 </Size>
|
||||
<Color> 0x523D30 </Color>
|
||||
<Delay> 1150 </Delay>
|
||||
<Duration> 1500 </Duration>
|
||||
<Align> center-vertical-horizontal </Align>
|
||||
<Value> SoldCupDigit[1] </Value>
|
||||
</FlipNumber>
|
||||
|
||||
<FlipNumber>
|
||||
<X> 257 </X>
|
||||
<Y> 450 </Y>
|
||||
<Width> 94 </Width>
|
||||
<Height> 126 </Height>
|
||||
<Font> KanitMediumTTF </Font>
|
||||
<Size> 128 </Size>
|
||||
<Color> 0x523D30 </Color>
|
||||
<Delay> 1000 </Delay>
|
||||
<Duration> 1500 </Duration>
|
||||
<Align> center-vertical-horizontal </Align>
|
||||
<Value> SoldCupDigit[2] </Value>
|
||||
</FlipNumber>
|
||||
|
||||
<FlipNumber>
|
||||
<X> 393 </X>
|
||||
<Y> 450 </Y>
|
||||
<Width> 94 </Width>
|
||||
<Height> 126 </Height>
|
||||
<Font> KanitMediumTTF </Font>
|
||||
<Size> 128 </Size>
|
||||
<Color> 0x523D30 </Color>
|
||||
<Delay> 850 </Delay>
|
||||
<Duration> 1500 </Duration>
|
||||
<Align> center-vertical-horizontal </Align>
|
||||
<Value> SoldCupDigit[3] </Value>
|
||||
</FlipNumber>
|
||||
|
||||
<FlipNumber>
|
||||
<X> 492 </X>
|
||||
<Y> 450 </Y>
|
||||
<Width> 94 </Width>
|
||||
<Height> 126 </Height>
|
||||
<Font> KanitMediumTTF </Font>
|
||||
<Size> 128 </Size>
|
||||
<Color> 0x523D30 </Color>
|
||||
<Delay> 700 </Delay>
|
||||
<Duration> 1500 </Duration>
|
||||
<Align> center-vertical-horizontal </Align>
|
||||
<Value> SoldCupDigit[4] </Value>
|
||||
</FlipNumber>
|
||||
|
||||
<FlipNumber>
|
||||
<X> 601 </X>
|
||||
<Y> 450 </Y>
|
||||
<Width> 94 </Width>
|
||||
<Height> 126 </Height>
|
||||
<Font> KanitMediumTTF </Font>
|
||||
<Size> 128 </Size>
|
||||
<Color> 0x523D30 </Color>
|
||||
<Delay> 550 </Delay>
|
||||
<Duration> 1500 </Duration>
|
||||
<Align> center-vertical-horizontal </Align>
|
||||
<Value> SoldCupDigit[5] </Value>
|
||||
</FlipNumber>
|
||||
|
||||
<FlipNumber>
|
||||
<X> 730 </X>
|
||||
<Y> 450 </Y>
|
||||
<Width> 94 </Width>
|
||||
<Height> 126 </Height>
|
||||
<Font> KanitMediumTTF </Font>
|
||||
<Size> 128 </Size>
|
||||
<Color> 0x523D30 </Color>
|
||||
<Delay> 400 </Delay>
|
||||
<Duration> 1500 </Duration>
|
||||
<Align> center-vertical-horizontal </Align>
|
||||
<Value> SoldCupDigit[6] </Value>
|
||||
</FlipNumber>
|
||||
|
||||
<FlipNumber>
|
||||
<X> 839 </X>
|
||||
<Y> 450 </Y>
|
||||
<Width> 94 </Width>
|
||||
<Height> 126 </Height>
|
||||
<Font> KanitMediumTTF </Font>
|
||||
<Size> 128 </Size>
|
||||
<Color> 0x523D30 </Color>
|
||||
<Delay> 250 </Delay>
|
||||
<Duration> 1500 </Duration>
|
||||
<Align> center-vertical-horizontal </Align>
|
||||
<Value> SoldCupDigit[7] </Value>
|
||||
</FlipNumber>
|
||||
|
||||
<FlipNumber>
|
||||
<X> 948 </X>
|
||||
<Y> 450 </Y>
|
||||
<Width> 94 </Width>
|
||||
<Height> 126 </Height>
|
||||
<Font> KanitMediumTTF </Font>
|
||||
<Size> 128 </Size>
|
||||
<Color> 0x523D30 </Color>
|
||||
<Delay> 100 </Delay>
|
||||
<Duration> 1500 </Duration>
|
||||
<Align> center-vertical-horizontal </Align>
|
||||
<Value> SoldCupDigit[8] </Value>
|
||||
</FlipNumber>
|
||||
|
||||
<Text>
|
||||
<X> 421 </X>
|
||||
<Y> 407 </Y>
|
||||
<Size> 25 </Size>
|
||||
<Width>400</Width>
|
||||
<Font> KanitMediumTTF </Font>
|
||||
<Color> 0x523D30 </Color>
|
||||
<Value> "เสิร์ฟแล้ว (sold cup )" </Value>
|
||||
</Text>
|
||||
|
||||
<Text>
|
||||
<X> 367 </X>
|
||||
<Y> 400 </Y>
|
||||
<Size> 130 </Size>
|
||||
<Width>50</Width>
|
||||
<Height>220</Height>
|
||||
<Font> KanitMediumTTF </Font>
|
||||
<Color> 0x523D30 </Color>
|
||||
<Value> "," </Value>
|
||||
</Text>
|
||||
|
||||
<Text>
|
||||
<X> 695 </X>
|
||||
<Y> 400 </Y>
|
||||
<Size> 130 </Size>
|
||||
<Width>50</Width>
|
||||
<Height>220</Height>
|
||||
<Font> KanitMediumTTF </Font>
|
||||
<Color> 0x523D30 </Color>
|
||||
<Value> "," </Value>
|
||||
</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"
|
||||
EndIf
|
||||
|
||||
;OpenInst 0 "//mnt/sdcard/coffeevending/taobin_project/xml/page_remove_cup.xml"
|
||||
</EventClick>
|
||||
</Image>
|
||||
|
||||
</Page>
|
||||
Loading…
Add table
Add a link
Reference in a new issue