diff --git a/image/sold_cup/rectangle.png b/image/sold_cup/rectangle.png new file mode 100644 index 00000000..df0bbd45 Binary files /dev/null and b/image/sold_cup/rectangle.png differ diff --git a/xml/multi_ads/ads_path.ev b/xml/multi_ads/ads_path.ev index b8ed2ea1..a47e0c8f 100644 --- a/xml/multi_ads/ads_path.ev +++ b/xml/multi_ads/ads_path.ev @@ -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" diff --git a/xml/page_back_to_main.xml b/xml/page_back_to_main.xml index 1b33aa4d..37b78491 100644 --- a/xml/page_back_to_main.xml +++ b/xml/page_back_to_main.xml @@ -9,7 +9,12 @@ OpenInst 0 "/mnt/sdcard/coffeevending/taobin_project/xml/page_board.xml" - OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/test_video_loop.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" diff --git a/xml/sold_cup_count.xml b/xml/sold_cup_count.xml new file mode 100644 index 00000000..9f12a8a7 --- /dev/null +++ b/xml/sold_cup_count.xml @@ -0,0 +1,297 @@ + + + "ALL" + HeadScreenWidth + HeadScreenHeight + + 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 + + +;include="ROOT/taobin_project/inc/video.inc" + + 1000 + + 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 + + + + 39 + 450 + "ROOT/taobin_project/image/sold_cup/rectangle.png" + + + + 148 + 450 + "ROOT/taobin_project/image/sold_cup/rectangle.png" + + + + 257 + 450 + "ROOT/taobin_project/image/sold_cup/rectangle.png" + + + + 393 + 450 + "ROOT/taobin_project/image/sold_cup/rectangle.png" + + + + 492 + 450 + "ROOT/taobin_project/image/sold_cup/rectangle.png" + + + + 601 + 450 + "ROOT/taobin_project/image/sold_cup/rectangle.png" + + + + 730 + 450 + "ROOT/taobin_project/image/sold_cup/rectangle.png" + + + + 839 + 450 + "ROOT/taobin_project/image/sold_cup/rectangle.png" + + + + 948 + 450 + "ROOT/taobin_project/image/sold_cup/rectangle.png" + + + + 39 + 450 + 94 + 126 + KanitMediumTTF + 128 + 0x523D30 + 1300 + 1500 + center-vertical-horizontal + SoldCupDigit[0] + + + + 148 + 450 + 94 + 126 + KanitMediumTTF + 128 + 0x523D30 + 1150 + 1500 + center-vertical-horizontal + SoldCupDigit[1] + + + + 257 + 450 + 94 + 126 + KanitMediumTTF + 128 + 0x523D30 + 1000 + 1500 + center-vertical-horizontal + SoldCupDigit[2] + + + + 393 + 450 + 94 + 126 + KanitMediumTTF + 128 + 0x523D30 + 850 + 1500 + center-vertical-horizontal + SoldCupDigit[3] + + + + 492 + 450 + 94 + 126 + KanitMediumTTF + 128 + 0x523D30 + 700 + 1500 + center-vertical-horizontal + SoldCupDigit[4] + + + + 601 + 450 + 94 + 126 + KanitMediumTTF + 128 + 0x523D30 + 550 + 1500 + center-vertical-horizontal + SoldCupDigit[5] + + + + 730 + 450 + 94 + 126 + KanitMediumTTF + 128 + 0x523D30 + 400 + 1500 + center-vertical-horizontal + SoldCupDigit[6] + + + + 839 + 450 + 94 + 126 + KanitMediumTTF + 128 + 0x523D30 + 250 + 1500 + center-vertical-horizontal + SoldCupDigit[7] + + + + 948 + 450 + 94 + 126 + KanitMediumTTF + 128 + 0x523D30 + 100 + 1500 + center-vertical-horizontal + SoldCupDigit[8] + + + + 421 + 407 + 25 + 400 + KanitMediumTTF + 0x523D30 + "เสิร์ฟแล้ว (sold cup )" + + + + 367 + 400 + 130 + 50 + 220 + KanitMediumTTF + 0x523D30 + "," + + + + 695 + 400 + 130 + 50 + 220 + KanitMediumTTF + 0x523D30 + "," + + + + + 670 + 0 + 400 + 400 + "/mnt/sdcard/coffeevending/wav/click.wav" + SoundVolume + + OpenInst 0 "//mnt/sdcard/coffeevending/taobin_project/xml/vending_info.xml" + + + 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" + + + +