From 1c714d4c0bd169d1a850823e3ab1d5727de724d2 Mon Sep 17 00:00:00 2001 From: Kenta420 Date: Mon, 16 Oct 2023 17:27:52 +0700 Subject: [PATCH] update script video inter --- inter/aus/video/script_thank.ev | 5 +++++ inter/aus/video/script_video.ev | 22 ++++++++++++++++++++++ inter/mys/video/script_thank.ev | 5 +++++ inter/mys/video/script_video.ev | 14 ++++++++++++++ xml/page_board.xml | 17 +++++++++++++---- xml/page_thankyou.xml | 8 ++++++-- 6 files changed, 65 insertions(+), 6 deletions(-) create mode 100644 inter/aus/video/script_thank.ev create mode 100644 inter/aus/video/script_video.ev create mode 100644 inter/mys/video/script_thank.ev create mode 100644 inter/mys/video/script_video.ev diff --git a/inter/aus/video/script_thank.ev b/inter/aus/video/script_thank.ev new file mode 100644 index 00000000..a683a97d --- /dev/null +++ b/inter/aus/video/script_thank.ev @@ -0,0 +1,5 @@ +SAVELOG "For change size this file." + +If EventTurnOn = 1 Then + +EndIf \ No newline at end of file diff --git a/inter/aus/video/script_video.ev b/inter/aus/video/script_video.ev new file mode 100644 index 00000000..87170448 --- /dev/null +++ b/inter/aus/video/script_video.ev @@ -0,0 +1,22 @@ +Var MainfileSize = 0 +Var EventTurnOn = 0 +DEBUGVAR MainfileSize +If SystemDateMonthInt = 10 Then + GetFileSizeK "taobin_project/inter/aus/video/video_main_event.mp4" MainfileSize + DEBUGVAR MainfileSize + If MainfileSize = 13119511 Then + Var EventTurnOn = 1 + EndIf +EndIf + +DEBUGVAR EventTurnOn + +If EventTurnOn = 1 Then + Var CountDownShowButton = 0 + Var ShowButtonClickFull = "Invisible" + Var VideoMainPage = "ROOT/taobin_project/inter/aus/video/video_main_event.mp4" +Else + Var CountDownShowButton = 0 + Var ShowButtonClickFull = "Invisible" + Var VideoMainPage = "ROOT/taobin_project/inter/aus/video/video_main.mp4" +EndIf diff --git a/inter/mys/video/script_thank.ev b/inter/mys/video/script_thank.ev new file mode 100644 index 00000000..a683a97d --- /dev/null +++ b/inter/mys/video/script_thank.ev @@ -0,0 +1,5 @@ +SAVELOG "For change size this file." + +If EventTurnOn = 1 Then + +EndIf \ No newline at end of file diff --git a/inter/mys/video/script_video.ev b/inter/mys/video/script_video.ev new file mode 100644 index 00000000..a5d34694 --- /dev/null +++ b/inter/mys/video/script_video.ev @@ -0,0 +1,14 @@ +Var MainfileSize = 0 +Var EventTurnOn = 0 +DEBUGVAR MainfileSize + + +DEBUGVAR EventTurnOn + +If EventTurnOn = 1 Then + +Else + Var CountDownShowButton = 0 + Var ShowButtonClickFull = "Invisible" + Var VideoMainPage = "ROOT/taobin_project/inter/common/video/video_main.mp4" +EndIf \ No newline at end of file diff --git a/xml/page_board.xml b/xml/page_board.xml index 833d0f86..4b98ae18 100644 --- a/xml/page_board.xml +++ b/xml/page_board.xml @@ -276,9 +276,18 @@ ; Zone set video main page. Var adver_brewing_en = 1 - - TRY "/mnt/sdcard/coffeevending/taobin_project/video/script1.ev" + If CountryName = "Australia" Then + TRY "/mnt/sdcard/coffeevending/taobin_project/inter/aus/video/script_video.ev" + EndIf + + If CountryName = "Malaysia" Then + TRY "/mnt/sdcard/coffeevending/taobin_project/inter/mys/video/script_video.ev" + EndIf + + If CountryName = "Thailand" Then + TRY "/mnt/sdcard/coffeevending/taobin_project/video/script1.ev" + EndIf DEBUGVAR CountDownShowButton @@ -733,7 +742,7 @@ LanguageControl "UpdateList" "-" Var InternationalEnable = 1 Var show_eng = "true" - Var VideoMainPage = "ROOT/taobin_project/inter/common/video/video_main.mp4" + ;Var VideoMainPage = "ROOT/taobin_project/inter/common/video/video_main.mp4" Var img_press_main_page = "ROOT/taobin_project/image/main_page_en/bp_main_page_start.png" Var ShowNetworkProblemText = "Network error. Payment Cash only." @@ -787,7 +796,7 @@ Var InternationalEnable = 1 Var show_eng = "true" - Var VideoMainPage = "ROOT/taobin_project/inter/aus/video/video_main.mp4" + ;Var VideoMainPage = "ROOT/taobin_project/inter/aus/video/video_main.mp4" Var img_press_main_page = "ROOT/taobin_project/image/main_page_en/bp_main_page_start.png" Var ShowNetworkProblemText = "Network error. Payment Cash only." diff --git a/xml/page_thankyou.xml b/xml/page_thankyou.xml index 474a32c6..9a19463b 100644 --- a/xml/page_thankyou.xml +++ b/xml/page_thankyou.xml @@ -149,8 +149,12 @@ If SaveTheWorldCount < 2 Then - TRY "/mnt/sdcard/coffeevending/taobin_project/video/script2.ev" - + If InternationalEnable = 1 Then + Var script_thankyou = CountryRootPath + "/video/script_thankyou.ev" + TRY script_thankyou + Else + TRY "/mnt/sdcard/coffeevending/taobin_project/video/script2.ev" + EndIf EndIf