Add video
This commit is contained in:
parent
4ab0e1feeb
commit
8f2a4a9f9e
32 changed files with 4781 additions and 16 deletions
437
inter/aus/xml/multi/control_and_lang_swith.lxml
Normal file
437
inter/aus/xml/multi/control_and_lang_swith.lxml
Normal file
|
|
@ -0,0 +1,437 @@
|
|||
<Popup>
|
||||
<Width> 1080</Width>
|
||||
<Height> 1920 </Height>
|
||||
|
||||
<EventOpen>
|
||||
Var Top2Timeout = 0
|
||||
|
||||
|
||||
|
||||
If InternationalEnable = 1 Then
|
||||
Var topview2_script = CountryRootPath + "/xml/topview2_script.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"
|
||||
|
||||
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
|
||||
|
||||
|
||||
Var LanguageButtonListEnable = "Invisible"
|
||||
|
||||
Var langFileNameIcon = lang_icon_file_name[LanguageShowByIndex]
|
||||
|
||||
Var langfn = "ROOT/taobin_project/image/lang/" + langFileNameIcon
|
||||
|
||||
;If CountryName = "Malaysia" Then
|
||||
; Var dirImageLang = CountryRootPath + "image/lang/"
|
||||
; Var langfn = dirImageLang + langFileNameIcon
|
||||
; DEBUGVAR langfn
|
||||
; DEBUGVAR ButtonLanguageCurrentXPosition
|
||||
; DEBUGVAR ButtonLanguageCurrentYPosition
|
||||
;EndIf
|
||||
|
||||
|
||||
Var ButtonLanguageListXPositionIcon = ButtonLanguageListXPosition + 27
|
||||
Var ButtonLanguageListYPositionIcon = ButtonLanguageListYPosition + 14
|
||||
|
||||
DEBUGVAR ENABLE_LANGUAGE_COUNT
|
||||
If ENABLE_LANGUAGE_COUNT = "" Then
|
||||
LanguageControl "UpdateList" 1
|
||||
EndIf
|
||||
|
||||
If ENABLE_LANGUAGE_COUNT = 1 Then
|
||||
Var LanguageButtonEnable = "Invisible"
|
||||
EndIf
|
||||
|
||||
If FirstTimeOpenFile = "" Then
|
||||
;Var Not#CountDownForMulti = 5
|
||||
Var FirstTimeOpenFile = "done"
|
||||
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
|
||||
|
||||
EndIf
|
||||
</EventOpen>
|
||||
<Timeout> 1000 </Timeout>
|
||||
<EventTimeout>
|
||||
;DEBUGVAR Top2Timeout
|
||||
Var Top2Timeout = Top2Timeout + 1
|
||||
|
||||
If Top2Timeout = 20 Then
|
||||
Open "ROOT/taobin_project/xml/topview2.xml"
|
||||
EndIf
|
||||
|
||||
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
|
||||
|
||||
;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
|
||||
|
||||
|
||||
|
||||
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"
|
||||
|
||||
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"
|
||||
|
||||
|
||||
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"
|
||||
|
||||
TabMenuVisibleInst 99
|
||||
EndIf
|
||||
|
||||
If Not#CountDownForMulti > 0 Then
|
||||
DEBUGVAR Not#CountDownForMulti
|
||||
Var Not#CountDownForMulti = Not#CountDownForMulti - 1
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
|
||||
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
|
||||
|
||||
|
||||
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>
|
||||
0
inter/aus/xml/multi/dummy_layout.py
Normal file
0
inter/aus/xml/multi/dummy_layout.py
Normal file
12
inter/aus/xml/multi/menu_catalog_default_init.py
Normal file
12
inter/aus/xml/multi/menu_catalog_default_init.py
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
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()
|
||||
22
inter/aus/xml/multi/menu_catalog_new.py
Normal file
22
inter/aus/xml/multi/menu_catalog_new.py
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
|
||||
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()
|
||||
|
||||
12
inter/aus/xml/multi/menu_catalog_new_menu.py
Normal file
12
inter/aus/xml/multi/menu_catalog_new_menu.py
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
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()
|
||||
106
inter/aus/xml/multi/menu_head.py
Normal file
106
inter/aus/xml/multi/menu_head.py
Normal 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/aus/image/page_drink_n/'
|
||||
new_default_dir2 = 'ROOT/taobin_project/inter/aus/image/page_drink_picture2_n/'
|
||||
new_default_dir_press = 'ROOT/taobin_project/inter/aus/image/page_drink_press_n/'
|
||||
new_default_dir_disable = 'ROOT/taobin_project/inter/aus/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
|
||||
|
||||
]
|
||||
|
||||
619
inter/aus/xml/multi/menu_new_layout_gen_v2.py
Normal file
619
inter/aus/xml/multi/menu_new_layout_gen_v2.py
Normal file
|
|
@ -0,0 +1,619 @@
|
|||
if "v2" in param:
|
||||
def GenMenuProductCodeBlock( str_hot_product_code, str_cold_product_code, str_blend_product_code):
|
||||
print(" size " + str( len(spl)) + " img=" + spl[ idx_img][1] )
|
||||
out_xml( '\t; ==================> Len = ' + str(len(spl)) + '\r\n')
|
||||
menu_img = spl[ idx_img][1]
|
||||
out_xml( '\t; '+ str_hot_product_code + ' ' + str_cold_product_code + ' ' + str_blend_product_code+ ' \r\n')
|
||||
|
||||
out_xml( '<Block>\r\n')
|
||||
out_xml('\t<MarginLeft> 33 </MarginLeft>\r\n')
|
||||
out_xml('\t<MarginTop> 22 </MarginTop>\r\n')
|
||||
out_xml('\t<Width> 225 </Width>\r\n')
|
||||
out_xml('\t<Height> 296 </Height>\r\n')
|
||||
str_con = ""
|
||||
str_con_var = ""
|
||||
#print("#########################################################################################################################")
|
||||
#print( str( spl))
|
||||
#print("#########################################################################################################################")
|
||||
if str_hot_product_code != '-':
|
||||
str_con += str_hot_product_code + '.Button,'
|
||||
|
||||
if str_cold_product_code != '-':
|
||||
str_con += str_cold_product_code + '.Button,'
|
||||
|
||||
if str_blend_product_code != '-':
|
||||
str_con += str_blend_product_code + '.Button,'
|
||||
|
||||
if str_hot_product_code != '-':
|
||||
str_con_var += str_hot_product_code + '-'
|
||||
|
||||
if str_cold_product_code != '-':
|
||||
str_con_var += str_cold_product_code + '-'
|
||||
|
||||
if str_blend_product_code != '-':
|
||||
str_con_var += str_blend_product_code + '-'
|
||||
|
||||
str_con_var = str_con_var.replace("-", "")
|
||||
if touch_less_gen == True:
|
||||
str_con += "Disable=Invisible,"
|
||||
|
||||
str_con += "$Sum" + str_con_var
|
||||
|
||||
out_xml( '\t<State> Flag( '+ str_con + ') </State> \r\n')
|
||||
|
||||
pd_code_1 = str_hot_product_code
|
||||
pd_stage1 = '$' + str_hot_product_code + '.Button'
|
||||
if str_hot_product_code == "-" or len(str_hot_product_code) == 0 :
|
||||
pd_code_1 = pd_code_available
|
||||
pd_stage1 = '"Disable2"'
|
||||
|
||||
pd_code_2 = str_cold_product_code
|
||||
pd_stage2 = '$' + str_cold_product_code + '.Button'
|
||||
if str_cold_product_code == "-" or len(str_cold_product_code) == 0:
|
||||
pd_code_2 = pd_code_available
|
||||
pd_stage2 = '"Disable2"'
|
||||
|
||||
pd_code_3 = str_blend_product_code
|
||||
pd_stage3 = '$' + str_blend_product_code + '.Button'
|
||||
if str_blend_product_code == "-" or len(str_blend_product_code) == 0:
|
||||
pd_code_3 = pd_code_available
|
||||
pd_stage3 = '"Disable2"'
|
||||
|
||||
|
||||
|
||||
|
||||
out_xml( '\t<Button>\r\n')
|
||||
out_xml( '\t<State> $Sum' + str_con_var +' </State> \r\n')
|
||||
out_xml( '\t<Filename> "' + new_default_dir + '/'+ menu_img +'" </Filename>\r\n')
|
||||
out_xml( '\t<FilenamePress> "' + new_default_dir_press + '/'+ menu_img +'" </FilenamePress>\r\n')
|
||||
out_xml( '\t<FilenameDisable> "' + new_default_dir_disable + '/'+ menu_img +'" </FilenameDisable>\r\n')
|
||||
out_xml( '\t<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>\r\n')
|
||||
out_xml( '\t<Volume> SoundVolume </Volume>\r\n')
|
||||
out_xml( '\t<EventOnClick> \r\n')
|
||||
|
||||
# Default
|
||||
#out_xml( '\t\tVar NameDrink = "' + spl[ idx_of_eng_des].replace("\\n", " ") + '"\r\n')
|
||||
#out_xml( '\t\tVar NameDrinkTH = "' + spl[ idx_of_eng].replace("\\n", " ") + '"\r\n')
|
||||
#out_xml( '\t\tVar DrinkDescriptionTH = "' + spl[ idx_of_thai].replace("\\n", " ") + '"\r\n')
|
||||
#out_xml( '\t\tVar DrinkDescription = "' + spl[ idx_of_thai_des].replace("\\n", " ") + '"\r\n')
|
||||
out_xml( '\t\tVar PictureDrink = "' + new_default_dir2 + '" + \"' + menu_img + '\"\r\n')
|
||||
|
||||
out_xml( '\t\tVar OpenFromXML = CurrentXMLFileName2\r\n')
|
||||
|
||||
out_xml( '\t\tVar PriceD1 = $' + str_hot_product_code + '.Price\r\n')
|
||||
out_xml( '\t\tVar PriceD2 = $' + str_cold_product_code + '.Price\r\n')
|
||||
out_xml( '\t\tVar PriceD3 = $' + str_blend_product_code + '.Price\r\n')
|
||||
|
||||
out_xml( '\t\tVar PD_CODE1 = "' + pd_code_1 + '"\r\n')
|
||||
out_xml( '\t\tVar PD_CODE2 = "' + pd_code_2 + '"\r\n')
|
||||
out_xml( '\t\tVar PD_CODE3 = "' + pd_code_3 + '"\r\n')
|
||||
|
||||
out_xml( '\t\t; begin lang \r\n')
|
||||
for x in range( max_can_have_lang):
|
||||
if x < len( spl[ idx_name]):
|
||||
out_xml( '\t\tVar aliasName['+ str(x) +'] = "'+ spl[ idx_name][ x + 1]+'"\r\n')
|
||||
out_xml( '\t\tVar aliasDesc['+ str(x) +'] = "'+ spl[ idx_desc][ x + 1]+'"\r\n')
|
||||
|
||||
|
||||
for x in range( max_can_have_lang):
|
||||
out_xml( '\t\tVar NameLang[0]['+ str(x) +'] = "'+ get_name_lang( pd_code_1 , x)+'"\r\n')
|
||||
for x in range( max_can_have_lang):
|
||||
out_xml( '\t\tVar DescLang[0]['+ str(x) +'] = "'+ get_desc_lang( pd_code_1 , x)+'"\r\n')
|
||||
|
||||
|
||||
for x in range( max_can_have_lang):
|
||||
out_xml( '\t\tVar NameLang[1]['+ str(x) +'] = "'+ get_name_lang( pd_code_2 , x)+'"\r\n')
|
||||
for x in range( max_can_have_lang):
|
||||
out_xml( '\t\tVar DescLang[1]['+ str(x) +'] = "'+ get_desc_lang( pd_code_2 , x)+'"\r\n')
|
||||
|
||||
for x in range( max_can_have_lang):
|
||||
out_xml( '\t\tVar NameLang[2]['+ str(x) +'] = "'+ get_name_lang( pd_code_3 , x)+'"\r\n')
|
||||
for x in range( max_can_have_lang):
|
||||
out_xml( '\t\tVar DescLang[2]['+ str(x) +'] = "'+ get_desc_lang( pd_code_3 , x)+'"\r\n')
|
||||
|
||||
|
||||
|
||||
out_xml( '\t\t; end lang \r\n')
|
||||
|
||||
out_xml( '\t\tVar PD_STAGE_1 = ' + pd_stage1 + '\r\n')
|
||||
out_xml( '\t\tVar PD_STAGE_2 = ' + pd_stage2 + '\r\n')
|
||||
out_xml( '\t\tVar PD_STAGE_3 = ' + pd_stage3 + '\r\n')
|
||||
|
||||
|
||||
out_xml( '\t\tVar SelectCountDrinkType = 0\r\n')
|
||||
out_xml( '\t\tVar DefaultDrinkType = 0\r\n')
|
||||
|
||||
out_xml( '\t\tIf PD_STAGE_1 = "Enable" Then\r\n')
|
||||
out_xml( '\t\t\tVar SelectCountDrinkType = SelectCountDrinkType + 1\r\n')
|
||||
out_xml( '\t\t\tVar DefaultDrinkType = 1\r\n')
|
||||
out_xml( '\t\tEndIf\r\n')
|
||||
|
||||
|
||||
out_xml( '\t\tIf PD_STAGE_2 = "Enable" Then\r\n')
|
||||
out_xml( '\t\t\tVar SelectCountDrinkType = SelectCountDrinkType + 1\r\n')
|
||||
out_xml( '\t\t\tVar DefaultDrinkType = 2\r\n')
|
||||
out_xml( '\t\tEndIf\r\n')
|
||||
|
||||
|
||||
out_xml( '\t\tIf PD_STAGE_3 = "Enable" Then\r\n')
|
||||
out_xml( '\t\t\tVar SelectCountDrinkType = SelectCountDrinkType + 1\r\n')
|
||||
out_xml( '\t\t\tVar DefaultDrinkType = 3\r\n')
|
||||
out_xml( '\t\tEndIf\r\n')
|
||||
|
||||
|
||||
|
||||
out_xml( '\t\tIf PD_STAGE_2 = "Enable" Then\r\n')
|
||||
#out_xml( '\t\t\tVar PD_STAGE_2 = "Enable"\r\n')
|
||||
out_xml( '\t\t\tTopping "Load" "'+ str_cold_product_code +'"\r\n')
|
||||
out_xml( '\t\tElse\r\n')
|
||||
out_xml( '\t\t\tIf PD_STAGE_1 = "Enable" Then\r\n')
|
||||
#out_xml( '\t\t\t\tVar PD_STAGE_1 = "Enable"\r\n')
|
||||
out_xml( '\t\t\tTopping "Load" "'+ str_hot_product_code +'"\r\n')
|
||||
out_xml( '\t\t\tElse\r\n')
|
||||
#out_xml( '\t\t\t\tVar PD_STAGE_3 = "Enable"\r\n')
|
||||
out_xml( '\t\t\tTopping "Load" "'+ str_blend_product_code +'"\r\n')
|
||||
out_xml( '\t\t\tEndIf\r\n')
|
||||
out_xml( '\t\tEndIf\r\n')
|
||||
|
||||
|
||||
|
||||
#out_xml( '\t\tVar menu_name_eng_hot = $' + pd_code_1 + '.NameE\r\n')
|
||||
#out_xml( '\t\tVar menu_desc_eng_hot = $' + pd_code_1 + '.descriptionE\r\n')
|
||||
#out_xml( '\t\tVar menu_name_thai_hot = $' + pd_code_1 + '.Name\r\n')
|
||||
#out_xml( '\t\tVar menu_desc_thai_hot = $' + pd_code_1 + '.description\r\n')
|
||||
#out_xml( '\t\t\r\n')
|
||||
#out_xml( '\t\tVar menu_name_eng_cold = $' + pd_code_2 + '.NameE\r\n')
|
||||
#out_xml( '\t\tVar menu_desc_eng_cold = $' + pd_code_2 + '.descriptionE\r\n')
|
||||
#out_xml( '\t\tVar menu_name_thai_cold = $' + pd_code_2 + '.Name\r\n')
|
||||
#out_xml( '\t\tVar menu_desc_thai_cold = $' + pd_code_2 + '.description\r\n')
|
||||
#out_xml( '\t\t\r\n')
|
||||
#out_xml( '\t\tVar menu_name_eng_blender = $' + pd_code_3 + '.NameE\r\n')
|
||||
#out_xml( '\t\tVar menu_desc_eng_blender = $' + pd_code_3 + '.descriptionE\r\n')
|
||||
#out_xml( '\t\tVar menu_name_thai_blender = $' + pd_code_3 + '.Name\r\n')
|
||||
#out_xml( '\t\tVar menu_desc_thai_blender = $' + pd_code_3 + '.description\r\n')
|
||||
|
||||
|
||||
|
||||
|
||||
out_xml( '\t\t\r\n')
|
||||
out_xml( '\t\tDEBUGVAR PD_STAGE_1\r\n')
|
||||
out_xml( '\t\tDEBUGVAR PD_STAGE_2\r\n')
|
||||
out_xml( '\t\tDEBUGVAR PD_STAGE_3\r\n')
|
||||
out_xml( '\t\tVar SelectDrinkType = 0\r\n')
|
||||
|
||||
|
||||
out_xml( '\t\t\r\n')
|
||||
out_xml( '\t\t\r\n')
|
||||
out_xml( '\t\tOpen "ROOT/taobin_project/xml/page_topping_select6.lxml"\r\n')
|
||||
out_xml( '\t\t\r\n')
|
||||
|
||||
|
||||
|
||||
out_xml( '\t</EventOnClick>\r\n')
|
||||
out_xml( '\t</Button>\r\n')
|
||||
|
||||
|
||||
|
||||
out_xml( '\t<Text>\r\n')
|
||||
out_xml( '\t<X> 16 </X>\r\n')
|
||||
out_xml( '\t<Y> 164 </Y>\r\n')
|
||||
out_xml( '\t<Size> 22 </Size>\r\n')
|
||||
out_xml( '\t<Width>222</Width>\r\n')
|
||||
out_xml( '\t<Mode> "multi2" </Mode>\r\n')
|
||||
out_xml( '\t<Font> KanitMediumTTF </Font>\r\n')
|
||||
out_xml( '\t<Color> 0x322B26 </Color>\r\n')
|
||||
|
||||
out_xml( '\t<LanguageGroup>\r\n')
|
||||
out_xml( '\t\t<LanguageSlot1>' + spl[ idx_name][ idx_lang_eng] + '</LanguageSlot1>\r\n')
|
||||
out_xml( '\t\t<LanguageSlot2>' + spl[ idx_name][ idx_lang_thai] + '</LanguageSlot2>\r\n')
|
||||
out_xml( '\t\t<LanguageSlot3>' + spl[ idx_name][ idx_lang_eng] + '</LanguageSlot3>\r\n')
|
||||
out_xml( '\t\t<LanguageSlot4>' + spl[ idx_name][ idx_lang_thai] + '</LanguageSlot4>\r\n')
|
||||
out_xml( '\t\t<LanguageSlot5>' + spl[ idx_name][ idx_lang_malay] + '</LanguageSlot5>\r\n')
|
||||
out_xml( '\t\t<LanguageSlot6>' + spl[ idx_name][ idx_lang_thai] + '</LanguageSlot6>\r\n')
|
||||
out_xml( '\t</LanguageGroup>\r\n')
|
||||
|
||||
out_xml( '\t</Text>\r\n')
|
||||
|
||||
out_xml( '\t<Text>\r\n')
|
||||
out_xml( '\t<X> 16 </X>\r\n')
|
||||
out_xml( '\t<Y> 220 </Y>\r\n')
|
||||
out_xml( '\t<Size> 14 </Size>\r\n')
|
||||
out_xml( '\t<Width>222</Width>\r\n')
|
||||
out_xml( '\t<Font> KanitMediumTTF </Font>\r\n')
|
||||
out_xml( '\t<Color> 0x6F5F51 </Color>\r\n')
|
||||
#out_xml( '\t<State> showthaiText </State>\r\n')
|
||||
out_xml( '\t<LanguageGroup>\r\n')
|
||||
out_xml( '\t\t<LanguageSlot1>' + spl[ idx_desc][ idx_lang_eng] + '</LanguageSlot1>\r\n')
|
||||
out_xml( '\t\t<LanguageSlot2>' + spl[ idx_desc][ idx_lang_thai] + '</LanguageSlot2>\r\n')
|
||||
out_xml( '\t\t<LanguageSlot3>' + spl[ idx_desc][ idx_lang_eng] + '</LanguageSlot3>\r\n')
|
||||
out_xml( '\t\t<LanguageSlot4>' + spl[ idx_desc][ idx_lang_thai] + '</LanguageSlot4>\r\n')
|
||||
out_xml( '\t\t<LanguageSlot5>' + spl[ idx_desc][ idx_lang_malay] + '</LanguageSlot5>\r\n')
|
||||
out_xml( '\t\t<LanguageSlot6>' + spl[ idx_desc][ idx_lang_thai] + '</LanguageSlot6>\r\n')
|
||||
out_xml( '\t</LanguageGroup>\r\n')
|
||||
|
||||
out_xml( '\t</Text>\r\n')
|
||||
|
||||
|
||||
|
||||
out_xml( '\t<Image>\r\n')
|
||||
out_xml( '\t<X> 16 </X>\r\n')
|
||||
out_xml( '\t<Y> 264 </Y>\r\n')
|
||||
out_xml( '\t<Filename> Var( DirImage2 + "option_deactive.png" ) </Filename>\r\n')
|
||||
out_xml( '\t</Image>\r\n')
|
||||
|
||||
ice_tab_hot_show = True
|
||||
shw = "$" + str_hot_product_code + ".Button"
|
||||
if str_hot_product_code == "-" :
|
||||
shw = '"Invisible"'
|
||||
ice_tab_hot_show = False
|
||||
|
||||
if len(str_hot_product_code) == 0 :
|
||||
shw = '"Invisible"'
|
||||
ice_tab_hot_show = False
|
||||
|
||||
out_xml( '\t<Image>\r\n')
|
||||
out_xml( '\t<X> 16 </X>\r\n')
|
||||
out_xml( '\t<Y> 264 </Y>\r\n')
|
||||
out_xml( '\t<State> ' + shw + ' </State>\r\n')
|
||||
out_xml( '\t<Filename> Var( DirImage2 + "hot.png" ) </Filename>\r\n')
|
||||
out_xml( '\t<FilenameDisable> Var( DirImage2 + "hot_db.png" ) </FilenameDisable>\r\n')
|
||||
out_xml( '\t</Image>\r\n')
|
||||
|
||||
out_xml( '\t<Text>\r\n')
|
||||
out_xml( '\t<X> TextPriceMenuHotX </X>\r\n')
|
||||
out_xml( '\t<Y> TextPriceMenuY </Y>\r\n')
|
||||
out_xml( '\t<Size> TextPriceMenuSize </Size>\r\n')
|
||||
out_xml( '\t<Width>220</Width>\r\n')
|
||||
out_xml( '\t<Font> KanitMediumTTF </Font>\r\n')
|
||||
|
||||
|
||||
out_xml( '\t<Color> 0x6F5F51 </Color>\r\n')
|
||||
out_xml( '\t<ColorDisable> 0xEAE6E1 </ColorDisable>\r\n')
|
||||
out_xml( '\t<State> ' + shw + ' </State>\r\n')
|
||||
|
||||
#out_xml( '\t<Value> Var( "฿" + $' + spl[ idx_hot_product_code] + '.Price ) </Value>\r\n')
|
||||
|
||||
if "inter" in param:
|
||||
if "free" in param:
|
||||
out_xml( '\t<Value> "Free" </Value>\r\n')
|
||||
else:
|
||||
out_xml( '\t<Value> StringFmt( $' + str_hot_product_code + '.Price , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
|
||||
else:
|
||||
out_xml( '\t<Value> Var( "฿" + $' + str_hot_product_code + '.Price ) </Value>\r\n')
|
||||
out_xml( '\t</Text>\r\n')
|
||||
|
||||
ice_tab_ice_show = True
|
||||
|
||||
shw = "$" + str_cold_product_code + ".Button"
|
||||
if str_cold_product_code == "-" :
|
||||
shw = '"Invisible"'
|
||||
ice_tab_ice_show = False
|
||||
|
||||
if len(str_cold_product_code) == 0 :
|
||||
shw = '"Invisible"'
|
||||
ice_tab_ice_show = False
|
||||
|
||||
out_xml( '\t<Image>\r\n')
|
||||
out_xml( '\t<X> 81 </X>\r\n')
|
||||
out_xml( '\t<Y> 264 </Y>\r\n')
|
||||
if pd_code_2 == "51-05-02-0016":
|
||||
out_xml( '\t<Filename> Var( DirImage2 + "normal.png" ) </Filename>\r\n')
|
||||
out_xml( '\t<FilenameDisable> Var( DirImage2 + "cold_db.png" ) </FilenameDisable>\r\n')
|
||||
else:
|
||||
out_xml( '\t<Filename> Var( DirImage2 + "cold.png" ) </Filename>\r\n')
|
||||
out_xml( '\t<FilenameDisable> Var( DirImage2 + "cold_db.png" ) </FilenameDisable>\r\n')
|
||||
out_xml( '\t<State> ' + shw + ' </State>\r\n')
|
||||
out_xml( '\t</Image>\r\n')
|
||||
out_xml( '\t<Text>\r\n')
|
||||
out_xml( '\t<X> 113 </X>\r\n')
|
||||
out_xml( '\t<Y> TextPriceMenuY </Y>\r\n')
|
||||
out_xml( '\t<Size> TextPriceMenuSize </Size>\r\n')
|
||||
out_xml( '\t<Width>220</Width>\r\n')
|
||||
out_xml( '\t<Font> KanitMediumTTF </Font>\r\n')
|
||||
|
||||
out_xml( '\t<Color> 0x6F5F51 </Color>\r\n')
|
||||
out_xml( '\t<ColorDisable> 0xEAE6E1 </ColorDisable>\r\n')
|
||||
out_xml( '\t<State> ' + shw + ' </State>\r\n')
|
||||
if "inter" in param:
|
||||
if "free" in param:
|
||||
out_xml( '\t<Value> "Free" </Value>\r\n')
|
||||
else:
|
||||
out_xml( '\t<Value> StringFmt( $' + str_cold_product_code + '.Price , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
|
||||
else:
|
||||
out_xml( '\t<Value> Var( "฿" + $' + str_cold_product_code + '.Price ) </Value>\r\n')
|
||||
out_xml( '\t</Text>\r\n')
|
||||
|
||||
ice_tab_blend_show = True
|
||||
|
||||
shw = "$" + str_blend_product_code + ".Button"
|
||||
if str_blend_product_code == "-" :
|
||||
shw = '"Invisible"'
|
||||
ice_tab_blend_show = False
|
||||
|
||||
if len(str_blend_product_code) == 0 :
|
||||
shw = '"Invisible"'
|
||||
ice_tab_blend_show = False
|
||||
|
||||
out_xml( '\t<Image>\r\n')
|
||||
out_xml( '\t<X> 146 </X>\r\n')
|
||||
out_xml( '\t<Y> 264 </Y>\r\n')
|
||||
out_xml( '\t<Filename> Var( DirImage2 + "blend.png" ) </Filename>\r\n')
|
||||
out_xml( '\t<FilenameDisable> Var( DirImage2 + "blend_db.png" ) </FilenameDisable>\r\n')
|
||||
out_xml( '\t<State> ' + shw + ' </State>\r\n')
|
||||
out_xml( '\t</Image>\r\n')
|
||||
|
||||
out_xml( '\t<Text>\r\n')
|
||||
out_xml( '\t<X> TextPriceMenuBlendX </X>\r\n')
|
||||
out_xml( '\t<Y> TextPriceMenuY </Y>\r\n')
|
||||
out_xml( '\t<Size> TextPriceMenuSize </Size>\r\n')
|
||||
out_xml( '\t<Width>220</Width>\r\n')
|
||||
out_xml( '\t<Font> KanitRegularTTF </Font>\r\n')
|
||||
#out_xml( '\t<Align> end </Align>\r\n')
|
||||
|
||||
out_xml( '\t<Color> 0x6F5F51 </Color>\r\n')
|
||||
out_xml( '\t<ColorDisable> 0xEAE6E1 </ColorDisable>\r\n')
|
||||
out_xml( '\t<State> ' + shw + ' </State>\r\n')
|
||||
if "inter" in param:
|
||||
if "free" in param:
|
||||
out_xml( '\t<Value> " Free" </Value>\r\n')
|
||||
else:
|
||||
out_xml( '\t<Value> StringFmt( $' + str_blend_product_code + '.Price , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
|
||||
else:
|
||||
out_xml( '\t<Value> Var( "฿" + $' + str_blend_product_code + '.Price ) </Value>\r\n')
|
||||
out_xml( '\t</Text>\r\n')
|
||||
|
||||
out_xml( '\t<Image>\r\n')
|
||||
out_xml( '\t<X> 81 </X>\r\n')
|
||||
out_xml( '\t<Y> 264 </Y>\r\n')
|
||||
out_xml( '\t<State> \r\n')
|
||||
out_xml( '\t\teval( \r\n')
|
||||
out_xml( '\t\tIf ICE_PROCESS_STATUS = 2 Then\r\n')
|
||||
out_xml( '\t\t\r\n')
|
||||
if ice_tab_hot_show == True:
|
||||
|
||||
#out_xml( '\t\t\tDEBUGVAR $Sum' + str_con_var +'\r\n')
|
||||
out_xml( '\t\t\tIf $Sum' + str_con_var +' = "Disable" Then\r\n')
|
||||
out_xml( '\t\t\t\tVar ice_tab_process_show = "Disable"\r\n')
|
||||
out_xml( '\t\t\tElse\r\n')
|
||||
out_xml( '\t\t\t\tVar ice_tab_process_show = "Enable"\r\n')
|
||||
out_xml( '\t\t\tEndIf\r\n')
|
||||
else:
|
||||
out_xml( '\t\t\tVar ice_tab_process_show = "Invisible"\r\n')
|
||||
|
||||
out_xml( '\t\t\r\n')
|
||||
out_xml( '\t\tElse\r\n')
|
||||
out_xml( '\t\t\tVar ice_tab_process_show = "Invisible"\r\n')
|
||||
out_xml( '\t\tEndIf\r\n')
|
||||
out_xml( '\t\tVar return = ice_tab_process_show\r\n')
|
||||
out_xml( '\t\t)\r\n')
|
||||
out_xml( '\t</State>\r\n')
|
||||
out_xml( '\t<Filename> "ROOT/taobin_project/image/drink_option/ice_tab_unavalible.png" </Filename>\r\n')
|
||||
out_xml( '\t<FilenameDisable> "ROOT/taobin_project/image/drink_option/ice_tab_unavalible_dis.png" </FilenameDisable>\r\n')
|
||||
out_xml( '\t</Image>\r\n')
|
||||
|
||||
|
||||
out_xml( '\t<Image>\r\n')
|
||||
out_xml( '\t<X> 49 </X>\r\n')
|
||||
out_xml( '\t<Y> 117 </Y>\r\n')
|
||||
out_xml( '\t<State> \r\n')
|
||||
out_xml( '\t\teval( \r\n')
|
||||
out_xml( '\t\t\tIf $Sum' + str_con_var +' = "Disable" Then\r\n')
|
||||
out_xml( '\t\t\t\tSTRCONTAIN "ERR" $' + pd_code_1 + '.TAG tag1_is_disable\r\n')
|
||||
out_xml( '\t\t\t\tSTRCONTAIN "ERR" $' + pd_code_2 + '.TAG tag2_is_disable\r\n')
|
||||
out_xml( '\t\t\t\tSTRCONTAIN "ERR" $' + pd_code_3 + '.TAG tag3_is_disable\r\n')
|
||||
#out_xml( '\t\t\t\tDEBUGVAR $' + pd_code_1 + '.TAG\r\n')
|
||||
#out_xml( '\t\t\t\tDEBUGVAR $' + pd_code_2 + '.TAG\r\n')
|
||||
#out_xml( '\t\t\t\tDEBUGVAR $' + pd_code_3 + '.TAG\r\n')
|
||||
out_xml( '\t\t\t\tVar return = "Invisible"\r\n')
|
||||
out_xml( '\t\t\t\tIf tag1_is_disable = "true" Then\r\n')
|
||||
out_xml( '\t\t\t\t\tVar return = "Enable"\r\n')
|
||||
out_xml( '\t\t\t\tEndIf\r\n')
|
||||
out_xml( '\t\t\t\tIf tag2_is_disable = "true" Then\r\n')
|
||||
out_xml( '\t\t\t\t\tVar return = "Enable"\r\n')
|
||||
out_xml( '\t\t\t\tEndIf\r\n')
|
||||
out_xml( '\t\t\t\tIf tag3_is_disable = "true" Then\r\n')
|
||||
out_xml( '\t\t\t\t\tVar return = "Enable"\r\n')
|
||||
out_xml( '\t\t\t\tEndIf\r\n')
|
||||
out_xml( '\t\t\tElse\r\n')
|
||||
out_xml( '\t\t\t\t\tVar return = "Invisible"\r\n')
|
||||
|
||||
out_xml( '\t\t\tEndIf\r\n')
|
||||
|
||||
out_xml( '\t\t)\r\n')
|
||||
out_xml( '\t</State>\r\n')
|
||||
out_xml( '\t<Filename> "ROOT/taobin_project/image//img_menu_err2.png" </Filename>\r\n')
|
||||
out_xml( '\t</Image>\r\n')
|
||||
|
||||
out_xml( '\t<Text>\r\n')
|
||||
out_xml( '\t<X> 84 </X>\r\n')
|
||||
out_xml( '\t<Y> 266 </Y>\r\n')
|
||||
out_xml( '\t<Size> 10 </Size>\r\n')
|
||||
out_xml( '\t<Font> OpunMediumTTF </Font>\r\n')
|
||||
out_xml( '\t<Color> 0xDE794E </Color>\r\n')
|
||||
out_xml( '\t<State> ice_tab_process_show </State>\r\n')
|
||||
out_xml( '\t<Value> ice_show_open </Value>\r\n')
|
||||
out_xml( '\t</Text>\r\n')
|
||||
|
||||
|
||||
out_xml( '\t<Text>\r\n')
|
||||
out_xml( '\t<X> 48 </X>\r\n')
|
||||
out_xml( '\t<Y> 116 </Y>\r\n')
|
||||
out_xml( '\t<Size> 32 </Size>\r\n')
|
||||
out_xml( '\t<Width>128</Width>\r\n')
|
||||
out_xml( '\t<Height>64</Height>\r\n')
|
||||
out_xml( '\t<Mode> "disable-show" </Mode>\r\n')
|
||||
out_xml( '\t<State> $Sum' + str_con_var +' </State> \r\n')
|
||||
out_xml( '\t<Language>\r\n')
|
||||
out_xml( '\t\t<ID> 000013 </ID> \r\n')
|
||||
out_xml( '\t</Language>\r\n')
|
||||
out_xml( '\t<Align> center-vertical-horizontal </Align>\r\n')
|
||||
out_xml( '\t</Text>\r\n')
|
||||
|
||||
|
||||
out_xml( '</Block>\r\n')
|
||||
|
||||
def GenMenuBlock( idx_hot_product_code, idx_cold_product_code, idx_blend_product_code):
|
||||
GenMenuProductCodeBlock( spl[ idx_name][ idx_hot_product_code], spl[ idx_name][ idx_cold_product_code] , spl[ idx_name][ idx_blend_product_code] )
|
||||
|
||||
|
||||
idx_lang_malay = 5
|
||||
idx_lang_japan = 4
|
||||
idx_lang_china = 3
|
||||
idx_lang_thai = 2
|
||||
idx_lang_eng = 1
|
||||
|
||||
|
||||
idx_name = 0
|
||||
idx_desc = 1
|
||||
idx_img = 2
|
||||
|
||||
|
||||
idx_hot_product_code = 7
|
||||
idx_cold_product_code = idx_hot_product_code + 1
|
||||
idx_blend_product_code = idx_cold_product_code + 1
|
||||
|
||||
#
|
||||
idx_hot_product_code2 = idx_blend_product_code + 1
|
||||
idx_cold_product_code2 = idx_hot_product_code2 + 1
|
||||
idx_blend_product_code2 = idx_cold_product_code2 + 1
|
||||
idx_of_eng = 2
|
||||
idx_of_eng_des = 3
|
||||
idx_of_thai = 0
|
||||
idx_of_thai_des = 1
|
||||
print ("--------------------------------------------------------------------------------------------------------------------------")
|
||||
|
||||
|
||||
if current_file_name == "page_catalog_group_recommend.skt":
|
||||
touch_less_gen = True
|
||||
else:
|
||||
touch_less_gen = False
|
||||
|
||||
out_xml('<FrameScroll> \r\n')
|
||||
if touch_less_gen == True:
|
||||
out_xml('<Max> 16 </Max>\r\n')
|
||||
out_xml('<X> 10 </X>\r\n')
|
||||
out_xml('<Y> 497 </Y>\r\n')
|
||||
out_xml('<Width> 1080 </Width>\r\n')
|
||||
out_xml('<ScrollHeight> "auto" </ScrollHeight>\r\n')
|
||||
out_xml('<Scroll> "Vertical" </Scroll>\r\n')
|
||||
out_xml('<Column> 4 </Column>\r\n')
|
||||
out_xml('<Script>\r\n')
|
||||
|
||||
print("current_file_name " + current_file_name)
|
||||
|
||||
|
||||
if touch_less_gen == False:
|
||||
|
||||
out_xml('\t Var block_index_override = 0\r\n')
|
||||
out_xml('\t Var block_index_move = 0\r\n')
|
||||
else:
|
||||
out_xml('\t Var block_index_override = 0\r\n')
|
||||
out_xml('\t Var block_index_move = 0\r\n')
|
||||
#out_xml('\t Var block_index_override = 4\r\n')
|
||||
#out_xml('\t Var block_index_move = 1\r\n')
|
||||
#out_xml('\tIf Seeker = "curr" Then\r\n')
|
||||
#out_xml('\t\tVar TouchLessStg = "Enable"\r\n')
|
||||
#out_xml('\t\tVar TouchLessQrStg = "Enable"\r\n')
|
||||
#out_xml('\tElse\r\n')
|
||||
#out_xml('\t\tVar TouchLessStg = "Disable"\r\n')
|
||||
#out_xml('\t\tVar TouchLessQrStg = "Invisible"\r\n')
|
||||
#out_xml('\tEndIf\r\n')
|
||||
#out_xml('\tIf WebAppShow = "Invisible" Then\r\n')
|
||||
#out_xml('\t\tVar TouchLessStg = "Disable"\r\n')
|
||||
#out_xml('\t\tVar TouchLessQrStg = "Invisible"\r\n')
|
||||
#out_xml('\tEndIf\r\n')
|
||||
|
||||
|
||||
out_xml('</Script>\r\n')
|
||||
|
||||
pd_code_available = '##-##-##-####'
|
||||
count = 0
|
||||
count_test = 0
|
||||
#if touch_less_gen == True:
|
||||
# out_xml( '<Block>\r\n')
|
||||
# out_xml('\t<MarginLeft> 33 </MarginLeft>\r\n')
|
||||
# out_xml('\t<MarginTop> 22 </MarginTop>\r\n')
|
||||
# out_xml('\t<Width> 225 </Width>\r\n')
|
||||
# out_xml('\t<Height> 296 </Height>\r\n')
|
||||
# out_xml('\t<State> "Enable" </State> \r\n')
|
||||
# out_xml('\t<Image>\r\n')
|
||||
# out_xml('\t<X> 0 </X>\r\n')
|
||||
# out_xml('\t<Y> 0 </Y>\r\n')
|
||||
# out_xml('\t<State> TouchLessStg </State> \r\n')
|
||||
# out_xml('\t<Filename> Var( DirImage + "/touch_less_order.png" )</Filename>\r\n')
|
||||
# out_xml('\t<FilenameDisable> Var( DirImage + "/touch_less_order_db.png" )</FilenameDisable>\r\n')
|
||||
# out_xml('\t</Image>\r\n')
|
||||
# out_xml('\t<QRCode>\r\n')
|
||||
# out_xml('\t<X> 40 </X>\r\n')
|
||||
# out_xml('\t<Y> 153 </Y>\r\n')
|
||||
# out_xml('\t<Width> 150 </Width>\r\n')
|
||||
# out_xml('\t<Color> "0xeae6e1" </Color>\r\n')
|
||||
# out_xml('\t<QRColor> "0x513C2F" </Color>\r\n')
|
||||
# out_xml('\t<Height> 150 </Height>\r\n')
|
||||
#
|
||||
# #out_xml('\t<State> TouchLessQrStg </State>\r\n')
|
||||
# #out_xml('\t<Service> "Herr" </Service>\r\n')
|
||||
# out_xml('\t<State> TouchLessQrStg </State>\r\n')
|
||||
# out_xml('\t<Service> testservice </Service>\r\n')
|
||||
#
|
||||
# out_xml('\t</QRCode>\r\n')
|
||||
# out_xml('</Block>\r\n')
|
||||
out_xml(';dummy_layout.inc\r\n')
|
||||
#
|
||||
#out_xml('; menu_new_list '+ str(len(menu_new_list))+'\r\n')
|
||||
for spl in menu_new_list:
|
||||
#product_code = s
|
||||
#if spl[ idx_of_eng] == "IGNORE":
|
||||
# continue
|
||||
if len(spl) == 1:
|
||||
if spl[0].startswith("TAG"):
|
||||
out_xml( '\t;' + spl[0] + '\r\n')
|
||||
print("Have TAGESP")
|
||||
continue
|
||||
print( '==>\t; '+ spl[ idx_name][ idx_hot_product_code] + ' ' + spl[ idx_name][ idx_cold_product_code] + ' ' + spl[ idx_name][ idx_blend_product_code] + ' \r\n')
|
||||
|
||||
if "," in spl[ idx_name][ idx_hot_product_code] and "," in spl[ idx_name][ idx_cold_product_code] and "," in spl[ idx_name][ idx_blend_product_code]:
|
||||
#print(" hot = " + spl[ idx_name][ idx_hot_product_code])
|
||||
hot_pd = spl[ idx_name][ idx_hot_product_code].split(',')
|
||||
cold_pd = spl[ idx_name][ idx_cold_product_code].split(',')
|
||||
blend_pd = spl[ idx_name][ idx_blend_product_code].split(',')
|
||||
|
||||
#print(' size = ' + str( len( hot_pd)) + ' size = ' + str( len( cold_pd)) + ' size = ' + str( len( blend_pd)) + '\r\n')
|
||||
list_size = len( hot_pd)
|
||||
for idx in range( list_size):
|
||||
print(' hot = ' + hot_pd[ idx] + ' cold = ' + cold_pd[ idx]+ ' blend_pd = ' + blend_pd[ idx] + '\r\n')
|
||||
if hot_pd[ idx] == '-' and cold_pd[ idx] == '-' and blend_pd[ idx] == '-':
|
||||
print("\t\t==> ignore ")
|
||||
else:
|
||||
print("\t\t==> gen ")
|
||||
GenMenuProductCodeBlock( hot_pd[ idx], cold_pd[ idx], blend_pd[ idx] )
|
||||
else:
|
||||
GenMenuBlock( idx_hot_product_code, idx_cold_product_code, idx_blend_product_code)
|
||||
#out_xml( '\t; parallel '+ spl[ idx_name][ idx_hot_product_code2] + ' ' + spl[ idx_name][ idx_cold_product_code2] + ' ' + spl[ idx_name][ idx_blend_product_code2] + ' \r\n')
|
||||
#print("++++++++++++++++++++++++++++++ " + str( count_test) )
|
||||
#count_test = count_test + 1
|
||||
#if count_test > 5 :
|
||||
# break
|
||||
if len( spl[idx_name] ) >= 11:
|
||||
if spl[ idx_name][ idx_hot_product_code2] != "-" or spl[ idx_name][ idx_cold_product_code2] != "-" or spl[ idx_name][ idx_blend_product_code2] != "-":
|
||||
GenMenuBlock( idx_hot_product_code2, idx_cold_product_code2, idx_blend_product_code2)
|
||||
|
||||
out_xml('</FrameScroll>\r\n')
|
||||
|
||||
|
||||
out_xml('; Cart\r\n')
|
||||
out_xml('<Button>\r\n')
|
||||
out_xml('<X> 915 </X>\r\n')
|
||||
out_xml('<Y> 1769 </Y>\r\n')
|
||||
out_xml('<State> showCart </State>\r\n')
|
||||
out_xml('<Filename> cart_image_bn </Filename>\r\n')
|
||||
out_xml('<FilenamePress> cart_image_bp </FilenamePress>\r\n')
|
||||
out_xml('<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>\r\n')
|
||||
out_xml('<Volume> SoundVolume </Volume>\r\n')
|
||||
out_xml('<EventClick> \r\n')
|
||||
out_xml('\tOpen "ROOT/taobin_project/xml/page_payment_multi.xml"\r\n')
|
||||
out_xml('</EventClick>\r\n')
|
||||
out_xml('</Button>\r\n')
|
||||
# if "v2" in param:
|
||||
|
||||
|
||||
9
inter/aus/xml/multi/open_page_catalog.ev
Normal file
9
inter/aus/xml/multi/open_page_catalog.ev
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
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
|
||||
51
inter/aus/xml/multi/page_catalog_group_appfast.skt
Normal file
51
inter/aus/xml/multi/page_catalog_group_appfast.skt
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
<?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>
|
||||
44
inter/aus/xml/multi/page_catalog_group_cocktail.skt
Normal file
44
inter/aus/xml/multi/page_catalog_group_cocktail.skt
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
<?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>
|
||||
42
inter/aus/xml/multi/page_catalog_group_coffee.skt
Normal file
42
inter/aus/xml/multi/page_catalog_group_coffee.skt
Normal 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/menu_catalog_default_init.lxml"
|
||||
Var Menu2Selected = "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>
|
||||
51
inter/aus/xml/multi/page_catalog_group_forkid.skt
Normal file
51
inter/aus/xml/multi/page_catalog_group_forkid.skt
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
<?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>
|
||||
38
inter/aus/xml/multi/page_catalog_group_health.skt
Normal file
38
inter/aus/xml/multi/page_catalog_group_health.skt
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
<?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>
|
||||
2815
inter/aus/xml/multi/page_catalog_group_melon.skt
Normal file
2815
inter/aus/xml/multi/page_catalog_group_melon.skt
Normal file
File diff suppressed because it is too large
Load diff
46
inter/aus/xml/multi/page_catalog_group_milk.skt
Normal file
46
inter/aus/xml/multi/page_catalog_group_milk.skt
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
<?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>
|
||||
36
inter/aus/xml/multi/page_catalog_group_oreo.skt
Normal file
36
inter/aus/xml/multi/page_catalog_group_oreo.skt
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
<?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>
|
||||
40
inter/aus/xml/multi/page_catalog_group_other.skt
Normal file
40
inter/aus/xml/multi/page_catalog_group_other.skt
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
<?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>
|
||||
36
inter/aus/xml/multi/page_catalog_group_pepsi_pro.skt
Normal file
36
inter/aus/xml/multi/page_catalog_group_pepsi_pro.skt
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
<?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>
|
||||
69
inter/aus/xml/multi/page_catalog_group_recommend.lxml
Normal file
69
inter/aus/xml/multi/page_catalog_group_recommend.lxml
Normal file
|
|
@ -0,0 +1,69 @@
|
|||
|
||||
|
||||
<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"
|
||||
|
||||
|
||||
<Button>
|
||||
<X> 780 </X>
|
||||
<Y> 500 </Y>
|
||||
<State> buttonRemoveCup </State>
|
||||
;<Color> "0x00BDFF" </Color>
|
||||
<Interval> 500 </Interval>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bn_remove_cup.png" </Filename>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bp_remove_cup.png" </Filename>
|
||||
<EventClick>
|
||||
Machine RemoveCup
|
||||
Machine DoorLidOpen
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
|
||||
|
||||
;BigLogoLayout
|
||||
|
||||
</Popup>
|
||||
|
||||
|
||||
73
inter/aus/xml/multi/page_catalog_group_recommend.skt
Normal file
73
inter/aus/xml/multi/page_catalog_group_recommend.skt
Normal file
|
|
@ -0,0 +1,73 @@
|
|||
<?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
|
||||
?>
|
||||
<Button>
|
||||
<X> 780 </X>
|
||||
<Y> 500 </Y>
|
||||
<State> buttonRemoveCup </State>
|
||||
;<Color> "0x00BDFF" </Color>
|
||||
<Interval> 500 </Interval>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bn_remove_cup.png" </Filename>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bp_remove_cup.png" </Filename>
|
||||
<EventClick>
|
||||
Machine RemoveCup
|
||||
Machine DoorLidOpen
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
|
||||
|
||||
;BigLogoLayout
|
||||
|
||||
</Popup>
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,36 @@
|
|||
<?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>
|
||||
43
inter/aus/xml/multi/page_catalog_group_tea.skt
Normal file
43
inter/aus/xml/multi/page_catalog_group_tea.skt
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
<?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>
|
||||
46
inter/aus/xml/multi/page_catalog_group_whey.skt
Normal file
46
inter/aus/xml/multi/page_catalog_group_whey.skt
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
<?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>
|
||||
66
inter/aus/xml/multi/page_catalog_group_winter_warmers.skt
Normal file
66
inter/aus/xml/multi/page_catalog_group_winter_warmers.skt
Normal file
|
|
@ -0,0 +1,66 @@
|
|||
<?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>
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue