diff --git a/inter/aus/configure.ev b/inter/aus/configure.ev
index 25be22a5..07532c6e 100644
--- a/inter/aus/configure.ev
+++ b/inter/aus/configure.ev
@@ -1,6 +1,6 @@
If BoxID = 200027 Then
- Var EnableMultiInstanceFromBoxID = 0
+ Var EnableMultiInstanceFromBoxID = 1
EndIf
READ_FILE "/mnt/sdcard/enable_ui_v3" EnableMultiInstanceFromConfig
diff --git a/inter/aus/xml/event/script_common_for_open_promotion_xml.ev b/inter/aus/xml/event/script_common_for_open_promotion_xml.ev
index cf070aeb..cff8f08f 100644
--- a/inter/aus/xml/event/script_common_for_open_promotion_xml.ev
+++ b/inter/aus/xml/event/script_common_for_open_promotion_xml.ev
@@ -18,10 +18,24 @@ If TasteTheJourneyPro = 1 Then
Var RecommendPage = "ROOT/taobin_project/inter/aus/xml/event/promotion_taste_the_journey.lxml"
EndIf
-If OpenFromPageBoard = 1 Then
- OpenInst 2 RecommendPage
+If CatalogLayoutV3 = 1 Then
+
+ SAVELOG " CatalogLayoutV3 CatalogLayoutV3 CatalogLayoutV3 CatalogLayoutV3 CatalogLayoutV3 CatalogLayoutV3"
+ TRY "/mnt/sdcard/coffeevending/taobin_project/inter/aus/xml/multi/v3/event/script_open_promotion_v3.ev"
Else
- Open RecommendPage
+
+ If OpenFromPageBoard = 1 Then
+
+ DEBUGVAR BigButtonEnable
+
+ OpenInst 2 FileRecommendToOpen
+ Var OpenFromPageBoard = 0
+
+ Else
+
+ Open FileRecommendToOpen
+
+ EndIf
EndIf
Var OpenFromPageBoard = 0
\ No newline at end of file
diff --git a/inter/aus/xml/multi/control_and_lang_swith.lxml b/inter/aus/xml/multi/control_and_lang_swith.ev
similarity index 90%
rename from inter/aus/xml/multi/control_and_lang_swith.lxml
rename to inter/aus/xml/multi/control_and_lang_swith.ev
index 036e1abc..1793605c 100644
--- a/inter/aus/xml/multi/control_and_lang_swith.lxml
+++ b/inter/aus/xml/multi/control_and_lang_swith.ev
@@ -23,7 +23,8 @@ Var InstanceTabOpenFile4 = "ROOT/taobin_project/inter/aus/xml/multi/" + layoutVe
Var InstanceTabOpenFile4 = InstanceTabOpenFile4 + "/page_catalog_group_milk.lxml"
OpenRedirect "/taobin_project/inter/aus/xml/page_catalog_group_other.lxml" "/mnt/sdcard/coffeevending/taobin_project/inter/aus/xml/multi/other.ev"
-Var InstanceTabOpenFile7 = "ROOT/taobin_project/inter/aus/xml/multi/" + layoutVersion
+Var InstanceTabOpenFile8 = "ROOT/taobin_project/inter/aus/xml/multi/" + layoutVersion
+Var InstanceTabOpenFile8 = InstanceTabOpenFile8 + "/page_catalog_group_other.lxml"
If AppFastButtonState = "Enable" Then
Var InstanceTabOpenFile5 = "ROOT/taobin_project/inter/aus/xml/multi/" + layoutVersion
@@ -48,15 +49,20 @@ EndIf
If CocktailShow = "true" Then
- OpenRedirect "/taobin_project/inter/aus/xml/page_catalog_group_cocktail.lxml" "/mnt/sdcard/coffeevending/taobin_project/inter/aus/xml/multi/health.ev"
+ OpenRedirect "/taobin_project/inter/aus/xml/page_catalog_group_cocktail.lxml" "/mnt/sdcard/coffeevending/taobin_project/inter/aus/xml/multi/dessert.ev"
Var InstanceTabOpenFile6 = "ROOT/taobin_project/inter/aus/xml/multi/" + layoutVersion
Var InstanceTabOpenFile6 = InstanceTabOpenFile6 + "/page_catalog_group_cocktail.lxml"
Else
- OpenRedirect "/taobin_project/inter/aus/xml/page_catalog_group_dessert.lxml" "/mnt/sdcard/coffeevending/taobin_project/inter/aus/xml/multi/health.ev"
+ OpenRedirect "/taobin_project/inter/aus/xml/page_catalog_group_dessert.lxml" "/mnt/sdcard/coffeevending/taobin_project/inter/aus/xml/multi/dessert.ev"
Var InstanceTabOpenFile6 = "ROOT/taobin_project/inter/aus/xml/multi/" + layoutVersion
Var InstanceTabOpenFile6 = InstanceTabOpenFile6 + "/page_catalog_group_dessert.lxml"
EndIfi
+OpenRedirect "/taobin_project/inter/aus/xml/page_catalog_group_energy_drink.lxml" "/mnt/sdcard/coffeevending/taobin_project/inter/aus/xml/multi/energy_drink.ev"
+Var InstanceTabOpenFile7 = "ROOT/taobin_project/inter/aus/xml/multi/" + layoutVersion
+Var InstanceTabOpenFile7 = InstanceTabOpenFile7 + "/page_catalog_group_energy_drink.lxml"
+
+
OpenRedirect "taobin_project/inter/aus/xml/page_catalog_group_recommend.lxml" "/mnt/sdcard/coffeevending/taobin_project/inter/aus/xml/multi/recommend.ev"
diff --git a/inter/aus/xml/multi/health.ev b/inter/aus/xml/multi/dessert.ev
similarity index 82%
rename from inter/aus/xml/multi/health.ev
rename to inter/aus/xml/multi/dessert.ev
index 92620920..0f32bf3c 100644
--- a/inter/aus/xml/multi/health.ev
+++ b/inter/aus/xml/multi/dessert.ev
@@ -1,3 +1,3 @@
-SAVELOG "Call health.ev"
+SAVELOG "Call dessert.ev"
TabMenuVisibleInst 6
Var RedirectTo = "/mnt/sdcard/coffeevending/taobin_project/inter/aus/xml/multi/page_instance2.xml"
diff --git a/inter/aus/xml/multi/energy_drink.ev b/inter/aus/xml/multi/energy_drink.ev
new file mode 100644
index 00000000..f485961d
--- /dev/null
+++ b/inter/aus/xml/multi/energy_drink.ev
@@ -0,0 +1,3 @@
+SAVELOG "Call energy_drink.ev"
+TabMenuVisibleInst 7
+Var RedirectTo = "/mnt/sdcard/coffeevending/taobin_project/inter/tha/xml/multi/page_instance2.xml"
diff --git a/inter/aus/xml/multi/menu_catalog_default_init.lxml b/inter/aus/xml/multi/menu_catalog_default_init.lxml
index 51111d75..fe1d98cb 100644
--- a/inter/aus/xml/multi/menu_catalog_default_init.lxml
+++ b/inter/aus/xml/multi/menu_catalog_default_init.lxml
@@ -108,18 +108,16 @@
Var Menu7Selected = "Invisible"
EndIf
- If RecipeTag1 = "HealthTurnOn" Then
- Var Menu22Selected = "Enable"
- Else
- Var Menu22Selected = "Invisible"
- EndIf
+ Var Menu22Selected = "Enable"
+ Var Menu23Selected = "Enable"
+ Var Menu62Selected = "Enable"
- If WinterWarmersCatalogFlag = 1 Then
- Var MenuWinterWarmersCatalogState = "Enable"
- Else
- Var MenuWinterWarmersCatalogState = "Invisible"
- EndIf
- DEBUGVAR WinterWarmersCatalogFlag
- DEBUGVAR MenuWinterWarmersCatalogState
+ ;If WinterWarmersCatalogFlag = 1 Then
+ ; Var MenuWinterWarmersCatalogState = "Enable"
+ ;Else
+ ; Var MenuWinterWarmersCatalogState = "Invisible"
+ ;EndIf
+ ;DEBUGVAR WinterWarmersCatalogFlag
+ ;DEBUGVAR MenuWinterWarmersCatalogState
;
diff --git a/inter/aus/xml/multi/menu_catalog_new.lxml b/inter/aus/xml/multi/menu_catalog_new.lxml
index e8248538..b5dbd8c7 100644
--- a/inter/aus/xml/multi/menu_catalog_new.lxml
+++ b/inter/aus/xml/multi/menu_catalog_new.lxml
@@ -9,135 +9,46 @@
"0xeae6e1"
+
+ InstanceGetString SaveStringInst
+ DEBUGVAR SaveStringInst
+ DEBUGVAR show_eng
- 1000
-
- ;DEBUGVAR ICE_PROCESS_STATUS
-
- If ICE_PROCESS_STATUS = 2 Then
- Var ice_tab_process_show = "Enable"
- Var ice_show_open = ice_tab_text + ICE_PROCESS_TXT
- Else
- Var ice_tab_process_show = "Invisible"
- EndIf
-
-
- If NextPage = "-" Then
-
- Else
- If CupOnArm = "true" Then
- If Timeout > 9 Then
- SAVELOG "COA9"
- Open NextPage
- EndIf
- Else
- If Timeout > 30 Then
- SAVELOG "COA30"
- Open NextPage
- EndIf
- EndIf
- EndIf
-
- If Timeout > 60 Then
- SAVELOG "Timeout"
- If Seeker = "next" Then
- Open "ROOT/taobin_project/xml/page_brewing3Conti.xml"
- Else
- SAVELOG "Back"
- Open "ROOT/taobin_project/xml/page_back_to_main.xml"
- EndIf
- EndIf
-
- If BrewCommand = "RefreshAll" Then
- Var BrewCommand = "-"
- Open CurrentXMLFileName2
- EndIf
-
- If Seeker = "curr" Then
- If DoorCupPosition = "bottom" Then
- ; It normal
- Var EmergencyStop = "false"
- Else
- Var EmergencyStop = "true"
-
- ;Open "ROOT/taobin_project/xml/page_back_to_error.xml"
-
- EndIf
- EndIf
-
- If IgnoreNetCore = "true" Then
-
- Else
- ;stop_now
- If NETCORE_LOST_CNT > 120 Then
- Var stop_now = "true"
- Var MachineErrorDetailAll = "???"
- SAVELOG "NETCORE_LOST_CNT"
-
- Open "ROOT/taobin_project/xml/page_back_to_error.xml"
- EndIf
- EndIf
-
- ; zone cup on arm
- If Seeker = "curr" Then
- If CupOnArm = "true" Then
- Var buttonRemoveCup = "Enable"
- Refresh
- Else
- If buttonRemoveCup = "Enable" Then
- Var buttonRemoveCup = "Invisible"
- Refresh
- EndIf
- EndIf
- Else
- Var buttonRemoveCup = "Invisible"
+ If SaveStringInst = "RefreshNow" Then
Refresh
EndIf
- Var Timeout = Timeout + 1
- TimerReset
-
+
+
DEBUGVAR LanguageShow
- If LanguageShow = "ENG" Then
- Var DirImage2 = "ROOT/taobin_project/image/drink_option_en/"
- Var DirImageAlter = "ROOT/taobin_project/image/page3_2_en/"
+ ;inter-image
+ Var show_eng = "true"
+ Var DirImageAlter = "ROOT/taobin_project/image/page3_2_en/"
+ Var DirImageAUS = "/mnt/sdcard/coffeevending/taobin_project/inter/aus/image/page3_2_en/"
- EndIf
- If LanguageShow = "THAI" Then
- Var DirImage2 = "ROOT/taobin_project/image/drink_option/"
- Var DirImageAlter = "ROOT/taobin_project/image/page3_2/"
- EndIf
- ;inter-image
- If CountryName = "Malaysia" Then
- Var DirImage2 = "ROOT/taobin_project/image/drink_option_myr/"
- Var DirImageAlter = "ROOT/taobin_project/image/page3_2_en/"
- Var DirImage = "ROOT/taobin_project/image/page3_en"
- Var ice_tab_text = "Ice will be ready at "
- EndIf
- ;inter-image
- If CountryName = "Australia" Then
- Var DirImage2 = "ROOT/taobin_project/image/drink_option_aus/"
- Var DirImageAlter = "ROOT/taobin_project/image/page3_2_en/"
- Var DirImageAlterAus = "ROOT/taobin_project/inter/aus/image/page3_2_en/"
- Var DirImage = "ROOT/taobin_project/image/page3_en"
- Var ice_tab_text = "Ice will be ready at "
- EndIf
+ DEBUGVAR DirImageAlter
SAVELOG "EventLanguageOnChange menu -list"
- Refresh
+
Var LanguageButtonEnable = "Enable"
- Var ButtonLanguageCurrentXPosition = 990
- Var ButtonLanguageCurrentYPosition = 438 - 38
- Var ButtonLanguageListXPosition = 970
- Var ButtonLanguageListYPosition = 430 - 38
+
OpenInst 3 "ROOT/taobin_project/xml/topview2.xml"
+ ;include="ROOT/taobin_project/inter/aus/xml/multi/tab_menu_open_instance.lxml"
+
+
+ RefreshAll
+
+
+ Script "-" "-"
+
+ Var Timeout = 0
@@ -167,300 +78,17 @@
"/mnt/sdcard/coffeevending/wav/click.wav"
SoundVolume
- If SpiralOnline = "true" Then
- If Seeker = "curr" Then
- Open "ROOT/taobin_project/xml/page_catalog_with_vending.xml"
- Else
- Open "ROOT/taobin_project/xml/page_catalog.lxml"
- EndIf
- Else
- Open "ROOT/taobin_project/xml/page_catalog.lxml"
- EndIf
+ SAVELOG " Back multi inst"
+ TabMenuVisibleInst 99
+ RootLayoutVisible 13 "hide"
+
+ Var OpenFromMulti = 1
+ OpenInst 2 "ROOT/taobin_project/inter/aus/xml/multi/page_catalog.lxml"
-
-
-
-
-
- 1080
- "auto"
- 0
- 395
-
- "Enable"
- 896
- 102
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
940
462
diff --git a/inter/aus/xml/multi/menu_new_layout_gen_v2.py b/inter/aus/xml/multi/menu_new_layout_gen_v2.py
deleted file mode 100644
index 0a00258e..00000000
--- a/inter/aus/xml/multi/menu_new_layout_gen_v2.py
+++ /dev/null
@@ -1,619 +0,0 @@
- if "v2" in param:
- def GenMenuProductCodeBlock( str_hot_product_code, str_cold_product_code, str_blend_product_code):
- print(" size " + str( len(spl)) + " img=" + spl[ idx_img][1] )
- out_xml( '\t; ==================> Len = ' + str(len(spl)) + '\r\n')
- menu_img = spl[ idx_img][1]
- out_xml( '\t; '+ str_hot_product_code + ' ' + str_cold_product_code + ' ' + str_blend_product_code+ ' \r\n')
-
- out_xml( '\r\n')
- out_xml('\t 33 \r\n')
- out_xml('\t 22 \r\n')
- out_xml('\t 225 \r\n')
- out_xml('\t 296 \r\n')
- str_con = ""
- str_con_var = ""
- #print("#########################################################################################################################")
- #print( str( spl))
- #print("#########################################################################################################################")
- if str_hot_product_code != '-':
- str_con += str_hot_product_code + '.Button,'
-
- if str_cold_product_code != '-':
- str_con += str_cold_product_code + '.Button,'
-
- if str_blend_product_code != '-':
- str_con += str_blend_product_code + '.Button,'
-
- if str_hot_product_code != '-':
- str_con_var += str_hot_product_code + '-'
-
- if str_cold_product_code != '-':
- str_con_var += str_cold_product_code + '-'
-
- if str_blend_product_code != '-':
- str_con_var += str_blend_product_code + '-'
-
- str_con_var = str_con_var.replace("-", "")
- if touch_less_gen == True:
- str_con += "Disable=Invisible,"
-
- str_con += "$Sum" + str_con_var
-
- out_xml( '\t Flag( '+ str_con + ') \r\n')
-
- pd_code_1 = str_hot_product_code
- pd_stage1 = '$' + str_hot_product_code + '.Button'
- if str_hot_product_code == "-" or len(str_hot_product_code) == 0 :
- pd_code_1 = pd_code_available
- pd_stage1 = '"Disable2"'
-
- pd_code_2 = str_cold_product_code
- pd_stage2 = '$' + str_cold_product_code + '.Button'
- if str_cold_product_code == "-" or len(str_cold_product_code) == 0:
- pd_code_2 = pd_code_available
- pd_stage2 = '"Disable2"'
-
- pd_code_3 = str_blend_product_code
- pd_stage3 = '$' + str_blend_product_code + '.Button'
- if str_blend_product_code == "-" or len(str_blend_product_code) == 0:
- pd_code_3 = pd_code_available
- pd_stage3 = '"Disable2"'
-
-
-
-
- out_xml( '\t\r\n')
-
-
-
- out_xml( '\t\r\n')
- out_xml( '\t 16 \r\n')
- out_xml( '\t 164 \r\n')
- out_xml( '\t 22 \r\n')
- out_xml( '\t222\r\n')
- out_xml( '\t "multi2" \r\n')
- out_xml( '\t KanitMediumTTF \r\n')
- out_xml( '\t 0x322B26 \r\n')
-
- out_xml( '\t\r\n')
- out_xml( '\t\t' + spl[ idx_name][ idx_lang_eng] + '\r\n')
- out_xml( '\t\t' + spl[ idx_name][ idx_lang_thai] + '\r\n')
- out_xml( '\t\t' + spl[ idx_name][ idx_lang_eng] + '\r\n')
- out_xml( '\t\t' + spl[ idx_name][ idx_lang_thai] + '\r\n')
- out_xml( '\t\t' + spl[ idx_name][ idx_lang_malay] + '\r\n')
- out_xml( '\t\t' + spl[ idx_name][ idx_lang_thai] + '\r\n')
- out_xml( '\t\r\n')
-
- out_xml( '\t\r\n')
-
- out_xml( '\t\r\n')
- out_xml( '\t 16 \r\n')
- out_xml( '\t 220 \r\n')
- out_xml( '\t 14 \r\n')
- out_xml( '\t222\r\n')
- out_xml( '\t KanitMediumTTF \r\n')
- out_xml( '\t 0x6F5F51 \r\n')
- #out_xml( '\t showthaiText \r\n')
- out_xml( '\t\r\n')
- out_xml( '\t\t' + spl[ idx_desc][ idx_lang_eng] + '\r\n')
- out_xml( '\t\t' + spl[ idx_desc][ idx_lang_thai] + '\r\n')
- out_xml( '\t\t' + spl[ idx_desc][ idx_lang_eng] + '\r\n')
- out_xml( '\t\t' + spl[ idx_desc][ idx_lang_thai] + '\r\n')
- out_xml( '\t\t' + spl[ idx_desc][ idx_lang_malay] + '\r\n')
- out_xml( '\t\t' + spl[ idx_desc][ idx_lang_thai] + '\r\n')
- out_xml( '\t\r\n')
-
- out_xml( '\t\r\n')
-
-
-
- out_xml( '\t\r\n')
- out_xml( '\t 16 \r\n')
- out_xml( '\t 264 \r\n')
- out_xml( '\t Var( DirImage2 + "option_deactive.png" ) \r\n')
- out_xml( '\t\r\n')
-
- ice_tab_hot_show = True
- shw = "$" + str_hot_product_code + ".Button"
- if str_hot_product_code == "-" :
- shw = '"Invisible"'
- ice_tab_hot_show = False
-
- if len(str_hot_product_code) == 0 :
- shw = '"Invisible"'
- ice_tab_hot_show = False
-
- out_xml( '\t\r\n')
- out_xml( '\t 16 \r\n')
- out_xml( '\t 264 \r\n')
- out_xml( '\t ' + shw + ' \r\n')
- out_xml( '\t Var( DirImage2 + "hot.png" ) \r\n')
- out_xml( '\t Var( DirImage2 + "hot_db.png" ) \r\n')
- out_xml( '\t\r\n')
-
- out_xml( '\t\r\n')
- out_xml( '\t TextPriceMenuHotX \r\n')
- out_xml( '\t TextPriceMenuY \r\n')
- out_xml( '\t TextPriceMenuSize \r\n')
- out_xml( '\t220\r\n')
- out_xml( '\t KanitMediumTTF \r\n')
-
-
- out_xml( '\t 0x6F5F51 \r\n')
- out_xml( '\t 0xEAE6E1 \r\n')
- out_xml( '\t ' + shw + ' \r\n')
-
- #out_xml( '\t Var( "฿" + $' + spl[ idx_hot_product_code] + '.Price ) \r\n')
-
- if "inter" in param:
- if "free" in param:
- out_xml( '\t "Free" \r\n')
- else:
- out_xml( '\t StringFmt( $' + str_hot_product_code + '.Price , DisplayFormat, PreScaleConvertShow) ; test\r\n')
- else:
- out_xml( '\t Var( "฿" + $' + str_hot_product_code + '.Price ) \r\n')
- out_xml( '\t\r\n')
-
- ice_tab_ice_show = True
-
- shw = "$" + str_cold_product_code + ".Button"
- if str_cold_product_code == "-" :
- shw = '"Invisible"'
- ice_tab_ice_show = False
-
- if len(str_cold_product_code) == 0 :
- shw = '"Invisible"'
- ice_tab_ice_show = False
-
- out_xml( '\t\r\n')
- out_xml( '\t 81 \r\n')
- out_xml( '\t 264 \r\n')
- if pd_code_2 == "51-05-02-0016":
- out_xml( '\t Var( DirImage2 + "normal.png" ) \r\n')
- out_xml( '\t Var( DirImage2 + "cold_db.png" ) \r\n')
- else:
- out_xml( '\t Var( DirImage2 + "cold.png" ) \r\n')
- out_xml( '\t Var( DirImage2 + "cold_db.png" ) \r\n')
- out_xml( '\t ' + shw + ' \r\n')
- out_xml( '\t\r\n')
- out_xml( '\t\r\n')
- out_xml( '\t 113 \r\n')
- out_xml( '\t TextPriceMenuY \r\n')
- out_xml( '\t TextPriceMenuSize \r\n')
- out_xml( '\t220\r\n')
- out_xml( '\t KanitMediumTTF \r\n')
-
- out_xml( '\t 0x6F5F51 \r\n')
- out_xml( '\t 0xEAE6E1 \r\n')
- out_xml( '\t ' + shw + ' \r\n')
- if "inter" in param:
- if "free" in param:
- out_xml( '\t "Free" \r\n')
- else:
- out_xml( '\t StringFmt( $' + str_cold_product_code + '.Price , DisplayFormat, PreScaleConvertShow) ; test\r\n')
- else:
- out_xml( '\t Var( "฿" + $' + str_cold_product_code + '.Price ) \r\n')
- out_xml( '\t\r\n')
-
- ice_tab_blend_show = True
-
- shw = "$" + str_blend_product_code + ".Button"
- if str_blend_product_code == "-" :
- shw = '"Invisible"'
- ice_tab_blend_show = False
-
- if len(str_blend_product_code) == 0 :
- shw = '"Invisible"'
- ice_tab_blend_show = False
-
- out_xml( '\t\r\n')
- out_xml( '\t 146 \r\n')
- out_xml( '\t 264 \r\n')
- out_xml( '\t Var( DirImage2 + "blend.png" ) \r\n')
- out_xml( '\t Var( DirImage2 + "blend_db.png" ) \r\n')
- out_xml( '\t ' + shw + ' \r\n')
- out_xml( '\t\r\n')
-
- out_xml( '\t\r\n')
- out_xml( '\t TextPriceMenuBlendX \r\n')
- out_xml( '\t TextPriceMenuY \r\n')
- out_xml( '\t TextPriceMenuSize \r\n')
- out_xml( '\t220\r\n')
- out_xml( '\t KanitRegularTTF \r\n')
- #out_xml( '\t end \r\n')
-
- out_xml( '\t 0x6F5F51 \r\n')
- out_xml( '\t 0xEAE6E1 \r\n')
- out_xml( '\t ' + shw + ' \r\n')
- if "inter" in param:
- if "free" in param:
- out_xml( '\t " Free" \r\n')
- else:
- out_xml( '\t StringFmt( $' + str_blend_product_code + '.Price , DisplayFormat, PreScaleConvertShow) ; test\r\n')
- else:
- out_xml( '\t Var( "฿" + $' + str_blend_product_code + '.Price ) \r\n')
- out_xml( '\t\r\n')
-
- out_xml( '\t\r\n')
- out_xml( '\t 81 \r\n')
- out_xml( '\t 264 \r\n')
- out_xml( '\t \r\n')
- out_xml( '\t\teval( \r\n')
- out_xml( '\t\tIf ICE_PROCESS_STATUS = 2 Then\r\n')
- out_xml( '\t\t\r\n')
- if ice_tab_hot_show == True:
-
- #out_xml( '\t\t\tDEBUGVAR $Sum' + str_con_var +'\r\n')
- out_xml( '\t\t\tIf $Sum' + str_con_var +' = "Disable" Then\r\n')
- out_xml( '\t\t\t\tVar ice_tab_process_show = "Disable"\r\n')
- out_xml( '\t\t\tElse\r\n')
- out_xml( '\t\t\t\tVar ice_tab_process_show = "Enable"\r\n')
- out_xml( '\t\t\tEndIf\r\n')
- else:
- out_xml( '\t\t\tVar ice_tab_process_show = "Invisible"\r\n')
-
- out_xml( '\t\t\r\n')
- out_xml( '\t\tElse\r\n')
- out_xml( '\t\t\tVar ice_tab_process_show = "Invisible"\r\n')
- out_xml( '\t\tEndIf\r\n')
- out_xml( '\t\tVar return = ice_tab_process_show\r\n')
- out_xml( '\t\t)\r\n')
- out_xml( '\t\r\n')
- out_xml( '\t "ROOT/taobin_project/image/drink_option/ice_tab_unavalible.png" \r\n')
- out_xml( '\t "ROOT/taobin_project/image/drink_option/ice_tab_unavalible_dis.png" \r\n')
- out_xml( '\t\r\n')
-
-
- out_xml( '\t\r\n')
- out_xml( '\t 49 \r\n')
- out_xml( '\t 117 \r\n')
- out_xml( '\t \r\n')
- out_xml( '\t\teval( \r\n')
- out_xml( '\t\t\tIf $Sum' + str_con_var +' = "Disable" Then\r\n')
- out_xml( '\t\t\t\tSTRCONTAIN "ERR" $' + pd_code_1 + '.TAG tag1_is_disable\r\n')
- out_xml( '\t\t\t\tSTRCONTAIN "ERR" $' + pd_code_2 + '.TAG tag2_is_disable\r\n')
- out_xml( '\t\t\t\tSTRCONTAIN "ERR" $' + pd_code_3 + '.TAG tag3_is_disable\r\n')
- #out_xml( '\t\t\t\tDEBUGVAR $' + pd_code_1 + '.TAG\r\n')
- #out_xml( '\t\t\t\tDEBUGVAR $' + pd_code_2 + '.TAG\r\n')
- #out_xml( '\t\t\t\tDEBUGVAR $' + pd_code_3 + '.TAG\r\n')
- out_xml( '\t\t\t\tVar return = "Invisible"\r\n')
- out_xml( '\t\t\t\tIf tag1_is_disable = "true" Then\r\n')
- out_xml( '\t\t\t\t\tVar return = "Enable"\r\n')
- out_xml( '\t\t\t\tEndIf\r\n')
- out_xml( '\t\t\t\tIf tag2_is_disable = "true" Then\r\n')
- out_xml( '\t\t\t\t\tVar return = "Enable"\r\n')
- out_xml( '\t\t\t\tEndIf\r\n')
- out_xml( '\t\t\t\tIf tag3_is_disable = "true" Then\r\n')
- out_xml( '\t\t\t\t\tVar return = "Enable"\r\n')
- out_xml( '\t\t\t\tEndIf\r\n')
- out_xml( '\t\t\tElse\r\n')
- out_xml( '\t\t\t\t\tVar return = "Invisible"\r\n')
-
- out_xml( '\t\t\tEndIf\r\n')
-
- out_xml( '\t\t)\r\n')
- out_xml( '\t\r\n')
- out_xml( '\t "ROOT/taobin_project/image//img_menu_err2.png" \r\n')
- out_xml( '\t\r\n')
-
- out_xml( '\t\r\n')
- out_xml( '\t 84 \r\n')
- out_xml( '\t 266 \r\n')
- out_xml( '\t 10 \r\n')
- out_xml( '\t OpunMediumTTF \r\n')
- out_xml( '\t 0xDE794E \r\n')
- out_xml( '\t ice_tab_process_show \r\n')
- out_xml( '\t ice_show_open \r\n')
- out_xml( '\t\r\n')
-
-
- out_xml( '\t\r\n')
- out_xml( '\t 48 \r\n')
- out_xml( '\t 116 \r\n')
- out_xml( '\t 32 \r\n')
- out_xml( '\t128\r\n')
- out_xml( '\t64\r\n')
- out_xml( '\t "disable-show" \r\n')
- out_xml( '\t $Sum' + str_con_var +' \r\n')
- out_xml( '\t\r\n')
- out_xml( '\t\t 000013 \r\n')
- out_xml( '\t\r\n')
- out_xml( '\t center-vertical-horizontal \r\n')
- out_xml( '\t\r\n')
-
-
- out_xml( '\r\n')
-
- def GenMenuBlock( idx_hot_product_code, idx_cold_product_code, idx_blend_product_code):
- GenMenuProductCodeBlock( spl[ idx_name][ idx_hot_product_code], spl[ idx_name][ idx_cold_product_code] , spl[ idx_name][ idx_blend_product_code] )
-
-
- idx_lang_malay = 5
- idx_lang_japan = 4
- idx_lang_china = 3
- idx_lang_thai = 2
- idx_lang_eng = 1
-
-
- idx_name = 0
- idx_desc = 1
- idx_img = 2
-
-
- idx_hot_product_code = 7
- idx_cold_product_code = idx_hot_product_code + 1
- idx_blend_product_code = idx_cold_product_code + 1
-
- #
- idx_hot_product_code2 = idx_blend_product_code + 1
- idx_cold_product_code2 = idx_hot_product_code2 + 1
- idx_blend_product_code2 = idx_cold_product_code2 + 1
- idx_of_eng = 2
- idx_of_eng_des = 3
- idx_of_thai = 0
- idx_of_thai_des = 1
- print ("--------------------------------------------------------------------------------------------------------------------------")
-
-
- if current_file_name == "page_catalog_group_recommend.skt":
- touch_less_gen = True
- else:
- touch_less_gen = False
-
- out_xml(' \r\n')
- if touch_less_gen == True:
- out_xml(' 16 \r\n')
- out_xml(' 10 \r\n')
- out_xml(' 497 \r\n')
- out_xml(' 1080 \r\n')
- out_xml(' "auto" \r\n')
- out_xml(' "Vertical" \r\n')
- out_xml(' 4 \r\n')
- out_xml('\r\n')
-
- pd_code_available = '##-##-##-####'
- count = 0
- count_test = 0
- #if touch_less_gen == True:
- # out_xml( '\r\n')
- # out_xml('\t 33 \r\n')
- # out_xml('\t 22 \r\n')
- # out_xml('\t 225 \r\n')
- # out_xml('\t 296 \r\n')
- # out_xml('\t "Enable" \r\n')
- # out_xml('\t\r\n')
- # out_xml('\t 0 \r\n')
- # out_xml('\t 0 \r\n')
- # out_xml('\t TouchLessStg \r\n')
- # out_xml('\t Var( DirImage + "/touch_less_order.png" )\r\n')
- # out_xml('\t Var( DirImage + "/touch_less_order_db.png" )\r\n')
- # out_xml('\t\r\n')
- # out_xml('\t\r\n')
- # out_xml('\t 40 \r\n')
- # out_xml('\t 153 \r\n')
- # out_xml('\t 150 \r\n')
- # out_xml('\t "0xeae6e1" \r\n')
- # out_xml('\t "0x513C2F" \r\n')
- # out_xml('\t 150 \r\n')
- #
- # #out_xml('\t TouchLessQrStg \r\n')
- # #out_xml('\t "Herr" \r\n')
- # out_xml('\t TouchLessQrStg \r\n')
- # out_xml('\t testservice \r\n')
- #
- # out_xml('\t\r\n')
- # out_xml('\r\n')
- out_xml(';dummy_layout.inc\r\n')
-#
- #out_xml('; menu_new_list '+ str(len(menu_new_list))+'\r\n')
- for spl in menu_new_list:
- #product_code = s
- #if spl[ idx_of_eng] == "IGNORE":
- # continue
- if len(spl) == 1:
- if spl[0].startswith("TAG"):
- out_xml( '\t;' + spl[0] + '\r\n')
- print("Have TAGESP")
- continue
- print( '==>\t; '+ spl[ idx_name][ idx_hot_product_code] + ' ' + spl[ idx_name][ idx_cold_product_code] + ' ' + spl[ idx_name][ idx_blend_product_code] + ' \r\n')
-
- if "," in spl[ idx_name][ idx_hot_product_code] and "," in spl[ idx_name][ idx_cold_product_code] and "," in spl[ idx_name][ idx_blend_product_code]:
- #print(" hot = " + spl[ idx_name][ idx_hot_product_code])
- hot_pd = spl[ idx_name][ idx_hot_product_code].split(',')
- cold_pd = spl[ idx_name][ idx_cold_product_code].split(',')
- blend_pd = spl[ idx_name][ idx_blend_product_code].split(',')
-
- #print(' size = ' + str( len( hot_pd)) + ' size = ' + str( len( cold_pd)) + ' size = ' + str( len( blend_pd)) + '\r\n')
- list_size = len( hot_pd)
- for idx in range( list_size):
- print(' hot = ' + hot_pd[ idx] + ' cold = ' + cold_pd[ idx]+ ' blend_pd = ' + blend_pd[ idx] + '\r\n')
- if hot_pd[ idx] == '-' and cold_pd[ idx] == '-' and blend_pd[ idx] == '-':
- print("\t\t==> ignore ")
- else:
- print("\t\t==> gen ")
- GenMenuProductCodeBlock( hot_pd[ idx], cold_pd[ idx], blend_pd[ idx] )
- else:
- GenMenuBlock( idx_hot_product_code, idx_cold_product_code, idx_blend_product_code)
- #out_xml( '\t; parallel '+ spl[ idx_name][ idx_hot_product_code2] + ' ' + spl[ idx_name][ idx_cold_product_code2] + ' ' + spl[ idx_name][ idx_blend_product_code2] + ' \r\n')
- #print("++++++++++++++++++++++++++++++ " + str( count_test) )
- #count_test = count_test + 1
- #if count_test > 5 :
- # break
- if len( spl[idx_name] ) >= 11:
- if spl[ idx_name][ idx_hot_product_code2] != "-" or spl[ idx_name][ idx_cold_product_code2] != "-" or spl[ idx_name][ idx_blend_product_code2] != "-":
- GenMenuBlock( idx_hot_product_code2, idx_cold_product_code2, idx_blend_product_code2)
-
- out_xml('\r\n')
-
-
- out_xml('; Cart\r\n')
- out_xml('\r\n')
- # if "v2" in param:
-
-
diff --git a/inter/aus/xml/multi/other.ev b/inter/aus/xml/multi/other.ev
index 6fc877a5..628f15cf 100644
--- a/inter/aus/xml/multi/other.ev
+++ b/inter/aus/xml/multi/other.ev
@@ -1,3 +1,3 @@
SAVELOG "Call other"
-TabMenuVisibleInst 7
+TabMenuVisibleInst 8
Var RedirectTo = "/mnt/sdcard/coffeevending/taobin_project/inter/aus/xml/multi/page_instance2.xml"
diff --git a/inter/aus/xml/multi/page_catalog.lxml b/inter/aus/xml/multi/page_catalog.lxml
index 2ffc673a..8c0233a1 100644
--- a/inter/aus/xml/multi/page_catalog.lxml
+++ b/inter/aus/xml/multi/page_catalog.lxml
@@ -501,7 +501,7 @@
Var ColumnOverride[0] = 2
Var ColumnOverride[1] = 3
- Var ColumnOverride[2] = 2
+ Var ColumnOverride[2] = 3
Var ColumnOverride[3] = 3
Var ColumnGravity[0] = 2
@@ -659,7 +659,7 @@
If Inst11MenuLoaded = "done" Then
Var MultiProcess = "Invisible"
- TabMenuVisibleInst 7
+ TabMenuVisibleInst 8
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/inter/aus/xml/multi/page_instance2.xml"
Else
@@ -739,6 +739,40 @@
+
+ 296
+ 344
+ 42
+ "Enable"
+
+
diff --git a/inter/aus/xml/multi/sodaother.ev b/inter/aus/xml/multi/sodaother.ev
index 307665de..5029c6e6 100644
--- a/inter/aus/xml/multi/sodaother.ev
+++ b/inter/aus/xml/multi/sodaother.ev
@@ -1,3 +1,3 @@
SAVELOG "Call tea.ev"
-TabMenuVisibleInst 7
+TabMenuVisibleInst 8
Var RedirectTo = "/mnt/sdcard/coffeevending/taobin_project/inter/aus/xml/multi/page_instance2.xml"
diff --git a/inter/aus/xml/multi/tab_menu.lxml b/inter/aus/xml/multi/tab_menu.lxml
index 6f870889..62939f45 100644
--- a/inter/aus/xml/multi/tab_menu.lxml
+++ b/inter/aus/xml/multi/tab_menu.lxml
@@ -5,8 +5,8 @@
;Var DirImage = "ROOT/taobin_project/image/page2_inter/"
- Var DirImageAlter = "ROOT/taobin_project/image/page3_2_v2_en/"
- Var DirImageAUS = "/mnt/sdcard/coffeevending/taobin_project/inter/aus/image/catalog/"
+ Var DirImageAlter = "ROOT/taobin_project/image/page3_2_en/"
+ Var DirImageAUS = "/mnt/sdcard/coffeevending/taobin_project/inter/aus/image/page3_2_en/"
DEBUGVAR DirImageAlter
@@ -33,22 +33,6 @@
1080
102
-
-
@@ -81,7 +63,7 @@
Var NextPage = "-"
TabMenuVisibleInst 2
- OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/inter/tha/xml/multi/page_instance2.xml"
+ OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/inter/aus/xml/multi/page_instance2.xml"
@@ -99,7 +81,7 @@
Var NextPage = "-"
TabMenuVisibleInst 3
- OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/inter/tha/xml/multi/page_instance2.xml"
+ OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/inter/aus/xml/multi/page_instance2.xml"
@@ -109,15 +91,15 @@
"linear"
Menu4Selected
"No"
- Var( DirImageAlter + "/bn_cho_ca2.png")
- Var( DirImageAlter + "/bp_cho_ca2.png")
+ Var( DirImageAUS + "/bn_cho_ca2.png")
+ Var( DirImageAUS + "/bp_cho_ca2.png")
"/mnt/sdcard/coffeevending/wav/click.wav"
SoundVolume
Var NextPage = "-"
TabMenuVisibleInst 4
OpenInst 3 "ROOT/taobin_project/xml/topview2.xml"
- OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/inter/tha/xml/multi/page_instance2.xml"
+ OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/inter/aus/xml/multi/page_instance2.xml"
@@ -133,41 +115,7 @@
Var NextPage = "-"
TabMenuVisibleInst 5
- OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/inter/tha/xml/multi/page_instance2.xml"
-
-
-
-
-
-
-
-
@@ -176,43 +124,28 @@
"linear"
Menu22Selected
"No"
- Var( DirImageAlter + "/bn_health.png")
- Var( DirImageAlter + "/bp_health.png")
- "/mnt/sdcard/coffeevending/wav/click.wav"
- SoundVolume
-
- Var NextPage = "-"
- TabMenuVisibleInst 6
- OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/inter/tha/xml/multi/page_instance2.xml"
-
-
-
-
+
@@ -226,48 +159,10 @@
SoundVolume
Var NextPage = "-"
- TabMenuVisibleInst 7
- OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/inter/tha/xml/multi/page_instance2.xml"
-
-
-
-
-
-
-
-
diff --git a/inter/aus/xml/multi/v3/event/dummy_layout_promotion.py b/inter/aus/xml/multi/v3/event/dummy_layout_promotion.py
index 026903bd..d04a31ec 100644
--- a/inter/aus/xml/multi/v3/event/dummy_layout_promotion.py
+++ b/inter/aus/xml/multi/v3/event/dummy_layout_promotion.py
@@ -20,7 +20,6 @@ if "v3" in param and "promotion" in param and "other_catalog" in param:
pro_content = str(pro_template_content)
pro_content = pro_content.replace("#State", pro_json["state"])
pro_content = pro_content.replace("#Type", pro_json["type"])
- pro_content = pro_content.replace("#MediaThai", pro_json["media_thai"])
pro_content = pro_content.replace("#MediaEng", pro_json["media_eng"])
pro_content = pro_content.replace("#EventClick", pro_json["event_click"])
all_active_pro += pro_content + "\n\t"
@@ -52,7 +51,6 @@ if "v3" in param and "promotion" in param:
pro_content = str(pro_template_content)
pro_content = pro_content.replace("#State", pro_json["state"])
pro_content = pro_content.replace("#Type", pro_json["type"])
- pro_content = pro_content.replace("#MediaThai", pro_json["media_thai"])
pro_content = pro_content.replace("#MediaEng", pro_json["media_eng"])
pro_content = pro_content.replace("#EventClick", pro_json["event_click"])
all_active_pro += pro_content + "\n"
diff --git a/inter/aus/xml/multi/v3/event/event_v3/active_promotions.lxml b/inter/aus/xml/multi/v3/event/event_v3/active_promotions.lxml
index a95b4b47..fe4b1883 100644
--- a/inter/aus/xml/multi/v3/event/event_v3/active_promotions.lxml
+++ b/inter/aus/xml/multi/v3/event/event_v3/active_promotions.lxml
@@ -77,7 +77,7 @@
0x322B26
0xEAE6E1
- 16
+ 10
22
1
@@ -96,9 +96,10 @@
KanitRegularTTF
0x6F5F51
0xEAE6E1
+ 0xCC0A14
4
- 20
+ 14
1
@@ -106,6 +107,7 @@
000082
000083
000013
+ ShowOriginalPrice
@@ -113,9 +115,9 @@
; 51-01-01-0004 51-01-02-0002 51-01-03-0002