This commit is contained in:
Ittipat Lusuk 2025-06-19 16:46:39 +07:00
commit c3d3b9585f
382 changed files with 135091 additions and 4629 deletions

View file

@ -851,3 +851,11 @@ Hot Coconut Matcha tea 51-02-01-0061 1 8 9 62 24 120 17:00 23
Frappe Vanilla Caramel Latte 51-21-03-0079 1 2 3 4 5 63 22 23 41 24 120 17:00 23
Hot strawberry matcha 51-02-01-0071 1 8 9 19 70 24 120 17:00 23
Frappe strawberry matcha latte 51-02-03-0071 1 8 9 19 70 23 41 24 120 17:00 23
Yuzu Turtle Power Energy 51-05-02-9990 1 53 34 13 23 24 120 17:00 23
Strawberry Turtle Power Energy 51-05-02-9991 1 19 34 13 23 24 120 17:00 23
Coconut Turtle Power Energy 51-05-02-9992 1 62 34 13 23 24 120 17:00 23
Mint Turtle Power Energy 51-05-02-9993 1 59 34 13 23 24 120 17:00 23
Vanilla Turtle Power Energy 51-05-02-9994 1 34 13 23 24 120 17:00 23
Caramel Turtle Power Energy 51-05-02-9995 1 22 34 13 23 24 120 17:00 23
Lychee Turtle Power Energy 51-05-02-9996 1 11 34 13 23 24 120 17:00 23

Can't render this file because it has a wrong number of fields in line 220.

10
inter/aus/configure.ev Normal file
View file

@ -0,0 +1,10 @@
If BoxID = 200027 Then
Var EnableMultiInstanceFromBoxID = 0
EndIf
READ_FILE "/mnt/sdcard/enable_ui_v3" EnableMultiInstanceFromConfig
If EnableMultiInstanceFromConfig = "true" Then
DEBUGVAR EnableMultiInstanceFromConfig
Var EnableMultiInstanceFromBoxID = 1
EndIf

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Before After
Before After

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Before After
Before After

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

After

Width:  |  Height:  |  Size: 26 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

After

Width:  |  Height:  |  Size: 29 KiB

Before After
Before After

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Before After
Before After

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

View file

@ -18,6 +18,7 @@ TextID Note English Thai
000011 Kid Menu เมนูเด็ก
000012 App Fast แอพ ฟาสท์
000025 Dessert ของหวาน
000026 Energy Drink Energy Drink
Menu
Font=Kanit,Type=Regular,Size=16,Color=0x5A5A5A,Align=center-vertical-horizontal Font=Kanit,Type=Regular,Size=32,Color=0x5A5A5A,Align=center-vertical-horizontal

Can't render this file because it has a wrong number of fields in line 22.

View file

@ -6,15 +6,15 @@
DEBUGVAR LanguageShow
DEBUGVAR CountryName
If LanguageShow = "ENG" Then
If LanguageShow = "ENG" Then
Var DirImage2 = "ROOT/taobin_project/image/drink_option_en/"
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
If LanguageShow = "THAI" Then
If LanguageShow = "THAI" Then
Var DirImage2 = "ROOT/taobin_project/image/drink_option/"
Var DirImageAlter = "ROOT/taobin_project/image/page3_2/"
Var ice_tab_text = "น้ำแข็งจะพร้อมเวลา "
@ -28,7 +28,7 @@
Var DirImage = "ROOT/taobin_project/image/page3_en"
Var ice_tab_text = "Ice will be ready at "
EndIf
;inter-image
If CountryName = "Australia" Then
@ -37,7 +37,7 @@
Var DirImage = "ROOT/taobin_project/image/page3_en"
Var ice_tab_text = "Ice will be ready at "
EndIf
If ICE_PROCESS_STATUS = 2 Then
Var ice_tab_process_show = "Enable"
@ -48,14 +48,14 @@
; SpiralOnline
Var MenuVSelected2 = "Invisible"
Var Menu1Selected2 = "Invisible"
Var Menu2Selected2 = "Invisible"
Var Menu3Selected2 = "Invisible"
Var Menu4Selected2 = "Invisible"
Var Menu6Selected2 = "Invisible"
Var Menu7Selected2 = "Invisible"
Var MenuVSelected2 = "Invisible"
@ -64,12 +64,12 @@
Var Menu21Selected2 = "Invisible"
Var MenuVSelected2 = "Invisible"
If SpiralOnline = "true" Then
If SpiralOnline = "true" Then
If Seeker = "curr" Then
Var MenuVSelected2 = "Enable"
EndIf
EndIf
EndIf
; init default
Var Menu1Selected = "Enable"
Var Menu2Selected = "Enable"
@ -82,44 +82,41 @@
; 8 cocktail
Var Menu8Selected = "Invisible"
If CocktailShow = "true" Then
If CocktailShow = "true" Then
Var Menu7Selected = "Invisible"
Var Menu8Selected = "Enable"
EndIf
If AppFastEnable = "true" Then
Var Menu11Selected = "Enable"
Var Menu21Selected = "Invisible"
Var Menu11Selected = "Enable"
Var Menu21Selected = "Invisible"
Var Menu7Selected = "Invisible"
Else
If MenuKidEnable = "true" Then
Var Menu11Selected = "Invisible"
Var Menu11Selected = "Invisible"
Var Menu21Selected = "Enable"
Var Menu7Selected = "Invisible"
Else
Var Menu11Selected = "Invisible"
Var Menu21Selected = "Invisible"
Var Menu21Selected = "Invisible"
Var Menu7Selected = "Enable"
EndIf
EndIf
If CocktailShow = "true" Then
Var Menu7Selected = "Invisible"
EndIf
If RecipeTag1 = "HealthTurnOn" Then
Var Menu22Selected = "Enable"
Else
Var Menu22Selected = "Invisible"
EndIf
If WinterWarmersCatalogFlag = 1 Then
Var MenuWinterWarmersCatalogState = "Enable"
Else
Var MenuWinterWarmersCatalogState = "Invisible"
EndIf
DEBUGVAR WinterWarmersCatalogFlag
DEBUGVAR MenuWinterWarmersCatalogState
Var Menu22Selected = "Enable"
Var Menu23Selected = "Enable"
;If WinterWarmersCatalogFlag = 1 Then
; Var MenuWinterWarmersCatalogState = "Enable"
;Else
; Var MenuWinterWarmersCatalogState = "Invisible"
;EndIf
;DEBUGVAR WinterWarmersCatalogFlag
;DEBUGVAR MenuWinterWarmersCatalogState
;

View file

@ -384,6 +384,26 @@
</EventClick>
</Button>
<Button>
<Layout> "linear" </Layout>
<State> Menu23Selected </State>
<Filename> Var( DirImageAlterAus + "/bn_energy_drink.png") </Filename>
<FilenamePress> Var( DirImageAlterAus + "/bp_energy_drink.png") </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var NextPage = "-"
;Open "ROOT/taobin_project/xml/page_catalog_group_energy_drink.lxml"
Var OpenFileXML = CountryRootPath + "xml/page_catalog_group_energy_drink.lxml"
DEBUGVAR CountryRootPath
DEBUGVAR OpenFileXML
Open OpenFileXML
</EventClick>
</Button>
<Button>
<Layout> "linear" </Layout>
<State> Menu8Selected </State>
@ -444,19 +464,19 @@
</EventClick>
</Button>
<Button>
<Layout> "linear" </Layout>
<State> MenuWinterWarmersCatalogState </State>
<Filename> "ROOT/taobin_project/inter/aus/image/page3_2_en/bn_winter_warmers.png" </Filename>
<FilenamePress> "ROOT/taobin_project/inter/aus/image/page3_2_en/bp_winter_warmers.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var NextPage = "-"
Var OpenFileXML = CountryRootPath + "xml/page_catalog_group_winter_warmers_ignore.lxml"
Open OpenFileXML
</EventClick>
</Button>
;<Button>
;<Layout> "linear" </Layout>
;<State> MenuWinterWarmersCatalogState </State>
;<Filename> "ROOT/taobin_project/inter/aus/image/page3_2_en/bn_winter_warmers.png" </Filename>
;<FilenamePress> "ROOT/taobin_project/inter/aus/image/page3_2_en/bp_winter_warmers.png" </FilenamePress>
;<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
;<Volume> SoundVolume </Volume>
;<EventClick>
; Var NextPage = "-"
; Var OpenFileXML = CountryRootPath + "xml/page_catalog_group_winter_warmers_ignore.lxml"
; Open OpenFileXML
;</EventClick>
;</Button>
</Row2>
</ListView1>

View file

@ -0,0 +1,27 @@
;include="ROOT/taobin_project/inter/aus/xml/multi/InstanceGetSetString.inc"
GetVisible inst_show_exclude_group
If inst_show_exclude_group_counter = "" Then
Var inst_show_exclude_group_counter = 15
EndIf
If inst_show_exclude_group = 1 Then
If inst_show_exclude_group_counter > 0 Then
Var inst_show_exclude_group_counter = inst_show_exclude_group_counter - 1
If inst_show_exclude_group_counter = 0 Then
RefreshAll
Var inst_show_exclude_group_counter = 15
EndIf
EndIf
EndIf
If Timeout > 60 Then
;include="ROOT/taobin_project/inc/return_condition.ev"
EndIf
Var Timeout = Timeout + 1

View file

@ -0,0 +1,17 @@
InstanceGetString SaveStringInst
;DEBUGVAR SaveStringInst
;DEBUGVAR show_eng
If SaveStringInst = "RefreshNow" Then
RefreshAll
Else
EndIf
InstanceSetString "-"
;DEBUGVAR LanguageShow

View file

@ -0,0 +1,4 @@
SAVELOG "Call coffee.ev"
RootLayoutVisible 10 "show"
TabMenuVisibleInst 2
Var RedirectTo = "/mnt/sdcard/coffeevending/taobin_project/inter/aus/xml/multi/page_instance2.xml"

View file

@ -1,437 +1,98 @@
<Popup>
<Width> 1080</Width>
<Height> 1920 </Height>
Var layoutVersion = ""
<EventOpen>
Var Top2Timeout = 0
If CatalogLayoutV3 = 1 Then
Var layoutVersion = "v3/"
EndIf
If InternationalEnable = 1 Then
Var topview2_script = CountryRootPath + "/xml/topview2_script.ev"
TRY "ROOT/taobin_project/inter/aus/xml/multi/menu_catalog_default_init.lxml"
TRY "ROOT/taobin_project/aus/xml/event/tricker.ev"
; will apply other countries
If CountryName = "UnitedArabEmirates Dubai" Then
TRY topview2_script
Else
If CountryName = "Malaysia" Then
TRY topview2_script
Else
Var lang_icon_file_name[0] = "bn_eng_lang.png"
Var lang_icon_file_name[1] = "bn_thai_lang.png"
Var lang_icon_file_name[2] = "bn_china_lang.png"
Var lang_icon_file_name[3] = "bn_japan_lang.png"
SAVELOG "=================================================== Control language and switch instance ========================="
Var lang_icon_file_name[4] = "bn_malay_lang.png"
var lang_icon_file_name[5] = "bn_uae_dubai_lang.png"
EndIf
EndIf
Else
Var lang_icon_file_name[0] = "bn_eng_lang.png"
Var lang_icon_file_name[1] = "bn_thai_lang.png"
Var lang_icon_file_name[3] = "bn_japan_lang.png"
Var lang_icon_file_name[2] = "bn_china_lang.png"
Var lang_icon_file_name[4] = "bn_malay_lang.png"
var lang_icon_file_name[5] = "bn_uae_dubai_lang.png"
EndIf
OpenRedirect "/taobin_project/inter/aus/xml/page_catalog_group_coffee.lxml" "/mnt/sdcard/coffeevending/taobin_project/inter/aus/xml/multi/coffee.ev"
Var InstanceTabOpenFile2 = "ROOT/taobin_project/inter/aus/xml/multi/" + layoutVersion
Var InstanceTabOpenFile2 = InstanceTabOpenFile2 + "/page_catalog_group_coffee.lxml"
Var LanguageButtonListEnable = "Invisible"
Var langFileNameIcon = lang_icon_file_name[LanguageShowByIndex]
OpenRedirect "/taobin_project/inter/aus/xml/page_catalog_group_tea.lxml" "/mnt/sdcard/coffeevending/taobin_project/inter/aus/xml/multi/tea.ev"
Var InstanceTabOpenFile3 = "ROOT/taobin_project/inter/aus/xml/multi/" + layoutVersion
Var InstanceTabOpenFile3 = InstanceTabOpenFile3 + "/page_catalog_group_tea.lxml"
Var langfn = "ROOT/taobin_project/image/lang/" + langFileNameIcon
OpenRedirect "/taobin_project/inter/aus/xml/page_catalog_group_milk.lxml" "/mnt/sdcard/coffeevending/taobin_project/inter/aus/xml/multi/milk.ev"
Var InstanceTabOpenFile4 = "ROOT/taobin_project/inter/aus/xml/multi/" + layoutVersion
Var InstanceTabOpenFile4 = InstanceTabOpenFile4 + "/page_catalog_group_milk.lxml"
;If CountryName = "Malaysia" Then
; Var dirImageLang = CountryRootPath + "image/lang/"
; Var langfn = dirImageLang + langFileNameIcon
; DEBUGVAR langfn
; DEBUGVAR ButtonLanguageCurrentXPosition
; DEBUGVAR ButtonLanguageCurrentYPosition
;EndIf
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 ButtonLanguageListXPositionIcon = ButtonLanguageListXPosition + 27
Var ButtonLanguageListYPositionIcon = ButtonLanguageListYPosition + 14
DEBUGVAR ENABLE_LANGUAGE_COUNT
If ENABLE_LANGUAGE_COUNT = "" Then
LanguageControl "UpdateList" 1
EndIf
If AppFastButtonState = "Enable" Then
Var InstanceTabOpenFile5 = "ROOT/taobin_project/inter/aus/xml/multi/" + layoutVersion
Var InstanceTabOpenFile5 = InstanceTabOpenFile5 + "/page_catalog_group_appfast.lxml"
EndIf
If ENABLE_LANGUAGE_COUNT = 1 Then
Var LanguageButtonEnable = "Invisible"
EndIf
If WheyButtonState = "Enable" Then
OpenRedirect "/taobin_project/inter/aus/xml/page_catalog_group_whey.lxml" "/mnt/sdcard/coffeevending/taobin_project/inter/aus/xml/multi/kidandwhey.ev"
Var InstanceTabOpenFile5 = "ROOT/taobin_project/inter/aus/xml/multi/" + layoutVersion
Var InstanceTabOpenFile5 = InstanceTabOpenFile5 + "/page_catalog_group_whey.lxml"
Else
OpenRedirect "/taobin_project/inter/aus/xml/page_catalog_group_forkid.lxml" "/mnt/sdcard/coffeevending/taobin_project/inter/aus/xml/multi/kidandwhey.ev"
Var InstanceTabOpenFile5 = "ROOT/taobin_project/inter/aus/xml/multi/" + layoutVersion
Var InstanceTabOpenFile5 = InstanceTabOpenFile5 + "/page_catalog_group_forkid.lxml"
EndIf
If FirstTimeOpenFile = "" Then
;Var Not#CountDownForMulti = 5
Var FirstTimeOpenFile = "done"
EndIf
If MenuKidButtonState = "Enable" Then
OpenRedirect "/taobin_project/inter/aus/xml/page_catalog_group_forkid.lxml" "/mnt/sdcard/coffeevending/taobin_project/inter/aus/xml/multi/kidandwhey.ev"
Var InstanceTabOpenFile5 = "ROOT/taobin_project/inter/aus/xml/multi/" + layoutVersion
Var InstanceTabOpenFile5 = InstanceTabOpenFile5 + "/page_catalog_group_forkid.lxml"
EndIf
IF Not#CountDownForMulti = "" Then
Var Not#CountDownForMulti = 99
EndIf
If EnableMultiInstance = "true" Then
Var OpenRedirectSize = -1
GetRedirectCount OpenRedirectSize
;DEBUGVAR OpenRedirectSize
If OpenRedirectSize = 0 Then
SAVELOG "OpenRedirectSize zero size"
Var Not#CountDownForMulti = 5
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"
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"
Var InstanceTabOpenFile6 = "ROOT/taobin_project/inter/aus/xml/multi/" + layoutVersion
Var InstanceTabOpenFile6 = InstanceTabOpenFile6 + "/page_catalog_group_dessert.lxml"
EndIfi
EndIf
</EventOpen>
<Timeout> 1000 </Timeout>
<EventTimeout>
;DEBUGVAR Top2Timeout
Var Top2Timeout = Top2Timeout + 1
If Top2Timeout = 20 Then
Open "ROOT/taobin_project/xml/topview2.xml"
EndIf
OpenRedirect "taobin_project/inter/aus/xml/page_catalog_group_recommend.lxml" "/mnt/sdcard/coffeevending/taobin_project/inter/aus/xml/multi/recommend.ev"
If TimeForClose > 0 Then
Var TimeForClose = TimeForClose - 1
DEBUGVAR TimeForClose
EndIf
If TimeForClose = 1 Then
Var LanguageButtonListEnable = "Invisible"
Refresh
EndIf
If EnableMultiInstance = "true" Then
If Not#CountDownForMulti = 99 Then
TabMenuLock 15
OpenInst 15 "ROOT/taobin_project/inter/aus/xml/multi/tab_menu.lxml"
;DEBUGVAR Not#CountDownForMulti
Else
If Not#CountDownForMulti = 1 Then
OpenRedirect "/taobin_project/xml/page_catalog_group_coffee.xml" "/mnt/sdcard/coffeevending/taobin_project/xml/menutab/coffee.ev"
OpenRedirect "/taobin_project/xml/page_catalog_group_tea.xml" "/mnt/sdcard/coffeevending/taobin_project/xml/menutab/tea.ev"
OpenRedirect "/taobin_project/xml/page_catalog_group_milk.xml" "/mnt/sdcard/coffeevending/taobin_project/xml/menutab/milk.ev"
OpenRedirect "/taobin_project/xml/page_catalog_group_other_other.xml" "/mnt/sdcard/coffeevending/taobin_project/xml/menutab/otherOther.ev"
OpenRedirect "/taobin_project/xml/page_catalog_group_pepsi7up.xml" "/mnt/sdcard/coffeevending/taobin_project/xml/menutab/pepsi7up.ev"
Var InstanceTabOpenFile2 = "ROOT/taobin_project/xml/menutab/page_catalog_group_coffee.xml"
Var InstanceTabOpenFile3 = "ROOT/taobin_project/xml/menutab/page_catalog_group_tea.xml"
Var InstanceTabOpenFile4 = "ROOT/taobin_project/xml/menutab/page_catalog_group_milk.xml"
If AppFastButtonState = "Enable" Then
Var InstanceTabOpenFile5 = "ROOT/taobin_project/xml/menutab/page_catalog_group_appfast.xml"
EndIf
If WheyButtonState = "Enable" Then
Var InstanceTabOpenFile5 = "ROOT/taobin_project/xml/menutab/page_catalog_group_whey.xml"
OpenRedirect "/taobin_project/xml/page_catalog_group_whey.xml" "/mnt/sdcard/coffeevending/taobin_project/xml/menutab/kidandwhey.ev"
EndIf
If MenuKidButtonState = "Enable" Then
Var InstanceTabOpenFile5 = "ROOT/taobin_project/xml/menutab/page_catalog_group_forkid.xml"
OpenRedirect "/taobin_project/xml/page_catalog_group_forkid.xml" "/mnt/sdcard/coffeevending/taobin_project/xml/menutab/kidandwhey.ev"
EndIf
TabMenuVisibleInst 99
If CocktailShow = "true" Then
Var InstanceTabOpenFile6 = "ROOT/taobin_project/xml/menutab/page_catalog_group_cocktail.xml"
OpenRedirect "/taobin_project/xml/page_catalog_group_cocktail.xml" "/mnt/sdcard/coffeevending/taobin_project/xml/menutab/health.ev"
DEBUGVAR Not#CountDownForMulti
DEBUGVAR InstanceTabOpenFile2
DEBUGVAR InstanceTabOpenFile3
DEBUGVAR InstanceTabOpenFile4
DEBUGVAR InstanceTabOpenFile5
DEBUGVAR InstanceTabOpenFile6
DEBUGVAR InstanceTabOpenFile7
DEBUGVAR InstanceTabOpenFile8
DEBUGVAR InstanceTabOpenFile9
Else
Var InstanceTabOpenFile6 = "ROOT/taobin_project/xml/menutab/page_catalog_group_health.xml"
OpenRedirect "/taobin_project/xml/page_catalog_group_health.xml" "/mnt/sdcard/coffeevending/taobin_project/xml/menutab/health.ev"
EndIf
Var InstanceTabOpenFile7 = "ROOT/taobin_project/xml/menutab/page_catalog_group_other_other.xml"
Var InstanceTabOpenFile8 = "ROOT/taobin_project/xml/menutab/page_catalog_group_pepsi_7up.xml"
DEBUGVAR InstanceTabOpenFile10
Var InstanceTabOpenFile9 = "ROOT/taobin_project/xml/menutab/start_up_inst_dummy.xml"
Var InstanceTabOpenFile10 = "ROOT/taobin_project/xml/menutab/start_up_inst_dummy.xml"
Var InstanceTabOpenFile11 = "ROOT/taobin_project/xml/menutab/start_up_inst_dummy.xml"
Var InstanceTabOpenFile12 = "ROOT/taobin_project/xml/menutab/start_up_inst_dummy.xml"
Var InstanceTabOpenFile13 = "ROOT/taobin_project/xml/menutab/start_up_inst_dummy.xml"
DEBUGVAR WheyButtonState
DEBUGVAR MenuKidButtonState
DEBUGVAR CocktailShow
TabMenuVisibleInst 99
EndIf
If Not#CountDownForMulti > 0 Then
DEBUGVAR Not#CountDownForMulti
Var Not#CountDownForMulti = Not#CountDownForMulti - 1
EndIf
EndIf
Var ButtonLanguageCurrentXPosition = 1015
Var ButtonLanguageCurrentYPosition = 458 - 38
Var ButtonLanguageListXPosition = 990
Var ButtonLanguageListYPosition = 450 - 38
EndIf
If BrewCommand = "RefreshAll" Then
DEBUGVAR BrewCommand
Var BrewCommand = "-"
If EnableMultiInstance = "true" Then
InstanceOverSetString "RefreshNow" 5
InstanceOverSetString "RefreshNow" 6
InstanceOverSetString "RefreshNow" 7
InstanceOverSetString "RefreshNow" 8
InstanceOverSetString "RefreshNow" 9
InstanceOverSetString "RefreshNow" 10
InstanceOverSetString "RefreshNow" 11
; TODO
Var CatalogLayoutV3Loaded = 1
EndIf
If Not#CountDownForMulti = 99 Then
Var Not#CountDownForMulti = 5
EndIf
EndIf
TimerReset
</EventTimeout>
; setvarint SlientRefreshEnable 1
;
;
<Button>
<X> ButtonLanguageCurrentXPosition </X>
<Y> ButtonLanguageCurrentYPosition </Y>
<State> LanguageButtonEnable </State>
<Name> "LangIcon" </Name>
<Filename> langfn </Filename>
<EventClick>
DEBUGVAR ENABLE_LANGUAGE_COUNT
If ENABLE_LANGUAGE_COUNT = 2 Then
LanguageControl "ChangeNextLang" ""
Open "ROOT/taobin_project/xml/topview2.xml"
Else
Var LanguageButtonListEnable = "Enable"
DEBUGVAR LanguageButtonListEnable
Var TimeForClose = 10
EndIf
Refresh
</EventClick>
</Button>
<ListView1>
<X> ButtonLanguageListXPosition </X>
<Y> ButtonLanguageListYPosition </Y>
<Width> 986 </Width>
<Height> "auto" </Height>
<Align> "vertical"</Align>
<State> LanguageButtonListEnable </State>
;
<Row1>
<Width> 82 </Width>
<Height> 51 </Height>
<State> "Enable" </State>
<Image>
<Filename> "ROOT/taobin_project/image/lang/lang_bg_top.png" </Filename>
</Image>
</Row1>
<Row1>
<Width> 82 </Width>
<Height> 56 </Height>
<State> ENABLE_THAI </State>
<Image>
<Filename> "ROOT/taobin_project/image/lang/lang_bg_center.png" </Filename>
</Image>
</Row1>
<Row1>
<Width> 82 </Width>
<Height> 56 </Height>
<State> ENABLE_ENG </State>
<Image>
<Filename> "ROOT/taobin_project/image/lang/lang_bg_center.png" </Filename>
</Image>
</Row1>
<Row1>
<Width> 82 </Width>
<Height> 56 </Height>
<State> ENABLE_JAPAN </State>
<Image>
<Filename> "ROOT/taobin_project/image/lang/lang_bg_center.png" </Filename>
</Image>
</Row1>
<Row1>
<Width> 82 </Width>
<Height> 56 </Height>
<State> ENABLE_CHINA </State>
<Image>
<Filename> "ROOT/taobin_project/image/lang/lang_bg_center.png" </Filename>
</Image>
</Row1>
<Row1>
<Width> 82 </Width>
<Height> 56 </Height>
<State> ENABLE_MALAY </State>
<Image>
<Filename> "ROOT/taobin_project/image/lang/lang_bg_center.png" </Filename>
</Image>
</Row1>
<Row1>
<Width> 82 </Width>
<Height> 56 </Height>
<State> ENABLE_UAE_DUBAI </State>
<Image>
<Filename> "ROOT/taobin_project/image/lang/lang_bg_center.png" </Filename>
</Image>
</Row1>
<Row1>
<Width> 82 </Width>
<Height> 51 </Height>
<State> "Enable" </State>
<Image>
<Filename> "ROOT/taobin_project/image/lang/lang_bg_bottom.png" </Filename>
</Image>
</Row1>
</ListView1>
<ListView1>
<X> ButtonLanguageListXPositionIcon </X>
<Y> ButtonLanguageListYPositionIcon </Y>
<Width> 958 </Width>
<Height> "auto" </Height>
<Align> "vertical"</Align>
<State> LanguageButtonListEnable </State>
;
<Row1>
<Width> 82 </Width>
<Height> 68 </Height>
<State> ENABLE_THAI </State>
<Button>
<X> 0 </X>
<Y> 0 </Y>
<Width> 56 </Width>
<Height> 56 </Height>
<State> ENABLE_THAI </State>
<Filename> "ROOT/taobin_project/image/lang/bn_thai_lang.png" </Filename>
<EventClick>
Var LanguageButtonListEnable = "Invisible"
Var langFileNameIcon = lang_icon_file_name[LanguageShowByIndex]
Var langfn = "ROOT/taobin_project/image/lang/" + langFileNameIcon
SetLanguage "THAI"
Open "ROOT/taobin_project/xml/topview2.xml"
</EventClick>
</Button>
</Row1>
<Row1>
<Width> 82 </Width>
<Height> 68 </Height>
<State> ENABLE_ENG </State>
<Button>
<X> 0 </X>
<Y> 0 </Y>
<Width> 56 </Width>
<Height> 56 </Height>
<State> ENABLE_ENG </State>
<Filename> "ROOT/taobin_project/image/lang/bn_eng_lang.png" </Filename>
<EventClick>
SetLanguage "ENG"
Var LanguageButtonListEnable = "Invisible"
Var langFileNameIcon = lang_icon_file_name[LanguageShowByIndex]
Var langfn = "ROOT/taobin_project/image/lang/" + langFileNameIcon
Open "ROOT/taobin_project/xml/topview2.xml"
</EventClick>
</Button>
</Row1>
<Row1>
<Width> 82 </Width>
<Height> 68 </Height>
<State> ENABLE_JAPAN </State>
<Button>
<X> 0 </X>
<Y> 0 </Y>
<Width> 56 </Width>
<Height> 56 </Height>
<State> ENABLE_JAPAN </State>
<Filename> "ROOT/taobin_project/image/lang/bn_japan_lang.png" </Filename>
<EventClick>
SetLanguage "JAPAN"
Var LanguageButtonListEnable = "Invisible"
Var langFileNameIcon = lang_icon_file_name[LanguageShowByIndex]
Var langfn = "ROOT/taobin_project/image/lang/" + langFileNameIcon
Open "ROOT/taobin_project/xml/topview2.xml"
</EventClick>
</Button>
</Row1>
<Row1>
<Width> 82 </Width>
<Height> 68 </Height>
<State> ENABLE_CHINA </State>
<Button>
<X> 0 </X>
<Y> 0 </Y>
<Width> 82 </Width>
<Height> 56 </Height>
<State> ENABLE_CHINA </State>
<Filename> "ROOT/taobin_project/image/lang/bn_china_lang.png" </Filename>
<EventClick>
SetLanguage "CHINA"
Var LanguageButtonListEnable = "Invisible"
Var langFileNameIcon = lang_icon_file_name[LanguageShowByIndex]
Var langfn = "ROOT/taobin_project/image/lang/" + langFileNameIcon
Open "ROOT/taobin_project/xml/topview2.xml"
</EventClick>
</Button>
</Row1>
<Row1>
<Width> 82 </Width>
<Height> 68 </Height>
<State> ENABLE_MALAY </State>
<Button>
<X> 0 </X>
<Y> 0 </Y>
<Width> 82 </Width>
<Height> 56 </Height>
<State> ENABLE_MALAY </State>
<Filename> "ROOT/taobin_project/image/lang/bn_malay_lang.png" </Filename>
<EventClick>
SetLanguage "MALAY"
Var LanguageButtonListEnable = "Invisible"
Var langFileNameIcon = lang_icon_file_name[LanguageShowByIndex]
Var langfn = "ROOT/taobin_project/image/lang/" + langFileNameIcon
Open "ROOT/taobin_project/xml/topview2.xml"
</EventClick>
</Button>
</Row1>
<Row1>
<Width> 82 </Width>
<Height> 68 </Height>
<State> ENABLE_UAE_DUBAI </State>
<Button>
<X> 0 </X>
<Y> 0 </Y>
<Width> 82 </Width>
<Height> 56 </Height>
<State> ENABLE_UAE_DUBAI </State>
<Filename> "ROOT/taobin_project/image/lang/bn_uae_dubai_lang.png" </Filename>
<EventClick>
SetLanguage "UAE_DUBAI"
Var LanguageButtonListEnable = "Invisible"
Var langFileNameIcon = lang_icon_file_name[LanguageShowByIndex]
Var langfn = "ROOT/taobin_project/image/lang/" + langFileNameIcon
Open "ROOT/taobin_project/xml/topview2.xml"
</EventClick>
</Button>
</Row1>
</ListView1>
;
</Popup>
LanguageShow = "ENG"

View file

@ -0,0 +1,3 @@
SAVELOG "Call health.ev"
TabMenuVisibleInst 6
Var RedirectTo = "/mnt/sdcard/coffeevending/taobin_project/inter/aus/xml/multi/page_instance2.xml"

View file

@ -0,0 +1,3 @@
SAVELOG "Call kidandwhey.ev"
TabMenuVisibleInst 5
Var RedirectTo = "/mnt/sdcard/coffeevending/taobin_project/inter/aus/xml/multi/page_instance2.xml"

View file

@ -0,0 +1,125 @@
Var NextPage = "-"
DEBUGVAR ICE_PROCESS_STATUS
DEBUGVAR ICE_PROCESS_TXT
DEBUGVAR LanguageShow
DEBUGVAR CountryName
If LanguageShow = "ENG" Then
Var DirImage2 = "ROOT/taobin_project/image/drink_option_en/"
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
If LanguageShow = "THAI" Then
Var DirImage2 = "ROOT/taobin_project/image/drink_option/"
Var DirImageAlter = "ROOT/taobin_project/image/page3_2/"
Var ice_tab_text = "น้ำแข็งจะพร้อมเวลา "
Var DirImage = "ROOT/taobin_project/image/page3"
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 DirImage = "ROOT/taobin_project/image/page3_en"
Var ice_tab_text = "Ice will be ready at "
EndIf
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
; SpiralOnline
Var MenuVSelected2 = "Invisible"
Var Menu1Selected2 = "Invisible"
Var Menu2Selected2 = "Invisible"
Var Menu3Selected2 = "Invisible"
Var Menu4Selected2 = "Invisible"
Var Menu6Selected2 = "Invisible"
Var Menu7Selected2 = "Invisible"
Var MenuVSelected2 = "Invisible"
Var Menu11Selected2 = "Invisible"
Var Menu21Selected2 = "Invisible"
Var MenuVSelected2 = "Invisible"
If SpiralOnline = "true" Then
If Seeker = "curr" Then
Var MenuVSelected2 = "Enable"
EndIf
EndIf
; init default
Var Menu1Selected = "Enable"
Var Menu2Selected = "Enable"
Var Menu3Selected = "Enable"
Var Menu4Selected = "Enable"
; 5 fruit
Var Menu5Selected = "Invisible"
Var Menu6Selected = "Enable"
Var Menu7Selected = "Enable"
; 8 cocktail
Var Menu8Selected = "Invisible"
If CocktailShow = "true" Then
Var Menu7Selected = "Invisible"
Var Menu8Selected = "Enable"
EndIf
If AppFastEnable = "true" Then
Var Menu11Selected = "Enable"
Var Menu21Selected = "Invisible"
Var Menu7Selected = "Invisible"
Else
If MenuKidEnable = "true" Then
Var Menu11Selected = "Invisible"
Var Menu21Selected = "Enable"
Var Menu7Selected = "Invisible"
Else
Var Menu11Selected = "Invisible"
Var Menu21Selected = "Invisible"
Var Menu7Selected = "Enable"
EndIf
EndIf
If CocktailShow = "true" Then
Var Menu7Selected = "Invisible"
EndIf
If RecipeTag1 = "HealthTurnOn" Then
Var Menu22Selected = "Enable"
Else
Var Menu22Selected = "Invisible"
EndIf
If WinterWarmersCatalogFlag = 1 Then
Var MenuWinterWarmersCatalogState = "Enable"
Else
Var MenuWinterWarmersCatalogState = "Invisible"
EndIf
DEBUGVAR WinterWarmersCatalogFlag
DEBUGVAR MenuWinterWarmersCatalogState
;

View file

@ -1,12 +0,0 @@
if "v2" in param:
print("new menu_catalog_default_init catalog ============================> inter.")
f = open( directory_to_process + "/menu_catalog_default_init.lxml", "r")
#print(f.read())
out_xml(f.read())
f.close()
else:
print("new menu_catalog_default_init catalog enable.")
f = open( directory_to_process + "/menu_catalog_default_init.xml", "r")
#print(f.read())
out_xml(f.read())
f.close()

View file

@ -0,0 +1,492 @@
; notice enable heathy menu
<Image>
<X> 0 </X>
<Y> 380 </Y>
<Width> 1080 </Width>
<Height> 1540 </Height>
<Color> "0xeae6e1" </Color>
</Image>
<Timeout> 1000 </Timeout>
<EventTimeout>
;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"
Refresh
EndIf
Var Timeout = Timeout + 1
TimerReset
</EventTimeout>
<EventLanguageOnChange>
DEBUGVAR LanguageShow
If LanguageShow = "ENG" Then
Var DirImage2 = "ROOT/taobin_project/image/drink_option_en/"
Var DirImageAlter = "ROOT/taobin_project/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
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"
</EventLanguageOnChange>
; under line
<Image>
<X> 0 </X>
<Y> 494 </Y>
<Filename> "ROOT/taobin_project/image/page3/tab_line_bottom.png" </Filename>
</Image>
; under line
<Image>
<X> 0 </X>
<Y> 380 </Y>
<Filename> "ROOT/taobin_project/image/page3/bg1.png" </Filename>
</Image>
; back
<Button>
<X> 19 </X>
<Y> 381 </Y>
<Filename> "ROOT/taobin_project/image/page2/bn_back_arrow_2.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page2/bn_back_arrow_2.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
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
</EventClick>
</Button>
<ListView1>
<Width> 1080 </Width>
<Height> "auto" </Height>
<X> 0 </X>
<Y> 395 </Y>
<Row2>
<State>"Enable"</State>
<Width> 896 </Width>
<Height> 102 </Height>
<Button>
<Layout> "linear" </Layout>
<State> Menu1Selected </State>
<Filename> Var( DirImageAlter + "/bn_recommend3.png" )</Filename>
<FilenamePress> Var( DirImageAlter + "/bp_recommend3.png") </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
SAVELOG "Click rec"
Var NextPage = "-"
Var OpenFileXML = CountryRootPath + "xml/event/script_common_for_open_promotion_xml.ev"
TRY OpenFileXML
</EventClick>
</Button>
<Button>
<Layout> "linear" </Layout>
<State> Menu2Selected </State>
<Filename> Var( DirImageAlter + "/bn_coffee2.png") </Filename>
<FilenamePress> Var( DirImageAlter + "/bp_coffee2.png") </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var NextPage = "-"
;Open "ROOT/taobin_project/xml/page_catalog_group_coffee.lxml"
Var OpenFileXML = CountryRootPath + "xml/page_catalog_group_coffee.lxml"
DEBUGVAR CountryRootPath
DEBUGVAR OpenFileXML
If CountryName = "Thailand" Then
Open "ROOT/taobin_project/xml/page_catalog_group_coffee.lxml"
Else
Open OpenFileXML
EndIf
</EventClick>
</Button>
<Button>
<Layout> "linear" </Layout>
<State> Menu3Selected </State>
<Filename> Var( DirImageAlter + "/bn_tea2.png") </Filename>
<FilenamePress> Var( DirImageAlter + "/bp_tea2.png") </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var NextPage = "-"
;Open "ROOT/taobin_project/xml/page_catalog_group_tea.lxml"
Var OpenFileXML = CountryRootPath + "xml/page_catalog_group_tea.lxml"
DEBUGVAR CountryRootPath
DEBUGVAR OpenFileXML
If CountryName = "Thailand" Then
Open "ROOT/taobin_project/xml/page_catalog_group_tea.lxml"
Else
Open OpenFileXML
EndIf
</EventClick>
</Button>
<Button>
<Layout> "linear" </Layout>
<State> Menu4Selected </State>
<Filename> Var( DirImageAlterAus + "/bn_cho_ca2.png") </Filename>
<FilenamePress> Var( DirImageAlterAus + "/bp_cho_ca2.png") </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var NextPage = "-"
;Open "ROOT/taobin_project/xml/page_catalog_group_milk.lxml"
Var OpenFileXML = CountryRootPath + "xml/page_catalog_group_milk.lxml"
DEBUGVAR CountryRootPath
DEBUGVAR OpenFileXML
If CountryName = "Thailand" Then
Open "ROOT/taobin_project/xml/page_catalog_group_milk.lxml"
Else
Open OpenFileXML
EndIf
</EventClick>
</Button>
<Button>
<Layout> "linear" </Layout>
<State> Menu7Selected </State>
<Filename> Var( DirImageAlter + "/bn_protein2.png") </Filename>
<FilenamePress> Var( DirImageAlter + "/bp_protein2.png") </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var NextPage = "-"
;Open "ROOT/taobin_project/xml/page_catalog_group_whey.lxml"
Var OpenFileXML = CountryRootPath + "xml/page_catalog_group_whey.lxml"
DEBUGVAR CountryRootPath
DEBUGVAR OpenFileXML
If CountryName = "Thailand" Then
Open "ROOT/taobin_project/xml/page_catalog_group_whey.lxml"
Else
Open OpenFileXML
EndIf
</EventClick>
</Button>
<Button>
<Layout> "linear" </Layout>
<State> Menu11Selected </State>
<Filename> Var( DirImageAlter + "/bn_appfast2.png") </Filename>
<FilenamePress> Var( DirImageAlter + "/bp_appfast2.png") </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var NextPage = "-"
;Open "ROOT/taobin_project/xml/page_catalog_group_appfast.lxml"
Var OpenFileXML = CountryRootPath + "xml/page_catalog_group_appfast.lxml"
DEBUGVAR CountryRootPath
DEBUGVAR OpenFileXML
If CountryName = "Thailand" Then
Open "ROOT/taobin_project/xml/page_catalog_group_appfast.lxml"
Else
Open OpenFileXML
EndIf
</EventClick>
</Button>
<Button>
<Layout> "linear" </Layout>
<State> Menu21Selected </State>
<Filename> Var( DirImageAlter + "/bn_forkid2.png") </Filename>
<FilenamePress> Var( DirImageAlter + "/bp_forkid2.png") </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var NextPage = "-"
;Open "ROOT/taobin_project/xml/page_catalog_group_forkid.lxml"
Var OpenFileXML = CountryRootPath + "xml/page_catalog_group_forkid.lxml"
DEBUGVAR CountryRootPath
DEBUGVAR OpenFileXML
If CountryName = "Thailand" Then
Open "ROOT/taobin_project/xml/page_catalog_group_forkid.lxml"
Else
Open OpenFileXML
EndIf
</EventClick>
</Button>
<Button>
<Layout> "linear" </Layout>
<State> Menu22Selected </State>
<Filename> Var( DirImageAlterAus + "/bn_dessert.png") </Filename>
<FilenamePress> Var( DirImageAlterAus + "/bp_dessert.png") </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var NextPage = "-"
;Open "ROOT/taobin_project/xml/page_catalog_group_dessert.lxml"
Var OpenFileXML = CountryRootPath + "xml/page_catalog_group_dessert.lxml"
DEBUGVAR CountryRootPath
DEBUGVAR OpenFileXML
Open OpenFileXML
</EventClick>
</Button>
<Button>
<Layout> "linear" </Layout>
<State> Menu8Selected </State>
<Filename> Var( DirImageAlter + "/bn_cocktail.png") </Filename>
<FilenamePress> Var( DirImageAlter + "/bp_cocktail.png") </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var NextPage = "-"
;Open "ROOT/taobin_project/xml/page_catalog_group_cocktail.lxml"
Var OpenFileXML = CountryRootPath + "xml/page_catalog_group_cocktail.lxml"
DEBUGVAR CountryRootPath
DEBUGVAR OpenFileXML
If CountryName = "Thailand" Then
Open "ROOT/taobin_project/xml/page_catalog_group_cocktail.lxml"
Else
Open OpenFileXML
EndIf
</EventClick>
</Button>
<Button>
<Layout> "linear" </Layout>
<State> Menu6Selected </State>
<Filename> Var( DirImageAlter + "/bn_sodada2.png") </Filename>
<FilenamePress> Var( DirImageAlter + "/bp_sodada2.png") </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var NextPage = "-"
;Open "ROOT/taobin_project/xml/page_catalog_group_other.lxml"
Var OpenFileXML = CountryRootPath + "xml/page_catalog_group_other.lxml"
DEBUGVAR CountryRootPath
DEBUGVAR OpenFileXML
If CountryName = "Thailand" Then
Open "ROOT/taobin_project/xml/page_catalog_group_other.lxml"
Else
Open OpenFileXML
EndIf
</EventClick>
</Button>
<Button>
<Layout> "linear" </Layout>
<State> MenuVSelected2 </State>
<Filename> Var( DirImageAlter + "/bn_vending2.png") </Filename>
<FilenamePress> Var( DirImageAlter + "/bp_vending2.png") </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var NextPage = "-"
Open "ROOT/taobin_project/spiral/xml/page_catalog_vending_machine.xml"
</EventClick>
</Button>
<Button>
<Layout> "linear" </Layout>
<State> MenuWinterWarmersCatalogState </State>
<Filename> "ROOT/taobin_project/inter/aus/image/page3_2_en/bn_winter_warmers.png" </Filename>
<FilenamePress> "ROOT/taobin_project/inter/aus/image/page3_2_en/bp_winter_warmers.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var NextPage = "-"
Var OpenFileXML = CountryRootPath + "xml/page_catalog_group_winter_warmers_ignore.lxml"
Open OpenFileXML
</EventClick>
</Button>
</Row2>
</ListView1>
<Text>
<X> 940 </X>
<Y> 462 </Y>
<Size> 22 </Size>
<Width> 170 </Width>
<Height> 30 </Height>
<Font> KanitMediumTTF </Font>
<Color> 0x6F5F51 </Color>
<Value> PriceUnitText </Value>
</Text>
<EventWebApp>
DEBUGVAR web_ready
If web_ready = "true" Then
If web_ref = QRCODE99x Then
Var web_readyOK = web_ready
Var web_telnumOK = web_telnum
Var web_app_prepar = "true"
Open "/mnt/sdcard/coffeevending/taobin_project/xml/page_payment.xml"
EndIf
Else
EndIf
</EventWebApp>

View file

@ -1,22 +0,0 @@
print("directory_to_process =" + directory_to_process)
if param == "old":
print("old layout catalog enable.")
f = open( directory_to_process + "/menu_catalog.xml", "r")
#print(f.read())
out_xml(f.read())
f.close()
else:
if "v2" in param:
print("new layout catalog ============================> inter.")
f = open( directory_to_process + "/menu_catalog_new.lxml", "r")
#print(f.read())
out_xml(f.read())
f.close()
else:
print("new layout catalog enable.")
f = open( directory_to_process + "/menu_catalog_new.xml", "r")
#print(f.read())
out_xml(f.read())
f.close()

View file

@ -0,0 +1,9 @@
If show_eng = "true" Then
Var DirImage2 = "ROOT/taobin_project/image/drink_option_en/"
Var DirImageAlter = "ROOT/taobin_project/image/page3_2_en/"
Else
Var DirImage2 = "ROOT/taobin_project/image/drink_option/"
Var DirImageAlter = "ROOT/taobin_project/image/page3_2/"
EndIf

View file

@ -1,12 +0,0 @@
if "v2" in param:
print("new menu_catalog_new_menu catalog ============================> inter.")
f = open( directory_to_process + "/menu_catalog_new_menu.lxml", "r")
#print(f.read())
out_xml(f.read())
f.close()
else:
print("new menu_catalog_new_menu catalog enable.")
f = open( directory_to_process + "/menu_catalog_new_menu.xml", "r")
#print(f.read())
out_xml(f.read())
f.close()

View file

@ -0,0 +1,3 @@
SAVELOG "Call milk.ev"
TabMenuVisibleInst 4
Var RedirectTo = "/mnt/sdcard/coffeevending/taobin_project/inter/tha/xml/multi/page_instance2.xml"

View file

@ -1,9 +0,0 @@
If WinterWarmersCatalogFlag = 1 Then
Var catalogFile = CountryRootPath + "/xml/page_catalog_winter_warmers.lxml"
Else
Var catalogFile = CountryRootPath + "/xml/page_catalog_westfield.lxml"
EndIf
Open catalogFile

View file

@ -0,0 +1,3 @@
SAVELOG "Call other"
TabMenuVisibleInst 7
Var RedirectTo = "/mnt/sdcard/coffeevending/taobin_project/inter/aus/xml/multi/page_instance2.xml"

View file

@ -0,0 +1,910 @@
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
;<Background> "0xeae6e1" </Background>
<Volume> SoundVolume </Volume>
<EventOpen>
SAVELOG "======================================= catalog inter multi instance ================================"
; On open
TopView "show"
; On open
; helper
RootLayoutVisible 14 "hide"
Machine WakeUp
;include="ROOT/taobin_project/inter/aus/xml/multi/tab_menu_hide.lxml"
DEBUGVAR ToppingNewShow
DEBUGVAR OpenFromPageBoard
If OpenFromPageBoard = 1 Then
Var OpenFromPageBoard = 0
Var langnext1 = "true"
Var langnext2 = "true"
Var langnext3 = "true"
Var langnext4 = "true"
Var langnext5 = "true"
Var langnext6 = "true"
Var langnext7 = "true"
Var langnext8 = "true"
Var langnext9 = "true"
SAVELOG "======================================= RefreshAll Languages ================================"
EndIf
Var BaseOnPageBoard = 0
Var NextPage = "-"
Var Seeker.thankLidFlag = 0
Var Seeker.thankStrawFlag = 0
Var Seeker.SmoothieToPayment = 0
WEB "DISABLE"
Var web_readyOK = "false"
Var web_telnumOK = ""
Var PicturePath = "/mnt/sdcard/coffeevending/taobin_project/image/page_doing/"
If Seeker = "curr" Then
Machine DoorLidClose
EndIf
Var GetPayInfoFlag = 0
Var countDownRetrun = 120
Var OpenRouteManTest = 0
CoinVending OFF
; Clear value
Topping "clear" "-"
Var DirImage = "ROOT/taobin_project/image/page2_inter/"
Var DirImageAUS = "/mnt/sdcard/coffeevending/taobin_project/inter/aus/image/catalog/"
Var StrawAutoRelease1 = "false"
Var StrawAutoRelease2 = "false"
Var SELLONLINE = 0
If SELLSTATUS = "SELLONLINE" Then
Var SELLONLINE = 1
EndIf
If SELLSTATUS = "SELLNOCASH" Then
Var SELLONLINE = 1
EndIf
If SELLONLINE = 1 Then
Var ShowButtonClick2 = "Enable"
Else
Var ShowButtonClick2 = "Invisible"
Var ButtontoTopupMenu = "Invisible"
EndIf
If SELLONLINE = 1 Then
Var ShowNetworkProblem = "Invisible"
Var ShowNetworkProblemText = ""
;GenHashWithTimeStamp QRCODE99x
WEB "ENABLE"
Else
Var ShowNetworkProblem = "Enable"
Var ShowButtonClick2 = "Invisible"
Var ButtontoTopupMenu = "Invisible"
;Var ShowNetworkProblemText = "การสื่อสารขัดข้อง ชำระเงินได้เฉพาะเงินสด"
Var QRCODE99 = ""
WEB "DISABLE"
EndIf
If RoadShow = "true" Then
Var ShowNetworkProblem = "Invisible"
Var ShowNetworkProblemText = ""
EndIf
Var bnSodaAndOther = DirImage + "/bn_soda_coke.png"
Var bpSodaAndOther = DirImage + "/bp_soda_coke.png"
Var countClick = 0
DEBUGVAR CART_COUNT
Var QRCODE99_Y = 1718
Var showCart = "Invisible"
If MultiPayEnable = "true" Then
If CART_COUNT = 1 Then
Var showCart = "Enable"
Var cart_image_bn = DirImageCart + "/bn_cart1.png"
Var cart_image_bp = DirImageCart + "/bp_cart1.png"
Var QRCODE99_Y = 1580
EndIf
If CART_COUNT = 2 Then
Var showCart = "Enable"
Var cart_image_bn = DirImageCart + "/bn_cart2.png"
Var cart_image_bp = DirImageCart + "/bp_cart2.png"
Var QRCODE99_Y = 1580
EndIf
If CART_COUNT = 3 Then
Open "ROOT/taobin_project/xml/page_payment_multi.xml"
EndIf
EndIf
DEBUGVAR Seeker
If Seeker = "next" Then
Var ShowButtonClick2 = "Invisible"
Var ButtontoTopupMenu = "Invisible"
EndIf
If XMLProfile = "taobin_notopup" Then
Var ButtontoTopupMenu = "Disable"
EndIf
Var menu_name_eng_hot = ""
Var menu_desc_eng_hot = ""
Var menu_name_thai_hot = ""
Var menu_desc_thai_hot = ""
Var menu_name_eng_cold = ""
Var menu_desc_eng_cold = ""
Var menu_name_thai_cold = ""
Var menu_desc_thai_cold = ""
Var menu_name_eng_blender = ""
Var menu_desc_eng_blender = ""
Var menu_name_thai_blender = ""
Var menu_desc_thai_blender = ""
TRY "/mnt/sdcard/coffeevending/taobin_project/inter/aus/xml/event/tricker.ev"
TRY "ROOT/taobin_project/xml/sometime/RoadShow.ev"
If BoxID = 0 Then
RebootWithCause "BoxID was zero"
EndIf
DEBUGVAR ShowButtonClick2
DEBUGVAR MenuKidButtonState
DEBUGVAR New_Payment
Var PromotionIDCurrentOrder = 0
RootLayoutVisible 3 "show"
Var ButtonLanguageCurrentXPosition = 1005
Var ButtonLanguageCurrentYPosition = 458 - 38
Var ButtonLanguageListXPosition = 970
Var ButtonLanguageListYPosition = 450 - 38
Var SelectedMenu = ""
Var MultiProcess = "Invisible"
Var ButtonSpiralStage = "Invisible"
RootLayoutVisible 15 "hide"
</EventOpen>
<Timeout> 1000 </Timeout>
<EventTimeout>
;SAVELOG SoundPlaying
If countDownRetrun > 0 Then
Var countDownRetrun = countDownRetrun - 1
EndIf
If countDownRetrun = 0 Then
If Seeker = "next" Then
RootLayoutVisible 3 "hide"
Open "ROOT/taobin_project/xml/page_brewing3Conti.xml"
Else
Open "ROOT/taobin_project/xml/page_back_to_main.xml"
EndIf
EndIf
;include="ROOT/taobin_project/inc/remove_cup_on_arm_step.inc"
DEBUGVAR MultiProcess
DEBUGVAR MultiProcessTimer
DEBUGVAR CatalogLayoutV3
Var Inst5MenuLoaded = "done"
Var Inst6MenuLoaded = "done"
Var Inst7MenuLoaded = "done"
Var Inst8MenuLoaded = "done"
Var Inst9MenuLoaded = "done"
Var Inst10MenuLoaded = "done"
Var Inst11MenuLoaded = "done"
If MultiProcess = "Enable" Then
If SelectedMenu = "coffee" Then
Var MultiProcessTimer = MultiProcessTimer + 1
If Inst5MenuLoaded = "done" Then
Var MultiProcess = "Invisible"
TabMenuVisibleInst 2
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/inter/aus/xml/multi/page_instance2.xml"
Else
If MultiProcessTimer >= 20 Then
Var MultiProcess = "Invisible"
TabMenuVisibleInst 2
Var MultiProcessTimer = 0
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/inter/aus/xml/multi/page_instance2.xml"
EndIf
EndIf
EndIf
If SelectedMenu = "tea" Then
Var MultiProcessTimer = MultiProcessTimer + 1
If Inst6MenuLoaded = "done" Then
Var MultiProcess = "Invisible"
TabMenuVisibleInst 3
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/inter/aus/xml/multi/page_instance2.xml"
Else
If MultiProcessTimer >= 20 Then
Var MultiProcess = "Invisible"
TabMenuVisibleInst 3
Var MultiProcessTimer = 0
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/inter/aus/xml/multi/page_instance2.xml"
EndIf
EndIf
EndIf
If SelectedMenu = "caramel" Then
Var MultiProcessTimer = MultiProcessTimer + 1
If Inst7MenuLoaded = "done" Then
Var MultiProcess = "Invisible"
TabMenuVisibleInst 4
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/inter/aus/xml/multi/page_instance2.xml"
Else
If MultiProcessTimer >= 20 Then
Var MultiProcess = "Invisible"
TabMenuVisibleInst 4
Var MultiProcessTimer = 0
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/inter/aus/xml/multi/page_instance2.xml"
EndIf
EndIf
EndIf
If SelectedMenu = "whey" Then
Var MultiProcessTimer = MultiProcessTimer + 1
If Inst8MenuLoaded = "done" Then
Var MultiProcess = "Invisible"
TabMenuVisibleInst 5
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/inter/aus/xml/multi/page_instance2.xml"
Else
If MultiProcessTimer >= 20 Then
Var MultiProcess = "Invisible"
TabMenuVisibleInst 5
Var MultiProcessTimer = 0
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/inter/aus/xml/multi/page_instance2.xml"
EndIf
EndIf
EndIf
If SelectedMenu = "dessert" Then
Var MultiProcessTimer = MultiProcessTimer + 1
If Inst9MenuLoaded = "done" Then
Var MultiProcess = "Invisible"
TabMenuVisibleInst 6
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/inter/aus/xml/multi/page_instance2.xml"
Else
If MultiProcessTimer >= 20 Then
Var MultiProcess = "Invisible"
TabMenuVisibleInst 6
Var MultiProcessTimer = 0
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/inter/aus/xml/multi/page_instance2.xml"
EndIf
EndIf
EndIf
If SelectedMenu = "soda" Then
Var MultiProcessTimer = MultiProcessTimer + 1
If Inst11MenuLoaded = "done" Then
Var MultiProcess = "Invisible"
TabMenuVisibleInst 7
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/inter/aus/xml/multi/page_instance2.xml"
Else
If MultiProcessTimer >= 20 Then
Var MultiProcess = "Invisible"
TabMenuVisibleInst 7
Var MultiProcessTimer = 0
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/inter/aus/xml/multi/page_instance2.xml"
EndIf
EndIf
EndIf
EndIf
Refresh
TimerReset
</EventTimeout>
<EventChangeStatus>
;If ChangeStatus = "payout-end" Then
; Var ChangeOK = 1
;EndIf
</EventChangeStatus>
<EventWebApp>
DEBUGVAR web_ready
If web_ready = "true" Then
If web_ref = QRCODE99 Then
Cart "DeleteMenuID" "ALL"
Var web_readyOK = web_ready
Var web_telnumOK = web_telnum
Open "/mnt/sdcard/coffeevending/taobin_project/xml/page_payment.xml"
EndIf
Else
EndIf
</EventWebApp>
<Image>
<X> 0 </X>
<Y> 380 </Y>
<Width> 1080 </Width>
<Height> 1540 </Height>
<Color> "0xeae6e1" </Color>
</Image>
<EventLanguageOnChange>
DEBUGVAR LanguageShow
;inter-image
If LanguageShow = "ENG" Then
Var PlaySoundLag = "/mnt/sdcard/coffeevending/taobin_project/sound_eng/What_would_you_like_to_drink_today.mp3"
Var DirImage2 = "ROOT/taobin_project/image/drink_option_en/"
Var DirImageAlter = "ROOT/taobin_project/image/page3_2_en/"
EndIf
If LanguageShow = "MALAY" Then
Var PlaySoundLag = "/mnt/sdcard/coffeevending/taobin_project/sound_eng/What_would_you_like_to_drink_today.mp3"
EndIf
If LanguageShow = "THAI" Then
Var PlaySoundLag = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/taobin_sawade.mp3"
Var DirImage2 = "ROOT/taobin_project/image/drink_option/"
Var DirImageAlter = "ROOT/taobin_project/image/page3_2/"
If SongkranSoundCampaign = 1 Then
Var PlaySoundLag = GreetingSound[SoundCampaignIndex]
EndIf
EndIf
If LanguageShow = "MYANMAR" Then
Var show_eng = "true"
Var DirImage2 = "ROOT/taobin_project/image/drink_option_mmr/"
Var DirImageAlter = "ROOT/taobin_project/image/page3_2_mmr/"
EndIf
If LanguageShow = "MSC" Then
Var show_eng = "true"
Var DirImage2 = "ROOT/taobin_project/inter/hkg/image/drink_option_msc/"
Var DirImageAlter = "ROOT/taobin_project/inter/hkg/image/page3_2_msc/"
EndIf
Play PlaySoundLag
Var countDownRetrun = 120
Var ButtonLanguageCurrentXPosition = 1015
Var ButtonLanguageCurrentYPosition = 458 - 38
Var ButtonLanguageListXPosition = 982
Var ButtonLanguageListYPosition = 450 - 38
Var LanguageButtonEnable = "Enable"
OpenInst 3 "ROOT/taobin_project/xml/topview2.xml"
RefreshAll
</EventLanguageOnChange>
; back
<Button>
<X> 19 </X>
<Y> 420 </Y>
<Filename> "ROOT/taobin_project/image/page2/bn_back_arrow.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page2/bn_back_arrow.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
If Seeker = "next" Then
RootLayoutVisible 3 "hide"
Open "ROOT/taobin_project/xml/page_brewing3Conti.xml"
Else
Open "ROOT/taobin_project/xml/page_back_to_main.xml"
EndIf
</EventClick>
</Button>
<Text>
<X> 70 </X>
<Y> 591 </Y>
<Width> 940 </Width>
<Height> 85 </Height>
<Language>
<ID> 000001 </ID>
</Language>
</Text>
<Text>
<X> 70 </X>
<Y> 679 </Y>
<Width> 940 </Width>
<Height> 85 </Height>
<Language>
<ID> 000002 </ID>
</Language>
</Text>
<FrameScroll>
<X> 1 </X>
<Y> 844 </Y>
<Width> 1080 </Width>
<ScrollHeight> "auto" </ScrollHeight>
<Scroll> "Vertical" </Scroll>
<Column> 3 </Column>
<Mode> "EnableAdjust" </Mode>
<Script>
Var block_index_override = 0
Var block_index_move = 0
Var ColumnOverride[0] = 2
Var ColumnOverride[1] = 3
Var ColumnOverride[2] = 2
Var ColumnOverride[3] = 3
Var ColumnGravity[0] = 2
Var ColumnGravity[1] = 2
Var ColumnGravity[2] = 2
Var ColumnGravity[3] = 2
</Script>
<Block>
<Width> 296 </Width>
<Height> 344 </Height>
<MarginLeft> 42 </MarginLeft>
<State> "Enable" </State>
; menu row 1
<Button>
<Filename> Var(DirImageAUS + "/bn_diy_FLYING_TURTLE.png") </Filename>
<FilenamePress> Var(DirImageAUS + "/bp_diy_FLYING_TURTLE.png") </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var OpenFromMulti = 0
Var OpenFromPageBoard = 1
TRY "/mnt/sdcard/coffeevending/taobin_project/inter/aus/xml/multi/v3/event/script_open_promotion_v3.ev"
</EventClick>
<Language>
<ID> 000003 </ID>
<X> 28 </X>
<Y> 202 </Y>
<Width> 241 </Width>
<Height> 72 </Height>
</Language>
</Button>
</Block>
<Block>
<Width> 296 </Width>
<Height> 344 </Height>
<MarginLeft> 42 </MarginLeft>
<State> "Enable" </State>
<Button>
<Filename> Var(DirImage + "/bn_coffee.png") </Filename>
<FilenamePress> Var(DirImage + "/bp_coffee.png") </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
If Inst5MenuLoaded = "done" Then
Var MultiProcess = "Invisible"
TabMenuVisibleInst 2
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/inter/aus/xml/multi/page_instance2.xml"
Else
Var MultiProcessTimer = 0
Var MultiProcess = "Enable"
Var SelectedMenu = "coffee"
EndIf
</EventClick>
<Language>
<ID> 000005 </ID>
<X> 28 </X>
<Y> 202 </Y>
<Width> 241 </Width>
<Height> 72 </Height>
</Language>
</Button>
</Block>
<Block>
<Width> 296 </Width>
<Height> 344 </Height>
<MarginLeft> 42 </MarginLeft>
<State> "Enable" </State>
; menu row 2
<Button>
<Filename> Var(DirImage + "/bn_tea.png") </Filename>
<FilenamePress> Var(DirImage + "/bp_tea.png") </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
If Inst6MenuLoaded = "done" Then
Var MultiProcess = "Invisible"
TabMenuVisibleInst 3
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/inter/aus/xml/multi/page_instance2.xml"
Else
Var MultiProcessTimer = 0
Var MultiProcess = "Enable"
Var SelectedMenu = "tea"
EndIf
</EventClick>
<Language>
<ID> 000006 </ID>
<X> 28 </X>
<Y> 193 </Y>
<Width> 241 </Width>
<Height> 72 </Height>
</Language>
</Button>
</Block>
<Block>
<Width> 296 </Width>
<Height> 344 </Height>
<MarginLeft> 42 </MarginLeft>
<State> "Enable" </State>
<Button>
<Filename> Var(DirImage + "/bn_cho_caramel.png") </Filename>
<FilenamePress> Var(DirImage + "/bp_cho_caramel.png") </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
If Inst7MenuLoaded = "done" Then
Var MultiProcess = "Invisible"
TabMenuVisibleInst 4
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/inter/aus/xml/multi/page_instance2.xml"
Else
Var MultiProcessTimer = 0
Var MultiProcess = "Enable"
Var SelectedMenu = "caramel"
EndIf
</EventClick>
<Language>
<ID> 000007 </ID>
<X> 28 </X>
<Y> 193 </Y>
<Width> 241 </Width>
<Height> 72 </Height>
</Language>
</Button>
</Block>
<Block>
<Width> 296 </Width>
<Height> 344 </Height>
<MarginLeft> 42 </MarginLeft>
<State> "Enable" </State>
<Button>
<Filename> bnSodaAndOther </Filename>
<FilenamePress> bpSodaAndOther </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
If Inst11MenuLoaded = "done" Then
Var MultiProcess = "Invisible"
TabMenuVisibleInst 7
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/inter/aus/xml/multi/page_instance2.xml"
Else
Var MultiProcessTimer = 0
Var MultiProcess = "Enable"
Var SelectedMenu = "soda"
EndIf
</EventClick>
<Language>
<ID> 000009 </ID>
<X> 28 </X>
<Y> 211 </Y>
<Width> 241 </Width>
<Height> 72 </Height>
</Language>
</Button>
</Block>
<Block>
<Width> 296 </Width>
<Height> 344 </Height>
<MarginLeft> 42 </MarginLeft>
<State> WheyButtonState </State>
<Button>
<State>WheyButtonState</State>
<Filename> Var(DirImage + "/bn_protein.png") </Filename>
<FilenamePress> Var(DirImage + "/bp_protein.png") </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
TabMenuVisibleInst 5
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/inter/aus/xml/multi/page_instance2.xml"
</EventClick>
<Language>
<ID> 000008 </ID>
<X> 28 </X>
<Y> 202 </Y>
<Width> 241 </Width>
<Height> 72 </Height>
</Language>
</Button>
</Block>
<Block>
<Width> 296 </Width>
<Height> 344 </Height>
<MarginLeft> 42 </MarginLeft>
<State> "Enable" </State>
<Button>
<State> "Enable" </State>
<Filename> Var(DirImageAUS + "/bn_dessert.png")) </Filename>
<FilenamePress> Var(DirImageAUS + "/bp_dessert.png") </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
If Inst9MenuLoaded = "done" Then
Var MultiProcess = "Invisible"
TabMenuVisibleInst 6
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/inter/aus/xml/multi/page_instance2.xml"
Else
Var MultiProcessTimer = 0
Var MultiProcess = "Enable"
Var SelectedMenu = "dessert"
EndIf
</EventClick>
<Language>
<ID> 000025 </ID>
<X> 28 </X>
<Y> 202 </Y>
<Width> 241 </Width>
<Height> 82 </Height>
</Language>
</Button>
</Block>
</FrameScroll>
<Button>
<X> 600 </X>
<Y> 424 </Y>
<State> ShowButtonClick2 </State>
<Filename> "ROOT/taobin_project/image/page2_en/page2/bn_main_page_member.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page2_en/page2/bp_main_page_member.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var CheckMemberPage = CountryRootPath + "xml/page_check_member.lxml"
Open CheckMemberPage
</EventClick>
</Button>
<Button>
<X> 0 </X>
<Y> 1870 </Y>
<State> ShowNetworkProblem </State>
<Color> "0xFF0000" </Color>
<Width> 1080 </Width>
<Height> 60 </Height>
<EventClick>
Open "ROOT/taobin_project/xml/page_camera.xml"
</EventClick>
</Button>
<Text>
<X> 5 </X>
<Y> 1880 </Y>
<Size> 24 </Size>
<Align> Center </Align>
<Width> 1080 </Width>
<Font> RobotoRegular </Font>
<Color> 0xFFFFFF </Color>
<Value> ShowNetworkProblemText </Value>
</Text>
<EventWebApp>
DEBUGVAR web_ready
If web_ready = "true" Then
If web_ref = QRCODE99x Then
Var web_readyOK = web_ready
Var web_telnumOK = web_telnum
Var web_app_prepar = "true"
Open "/mnt/sdcard/coffeevending/taobin_project/xml/page_payment.xml"
EndIf
Else
EndIf
</EventWebApp>
;include="ROOT/taobin_project/inc/button_remove_cup.inc"
<Image>
<X> 0 </X>
<Y> 380 </Y>
<State> MultiProcess </State>
<Filename> "ROOT/taobin_project/image/collectiing/alpha.png" </Filename>
</Image>
<GIF>
<X> 493 </X>
<Y> 968 </Y>
<Width> 94 </Width>
<Height> 94 </Height>
<State> MultiProcess </State>
<Filename> "ROOT/taobin_project/image/page_payment/loading.gif" </Filename>
</GIF>
<Image>
<X> 0 </X>
<Y> 1820 </Y>
<Width> 100 </Width>
<Height> 100 </Height>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var ClickCountMainTe = ClickCountMainTe + 1
DEBUGVAR ClickCountMainTe
If ClickCountMainTe = 2 Then
Var OpenRouteManTest = 1
Open "ROOT/taobin_project/xml/page_back_to_main.xml"
Var ClickCountMainTe = 0
EndIf
</EventClick>
</Image>
<Text>
<X> 1 </X>
<Y> 1 </Y>
<Font> KanitTTF </Font>
<Size> 22 </Size>
<Width> 1080 </Width>
<Align> end </Align>
<Color> 0xFF0000 </Color>
<Value> "MT2 "</Value>
</Text>
<EventUnitTest1>
</EventUnitTest1>
<EventUnitTest2>
</EventUnitTest2>
; Initial for jump to page_brewing3.xml
<EventUnitTest3>
<Name> "Jump to page_check_member2.xml" </Name>
<Script>
Open "ROOT/taobin_project/xml/page_check_member2.xml"
</Script>
</EventUnitTest3>
<EventUnitTest5>
<Name> "Test Redirect page_catalog_group_recommend.lxml" </Name>
<Script>
Open "ROOT/taobin_project/inter/tha/xml/page_catalog_group_recommend.lxml"
</Script>
</EventUnitTest5>
<EventUnitTest6>
<Name> "Test Redirect page_catalog_group_other_other.lxml" </Name>
<Script>
Open "ROOT/taobin_project/inter/tha/xml/page_catalog_group_other_other.lxml"
</Script>
</EventUnitTest6>
<EventUnitTest7>
Open "ROOT/taobin_project/xml/page_topup_credit3-TopupSuccess.xml"
</EventUnitTest7>
<EventUnitTest8>
Open "ROOT/taobin_project/xml/page_payment_credit3-TopupSuccess.xml"
</EventUnitTest8>
;include="ROOT/taobin_project/inc/remove_cup_tag_on_arm.inc"
</Popup>

View file

@ -1,51 +0,0 @@
<?hurr
#include=menu_head.py
echo param
?>
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
;<Background> "0xeae6e1" </Background>
<Volume> SoundVolume </Volume>
<EventOpen>
; On open
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_default_init.lxml"
If AppFastEnable = "true" Then
Var Menu11Selected = "PressForever"
Var Menu7Selected = "Invisible"
Else
Var Menu11Selected = "Invisible"
Var Menu7Selected = "PressForever"
EndIf
SAVELOG PreviseXMLFileName2
Var Timeout = 0
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_new_menu.lxml"
</EventOpen>
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_new.lxml"
<?hurr
#include=menu_new_layout_gen_v2.py
?>
<?hurr
#include=menu_new_layout_gen.py
?>
</Popup>

View file

@ -1,44 +0,0 @@
<?hurr
#include=menu_head.py
?>
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
;<Background> "0xeae6e1" </Background>
<Volume> SoundVolume </Volume>
<EventOpen>
; On open
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_default_init.lxml"
Var Menu8Selected = "PressForever"
SAVELOG PreviseXMLFileName2
Var Timeout = 0
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_new_menu.lxml"
</EventOpen>
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_new.lxml"
<?hurr
#include=menu_new_layout_gen_v2.py
?>
<?hurr
#include=menu_new_layout_gen.py
?>
</Popup>

View file

@ -1,51 +0,0 @@
<?hurr
#include=menu_head.py
touch_less_gen = False
?>
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
;<Background> "0xeae6e1" </Background>
<Volume> SoundVolume </Volume>
<EventOpen>
; On open
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_default_init.lxml"
; protein
If AppFastEnable = "true" Then
Var Menu11Selected = "PressForever"
Var Menu7Selected = "Invisible"
Var Menu21Selected = "Invisible"
Else
Var Menu11Selected = "Invisible"
Var Menu7Selected = "Invisible"
Var Menu21Selected = "PressForever"
EndIf
SAVELOG PreviseXMLFileName2
Var Timeout = 0
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_new_menu.lxml"
</EventOpen>
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_new.lxml"
<?hurr
#include=menu_new_layout_gen_v2.py
?>
<?hurr
#include=menu_new_layout_gen.py
?>
</Popup>

View file

@ -1,38 +0,0 @@
<?hurr
#include=menu_head.py
touch_less_gen = False
?>
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
;<Background> "0xeae6e1" </Background>
<Volume> SoundVolume </Volume>
<EventOpen>
; On open
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_default_init.lxml"
Var Menu22Selected = "PressForever"
SAVELOG PreviseXMLFileName2
Var Timeout = 0
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_new_menu.lxml"
</EventOpen>
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_new.lxml"
<?hurr
#include=menu_new_layout_gen_v2.py
?>
<?hurr
#include=menu_new_layout_gen.py
?>
</Popup>

File diff suppressed because it is too large Load diff

View file

@ -1,46 +0,0 @@
<?hurr
#include=menu_head.py
?>
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
;<Background> "0xeae6e1" </Background>
<Volume> SoundVolume </Volume>
<EventOpen>
; On open
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_default_init.lxml"
Var Menu4Selected = "PressForever"
SAVELOG PreviseXMLFileName2
Var Timeout = 0
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_new_menu.lxml"
</EventOpen>
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_new.lxml"
<?hurr
#include=menu_new_layout_gen_v2.py
?>
<?hurr
#include=menu_new_layout_gen.py
?>
<?hurr
#include=./event/dummy_layout_promotion.py
?>
<EventUnitTest4>
RefreshAll
</EventUnitTest4>
</Popup>

View file

@ -1,36 +0,0 @@
<?hurr
#include=menu_head.py
?>
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
;<Background> "0xeae6e1" </Background>
<Volume> SoundVolume </Volume>
<EventOpen>
; On open
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_default_init.lxml"
Var Timeout = 0
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_new_menu.lxml"
</EventOpen>
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_new.lxml"
<?hurr
#include=menu_new_layout_gen_v2.py
?>
<?hurr
#include=menu_new_layout_gen.py
?>
</Popup>

View file

@ -1,40 +0,0 @@
<?hurr
#include=menu_head.py
echo param
?>
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
;<Background> "0xeae6e1" </Background>
<Volume> SoundVolume </Volume>
<EventOpen>
; On open
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_default_init.lxml"
; soda and other
Var Menu6Selected = "PressForever"
SAVELOG PreviseXMLFileName2
Var Timeout = 0
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_new_menu.lxml"
</EventOpen>
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_new.lxml"
<?hurr
#include=menu_new_layout_gen_v2.py
?>
<?hurr
#include=menu_new_layout_gen.py
?>
</Popup>

View file

@ -1,36 +0,0 @@
<?hurr
#include=menu_head.py
?>
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
;<Background> "0xeae6e1" </Background>
<Volume> SoundVolume </Volume>
<EventOpen>
; On open
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_default_init.lxml"
Var Timeout = 0
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_new_menu.lxml"
</EventOpen>
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_new.lxml"
<?hurr
#include=menu_new_layout_gen_v2.py
?>
<?hurr
#include=menu_new_layout_gen.py
?>
</Popup>

View file

@ -1,56 +0,0 @@
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
;<Background> "0xeae6e1" </Background>
<Volume> SoundVolume </Volume>
<EventOpen>
; On open
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_default_init.lxml"
Var Menu1Selected = "PressForever"
Var OreoBigButtonEnable = "Enable"
If $12-01-01-0001.Button = "Invisible" Then
Var esp102101001Enable = "Invisible"
Var esp122101001Enable = "Enable"
Else
Var esp102101001Enable = "Enable"
Var esp122101001Enable = "Invisible"
EndIf
SAVELOG PreviseXMLFileName2
Var Timeout = 0
If show_eng = "true" Then
Var text_unavailable = "UNAVAILABLE###size=16"
Else
Var text_unavailable = "หมด###size=32"
EndIf
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_new_menu.lxml"
</EventOpen>
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_new.lxml"
;include="ROOT/taobin_project/inc/button_remove_cup.inc"
;BigLogoLayout
</Popup>

View file

@ -1,60 +0,0 @@
<?hurr
#include=menu_head.py
?>
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
;<Background> "0xeae6e1" </Background>
<Volume> SoundVolume </Volume>
<EventOpen>
; On open
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_default_init.lxml"
Var Menu1Selected = "PressForever"
Var OreoBigButtonEnable = "Enable"
If $12-01-01-0001.Button = "Invisible" Then
Var esp102101001Enable = "Invisible"
Var esp122101001Enable = "Enable"
Else
Var esp102101001Enable = "Enable"
Var esp122101001Enable = "Invisible"
EndIf
SAVELOG PreviseXMLFileName2
Var Timeout = 0
If show_eng = "true" Then
Var text_unavailable = "UNAVAILABLE###size=16"
Else
Var text_unavailable = "หมด###size=32"
EndIf
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_new_menu.lxml"
</EventOpen>
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_new.lxml"
<?hurr
#include=menu_new_layout_gen_v2.py
?>
;include="ROOT/taobin_project/inc/button_remove_cup.inc"
;BigLogoLayout
</Popup>

View file

@ -1,36 +0,0 @@
<?hurr
#include=menu_head.py
?>
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
;<Background> "0xeae6e1" </Background>
<Volume> SoundVolume </Volume>
<EventOpen>
; On open
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_default_init.lxml"
Var Timeout = 0
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_new_menu.lxml"
</EventOpen>
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_new.lxml"
<?hurr
#include=menu_new_layout_gen_v2.py
?>
<?hurr
#include=menu_new_layout_gen.py
?>
</Popup>

View file

@ -1,43 +0,0 @@
<?hurr
#include=menu_head.py
touch_less_gen = False
?>
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
;<Background> "0xeae6e1" </Background>
<Volume> SoundVolume </Volume>
<EventOpen>
; On open
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_default_init.lxml"
Var Menu3Selected = "PressForever"
SAVELOG PreviseXMLFileName2
Var Timeout = 0
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_new_menu.lxml"
</EventOpen>
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_new.lxml"
<?hurr
#include=menu_new_layout_gen_v2.py
?>
<?hurr
#include=menu_new_layout_gen.py
?>
</Popup>

View file

@ -1,46 +0,0 @@
<?hurr
#include=menu_head.py
touch_less_gen = False
?>
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
;<Background> "0xeae6e1" </Background>
<Volume> SoundVolume </Volume>
<EventOpen>
; On open
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_default_init.lxml"
If AppFastEnable = "true" Then
Var Menu11Selected = "PressForever"
Var Menu7Selected = "Invisible"
Else
Var Menu11Selected = "Invisible"
Var Menu7Selected = "PressForever"
EndIf
SAVELOG PreviseXMLFileName2
Var Timeout = 0
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_new_menu.lxml"
</EventOpen>
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_new.lxml"
<?hurr
#include=menu_new_layout_gen_v2.py
?>
<?hurr
#include=menu_new_layout_gen.py
?>
</Popup>

View file

@ -1,66 +0,0 @@
<?hurr
#include=menu_head.py
touch_less_gen = False
?>
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
;<Background> "0xeae6e1" </Background>
<Volume> SoundVolume </Volume>
<EventOpen>
; On open
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_default_init.lxml"
SAVELOG PreviseXMLFileName2
Var Timeout = 0
Var MenuWinterWarmersCatalogState = "PressForever"
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_new_menu.lxml"
</EventOpen>
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_new.lxml"
<?hurr
#include=menu_new_layout_gen_v2.py
?>
<?hurr
#include=menu_new_layout_gen.py
?>
<Button>
<X> 42 </X>
<Y> 520 </Y>
<State> BigButtonEnable </State>
<Filename> "ROOT/taobin_project/inter/aus/image/event/winter_warmer_banner.png </Filename>
<FilenamePress> "ROOT/taobin_project/inter/aus/image/event/winter_warmer_banner.png" </FilenamePress>
<FilenameDisable> "ROOT/taobin_project/inter/aus/image/event/winter_warmer_banner.png" </FilenameDisable>
<EventOnClick>
</EventOnClick>
</Button>
<EventUnitTest1>
Var BigButtonEnable = "Enable"
Refresh
</EventUnitTest1>
<EventUnitTest2>
Var BigButtonEnable = "Invisible"
Refresh
</EventUnitTest2>
</Popup>

View file

@ -0,0 +1,49 @@
<Popup>
<Width> 1080</Width>
<Height> 1920 </Height>
<EventOpen>
; open from page_catalog.lxml
RootLayoutVisible 3 "show"
RootLayoutVisible 15 "show"
OpenInst 0 "/mnt/sdcard/coffeevending/taobin_project/xml/page_main_blank.xml"
Var ButtonLanguageCurrentXPosition = 1015
Var ButtonLanguageCurrentYPosition = 458 - 38
Var ButtonLanguageListXPosition = 990
Var ButtonLanguageListYPosition = 450 - 38
Var Timeout = 0
</EventOpen>
<Timeout> 1000 </Timeout>
<EventTimeout>
DEBUGVAR Timeout
If Timeout > 66 Then
SAVELOG "Timeout"
TabMenuVisibleInst 99
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
Var Timeout = Timeout + 1
TimerReset
</EventTimeout>
;include="ROOT/taobin_project/inc/remove_cup_tag_on_arm.inc"
</Popup>

View file

@ -0,0 +1,3 @@
SAVELOG "Call recommend"
TabMenuVisibleInst 10
Var RedirectTo = "/mnt/sdcard/coffeevending/taobin_project/inter/aus/xml/multi/page_instance2.xml"

View file

@ -0,0 +1,3 @@
SAVELOG "Call tea.ev"
TabMenuVisibleInst 7
Var RedirectTo = "/mnt/sdcard/coffeevending/taobin_project/inter/aus/xml/multi/page_instance2.xml"

View file

@ -0,0 +1,274 @@
<Popup>
<Width> 1080</Width>
<Height> 1920 </Height>
<EventOpen>
;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/"
DEBUGVAR DirImageAlter
DEBUGVAR Menu1Selected
DEBUGVAR Menu0Selected
DEBUGVAR NextPage
</EventOpen>
<Timeout> 10000 </Timeout>
<EventTimeout>
TimerReset
</EventTimeout>
<ListView1>
<Width> 1080 </Width>
<Height> "auto" </Height>
<X> 0 </X>
<Y> 395 </Y>
<Row2>
<State>"Enable"</State>
<Width> 1080 </Width>
<Height> 102 </Height>
<Button>
<Layout> "linear" </Layout>
<State> Menu0Selected </State>
<Mode> "No" </Mode>
<Filename> Var( DirImageAlter + "/bn_tao_pun.png") </Filename>
<FilenamePress> Var( DirImageAlter + "/bp_tao_pun.png") </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var NextPage = "-"
TabMenuVisibleInst 9
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/inter/tha/xml/multi/page_instance2.xml"
</EventClick>
</Button>
<Button>
<Layout> "linear" </Layout>
<State> Menu1Selected </State>
<Mode> "No" </Mode>
<Filename> Var( DirImageAlter + "/bn_recommend2.png" )</Filename>
<FilenamePress> Var( DirImageAlter + "/bp_recommend2.png") </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
SAVELOG "Click rec"
Var NextPage = "-"
Var OpenFromMulti = 0
Var OpenFromPageBoard = 1
TRY "/mnt/sdcard/coffeevending/taobin_project/inter/tha/xml/multi/v3/event/script_open_promotion_v3.ev"
</EventClick>
</Button>
<Button>
<Layout> "linear" </Layout>
<State> Menu2Selected </State>
<Mode> "No" </Mode>
<Filename> Var( DirImageAlter + "/bn_coffee2.png") </Filename>
<FilenamePress> Var( DirImageAlter + "/bp_coffee2.png") </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var NextPage = "-"
TabMenuVisibleInst 2
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/inter/tha/xml/multi/page_instance2.xml"
</EventClick>
</Button>
<Button>
<Layout> "linear" </Layout>
<State> Menu3Selected </State>
<Mode> "No" </Mode>
<Filename> Var( DirImageAlter + "/bn_tea2.png") </Filename>
<FilenamePress> Var( DirImageAlter + "/bp_tea2.png") </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var NextPage = "-"
TabMenuVisibleInst 3
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/inter/tha/xml/multi/page_instance2.xml"
</EventClick>
</Button>
<Button>
<Layout> "linear" </Layout>
<State> Menu4Selected </State>
<Mode> "No" </Mode>
<Filename> Var( DirImageAlter + "/bn_cho_ca2.png") </Filename>
<FilenamePress> Var( DirImageAlter + "/bp_cho_ca2.png") </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
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"
</EventClick>
</Button>
<Button>
<Layout> "linear" </Layout>
<State> Menu7Selected </State>
<Mode> "No" </Mode>
<Filename> Var( DirImageAlter + "/bn_protein2.png") </Filename>
<FilenamePress> Var( DirImageAlter + "/bp_protein2.png") </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var NextPage = "-"
TabMenuVisibleInst 5
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/inter/tha/xml/multi/page_instance2.xml"
</EventClick>
</Button>
<Button>
<Layout> "linear" </Layout>
<State> Menu11Selected </State>
<Mode> "No" </Mode>
<Filename> Var( DirImageAlter + "/bn_appfast2.png") </Filename>
<FilenamePress> Var( DirImageAlter + "/bp_appfast2.png") </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var NextPage = "-"
TabMenuVisibleInst 5
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/inter/tha/xml/multi/page_instance2.xml"
</EventClick>
</Button>
<Button>
<Layout> "linear" </Layout>
<State> Menu21Selected </State>
<Mode> "No" </Mode>
<Filename> Var( DirImageAlter + "/bn_forkid2.png") </Filename>
<FilenamePress> Var( DirImageAlter + "/bp_forkid2.png") </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var NextPage = "-"
SAVELOG "============================ Click For Kids "============================ "
TabMenuVisibleInst 5
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/inter/tha/xml/multi/page_instance2.xml"
</EventClick>
</Button>
<Button>
<Layout> "linear" </Layout>
<State> Menu22Selected </State>
<Mode> "No" </Mode>
<Filename> Var( DirImageAlter + "/bn_health.png") </Filename>
<FilenamePress> Var( DirImageAlter + "/bp_health.png") </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var NextPage = "-"
TabMenuVisibleInst 6
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/inter/tha/xml/multi/page_instance2.xml"
</EventClick>
</Button>
<Button>
<Layout> "linear" </Layout>
<State> Menu8Selected </State>
<Mode> "No" </Mode>
<Filename> Var( DirImageAlter + "/bn_cocktail.png") </Filename>
<FilenamePress> Var( DirImageAlter + "/bp_cocktail.png") </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var NextPage = "-"
TabMenuVisibleInst 6
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/inter/tha/xml/multi/page_instance2.xml"
</EventClick>
</Button>
<Button>
<Layout> "linear" </Layout>
<State> Menu61Selected </State>
<Mode> "No" </Mode>
<Filename> Var( DirImageAlter + "/bn_Pepsi_7up.png") </Filename>
<FilenamePress> Var( DirImageAlter + "/bp_Pepsi_7up.png") </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var NextPage = "-"
TabMenuVisibleInst 8
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/inter/tha/xml/multi/page_instance2.xml"
</EventClick>
</Button>
<Button>
<Layout> "linear" </Layout>
<State> Menu62Selected </State>
<Mode> "No" </Mode>
<Filename> Var( DirImageAlter + "/bn_sodada2.png") </Filename>
<FilenamePress> Var( DirImageAlter + "/bp_sodada2.png") </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var NextPage = "-"
TabMenuVisibleInst 7
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/inter/tha/xml/multi/page_instance2.xml"
</EventClick>
</Button>
<Button>
<Layout> "linear" </Layout>
<State> Menu63Selected </State>
<Mode> "No" </Mode>
<Filename> Var( DirImageAlter + "/bn_20_baht.png") </Filename>
<FilenamePress> Var( DirImageAlter + "/bp_20_baht.png") </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var NextPage = "-"
TabMenuVisibleInst 8
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/inter/tha/xml/multi/page_instance2.xml"
</EventClick>
</Button>
<Button>
<Layout> "linear" </Layout>
<State> MenuVSelected2 </State>
<Mode> "No" </Mode>
<Filename> Var( DirImageAlter + "/bn_vending2.png") </Filename>
<FilenamePress> Var( DirImageAlter + "/bp_vending2.png") </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var NextPage = "-"
RootLayoutVisible 3 "hide"
RootLayoutVisible 13 "hide"
TabMenuVisibleInst 99
OpenInst 2 "ROOT/taobin_project/spiral/xml/page_catalog_vending_machine.xml"
</EventClick>
</Button>
</Row2>
</ListView1>
</Popup>

View file

@ -0,0 +1 @@
RootLayoutVisible 15 "hide"

View file

@ -0,0 +1 @@
OpenInst 15 "ROOT/taobin_project/inter/aus/xml/multi/tab_menu.lxml"

View file

@ -0,0 +1,3 @@
OpenInst 15 "ROOT/taobin_project/inter/aus/xml/multi/tab_menu.lxml"
RootLayoutVisible 15 "show"

View file

@ -0,0 +1,3 @@
SAVELOG "Call tea.ev"
TabMenuVisibleInst 3
Var RedirectTo = "/mnt/sdcard/coffeevending/taobin_project/inter/aus/xml/multi/page_instance2.xml"

View file

View file

@ -0,0 +1,62 @@
if "v3" in param and "promotion" in param and "other_catalog" in param:
file_template = open(directory_to_process + "/page_catalog_group_other_other.lxml", 'r')
template_content = file_template.read()
file_template.close()
pro_template = open(directory_to_process + "/event/event_v3/promotion_template.inc")
pro_template_content = pro_template.read()
pro_template.close()
all_active_pro = ""
files = os.listdir(directory_to_process + "/event/event_v3/catalog_other")
files = [f for f in files if f.endswith(".json")]
for filename in files:
pro_json_file = open(directory_to_process + "/event/event_v3/catalog_other/"+ filename)
pro_json = json.load(pro_json_file)
start_time = datetime.datetime.strptime(pro_json["start"], "%Y-%m-%dT%H:%M:%S")
end_time = datetime.datetime.strptime(pro_json["end"], "%Y-%m-%dT%H:%M:%S")
if start_time > datetime.datetime.now() or datetime.datetime.now() < end_time:
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"
pro_output_file = open(directory_to_process + "/event/event_v3/catalog_other/active_promotions.lxml", 'w')
pro_output_file.write(template_content.replace(";banners", all_active_pro))
pro_output_file.close()
if "v3" in param and "promotion" in param:
file_template = open(directory_to_process + "/page_catalog_group_recommend.lxml", 'r')
template_content = file_template.read()
file_template.close()
pro_template = open(directory_to_process + "/event/event_v3/promotion_template.inc")
pro_template_content = pro_template.read()
pro_template.close()
all_active_pro = ""
files = os.listdir(directory_to_process + "/event/event_v3")
files = [f for f in files if f.endswith(".json")]
files.sort()
for filename in files:
pro_json_file = open(directory_to_process + "/event/event_v3/"+ filename)
pro_json = json.load(pro_json_file)
start_time = datetime.datetime.strptime(pro_json["start"], "%Y-%m-%dT%H:%M:%S")
end_time = datetime.datetime.strptime(pro_json["end"], "%Y-%m-%dT%H:%M:%S")
if start_time > datetime.datetime.now() or datetime.datetime.now() < end_time:
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"
pro_output_file = open(directory_to_process + "/event/event_v3/active_promotions.lxml", 'w')
pro_output_file.write(template_content.replace(";banners", all_active_pro))
pro_output_file.close()

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,16 @@
<Banner>
<State> #State </State>
<Type> #Type </Type>
<Media>
eval(
If show_eng = "true" Then
Var return = "#MediaEng"
Else
Var return = "#MediaThai"
EndIf
)
</Media>
<EventOnClick>
#EventClick
</EventOnClick>
</Banner>

View file

@ -0,0 +1,22 @@
Var InstanceTabOpenFile10 = "ROOT/taobin_project/inter/aus/xml/multi/v3/event/event_v3/active_promotions.lxml"
Var ButtonLanguageCurrentXPosition = 1015
Var ButtonLanguageCurrentYPosition = 458 - 38
Var ButtonLanguageListXPosition = 990
Var ButtonLanguageListYPosition = 450 - 38
Var LanguageButtonEnable = "Enable"
OpenInst 3 "ROOT/taobin_project/xml/topview2.xml"
OpenInst 15 "ROOT/taobin_project/inter/aus/xml/multi/tab_menu.lxml"
TabMenuVisibleInst 10
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/inter/aus/xml/multi/page_instance2.xml"
Var Menu1Selected = "PressForever"
RootLayoutVisible 15 "show"
;Var FileRecommendToOpen = "ROOT/taobin_project/inter/aus/xml/multi/v3/event/event_v3/active_promotions.lxml"
SAVELOG "======================================== taobin_project/inter/aus/xml/multi/v3/event/script_open_promotion_v3.ev"

View file

@ -0,0 +1,106 @@
RoadShow = False
default_dir = 'ROOT/taobin_project/image/page_drink/'
default_dir2 = 'ROOT/taobin_project/image/page_drink_select/'
default_dir_press = 'ROOT/taobin_project/image/page_drink_press/'
default_dir_disable = 'ROOT/taobin_project/image/page_drink_disable/'
new_default_dir = 'ROOT/taobin_project/inter/tha/image/page_drink_n/'
new_default_dir2 = 'ROOT/taobin_project/inter/tha/image/page_drink_picture2_n/'
new_default_dir_press = 'ROOT/taobin_project/inter/tha/image/page_drink_press_n/'
new_default_dir_disable = 'ROOT/taobin_project/inter/tha/image/page_drink_disable_n2/'
menu_count = 0
x1 = 44
x2 = 301
x3 = 558
x4 = 815
ystep = 899 - 571
y1 = 20
y2 = y1 + ystep*1
y3 = y1 + ystep*2
y4 = y1 + ystep*3
y5 = y1 + ystep*4
y6 = y1 + ystep*5
y7 = y1 + ystep*6
x_button = [
x1,
x2,
x3,
x4,
x1,
x2,
x3,
x4,
x1,
x2,
x3,
x4,
x1,
x2,
x3,
x4,
x1,
x2,
x3,
x4,
x1,
x2,
x3,
x4,
x1,
x2,
x3,
x4
]
y_button = [
y1,
y1,
y1,
y1,
y2,
y2,
y2,
y2,
y3,
y3,
y3,
y3,
y4,
y4,
y4,
y4,
y5,
y5,
y5,
y5,
y6,
y6,
y6,
y6,
y7,
y7,
y7,
y7
]

View file

@ -0,0 +1,513 @@
if "v3" in param:
def GenMenuV3(hot_pd, cold_pd, blend_pd, start_date_time, end_date_time, product_var, default_topping):
out_xml( '\t\t\t; ==================> Len = ' + str(len(spl)) + '\n')
menu_img = spl[ idx_img][1]
out_xml( '\t\t; '+ hot_pd + ' ' + cold_pd + ' ' + blend_pd+ ' \n')
str_con = ""
str_con_var = ""
if hot_pd != '-':
str_con += hot_pd + '.Button,'
if cold_pd != '-':
str_con += cold_pd + '.Button,'
if blend_pd != '-':
str_con += blend_pd + '.Button,'
if hot_pd != '-':
str_con_var += hot_pd + '-'
if cold_pd != '-':
str_con_var += cold_pd + '-'
if blend_pd != '-':
str_con_var += blend_pd + '-'
str_con_var = str_con_var.replace("-", "")
if re.match(r'(\d{4})/(\d{2})/(\d{2})T(\d{2}):(\d{2}):(\d{2})', start_date_time):
str_con += f'DateTimeStart="{start_date_time}",'
if re.match(r'(\d{4})/(\d{2})/(\d{2})T(\d{2}):(\d{2}):(\d{2})', end_date_time):
str_con += f'DateTimeEnd="{end_date_time}",'
if re.match(r'^\w.*', product_var):
str_con += f'Var={product_var},'
if recommend_page:
str_con += "Disable=Invisible,"
str_con += "$Sum" + str_con_var
out_xml('\t\t<Menu>\n')
out_xml('\t\t<State> Flag( '+ str_con + ') </State>\n')
pd_code_1 = hot_pd
pd_stage1 = '$' + hot_pd + '.Button'
if hot_pd == "-" or len(hot_pd) == 0 :
pd_code_1 = pd_code_available
pd_stage1 = '"Disable2"'
pd_code_2 = cold_pd
pd_stage2 = '$' + cold_pd + '.Button'
if cold_pd == "-" or len(cold_pd) == 0:
pd_code_2 = pd_code_available
pd_stage2 = '"Disable2"'
pd_code_3 = blend_pd
pd_stage3 = '$' + blend_pd + '.Button'
if blend_pd == "-" or len(blend_pd) == 0:
pd_code_3 = pd_code_available
pd_stage3 = '"Disable2"'
out_xml( '\t\t<IdleImage> "' + new_default_dir + '/'+ menu_img +'" </IdleImage>\n')
out_xml( '\t\t<PressImage> "' + new_default_dir_press + '/'+ menu_img +'" </PressImage>\n')
out_xml( '\t\t<DisableImage> "' + new_default_dir_disable + '/'+ menu_img +'" </DisableImage>\n')
out_xml('\t\t<Name>\n')
out_xml('\t\t\t<LanguageGroup>\n')
out_xml('\t\t\t\t<LanguageSlot1>' + spl[ idx_name][ idx_lang_eng] + '</LanguageSlot1>\n')
out_xml('\t\t\t\t<LanguageSlot2>' + spl[ idx_name][ idx_lang_thai] + '</LanguageSlot2>\n')
out_xml('\t\t\t\t<LanguageSlot3>' + spl[ idx_name][ idx_lang_china] + '</LanguageSlot3>\n')
out_xml('\t\t\t\t<LanguageSlot4>' + spl[ idx_name][ idx_lang_japan] + '</LanguageSlot4>\n')
out_xml('\t\t\t\t<LanguageSlot5>' + spl[ idx_name][ idx_lang_malay] + '</LanguageSlot5>\n')
out_xml('\t\t\t\t<LanguageSlot6>' + spl[ idx_name][ idx_lang_myanmar] + '</LanguageSlot6>\n')
out_xml('\t\t\t</LanguageGroup>\n')
out_xml('\t\t</Name>\n')
out_xml('\t\t<Description>\n')
out_xml('\t\t\t<LanguageGroup>\n')
out_xml('\t\t\t\t<LanguageSlot1>' + spl[ idx_desc][ idx_lang_eng] + '</LanguageSlot1>\n')
out_xml('\t\t\t\t<LanguageSlot2>' + spl[ idx_desc][ idx_lang_thai] + '</LanguageSlot2>\n')
out_xml('\t\t\t\t<LanguageSlot3>' + spl[ idx_desc][ idx_lang_china] + '</LanguageSlot3>\n')
out_xml('\t\t\t\t<LanguageSlot4>' + spl[ idx_desc][ idx_lang_japan] + '</LanguageSlot4>\n')
out_xml('\t\t\t\t<LanguageSlot5>' + spl[ idx_desc][ idx_lang_malay] + '</LanguageSlot5>\n')
out_xml('\t\t\t\t<LanguageSlot6>' + spl[ idx_desc][ idx_lang_myanmar] + '</LanguageSlot6>\n')
out_xml('\t\t\t</LanguageGroup>\n')
out_xml('\t\t</Description>\n')
if "show-blend-only" in xml_parameter:
print("Hot price ignore ")
else:
out_xml('\t\t<HotState> ' + pd_stage1 + ' </HotState>\n')
if "show-blend-only" in xml_parameter:
print("Cold price ignore ")
else:
out_xml('\t\t<IceState> ' + pd_stage2 + ' </IceState>\n')
out_xml('\t\t<BlendState> ' + pd_stage3 + ' </BlendState>\n')
if "show-blend-only" in xml_parameter:
print("Hot price ignore ")
else:
out_xml('\t\t<HotPrice> eval( \n')
out_xml( '\t\tIf $' + pd_code_1 + '.Price = -1 Then\r\n')
out_xml( '\t\t\tVar return = "Free"\r\n')
out_xml( '\t\tElse\r\n')
out_xml( '\t\t\tVar return !assigned StringFmt( $' + pd_code_1 + '.Price , DisplayFormat, PreScaleConvertShow) \r\n')
out_xml( '\t\tEndIf\r\n')
out_xml('\t\t) </HotPrice>\n')
if "show-blend-only" in xml_parameter:
print("Cold price ignore ")
else:
out_xml('\t\t<IcePrice> eval( \n')
out_xml( '\t\tIf $' + pd_code_2 + '.Price = -1 Then\r\n')
out_xml( '\t\t\tVar return = "Free"\r\n')
out_xml( '\t\tElse\r\n')
out_xml( '\t\t\tVar return !assigned StringFmt( $' + pd_code_2 + '.Price , DisplayFormat, PreScaleConvertShow) \r\n')
out_xml( '\t\tEndIf\r\n')
out_xml('\t\t) </IcePrice>\n')
out_xml('\t\t<BlendPrice> eval( \n')
out_xml( '\t\tIf $' + pd_code_3 + '.Price = -1 Then\r\n')
out_xml( '\t\t\tVar return = "Free"\r\n')
out_xml( '\t\tElse\r\n')
out_xml( '\t\t\tVar return !assigned StringFmt( $' + pd_code_3 + '.Price , DisplayFormat, PreScaleConvertShow) \r\n')
out_xml( '\t\tEndIf\r\n')
out_xml('\t\t) </BlendPrice>\n')
out_xml('\t\t<IceProcessingState>\n')
out_xml('\t\t\teval(\n')
out_xml('\t\t\t\tIf ICE_PROCESS_STATUS = 2 Then\n')
out_xml('\t\t\t\t\tIf $Sum510201003951020200395102030039 = "Disable" Then\n')
out_xml('\t\t\t\t\t\tVar ice_tab_process_show = "Disable"\n')
out_xml('\t\t\t\t\tElse\n')
out_xml('\t\t\t\t\t\tVar ice_tab_process_show = "Enable"\n')
out_xml('\t\t\t\t\tEndIf\n')
out_xml('\t\t\t\tElse\n')
out_xml('\t\t\t\t\tVar ice_tab_process_show = "Invisible"\n')
out_xml('\t\t\t\tEndIf\n')
out_xml('\t\t\t\tVar return = ice_tab_process_show\n')
out_xml('\t\t\t)\n')
out_xml('\t\t</IceProcessingState>\n')
out_xml('\t\t<IceProcessingImage> "ROOT/taobin_project/image/drink_option/ice_tab_unavalible.png" </IceProcessingImage>\n')
out_xml('\t\t<IceProcessingDisableImage> "ROOT/taobin_project/image/drink_option/ice_tab_unavalible_dis.png" </IceProcessingDisableImage>\n')
out_xml('\t\t<ConditionalDisable>\n')
out_xml('\t\t\t<Script>\n')
out_xml('\t\t\t\tIf $Sum' + str_con_var +' = "Disable" Then\n')
if "show-blend-only" in xml_parameter:
print("Ignore check hot and cold menu. ")
else:
out_xml('\t\t\t\t\tSTRCONTAIN "STG=CLOSE" $' + pd_code_1 + '.TAG tag1_is_disable\n')
out_xml('\t\t\t\t\tSTRCONTAIN "STG=CLOSE" $' + pd_code_2 + '.TAG tag2_is_disable\n')
out_xml('\t\t\t\t\tSTRCONTAIN "STG=CLOSE" $' + pd_code_3 + '.TAG tag3_is_disable\n')
out_xml('\t\t\t\t\tIf tag1_is_disable = "true" Then\n')
out_xml('\t\t\t\t\t\tVar $Sum' + str_con_var +'Tag = $' + pd_code_1 + '.TAG\n')
out_xml('\t\t\t\t\tEndIf\n')
out_xml('\t\t\t\t\tIf tag2_is_disable = "true" Then\n')
out_xml('\t\t\t\t\t\tVar $Sum' + str_con_var +'Tag = $' + pd_code_2 + '.TAG\n')
out_xml('\t\t\t\t\tEndIf\n')
out_xml('\t\t\t\t\tIf tag3_is_disable = "true" Then\n')
out_xml('\t\t\t\t\t\tVar $Sum' + str_con_var +'Tag = $' + pd_code_3 + '.TAG\n')
out_xml('\t\t\t\t\tEndIf\n')
out_xml('\t\t\t\t\tVar $Sum' + str_con_var +'TextValue !assigned GETS($Sum' + str_con_var +'Tag,"MSG")\n')
out_xml('\t\t\t\t\tVar $Sum' + str_con_var +'TextID !assigned GETS($Sum' + str_con_var +'Tag,"TextID")\n')
out_xml('\t\t\t\t\tIf $Sum' + str_con_var +'TextID != "" Then\n')
out_xml('\t\t\t\t\t\tVar $Sum' + str_con_var +'TextValue = ""\n')
out_xml('\t\t\t\t\tEndIf\n')
out_xml('\t\t\t\t\tIf $Sum' + str_con_var +'TextValue = "" Then\n')
out_xml('\t\t\t\t\t\tIf $Sum' + str_con_var +'TextID = "" Then\n')
out_xml('\t\t\t\t\t\t\tVar $Sum' + str_con_var +'TextID = "000013"\n')
out_xml('\t\t\t\t\t\tEndIf\n')
out_xml('\t\t\t\t\tEndIf\n')
out_xml('\t\t\t\tEndIf\n')
out_xml('\t\t\t</Script>\n')
out_xml('\t\t\t<ID> $Sum' + str_con_var +'TextID </ID>\n')
out_xml('\t\t\t<Value> $Sum' + str_con_var +'TextValue </Value>\n')
out_xml('\t\t</ConditionalDisable>\n')
out_xml('\t\t<EventOnClick>\n')
out_xml('\t\t\tVar PictureDrink = "' + new_default_dir2 + '" + \"' + menu_img + '\"\n')
out_xml('\t\t\tGetInstanceIDMenuTab OpenFromInstMenuTab\n')
out_xml('\t\t\tVar OpenFromXML = CurrentXMLFileName2\n')
out_xml('\t\t\tVar PriceD1 = $' + pd_code_1 + '.Price\n')
out_xml('\t\t\tVar PriceD2 = $' + pd_code_2 + '.Price\n')
out_xml('\t\t\tVar PriceD3 = $' + pd_code_3 + '.Price\n')
out_xml('\t\t\tVar PD_CODE1 = "' + pd_code_1 + '"\n')
out_xml('\t\t\tVar PD_CODE2 = "' + pd_code_2 + '"\n')
out_xml('\t\t\tVar PD_CODE3 = "' + pd_code_3 + '"\n')
out_xml( '\t\t\t; begin lang\n')
for x in range( max_can_have_lang):
if x < len( spl[ idx_name]):
out_xml( '\t\t\tVar aliasName['+ str(x) +'] = "'+ spl[ idx_name][ x + 1]+'"\n')
out_xml( '\t\t\tVar aliasDesc['+ str(x) +'] = "'+ spl[ idx_desc][ x + 1]+'"\r\n')
for x in range( max_can_have_lang):
out_xml( '\t\t\tVar NameLang[0]['+ str(x) +'] = "'+ get_name_lang( pd_code_1 , x)+'"\n')
for x in range( max_can_have_lang):
out_xml( '\t\t\tVar DescLang[0]['+ str(x) +'] = "'+ get_desc_lang( pd_code_1 , x)+'"\n')
for x in range( max_can_have_lang):
out_xml( '\t\t\tVar NameLang[1]['+ str(x) +'] = "'+ get_name_lang( pd_code_2 , x)+'"\n')
for x in range( max_can_have_lang):
out_xml( '\t\t\tVar DescLang[1]['+ str(x) +'] = "'+ get_desc_lang( pd_code_2 , x)+'"\n')
for x in range( max_can_have_lang):
out_xml( '\t\t\tVar NameLang[2]['+ str(x) +'] = "'+ get_name_lang( pd_code_3 , x)+'"\n')
for x in range( max_can_have_lang):
out_xml( '\t\t\tVar DescLang[2]['+ str(x) +'] = "'+ get_desc_lang( pd_code_3 , x)+'"\n')
out_xml( '\t\t\t; end lang\n')
out_xml('\t\t\tVar PD_STAGE_1 = ' + pd_stage1 + '\n')
out_xml('\t\t\tVar PD_STAGE_2 = ' + pd_stage2 + '\n')
out_xml('\t\t\tVar PD_STAGE_3 = ' + pd_stage3 + '\n')
out_xml( '\t\t\tVar SelectCountDrinkType = 0\n')
out_xml( '\t\t\tVar DefaultDrinkType = 0\n')
out_xml( '\t\t\tIf PD_STAGE_1 = "Enable" Then\n')
out_xml( '\t\t\t\tVar SelectCountDrinkType = SelectCountDrinkType + 1\n')
out_xml( '\t\t\t\tVar DefaultDrinkType = 1\n')
out_xml( '\t\t\tEndIf\n')
out_xml( '\t\t\tIf PD_STAGE_2 = "Enable" Then\n')
out_xml( '\t\t\t\tVar SelectCountDrinkType = SelectCountDrinkType + 1\n')
out_xml( '\t\t\t\tVar DefaultDrinkType = 2\n')
out_xml( '\t\t\tEndIf\n')
out_xml( '\t\t\tIf PD_STAGE_3 = "Enable" Then\n')
out_xml( '\t\t\t\tVar SelectCountDrinkType = SelectCountDrinkType + 1\n')
out_xml( '\t\t\t\tVar DefaultDrinkType = 3\n')
out_xml( '\t\t\tEndIf\n')
default_topping_int = 0
try:
default_topping_int = int(default_topping)
except:
print("default_topping ignore")
if default_topping_int == 3:
out_xml( '\t\t; default topping 3\r\n')
out_xml( '\t\tIf PD_STAGE_3 = "Enable" Then\r\n')
out_xml( '\t\t\t\tTopping "Load" "'+ blend_pd.replace("-alter", "") +'"\n')
out_xml( '\t\tElse\r\n')
out_xml( '\t\t\tIf PD_STAGE_2 = "Enable" Then\r\n')
out_xml( '\t\t\t\tTopping "Load" "'+ cold_pd.replace("-alter", "") +'"\n')
out_xml( '\t\t\tElse\r\n')
out_xml( '\t\t\t\tTopping "Load" "'+ hot_pd.replace("-alter", "") +'"\n')
out_xml( '\t\t\tEndIf\r\n')
out_xml( '\t\tEndIf\r\n')
else:
out_xml( '\t\t\tIf PD_STAGE_2 = "Enable" Then\n')
out_xml( '\t\t\t\tTopping "Load" "'+ cold_pd.replace("-alter", "") +'"\n')
out_xml( '\t\t\tElse\n')
out_xml( '\t\t\t\tIf PD_STAGE_1 = "Enable" Then\n')
out_xml( '\t\t\t\tTopping "Load" "'+ hot_pd.replace("-alter", "") +'"\n')
out_xml( '\t\t\t\tElse\n')
out_xml( '\t\t\t\tTopping "Load" "'+ blend_pd.replace("-alter", "") +'"\n')
out_xml( '\t\t\t\tEndIf\n')
out_xml( '\t\t\tEndIf\n')
out_xml('\t\t\t;include="ROOT/taobin_project/inter/tha/xml/multi/tab_menu_hide.lxml"\n')
current_file_name_str = current_file_name.replace(".skt", ".lxml")
out_xml( '\t\t\tVar OpenFromXML = "ROOT/taobin_project/inter/tha/xml/'+ current_file_name_str + '"\n')
#
out_xml( '\t\t\t\n')
out_xml( '\t\t\t\n')
out_xml( '\t\t\tTabMenuVisibleInst 99\n')
out_xml( '\t\t\tDEBUGVAR RedirectToNormalVersion\n')
out_xml( '\t\t\tDEBUGVAR ToppingNewUINewSystem\n')
out_xml( '\t\t\tIf RedirectToNormalVersion = 1 Then\n')
out_xml( '\t\t\t\tVar menu_name_eng_hot = NameLang[0][0]\n')
out_xml( '\t\t\t\tVar menu_desc_eng_hot = DescLang[0][0]\n')
out_xml( '\t\t\t\tVar menu_name_eng_cold = NameLang[1][0]\n')
out_xml( '\t\t\t\tVar menu_desc_eng_cold = DescLang[1][0]\n')
out_xml( '\t\t\t\tVar menu_name_eng_blender = NameLang[2][0]\n')
out_xml( '\t\t\t\tVar menu_desc_eng_blender = DescLang[2][0]\n')
out_xml( '\t\t\t\t\n')
out_xml( '\t\t\t\t\n')
out_xml( '\t\t\t\t\n')
out_xml( '\t\t\t\tVar menu_name_thai_hot = NameLang[0][1]\n')
out_xml( '\t\t\t\tVar menu_desc_thai_hot = DescLang[0][1]\n')
out_xml( '\t\t\t\tVar menu_name_thai_cold = NameLang[1][1]\n')
out_xml( '\t\t\t\tVar menu_desc_thai_cold = DescLang[1][1]\n')
out_xml( '\t\t\t\tVar menu_name_thai_blender = NameLang[2][1]\n')
out_xml( '\t\t\t\tVar menu_desc_thai_blender = DescLang[2][1]\n')
out_xml( '\t\t\t\tDEBUGVAR menu_name_thai_cold\n')
out_xml( '\t\t\t\tDEBUGVAR menu_desc_thai_cold\n')
out_xml( '\t\t\t\t\tVar NameDrink = aliasName[0]\n')
out_xml( '\t\t\t\t\tVar DrinkDescription = aliasDesc[0]\n')
out_xml( '\t\t\t\t\tVar NameDrinkTH = aliasName[1]\n')
out_xml( '\t\t\t\t\tVar DrinkDescriptionTH = aliasDesc[1]\n')
out_xml( '\t\t\tIf LanguageShow = "THAI" Then\n')
out_xml( '\t\t\t\tVar show_eng = "false"\n')
out_xml( '\t\t\tElse\n')
out_xml( '\t\t\t\tVar show_eng = "true"\n')
out_xml( '\t\t\tEndIf\n')
if len( topping_xml_file) > 0 :
print("topping_xml_file=" + topping_xml_file)
print("current_file_name=" + current_file_name)
if len( xml_parameter) > 0 :
print("xml_parameter=" + xml_parameter)
if len( topping_xml_file) == 0 :
out_xml( '\t\t\t\tOpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/xml/page_topping_select5.xml"\n')
else:
out_xml( '\t\t\t\tOpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/inter/tha/xml/'+ topping_xml_file +'"\n')
out_xml( '\t\t\tElse\n')
if len( topping_xml_file) == 0 :
out_xml( '\t\t\t\tOpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/inter/tha/xml/page_topping_select6.lxml"\n')
else:
out_xml( '\t\t\t\tOpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/inter/tha/xml/'+ topping_xml_file +'"\n')
out_xml( '\t\t\tEndIf\n')
out_xml( '\t\t\t\n')
out_xml( '\t\t\t\n')
out_xml( '\t\t\t\n')
out_xml('\t\t</EventOnClick>\n')
out_xml('\t\t</Menu>\n\n')
def GenBanner(type, thai_media, eng_media, event_on_click_script, start_date_time, end_date_time, state_var):
str_con = []
if re.match(r'(\d{4})/(\d{2})/(\d{2})T(\d{2}):(\d{2}):(\d{2})', start_date_time.strip()):
str_con.append(f'DateTimeStart="{start_date_time.strip()}"')
if re.match(r'(\d{4})/(\d{2})/(\d{2})T(\d{2}):(\d{2}):(\d{2})', end_date_time.strip()):
str_con.append(f'DateTimeEnd="{end_date_time.strip()}"')
if re.match(r'^\w.*', state_var.strip()):
str_con.append(f'Var={state_var.strip()},')
out_xml('\t\t<Banner>\n')
out_xml('\t\t\t<State> Flag( '+ ",".join(str_con) + ' ) </State>\n')
out_xml('\t\t\t<Type> ' + type + ' </Type>\n')
out_xml('\t\t\t<Media>\n')
out_xml('\t\t\t\teval(\n')
out_xml('\t\t\t\t\tIf show_eng = "true" Then\n')
out_xml('\t\t\t\t\t\tVar return = ' + eng_media + '\n')
out_xml('\t\t\t\t\tElse\n')
out_xml('\t\t\t\t\t\tVar return = ' + thai_media + '\n')
out_xml('\t\t\t\t\tEndIf\n')
out_xml('\t\t\t\t)\n')
out_xml('\t\t\t</Media>\n')
out_xml('\t\t\t<EventOnClick>\n')
out_xml('\t\t\t\t' + event_on_click_script.replace('\\n', '\n').replace('\\t', '\t') + '\n')
out_xml('\t\t\t</EventOnClick>\n')
out_xml('\t\t</Banner>\n')
idx_lang_myanmar = 6
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_date_time_start = 17
idx_date_time_end = idx_date_time_start + 1
idx_product_var = idx_date_time_end + 1
idx_of_default_toppimg = idx_product_var + 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":
recommend_page = True
button_add_string = "Var OpenFromInstMenuTab = 0"
else:
recommend_page = False
button_add_string = ""
out_xml('<ScrollableCatalog>\n')
out_xml('\t<X> 0 </X>\n')
out_xml('\t<Y> 497 </Y>\n')
out_xml('\t<Width> 1080 </Width>\n')
out_xml('\t<Height> 1423 </Height>\n')
out_xml('\t<Configuration>\n')
out_xml('\t\t<MenuNameTextConfiguration>\n')
out_xml('\t\t\t<Font> KanitMediumTTF </Font>\n')
out_xml('\t\t\t<Color> 0x322B26 </Color>\n')
out_xml('\t\t\t<ColorDisable> 0xEAE6E1 </ColorDisable>\n')
out_xml('\t\t\t<AutoResizeConfiguration>\n')
out_xml('\t\t\t\t<Min> 16 </Min>\n')
out_xml('\t\t\t\t<Max> 22 </Max>\n')
out_xml('\t\t\t\t<AdjustStep> 1 </AdjustStep>\n')
out_xml('\t\t\t</AutoResizeConfiguration>\n')
out_xml('\t\t</MenuNameTextConfiguration>\n')
out_xml('\t\t<MenuDescriptionTextConfiguration>\n')
out_xml('\t\t\t<Font> KanitMediumTTF </Font>\n')
out_xml('\t\t\t<Color> 0x322B26 </Color>\n')
out_xml('\t\t\t<ColorDisable> 0xEAE6E1 </ColorDisable>\n')
out_xml('\t\t\t<AutoResizeConfiguration>\n')
out_xml('\t\t\t\t<Min> 10 </Min>\n')
out_xml('\t\t\t\t<Max> 14 </Max>\n')
out_xml('\t\t\t\t<AdjustStep> 1 </AdjustStep>\n')
out_xml('\t\t\t</AutoResizeConfiguration>\n')
out_xml('\t\t</MenuDescriptionTextConfiguration>\n')
out_xml('\t\t<MenuPriceTextConfiguration>\n')
out_xml('\t\t\t<Font> KanitRegularTTF </Font>\n')
out_xml('\t\t\t<Color> 0x6F5F51 </Color>\n')
out_xml('\t\t\t<ColorDisable> 0xEAE6E1 </ColorDisable>\n')
out_xml('\t\t\t<AutoResizeConfiguration>\n')
out_xml('\t\t\t\t<Min> 4 </Min>\n')
out_xml('\t\t\t\t<Max> 20 </Max>\n')
out_xml('\t\t\t\t<AdjustStep> 1 </AdjustStep>\n')
out_xml('\t\t\t</AutoResizeConfiguration>\n')
out_xml('\t\t</MenuPriceTextConfiguration>\n')
out_xml('\t\t<MenuHotPriceLabel> 000081 </MenuHotPriceLabel>\n')
out_xml('\t\t<MenuIcePriceLabel> 000082 </MenuIcePriceLabel>\n')
out_xml('\t\t<MenuBlendPriceLabel> 000083 </MenuBlendPriceLabel>\n')
out_xml('\t\t<MenuUnavailableLabel> 000013 </MenuUnavailableLabel>\n')
out_xml('\t</Configuration>\n')
out_xml('\t<Menus>\n')
out_xml(';banners\n')
count_test = 0
count = 0
pd_code_available = '##-##-##-####'
#
print('menu_new_list=' + str(menu_new_list))
for spl in menu_new_list:
#product_code = s
if len(spl) == 1:
if spl[0].startswith("IGNORE"):
continue
if spl[0].startswith("TAG"):
out_xml( '\t;' + spl[0] + '\r\n')
continue
if spl[idx_desc][idx_lang_eng].startswith("BANNER"):
date_time_start = spl[idx_name][idx_date_time_start]
date_time_end = spl[idx_name][idx_date_time_end]
state_var = spl[idx_name][idx_product_var]
type = spl[idx_desc][idx_lang_thai]
eng_media = spl[idx_img][idx_lang_eng]
thai_media = spl[idx_img][idx_lang_thai]
on_click_script = spl[idx_name][idx_lang_thai]
GenBanner(type, thai_media, eng_media, on_click_script, date_time_start, date_time_end, state_var)
else:
[hot_pd_v1, hot_pd_v2] = spl[ idx_name][ idx_hot_product_code].split(',')
[cold_pd_v1, cold_pd_v2] = spl[ idx_name][ idx_cold_product_code].split(',')
[blend_pd_v1, blend_pd_v2] = spl[ idx_name][ idx_blend_product_code].split(',')
# date_time_start = spl[idx_name][idx_date_time_start]
# date_time_end = spl[idx_name][idx_date_time_end]
# product_var = spl[idx_name][idx_product_var]
date_time_start = ""
date_time_end = ""
product_var = ""
try:
default_topping = spl[idx_name][idx_of_default_toppimg]
except:
default_topping = "0"
print(f"spl[{idx_name}] =", spl[idx_name])
# print(f"Expected indices: date_time_start:{date_time_start}, date_time_end:{date_time_end}, product_var:{product_var} , default_topping={default_topping}")
for [hot_pd, cold_pd, blend_pd] in [[hot_pd_v1, cold_pd_v1, blend_pd_v1], [hot_pd_v2, cold_pd_v2, blend_pd_v2]]:
if hot_pd == '-' and cold_pd == '-' and blend_pd == '-':
continue
else:
print(f"Gen ==> hot={hot_pd}, cold={cold_pd}, blend={blend_pd}")
GenMenuV3(hot_pd, cold_pd, blend_pd, date_time_start, date_time_end, product_var, default_topping)
out_xml('\t\t</Menus>\n\n')
out_xml('</ScrollableCatalog>\n')

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,59 @@
<?hurr
#include=menu_head.py
echo param
?>
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
;<Background> "0xeae6e1" </Background>
<Volume> SoundVolume </Volume>
<EventOpen>
; On open
;include="ROOT/taobin_project/inter/aus/xml/multi/menu_catalog_default_init.lxml"
If AppFastEnable = "true" Then
Var Menu11Selected = "PressForever"
Var Menu7Selected = "Invisible"
Else
Var Menu11Selected = "Invisible"
Var Menu7Selected = "PressForever"
EndIf
SAVELOG PreviseXMLFileName2
Var Timeout = 0
;include="ROOT/taobin_project/inter/aus/xml/multi/menu_catalog_new_menu.lxml"
SetInstanceIgnoreTouch
</EventOpen>
<Timeout> 1000 </Timeout>
<EventTimeout>
;include="ROOT/taobin_project/inter/aus/xml/multi/ForProGroup.inc"
TimerReset
</EventTimeout>
;include="ROOT/taobin_project/inter/aus/xml/multi/menu_catalog_new.lxml"
<?hurr
#include=menu_new_layout_gen_v3.py
?>
</Popup>

View file

@ -0,0 +1,42 @@
<?hurr
#include=menu_head.py
?>
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
;<Background> "0xeae6e1" </Background>
<Volume> SoundVolume </Volume>
<EventOpen>
; On open
;include="ROOT/taobin_project/inter/aus/xml/multi/menu_catalog_default_init.lxml"
Var Timeout = 0
;include="ROOT/taobin_project/inter/aus/xml/multi/menu_catalog_new_menu.lxml"
SetInstanceIgnoreTouch
</EventOpen>
<Timeout> 1000 </Timeout>
<EventTimeout>
;include="ROOT/taobin_project/inter/aus/xml/multi/ForProGroup.inc"
TimerReset
</EventTimeout>
;include="ROOT/taobin_project/inter/aus/xml/multi/menu_catalog_new.lxml"
<?hurr
#include=menu_new_layout_gen_v3.py
?>
</Popup>

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,132 @@
<?hurr
#include=menu_head.py
?>
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
;<Background> "0xeae6e1" </Background>
<Volume> SoundVolume </Volume>
<EventOpen>
; On open
If SlientRefreshIndex = 2 Then
Var SlientRefreshIndex = 3
EndIf
Var CoffeeRefreshTimeOut = 0
</EventOpen>
<EventOnShow>
SCROLL_TO_TOP ""
SAVELOG "Onshow 1"
;include="ROOT/taobin_project/inter/aus/xml/multi/menu_catalog_default_init.lxml"
Var Menu2Selected = "PressForever"
SAVELOG "Onshow 2"
;include="ROOT/taobin_project/inter/aus/xml/multi/tab_menu_show_and_refresh.lxml"
Var Timeout = 0
SAVELOG "Onshow 3"
;include="ROOT/taobin_project/inter/aus/xml/multi/menu_catalog_new_menu.lxml"
SetInstanceIgnoreTouch
Var inst_show_coffee_counter = 4
DEBUGVAR SlientRefreshIndex
RefreshAll
</EventOnShow>
<Timeout> 1000 </Timeout>
<EventTimeout>
;DEBUGVAR ICE_PROCESS_STATUS
;include="ROOT/taobin_project/inter/aus/xml/multi/InstanceGetSetString.inc"
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
GetVisible inst_show_coffee
If inst_show_coffee = 1 Then
If inst_show_coffee_counter > 0 Then
DEBUGVAR inst_show_coffee_counter
Var inst_show_coffee_counter = inst_show_coffee_counter - 1
If inst_show_coffee_counter = 0 Then
RefreshAll
Var inst_show_coffee_counter = 4
EndIf
EndIf
;include="ROOT/taobin_project/inc/remove_cup_on_arm_step.inc"
EndIf
; setvarint RefreshCoffeeMenu 1
If RefreshCoffeeMenu = 1 Then
Var RefreshCoffeeMenu = 0
SAVELOG "OPEN FROM 3"
Open "ROOT/taobin_project/inter/aus/xml/multi/v3/page_catalog_group_coffee.lxml"
EndIf
; setvarint ScriptCoffeeMenu 1
If ScriptCoffeeMenu = 1 Then
Var ScriptCoffeeMenu = 0
SAVELOG "Runscript 3"
Script "-" "-"
EndIf
If CoffeeRefreshTimeOut > 15 Then
Var CoffeeRefreshTimeOut = 0
Script "-" "-"
EndIf
Var CoffeeRefreshTimeOut = CoffeeRefreshTimeOut + 1
TimerReset
</EventTimeout>
;include="ROOT/taobin_project/inter/aus/xml/multi/menu_catalog_new.lxml"
<?hurr
#include=menu_new_layout_gen_v3.py
?>
<Text>
<X> 1 </X>
<Y> 1 </Y>
<Font> KanitTTF </Font>
<Size> 22 </Size>
<Width> 1080 </Width>
<Align> end </Align>
<Color> 0xFF0000 </Color>
<Value> "CF1"</Value>
</Text>
</Popup>

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,101 @@
<?hurr
#include=menu_head.py
touch_less_gen = False
?>
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
;<Background> "0xeae6e1" </Background>
<Volume> SoundVolume </Volume>
<EventOpen>
DEBUGVAR SlientRefreshIndex
If SlientRefreshIndex = 6 Then
Var SlientRefreshIndex = 7
EndIf
Var DessertRefreshTimeOut = 0
</EventOpen>
<EventOnShow>
SCROLL_TO_TOP ""
;include="ROOT/taobin_project/inter/aus/xml/multi/menu_catalog_default_init.lxml"
Var Menu22Selected = "PressForever"
Var Timeout = 0
;include="ROOT/taobin_project/inter/aus/xml/multi/tab_menu_show_and_refresh.lxml"
SetInstanceIgnoreTouch
;include="ROOT/taobin_project/inter/aus/xml/multi/menu_catalog_new_menu.lxml"
RefreshAll
DEBUGVAR SlientRefreshIndex
</EventOnShow>
<Timeout> 1000 </Timeout>
<EventTimeout>
;DEBUGVAR ICE_PROCESS_STATUS
;include="ROOT/taobin_project/inter/aus/xml/multi/InstanceGetSetString.inc"
GetVisible inst_show_dessert
If inst_show_dessert = 1 Then
If inst_show_dessert_counter > 0 Then
DEBUGVAR inst_show_dessert_counter
Var inst_show_dessert_counter = inst_show_dessert_counter - 1
If inst_show_dessert_counter = 0 Then
RefreshAll
Var inst_show_dessert_counter = 7
EndIf
EndIf
;include="ROOT/taobin_project/inc/remove_cup_on_arm_step.inc"
EndIf
If DessertRefreshTimeOut > 15 Then
Var DessertRefreshTimeOut = 0
Script "-" "-"
EndIf
Var DessertRefreshTimeOut = DessertRefreshTimeOut + 1
If RefreshDessertMenu = 1 Then
Var RefreshDessertMenu = 0
SAVELOG "OPEN FROM 6"
Open "ROOT/taobin_project/inter/aus/xml/multi/v3/page_catalog_group_dessert.lxml"
EndIf
; setvarint RefreshDessertMenu 1
TimerReset
</EventTimeout>
;include="ROOT/taobin_project/inter/aus/xml/multi/menu_catalog_new.lxml"
<?hurr
#include=menu_new_layout_gen_v3.py
?>
</Popup>

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,92 @@
<?hurr
#include=menu_head.py
touch_less_gen = False
?>
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
;<Background> "0xeae6e1" </Background>
<Volume> SoundVolume </Volume>
<EventOpen>
; On open
SetInstanceIgnoreTouch
DEBUGVAR SlientRefreshIndex
If SlientRefreshIndex = 5 Then
Var SlientRefreshIndex = 6
EndIf
</EventOpen>
<EventOnShow>
SCROLL_TO_TOP ""
;include="ROOT/taobin_project/inter/aus/xml/multi/menu_catalog_default_init.lxml"
; protein
If AppFastEnable = "true" Then
Var Menu11Selected = "PressForever"
Var Menu7Selected = "Invisible"
Var Menu21Selected = "Invisible"
Else
Var Menu11Selected = "Invisible"
Var Menu7Selected = "Invisible"
Var Menu21Selected = "PressForever"
EndIf
Var Timeout = 0
;include="ROOT/taobin_project/inter/aus/xml/multi/tab_menu_show_and_refresh.lxml"
SetInstanceIgnoreTouch
;include="ROOT/taobin_project/inter/aus/xml/multi/menu_catalog_new_menu.lxml"
Var inst_show_for_kid_counter = 4
RefreshAll
DEBUGVAR SlientRefreshIndex
</EventOnShow>
<Timeout> 1000 </Timeout>
<EventTimeout>
;DEBUGVAR ICE_PROCESS_STATUS
;include="ROOT/taobin_project/inter/aus/xml/multi/InstanceGetSetString.inc"
GetVisible inst_show_for_kid
If inst_show_for_kid = 1 Then
If inst_show_for_kid_counter > 0 Then
DEBUGVAR inst_show_for_kid_counter
Var inst_show_for_kid_counter = inst_show_for_kid_counter - 1
If inst_show_for_kid_counter = 0 Then
RefreshAll
Var inst_show_for_kid_counter = 4
EndIf
EndIf
;include="ROOT/taobin_project/inc/remove_cup_on_arm_step.inc"
EndIf
TimerReset
</EventTimeout>
;include="ROOT/taobin_project/inter/aus/xml/multi/menu_catalog_new.lxml"
<?hurr
#include=menu_new_layout_gen_v3.py
?>
</Popup>

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,101 @@
<?hurr
#include=menu_head.py
touch_less_gen = False
?>
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
;<Background> "0xeae6e1" </Background>
<Volume> SoundVolume </Volume>
<EventOpen>
DEBUGVAR SlientRefreshIndex
If SlientRefreshIndex = 6 Then
Var SlientRefreshIndex = 7
EndIf
Var HealthRefreshTimeOut = 0
</EventOpen>
<EventOnShow>
SCROLL_TO_TOP ""
;include="ROOT/taobin_project/inter/aus/xml/multi/menu_catalog_default_init.lxml"
Var Menu22Selected = "PressForever"
Var Timeout = 0
;include="ROOT/taobin_project/inter/aus/xml/multi/tab_menu_show_and_refresh.lxml"
SetInstanceIgnoreTouch
;include="ROOT/taobin_project/inter/aus/xml/multi/menu_catalog_new_menu.lxml"
RefreshAll
DEBUGVAR SlientRefreshIndex
</EventOnShow>
<Timeout> 1000 </Timeout>
<EventTimeout>
;DEBUGVAR ICE_PROCESS_STATUS
;include="ROOT/taobin_project/inter/aus/xml/multi/InstanceGetSetString.inc"
GetVisible inst_show_health
If inst_show_health = 1 Then
If inst_show_health_counter > 0 Then
DEBUGVAR inst_show_health_counter
Var inst_show_health_counter = inst_show_health_counter - 1
If inst_show_health_counter = 0 Then
RefreshAll
Var inst_show_health_counter = 7
EndIf
EndIf
;include="ROOT/taobin_project/inc/remove_cup_on_arm_step.inc"
EndIf
If HealthRefreshTimeOut > 15 Then
Var HealthRefreshTimeOut = 0
Script "-" "-"
EndIf
Var HealthRefreshTimeOut = HealthRefreshTimeOut + 1
If RefreshHealtMenu = 1 Then
Var RefreshHealtMenu = 0
SAVELOG "OPEN FROM 6"
Open "ROOT/taobin_project/inter/aus/xml/multi/v3/page_catalog_group_health.lxml"
EndIf
; setvarint RefreshHealtMenu 1
TimerReset
</EventTimeout>
;include="ROOT/taobin_project/inter/aus/xml/multi/menu_catalog_new.lxml"
<?hurr
#include=menu_new_layout_gen_v3.py
?>
</Popup>

View file

@ -0,0 +1,42 @@
<?hurr
#include=menu_head.py
?>
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
;<Background> "0xeae6e1" </Background>
<Volume> SoundVolume </Volume>
<EventOpen>
; On open
;include="ROOT/taobin_project/inter/aus/xml/multi/menu_catalog_default_init.lxml"
Var Timeout = 0
;include="ROOT/taobin_project/inter/aus/xml/multi/menu_catalog_new_menu.lxml"
SetInstanceIgnoreTouch
</EventOpen>
<Timeout> 1000 </Timeout>
<EventTimeout>
;include="ROOT/taobin_project/inter/aus/xml/multi/ForProGroup.inc"
TimerReset
</EventTimeout>
;include="ROOT/taobin_project/inter/aus/xml/multi/menu_catalog_new.lxml"
<?hurr
#include=menu_new_layout_gen_v3.py
?>
</Popup>

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,95 @@
<?hurr
#include=menu_head.py
?>
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
;<Background> "0xeae6e1" </Background>
<Volume> SoundVolume </Volume>
<EventOpen>
; On open
DEBUGVAR SlientRefreshIndex
If SlientRefreshIndex = 4 Then
Var SlientRefreshIndex = 5
EndIf
</EventOpen>
<EventOnShow>
SCROLL_TO_TOP ""
;include="ROOT/taobin_project/inter/aus/xml/multi/menu_catalog_default_init.lxml"
Var Menu4Selected = "PressForever"
RootLayoutVisible 13 "show"
Var Timeout = 0
;include="ROOT/taobin_project/inter/aus/xml/multi/tab_menu_show_and_refresh.lxml"
SetInstanceIgnoreTouch
;include="ROOT/taobin_project/inter/aus/xml/multi/menu_catalog_new_menu.lxml"
Var inst_show_milk_cupe_counter = 7
RefreshAll
DEBUGVAR SlientRefreshIndex
</EventOnShow>
<Timeout> 1000 </Timeout>
<EventTimeout>
;include="ROOT/taobin_project/inter/aus/xml/multi/InstanceGetSetString.inc"
;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
GetVisible inst_show_milk_cupe
If inst_show_milk_cupe = 1 Then
If inst_show_milk_cupe_counter > 0 Then
DEBUGVAR inst_show_milk_cupe_counter
Var inst_show_milk_cupe_counter = inst_show_milk_cupe_counter - 1
If inst_show_milk_cupe_counter = 0 Then
RefreshAll
Var inst_show_milk_cupe_counter = 7
EndIf
EndIf
;include="ROOT/taobin_project/inc/remove_cup_on_arm_step.inc"
EndIf
TimerReset
</EventTimeout>
;include="ROOT/taobin_project/inter/aus/xml/multi/menu_catalog_new.lxml"
<?hurr
#include=menu_new_layout_gen_v3.py
?>
<?hurr
#include=./event/dummy_layout_promotion.py
?>
<EventUnitTest4>
RefreshAll
</EventUnitTest4>
</Popup>

View file

@ -0,0 +1,42 @@
<?hurr
#include=menu_head.py
?>
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
;<Background> "0xeae6e1" </Background>
<Volume> SoundVolume </Volume>
<EventOpen>
; On open
;include="ROOT/taobin_project/inter/aus/xml/multi/menu_catalog_default_init.lxml"
Var Timeout = 0
;include="ROOT/taobin_project/inter/aus/xml/multi/menu_catalog_new_menu.lxml"
SetInstanceIgnoreTouch
</EventOpen>
<Timeout> 1000 </Timeout>
<EventTimeout>
;include="ROOT/taobin_project/inter/aus/xml/multi/ForProGroup.inc"
TimerReset
</EventTimeout>
;include="ROOT/taobin_project/inter/aus/xml/multi/menu_catalog_new.lxml"
<?hurr
#include=menu_new_layout_gen_v3.py
?>
</Popup>

File diff suppressed because it is too large Load diff

Some files were not shown because too many files have changed in this diff Show more