diff --git a/image/collectiing/bd_confirm.png b/image/collectiing/bd_confirm.png new file mode 100644 index 00000000..cd1cd8e9 Binary files /dev/null and b/image/collectiing/bd_confirm.png differ diff --git a/image/collectiing/text1.png b/image/collectiing/text1.png index dc60f177..8378e1fe 100644 Binary files a/image/collectiing/text1.png and b/image/collectiing/text1.png differ diff --git a/image/collectiing/text20.png b/image/collectiing/text20.png new file mode 100644 index 00000000..7697cd93 Binary files /dev/null and b/image/collectiing/text20.png differ diff --git a/image/collectiing/text21.png b/image/collectiing/text21.png new file mode 100644 index 00000000..8378e1fe Binary files /dev/null and b/image/collectiing/text21.png differ diff --git a/xml/page_board.xml b/xml/page_board.xml index f39a1f8a..07d4d47a 100644 --- a/xml/page_board.xml +++ b/xml/page_board.xml @@ -35,6 +35,8 @@ Var ShowButtonClick = "Enable" Var ShowButtonClickFull = "Invisible" + Var XPosiShowCountDownBrew = 788 + 800 diff --git a/xml/page_brewing2.xml b/xml/page_brewing2.xml index b5b2cc90..9da9bb9b 100644 --- a/xml/page_brewing2.xml +++ b/xml/page_brewing2.xml @@ -188,7 +188,7 @@ - 808 + XPosiShowCountDownBrew 480 1080 "Hurr" diff --git a/xml/page_collect_point_1.xml b/xml/page_collect_point_1.xml index 9b3e487d..48e44d91 100644 --- a/xml/page_collect_point_1.xml +++ b/xml/page_collect_point_1.xml @@ -8,19 +8,37 @@ ; On open + Var Tel_Confirm_State = "Disable" + Var ShowTextNumber = "Enable" Var Timeout = 0 Var TelephoneNumber = "" 1000 - + Var CountDownBrewing = CountDownBrewing - 1 + + ; run test; + ;If CountDownBrewing = 40 Then + ; Open "ROOT/taobin_project/xml/page_drinkok.xml" + ;EndIf + If CountDownBrewing = 0 Then + Open "ROOT/taobin_project/xml/page_drinkok.xml" + EndIf + + Var ShowCountDownBrewing = CountDownBrewing + + + StrLen TelephoneNumber TelNumLen + If TelNumLen > 0 Then + Var ShowTextNumber = "Invisible" + EndIf Var Timeout = Timeout + 1 If Timeout > 20 Then - Open "ROOT/taobin_project/xml/page_lid_straw.xml" + ;Open "ROOT/taobin_project/xml/page_lid_straw.xml" EndIf TimerReset @@ -285,8 +303,8 @@ @@ -328,18 +345,18 @@ - 378 - 874 + 364 + 887 ShowTextNumber - "ROOT/taobin_project/image/enter_point/text3.png" + "ROOT/taobin_project/image/collectiing/text21.png" - 240 - 606 - "ROOT/taobin_project/image/enter_point/text2.png" + 178 + 680 + "ROOT/taobin_project/image/collectiing/text20.png" @@ -348,6 +365,26 @@ 0 "ROOT/taobin_project/image/ad_medium_2.png" + + + + 751 + 413 + "ROOT/taobin_project/image/page_doing/img2.png" + + + + XPosiShowCountDownBrew + 480 + 1080 + "Hurr" + 88 + KanitRegularTTF + 0x513C2F + ShowCountDownBrewing + + + Open "/media/bt/xml/security_alarm.xml" diff --git a/xml/page_collect_point_2.xml b/xml/page_collect_point_2.xml index 61bd171c..ab40229d 100644 --- a/xml/page_collect_point_2.xml +++ b/xml/page_collect_point_2.xml @@ -11,6 +11,8 @@ Var Timeout = 0 Var TelephoneNumber = "" + ;Open "ROOT/taobin_project/xml/page_show_consent.xml" + 1000 @@ -18,7 +20,7 @@ Var Timeout = Timeout + 1 If Timeout > 30 Then ;Var CoffeePoint = 1 - ;Open "/media/bt/xml/page_collect_point_3.xml" + ;Open "ROOT/taobin_project/xml/page_show_consent.xml" If StepGetPoint = 0 Then Open "ROOT/taobin_project/xml/page_show_consent.xml" @@ -110,10 +112,31 @@ EndIf If MachineStage = "drink-failed" Then - Var MachineState_Result = 1 + Var MachineState_Result = 2 EndIf + + + + 751 + 413 + "ROOT/taobin_project/image/page_doing/img2.png" + + + + XPosiShowCountDownBrew + 480 + 1080 + "Hurr" + 88 + KanitRegularTTF + 0x513C2F + ShowCountDownBrewing + + + + \ No newline at end of file diff --git a/xml/page_lid_straw.xml b/xml/page_lid_straw.xml index 5969a14e..0e3fe6bb 100644 --- a/xml/page_lid_straw.xml +++ b/xml/page_lid_straw.xml @@ -163,7 +163,7 @@ ; show counter brewing - 808 + XPosiShowCountDownBrew 480 1080 "Hurr" diff --git a/xml/page_payment_cash.xml b/xml/page_payment_cash.xml index adde0526..211a7a3a 100644 --- a/xml/page_payment_cash.xml +++ b/xml/page_payment_cash.xml @@ -323,10 +323,13 @@ "ROOT/taobin_project/image/ad_medium_2.png" Var MachineStage = "make-drink" + Var CountDownBrewing = 120 + ;Var BrewingTextThai = "เตรียมแก้ว" ;MakeDrinkV1 SelectDrink SelectSugarID ;Open "ROOT/taobin_project/xml/page_thankyou.xml" + Open "ROOT/taobin_project/xml/page_collect_point_1.xml" diff --git a/xml/page_show_consent.xml b/xml/page_show_consent.xml index 19c5716b..99bcd83d 100644 --- a/xml/page_show_consent.xml +++ b/xml/page_show_consent.xml @@ -16,12 +16,22 @@ 1000 - ;Open "ROOT/xml/page_board.xml" + Var CountDownBrewing = CountDownBrewing - 1 + + ; run test; + ;If CountDownBrewing = 40 Then + ; Open "ROOT/taobin_project/xml/page_drinkok.xml" + ;EndIf + If CountDownBrewing = 0 Then + Open "ROOT/taobin_project/xml/page_drinkok.xml" + EndIf + + Var ShowCountDownBrewing = CountDownBrewing Var Timeout = Timeout + 1 If Timeout > 20 Then ; goto lid straw - Open "ROOT/taobin_project/xml/page_lid_straw.xml" + Open "ROOT/taobin_project/xml/page_lid_straw.xml" EndIf TimerReset @@ -44,8 +54,8 @@