HKG: Multi-instance v3
This commit is contained in:
parent
a998b2f04a
commit
ec8f8598d9
44 changed files with 113905 additions and 61 deletions
|
|
@ -3,6 +3,12 @@
|
|||
|
||||
; ensure
|
||||
|
||||
If OpenFromMulti = 1 Then
|
||||
TabMenuVisibleInst 99
|
||||
EndIf
|
||||
|
||||
Var OpenFromMulti = 0
|
||||
|
||||
Var RecommendPageMulti = "ROOT/taobin_project/inter/hkg/xml/multi/page_catalog_group_recommend.lxml"
|
||||
|
||||
Var CountSecureOpenPro = 0
|
||||
|
|
@ -30,44 +36,43 @@ If SeasonPassMode = 1 Then
|
|||
EndIf
|
||||
|
||||
; zone promote
|
||||
If OpenFromPageBoard = 1 Then
|
||||
|
||||
If EnableMultiInstance = "true" Then
|
||||
OpenInst 2 RecommendPageMulti
|
||||
OpenInst 3 "ROOT/taobin_project/xml/topview2.xml"
|
||||
Else
|
||||
If SeasonPassMode = 1 Then
|
||||
|
||||
Var PromotionState1 = "Enable"
|
||||
Var PromotionState2 = "Enable"
|
||||
Var PromotionState3 = "Enable"
|
||||
|
||||
OpenInst 2 SeasonFile
|
||||
Else
|
||||
OpenInst 2 "ROOT/taobin_project/inter/hkg/xml/page_catalog_group_recommend.lxml"
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
|
||||
If CatalogLayoutV3 = 1 Then
|
||||
SAVELOG " CatalogLayoutV3 CatalogLayoutV3 CatalogLayoutV3 CatalogLayoutV3 CatalogLayoutV3 "
|
||||
TRY "/mnt/sdcard/coffeevending/taobin_project/inter/hkg/xml/multi/v3/event/script_open_promotion_v3.ev"
|
||||
Else
|
||||
If EnableMultiInstance = "true" Then
|
||||
Open RecommendPageMulti
|
||||
Else
|
||||
If SeasonPassMode = 1 Then
|
||||
Var PromotionState1 = "Enable"
|
||||
Var PromotionState2 = "Enable"
|
||||
Var PromotionState3 = "Enable"
|
||||
If OpenFromPageBoard = 1 Then
|
||||
Var OpenFromPageBoard = 0
|
||||
|
||||
Open SeasonFile
|
||||
If EnableMultiInstance = "true" Then
|
||||
OpenInst 2 RecommendPageMulti
|
||||
OpenInst 3 "ROOT/taobin_project/xml/topview2.xml"
|
||||
Else
|
||||
Open "ROOT/taobin_project/inter/hkg/xml/page_catalog_group_recommend.lxml"
|
||||
If SeasonPassMode = 1 Then
|
||||
|
||||
Var PromotionState1 = "Enable"
|
||||
Var PromotionState2 = "Enable"
|
||||
Var PromotionState3 = "Enable"
|
||||
|
||||
OpenInst 2 SeasonFile
|
||||
Else
|
||||
OpenInst 2 "ROOT/taobin_project/inter/hkg/xml/page_catalog_group_recommend.lxml"
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
Var OpenFromPageBoard = 0
|
||||
|
||||
Else
|
||||
If EnableMultiInstance = "true" Then
|
||||
OpenInst 2 RecommendPageMulti
|
||||
Else
|
||||
If SeasonPassMode = 1 Then
|
||||
Var PromotionState1 = "Enable"
|
||||
Var PromotionState2 = "Enable"
|
||||
Var PromotionState3 = "Enable"
|
||||
|
||||
If OpenFromMulti = 1 Then
|
||||
TabMenuVisibleInst 99
|
||||
EndIf
|
||||
Var OpenFromMulti = 0
|
||||
Open SeasonFile
|
||||
Else
|
||||
Open "ROOT/taobin_project/inter/hkg/xml/page_catalog_group_recommend.lxml"
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
27
inter/hkg/xml/multi/ForProGroup.inc
Normal file
27
inter/hkg/xml/multi/ForProGroup.inc
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
;include="ROOT/taobin_project/inter/hkg/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
|
||||
17
inter/hkg/xml/multi/InstanceGetSetString.inc
Normal file
17
inter/hkg/xml/multi/InstanceGetSetString.inc
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
InstanceGetString SaveStringInst
|
||||
;DEBUGVAR SaveStringInst
|
||||
;DEBUGVAR show_eng
|
||||
|
||||
|
||||
|
||||
If SaveStringInst = "RefreshNow" Then
|
||||
RefreshAll
|
||||
Else
|
||||
|
||||
|
||||
EndIf
|
||||
InstanceSetString "-"
|
||||
;DEBUGVAR LanguageShow
|
||||
|
||||
|
||||
|
||||
|
|
@ -1,38 +1,58 @@
|
|||
Var layoutVersion = ""
|
||||
|
||||
If CatalogLayoutV3 = 1 Then
|
||||
Var layoutVersion = "v3/"
|
||||
EndIf
|
||||
|
||||
TRY "ROOT/taobin_project/inter/hkg/xml/multi/menu_catalog_default_init.lxml"
|
||||
TRY "ROOT/taobin_project/inter/hkg/xml/multi/event/tricker.ev"
|
||||
|
||||
SAVELOG "===================== control language and switch instance ====================="
|
||||
|
||||
OpenRedirect "/taobin_project/inter/hkg/xml/page_catalog_group_coffee.lxml" "/mnt/sdcard/coffeevending/taobin_project/inter/hkg/xml/multi/coffee.ev"
|
||||
Var InstanceTabOpenFile2 = "ROOT/taobin_project/inter/hkg/xml/multi/page_catalog_group_coffee.lxml"
|
||||
Var InstanceTabOpenFile2 = "ROOT/taobin_project/inter/hkg/xml/multi/" + layoutVersion
|
||||
Var InstanceTabOpenFile2 = InstanceTabOpenFile2 + "/page_catalog_group_coffee.lxml"
|
||||
|
||||
|
||||
OpenRedirect "/taobin_project/inter/hkg/xml/page_catalog_group_tea.lxml" "/mnt/sdcard/coffeevending/taobin_project/inter/hkg/xml/multi/tea.ev"
|
||||
Var InstanceTabOpenFile3 = "ROOT/taobin_project/inter/hkg/xml/multi/page_catalog_group_tea.lxml"
|
||||
Var InstanceTabOpenFile3 = "ROOT/taobin_project/inter/hkg/xml/multi/" + layoutVersion
|
||||
Var InstanceTabOpenFile3 = InstanceTabOpenFile3 + "/page_catalog_group_tea.lxml"
|
||||
|
||||
OpenRedirect "/taobin_project/inter/hkg/xml/page_catalog_group_milk.lxml" "/mnt/sdcard/coffeevending/taobin_project/inter/hkg/xml/multi/milk.ev"
|
||||
Var InstanceTabOpenFile4 = "ROOT/taobin_project/inter/hkg/xml/multi/page_catalog_group_milk.lxml"
|
||||
Var InstanceTabOpenFile4 = "ROOT/taobin_project/inter/hkg/xml/multi/" + layoutVersion
|
||||
Var InstanceTabOpenFile4 = InstanceTabOpenFile4 + "/page_catalog_group_milk.lxml"
|
||||
|
||||
|
||||
OpenRedirect "/taobin_project/inter/hkg/xml/page_catalog_group_other.lxml" "/mnt/sdcard/coffeevending/taobin_project/inter/hkg/xml/multi/otherOther.ev"
|
||||
Var InstanceTabOpenFile7 = "ROOT/taobin_project/inter/hkg/xml/multi/page_catalog_group_other.lxml"
|
||||
Var InstanceTabOpenFile7 = "ROOT/taobin_project/inter/hkg/xml/multi/" + layoutVersion
|
||||
Var InstanceTabOpenFile7 = InstanceTabOpenFile7 + "/page_catalog_group_other.lxml"
|
||||
|
||||
If AppFastButtonState = "Enable" Then
|
||||
Var InstanceTabOpenFile5 = "ROOT/taobin_project/inter/hkg/xml/multi/page_catalog_group_appfast.lxml"
|
||||
If AppFastButtonState = "Enable"
|
||||
Var InstanceTabOpenFile5 = "ROOT/taobin_project/inter/hkg/xml/multi/" + layoutVersion
|
||||
Var InstanceTabOpenFile5 = InstanceTabOpenFile5 + "/page_catalog_group_appfast.lxml"
|
||||
EndIf
|
||||
|
||||
If WheyButtonState = "Enable" Then
|
||||
OpenRedirect "/taobin_project/inter/hkg/xml/page_catalog_group_whey.lxml" "/mnt/sdcard/coffeevending/taobin_project/inter/hkg/xml/multi/kidandwhey.ev"
|
||||
Var InstanceTabOpenFile5 = "ROOT/taobin_project/inter/hkg/xml/multi/page_catalog_group_whey.lxml"
|
||||
Var InstanceTabOpenFile5 = "ROOT/taobin_project/inter/hkg/xml/multi/" + layoutVersion
|
||||
Var InstanceTabOpenFile5 = InstanceTabOpenFile5 + "/page_catalog_group_whey.lxml"
|
||||
EndIf
|
||||
|
||||
If MenuKidButtonState = "Enable" Then
|
||||
OpenRedirect "/taobin_project/inter/hkg/xml/page_catalog_group_forkid.lxml" "/mnt/sdcard/coffeevending/taobin_project/inter/hkg/xml/multi/kidandwhey.ev"
|
||||
Var InstanceTabOpenFile5 = "ROOT/taobin_project/inter/hkg/xml/multi/page_catalog_group_forkid.lxml"
|
||||
Var InstanceTabOpenFile5 = "ROOT/taobin_project/inter/hkg/xml/multi/" + layoutVersion
|
||||
Var InstanceTabOpenFile5 = InstanceTabOpenFile5 + "/page_catalog_group_forkid.lxml"
|
||||
EndIf
|
||||
|
||||
|
||||
If CocktailShow = "true" Then
|
||||
OpenRedirect "/taobin_project/inter/hkg/xml/page_catalog_group_cocktail.lxml" "/mnt/sdcard/coffeevending/taobin_project/inter/hkg/xml/multi/health.ev"
|
||||
Var InstanceTabOpenFile6 = "ROOT/taobin_project/inter/hkg/xml/multi/page_catalog_group_cocktail.lxml"
|
||||
Var InstanceTabOpenFile6 = "ROOT/taobin_project/inter/hkg/xml/multi/" + layoutVersion
|
||||
Var InstanceTabOpenFile6 = InstanceTabOpenFile6 + "page_catalog_group_cocktail.lxml"
|
||||
Else
|
||||
OpenRedirect "/taobin_project/inter/hkg/xml/page_catalog_group_health.lxml" "/mnt/sdcard/coffeevending/taobin_project/inter/hkg/xml/multi/health.ev"
|
||||
Var InstanceTabOpenFile6 = "ROOT/taobin_project/inter/hkg/xml/multi/page_catalog_group_health.lxml"
|
||||
Var InstanceTabOpenFile6 = "ROOT/taobin_project/inter/hkg/xml/multi/" + layoutVersion
|
||||
Var InstanceTabOpenFile6 = InstanceTabOpenFile6 + "/page_catalog_group_health.lxml"
|
||||
EndIf
|
||||
|
||||
TabMenuLock 15
|
||||
|
|
@ -55,4 +75,6 @@ DEBUGVAR WheyButtonState
|
|||
DEBUGVAR MenuKidButtonState
|
||||
DEBUGVAR CocktailShow
|
||||
|
||||
Var CatalogLayoutV3Loaded = 1
|
||||
|
||||
LanguageShow = "ENG"
|
||||
|
|
@ -601,7 +601,7 @@
|
|||
idx_hot_product_code = 7
|
||||
idx_cold_product_code = idx_hot_product_code + 1
|
||||
idx_blend_product_code = idx_cold_product_code + 1
|
||||
idx_default_load_topping = idx_blend_product_code + 2
|
||||
idx_default_load_topping = idx_blend_product_code + 5
|
||||
|
||||
#
|
||||
idx_hot_product_code2 = idx_blend_product_code + 1
|
||||
|
|
|
|||
|
|
@ -287,6 +287,16 @@
|
|||
DEBUGVAR Inst11MenuLoaded
|
||||
|
||||
DEBUGVAR MultiProcessTimer
|
||||
DEBUGVAR CatalogLayoutV3
|
||||
If CatalogLayoutV3Loaded = 1 Then
|
||||
Var Inst5MenuLoaded = "done"
|
||||
Var Inst6MenuLoaded = "done"
|
||||
Var Inst7MenuLoaded = "done"
|
||||
Var Inst8MenuLoaded = "done"
|
||||
Var Inst9MenuLoaded = "done"
|
||||
Var Inst10MenuLoaded = "done"
|
||||
Var Inst11MenuLoaded = "done"
|
||||
EndIf
|
||||
|
||||
|
||||
If MultiProcess = "Enable" Then
|
||||
|
|
@ -553,11 +563,16 @@
|
|||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
|
||||
Var OpenFromMulti = 1
|
||||
TRY "/mnt/sdcard/coffeevending/taobin_project/inter/hkg/xml/event/script_common_for_open_promotion_xml.ev"
|
||||
RootLayoutVisible 3 "hide"
|
||||
;include="ROOT/taobin_project/inter/hkg/xml/multi/tab_menu_hide.lxml"
|
||||
If CatalogLayoutV3 = 1 Then
|
||||
Var OpenFromMulti = 0
|
||||
|
||||
TRY "/mnt/sdcard/coffeevending/taobin_project/inter/hkg/xml/multi/v3/event/script_open_promotion_v3.ev"
|
||||
Else
|
||||
Var OpenFromMulti = 1
|
||||
TRY "/mnt/sdcard/coffeevending/taobin_project/inter/hkg/xml/event/script_common_for_open_promotion_xml.ev"
|
||||
RootLayoutVisible 3 "hide"
|
||||
;include="ROOT/taobin_project/inter/hkg/xml/multi/tab_menu_hide.lxml"
|
||||
EndIf
|
||||
|
||||
</EventClick>
|
||||
<Language>
|
||||
|
|
|
|||
|
|
@ -74,18 +74,24 @@
|
|||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
SAVELOG "Click rec"
|
||||
Var NextPage = "-"
|
||||
Var OpenFromMulti = 1
|
||||
Var OpenFromPageBoard = 1
|
||||
If CatalogLayoutV3 = 1 Then
|
||||
SAVELOG "Click recommend CatalogLayoutV3"
|
||||
Var NextPage = "-"
|
||||
Var OpenFromMulti = 0
|
||||
Var OpenFromPageBoard = 0
|
||||
|
||||
;Var OpenFileXML = CountryRootPath + "xml/event/script_common_for_open_promotion_xml.ev"
|
||||
;TRY OpenFileXML
|
||||
TRY "/mnt/sdcard/coffeevending/taobin_project/inter/hkg/xml/multi/v3/event/script_open_promotion_v3.ev"
|
||||
Else
|
||||
SAVELOG "Click rec"
|
||||
Var NextPage = "-"
|
||||
Var OpenFromMulti = 1
|
||||
Var OpenFromPageBoard = 0
|
||||
|
||||
RootLayoutVisible 3 "hide"
|
||||
RootLayoutVisible 15 "hide"
|
||||
|
||||
TRY "/mnt/sdcard/coffeevending/taobin_project/inter/hkg/xml/event/script_common_for_open_promotion_xml.ev"
|
||||
RootLayoutVisible 3 "hide"
|
||||
RootLayoutVisible 15 "hide"
|
||||
|
||||
TRY "/mnt/sdcard/coffeevending/taobin_project/inter/hkg/xml/event/script_common_for_open_promotion_xml.ev"
|
||||
EndIf
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
|
|
|
|||
0
inter/hkg/xml/multi/v3/dummy_layout.py
Normal file
0
inter/hkg/xml/multi/v3/dummy_layout.py
Normal file
62
inter/hkg/xml/multi/v3/event/dummy_layout_promotion.py
Normal file
62
inter/hkg/xml/multi/v3/event/dummy_layout_promotion.py
Normal 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()
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"start": "2025-06-01T00:00:00",
|
||||
"end": "2025-06-30T00:00:00",
|
||||
"state": "AppleFarmFestivalProState",
|
||||
"type": "IMAGE",
|
||||
"media_thai": "ROOT/taobin_project/image/event/apple_farm_festival/apple_farm_festival_banner.png",
|
||||
"media_eng": "ROOT/taobin_project/image/event/apple_farm_festival/apple_farm_festival_banner.png",
|
||||
"event_click": "TabMenuVisibleInst 99\r\nOpenInst 2 \"ROOT/taobin_project/inter/tha/xml/multi/v3/page_catalog_group_pro_apple_farm_festival.lxml\""
|
||||
}
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"start": "2025-06-01T00:00:00",
|
||||
"end": "2025-06-30T00:00:00",
|
||||
"state": "HappyTriosProState",
|
||||
"type": "IMAGE",
|
||||
"media_thai": "ROOT/taobin_project/image/event/happy_trios/happy_trios_2.png",
|
||||
"media_eng": "ROOT/taobin_project/image/event/happy_trios/happy_trios_2.png",
|
||||
"event_click": "TabMenuVisibleInst 99\r\nOpenInst 2 \"ROOT/taobin_project/inter/tha/xml/multi/v3/page_catalog_group_pro_happy_trios.lxml\""
|
||||
}
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"start": "2025-05-19T00:00:00",
|
||||
"end": "2025-05-31T00:00:00",
|
||||
"state": "SchoolOvaltineProState",
|
||||
"type": "VIDEO",
|
||||
"media_thai": "ROOT/taobin_project/image/event/school_ovaltine/school_ovaltine.mp4",
|
||||
"media_eng": "ROOT/taobin_project/image/event/school_ovaltine/school_ovaltine.mp4",
|
||||
"event_click": "TabMenuVisibleInst 99\r\nOpenInst 2 \"ROOT/taobin_project/inter/tha/xml/multi/v3/page_catalog_group_pro_school_ovaltine.lxml\""
|
||||
}
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"start": "2025-05-01T00:00:00",
|
||||
"end": "2025-05-19T00:00:00",
|
||||
"state": "MatchaEveryDayProState",
|
||||
"type": "IMAGE",
|
||||
"media_thai": "ROOT/taobin_project/image/event/matcha_every_day/matcha_every_day2.png",
|
||||
"media_eng": "ROOT/taobin_project/image/event/matcha_every_day/matcha_every_day2.png",
|
||||
"event_click": "TabMenuVisibleInst 99\r\nOpenInst 2 \"ROOT/taobin_project/inter/tha/xml/multi/v3/page_catalog_group_pro_matcha_every_day.lxml\""
|
||||
}
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"start": "2025-05-01T00:00:00",
|
||||
"end": "2025-05-31T00:00:00",
|
||||
"state": "OreoVolcanoProState",
|
||||
"type": "IMAGE",
|
||||
"media_thai": "ROOT/taobin_project/image/event/oreo_volcano/oreo_volcano_banner.png",
|
||||
"media_eng": "ROOT/taobin_project/image/event/oreo_volcano/oreo_volcano_banner.png",
|
||||
"event_click": "TabMenuVisibleInst 99\r\nOpenInst 2 \"ROOT/taobin_project/inter/tha/xml/multi/v3/page_catalog_group_pro_oreo_volcano.lxml\""
|
||||
}
|
||||
9733
inter/hkg/xml/multi/v3/event/event_v3/active_promotions.lxml
Normal file
9733
inter/hkg/xml/multi/v3/event/event_v3/active_promotions.lxml
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"start": "2025-05-01T00:00:00",
|
||||
"end": "2025-05-11T00:00:00",
|
||||
"state": "BoostEnergyProState",
|
||||
"type": "IMAGE",
|
||||
"media_thai": "ROOT/taobin_project/image/event/boost_energy/boost_energy.png",
|
||||
"media_eng": "ROOT/taobin_project/image/event/boost_energy/boost_energy.png",
|
||||
"event_click": "RootLayoutVisible 10 \"hide\"\r\nOpenInst 2 \"ROOT/taobin_project/inter/tha/xml/multi/v3/page_catalog_group_pro_boost_energy.lxml\""
|
||||
}
|
||||
File diff suppressed because it is too large
Load diff
16
inter/hkg/xml/multi/v3/event/event_v3/promotion_template.inc
Normal file
16
inter/hkg/xml/multi/v3/event/event_v3/promotion_template.inc
Normal 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>
|
||||
50
inter/hkg/xml/multi/v3/event/script_open_promotion_v3.ev
Normal file
50
inter/hkg/xml/multi/v3/event/script_open_promotion_v3.ev
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
|
||||
Var InstanceTabOpenFile10 = "ROOT/taobin_project/inter/hkg/xml/multi/v3/event/event_v3/active_promotions.lxml"
|
||||
|
||||
Var LanguageButtonEnable = "Invisible"
|
||||
Var BtnLangToggleIndex = "Enable"
|
||||
|
||||
Var ButtonLanguageCurrentXPosition = 1005
|
||||
Var ButtonLanguageCurrentYPosition = 458 - 38
|
||||
|
||||
Var ButtonLanguageListXPosition = 970
|
||||
Var ButtonLanguageListYPosition = 450 - 38
|
||||
|
||||
OpenInst 3 "ROOT/taobin_project/xml/topview2.xml"
|
||||
|
||||
TabMenuVisibleInst 10
|
||||
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/inter/hkg/xml/multi/page_instance2.xml"
|
||||
|
||||
Var Menu1Selected = "PressForever"
|
||||
|
||||
OpenInst 15 "ROOT/taobin_project/inter/hkg/xml/multi/tab_menu.lxml"
|
||||
RootLayoutVisible 15 "show"
|
||||
|
||||
;Var FileRecommendToOpen = "ROOT/taobin_project/inter/hkg/xml/multi/v3/event/event_v3/active_promotions.lxml"
|
||||
|
||||
|
||||
Var MatchaEveryDayProState = "Invisible"
|
||||
Var SchoolOvaltineProState = "Invisible"
|
||||
Var OreoVolcanoProState = "Invisible"
|
||||
Var AppleFarmFestivalProState = "Invisible"
|
||||
Var HappyTriosProState = "Invisible"
|
||||
|
||||
If MatchaEveryDayPro = 1 Then
|
||||
Var MatchaEveryDayProState = "Enable"
|
||||
EndIf
|
||||
|
||||
If SchoolOvaltinePro = 1 Then
|
||||
Var SchoolOvaltineProState = "Enable"
|
||||
EndIf
|
||||
|
||||
If OreoVolcanoPro = 1 Then
|
||||
Var OreoVolcanoProState = "Enable"
|
||||
EndIf
|
||||
|
||||
If AppleFarmFestivalPro = 1 Then
|
||||
Var AppleFarmFestivalProState = "Enable"
|
||||
EndIf
|
||||
|
||||
If HappyTriosPro = 1 Then
|
||||
Var HappyTriosProState = "Enable"
|
||||
EndIf
|
||||
106
inter/hkg/xml/multi/v3/menu_head.py
Normal file
106
inter/hkg/xml/multi/v3/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/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
|
||||
|
||||
]
|
||||
|
||||
513
inter/hkg/xml/multi/v3/menu_new_layout_gen_v3.py
Normal file
513
inter/hkg/xml/multi/v3/menu_new_layout_gen_v3.py
Normal 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_msc] + '</LanguageSlot2>\n')
|
||||
out_xml('\t\t\t\t<LanguageSlot3>' + spl[ idx_name][ idx_lang_mtc] + '</LanguageSlot3>\n')
|
||||
out_xml('\t\t\t\t<LanguageSlot4>' + spl[ idx_name][ idx_lang_eng] + '</LanguageSlot4>\n')
|
||||
out_xml('\t\t\t\t<LanguageSlot5>' + spl[ idx_name][ idx_lang_msc] + '</LanguageSlot5>\n')
|
||||
out_xml('\t\t\t\t<LanguageSlot6>' + spl[ idx_name][ idx_lang_mtc] + '</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_name][ idx_lang_eng] + '</LanguageSlot1>\n')
|
||||
out_xml('\t\t\t\t<LanguageSlot2>' + spl[ idx_name][ idx_lang_msc] + '</LanguageSlot2>\n')
|
||||
out_xml('\t\t\t\t<LanguageSlot3>' + spl[ idx_name][ idx_lang_mtc] + '</LanguageSlot3>\n')
|
||||
out_xml('\t\t\t\t<LanguageSlot4>' + spl[ idx_name][ idx_lang_eng] + '</LanguageSlot4>\n')
|
||||
out_xml('\t\t\t\t<LanguageSlot5>' + spl[ idx_name][ idx_lang_msc] + '</LanguageSlot5>\n')
|
||||
out_xml('\t\t\t\t<LanguageSlot6>' + spl[ idx_name][ idx_lang_mtc] + '</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/hkg/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/hkg/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_select7.xml"\n')
|
||||
else:
|
||||
out_xml( '\t\t\t\tOpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/inter/hkg/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/hkg/xml/page_topping_select6.lxml"\n')
|
||||
else:
|
||||
out_xml( '\t\t\t\tOpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/inter/hkg/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_lang_mtc = 4
|
||||
idx_lang_msc = 3
|
||||
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 = 11
|
||||
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]
|
||||
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')
|
||||
|
||||
|
||||
1233
inter/hkg/xml/multi/v3/page_catalog_group_appfast.lxml
Normal file
1233
inter/hkg/xml/multi/v3/page_catalog_group_appfast.lxml
Normal file
File diff suppressed because it is too large
Load diff
57
inter/hkg/xml/multi/v3/page_catalog_group_appfast.skt
Normal file
57
inter/hkg/xml/multi/v3/page_catalog_group_appfast.skt
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
<?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/hkg/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/hkg/xml/multi/menu_catalog_new_menu.lxml"
|
||||
|
||||
SetInstanceIgnoreTouch
|
||||
</EventOpen>
|
||||
|
||||
<Timeout> 1000 </Timeout>
|
||||
<EventTimeout>
|
||||
|
||||
;include="ROOT/taobin_project/inter/hkg/xml/multi/ForProGroup.inc"
|
||||
|
||||
|
||||
TimerReset
|
||||
</EventTimeout>
|
||||
|
||||
;include="ROOT/taobin_project/inter/hkg/xml/multi/menu_catalog_new.lxml"
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen_v3.py
|
||||
?>
|
||||
|
||||
|
||||
|
||||
</Popup>
|
||||
42
inter/hkg/xml/multi/v3/page_catalog_group_cocktail.skt
Normal file
42
inter/hkg/xml/multi/v3/page_catalog_group_cocktail.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/hkg/xml/multi/menu_catalog_default_init.lxml"
|
||||
|
||||
|
||||
Var Timeout = 0
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/inter/hkg/xml/multi/menu_catalog_new_menu.lxml"
|
||||
SetInstanceIgnoreTouch
|
||||
</EventOpen>
|
||||
|
||||
<Timeout> 1000 </Timeout>
|
||||
<EventTimeout>
|
||||
|
||||
;include="ROOT/taobin_project/inter/hkg/xml/multi/ForProGroup.inc"
|
||||
|
||||
|
||||
TimerReset
|
||||
</EventTimeout>
|
||||
|
||||
;include="ROOT/taobin_project/inter/hkg/xml/multi/menu_catalog_new.lxml"
|
||||
|
||||
|
||||
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen_v3.py
|
||||
?>
|
||||
|
||||
|
||||
|
||||
</Popup>
|
||||
18355
inter/hkg/xml/multi/v3/page_catalog_group_coffee.lxml
Normal file
18355
inter/hkg/xml/multi/v3/page_catalog_group_coffee.lxml
Normal file
File diff suppressed because it is too large
Load diff
129
inter/hkg/xml/multi/v3/page_catalog_group_coffee.skt
Normal file
129
inter/hkg/xml/multi/v3/page_catalog_group_coffee.skt
Normal file
|
|
@ -0,0 +1,129 @@
|
|||
<?hurr
|
||||
#include=menu_head.py
|
||||
?>
|
||||
|
||||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
;<Background> "0xeae6e1" </Background>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventOpen>
|
||||
; On open
|
||||
|
||||
SetInstanceIgnoreTouch
|
||||
|
||||
If SlientRefreshIndex = 2 Then
|
||||
Var SlientRefreshIndex = 3
|
||||
|
||||
EndIf
|
||||
|
||||
|
||||
</EventOpen>
|
||||
|
||||
|
||||
|
||||
<EventOnShow>
|
||||
|
||||
;include="ROOT/taobin_project/inter/hkg/xml/multi/menu_catalog_default_init.lxml"
|
||||
Var Menu2Selected = "PressForever"
|
||||
|
||||
SAVELOG "Onshow 2"
|
||||
;include="ROOT/taobin_project/inter/hkg/xml/multi/tab_menu_show_and_refresh.lxml"
|
||||
|
||||
Var Timeout = 0
|
||||
|
||||
SAVELOG "Onshow 3"
|
||||
;include="ROOT/taobin_project/inter/hkg/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/hkg/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
|
||||
EndIf
|
||||
|
||||
|
||||
|
||||
|
||||
; setvarint RefreshCoffeeMenu 1
|
||||
If RefreshCoffeeMenu = 1 Then
|
||||
Var RefreshCoffeeMenu = 0
|
||||
SAVELOG "OPEN FROM 3"
|
||||
Open "ROOT/taobin_project/inter/hkg/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/hkg/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>
|
||||
3328
inter/hkg/xml/multi/v3/page_catalog_group_forkid.lxml
Normal file
3328
inter/hkg/xml/multi/v3/page_catalog_group_forkid.lxml
Normal file
File diff suppressed because it is too large
Load diff
97
inter/hkg/xml/multi/v3/page_catalog_group_forkid.skt
Normal file
97
inter/hkg/xml/multi/v3/page_catalog_group_forkid.skt
Normal file
|
|
@ -0,0 +1,97 @@
|
|||
<?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>
|
||||
;include="ROOT/taobin_project/inter/hkg/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/hkg/xml/multi/tab_menu_show_and_refresh.lxml"
|
||||
|
||||
SetInstanceIgnoreTouch
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/inter/hkg/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/hkg/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_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
|
||||
EndIf
|
||||
|
||||
|
||||
|
||||
TimerReset
|
||||
</EventTimeout>
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/inter/hkg/xml/multi/menu_catalog_new.lxml"
|
||||
|
||||
|
||||
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen_v3.py
|
||||
?>
|
||||
|
||||
|
||||
</Popup>
|
||||
6047
inter/hkg/xml/multi/v3/page_catalog_group_health.lxml
Normal file
6047
inter/hkg/xml/multi/v3/page_catalog_group_health.lxml
Normal file
File diff suppressed because it is too large
Load diff
104
inter/hkg/xml/multi/v3/page_catalog_group_health.skt
Normal file
104
inter/hkg/xml/multi/v3/page_catalog_group_health.skt
Normal file
|
|
@ -0,0 +1,104 @@
|
|||
<?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>
|
||||
;include="ROOT/taobin_project/inter/hkg/xml/multi/menu_catalog_default_init.lxml"
|
||||
|
||||
Var Menu22Selected = "PressForever"
|
||||
|
||||
|
||||
Var Timeout = 0
|
||||
;include="ROOT/taobin_project/inter/hkg/xml/multi/tab_menu_show_and_refresh.lxml"
|
||||
|
||||
SetInstanceIgnoreTouch
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/inter/hkg/xml/multi/menu_catalog_new_menu.lxml"
|
||||
|
||||
RefreshAll
|
||||
DEBUGVAR SlientRefreshIndex
|
||||
</EventOnShow>
|
||||
|
||||
<Timeout> 1000 </Timeout>
|
||||
<EventTimeout>
|
||||
;DEBUGVAR ICE_PROCESS_STATUS
|
||||
|
||||
;include="ROOT/taobin_project/inter/hkg/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_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
|
||||
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/hkg/xml/multi/v3/page_catalog_group_health.lxml"
|
||||
|
||||
EndIf
|
||||
; setvarint RefreshHealtMenu 1
|
||||
|
||||
|
||||
TimerReset
|
||||
</EventTimeout>
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/inter/hkg/xml/multi/menu_catalog_new.lxml"
|
||||
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen_v3.py
|
||||
?>
|
||||
|
||||
|
||||
</Popup>
|
||||
6969
inter/hkg/xml/multi/v3/page_catalog_group_milk.lxml
Normal file
6969
inter/hkg/xml/multi/v3/page_catalog_group_milk.lxml
Normal file
File diff suppressed because it is too large
Load diff
90
inter/hkg/xml/multi/v3/page_catalog_group_milk.skt
Normal file
90
inter/hkg/xml/multi/v3/page_catalog_group_milk.skt
Normal file
|
|
@ -0,0 +1,90 @@
|
|||
<?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>
|
||||
;include="ROOT/taobin_project/inter/hkg/xml/multi/menu_catalog_default_init.lxml"
|
||||
Var Menu4Selected = "PressForever"
|
||||
|
||||
Var Timeout = 0
|
||||
;include="ROOT/taobin_project/inter/hkg/xml/multi/tab_menu_show_and_refresh.lxml"
|
||||
|
||||
SetInstanceIgnoreTouch
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/inter/hkg/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/hkg/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
|
||||
EndIf
|
||||
|
||||
TimerReset
|
||||
</EventTimeout>
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/inter/hkg/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>
|
||||
42
inter/hkg/xml/multi/v3/page_catalog_group_oreo.skt
Normal file
42
inter/hkg/xml/multi/v3/page_catalog_group_oreo.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/hkg/xml/multi/menu_catalog_default_init.lxml"
|
||||
|
||||
|
||||
Var Timeout = 0
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/inter/hkg/xml/multi/menu_catalog_new_menu.lxml"
|
||||
SetInstanceIgnoreTouch
|
||||
</EventOpen>
|
||||
|
||||
<Timeout> 1000 </Timeout>
|
||||
<EventTimeout>
|
||||
|
||||
;include="ROOT/taobin_project/inter/hkg/xml/multi/ForProGroup.inc"
|
||||
|
||||
|
||||
TimerReset
|
||||
</EventTimeout>
|
||||
|
||||
;include="ROOT/taobin_project/inter/hkg/xml/multi/menu_catalog_new.lxml"
|
||||
|
||||
|
||||
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen_v3.py
|
||||
?>
|
||||
|
||||
|
||||
|
||||
</Popup>
|
||||
16055
inter/hkg/xml/multi/v3/page_catalog_group_other.lxml
Normal file
16055
inter/hkg/xml/multi/v3/page_catalog_group_other.lxml
Normal file
File diff suppressed because it is too large
Load diff
95
inter/hkg/xml/multi/v3/page_catalog_group_other.skt
Normal file
95
inter/hkg/xml/multi/v3/page_catalog_group_other.skt
Normal file
|
|
@ -0,0 +1,95 @@
|
|||
<?hurr
|
||||
#include=menu_head.py
|
||||
echo param
|
||||
?>
|
||||
|
||||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
;<Background> "0xeae6e1" </Background>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventOpen>
|
||||
|
||||
DEBUGVAR SlientRefreshIndex
|
||||
|
||||
If SlientRefreshIndex = 7 Then
|
||||
Var SlientRefreshIndex = 8
|
||||
EndIf
|
||||
|
||||
Var OtherOtherRefreshTimeOut = 1
|
||||
Var inst_show_other_other_counter = 10
|
||||
</EventOpen>
|
||||
|
||||
<EventOnShow>
|
||||
;include="ROOT/taobin_project/inter/hkg/xml/multi/menu_catalog_default_init.lxml"
|
||||
; soda and other
|
||||
Var Menu62Selected = "PressForever"
|
||||
|
||||
|
||||
Var Timeout = 0
|
||||
;include="ROOT/taobin_project/inter/hkg/xml/multi/tab_menu_show_and_refresh.lxml"
|
||||
|
||||
SetInstanceIgnoreTouch
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/inter/hkg/xml/multi/menu_catalog_new_menu.lxml"
|
||||
|
||||
Var OtherOtherRefreshTimeOut = 14
|
||||
|
||||
DEBUGVAR SlientRefreshIndex
|
||||
|
||||
|
||||
RefreshAll
|
||||
|
||||
</EventOnShow>
|
||||
|
||||
<Timeout> 1000 </Timeout>
|
||||
<EventTimeout>
|
||||
;DEBUGVAR ICE_PROCESS_STATUS
|
||||
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/inter/hkg/xml/multi/InstanceGetSetString.inc"
|
||||
|
||||
; setvarint RefreshOtherOther 1
|
||||
If RefreshOtherOther = 1 Then
|
||||
Var RefreshOtherOther = 0
|
||||
SAVELOG "OPEN FROM 8"
|
||||
Open "ROOT/taobin_project/inter/hkg/xml/multi/v3/page_catalog_group_other.lxml"
|
||||
EndIf
|
||||
|
||||
GetVisible inst_show_other_other
|
||||
|
||||
;DEBUGVAR inst_show_other_other
|
||||
|
||||
Var OtherOtherRefreshTimeOut = OtherOtherRefreshTimeOut + 1
|
||||
;DEBUGVAR OtherOtherRefreshTimeOut
|
||||
|
||||
If OtherOtherRefreshTimeOut > 15 Then
|
||||
|
||||
|
||||
Var OtherOtherRefreshTimeOut = 0
|
||||
Script "-" "-"
|
||||
If inst_show_other_other = 1 Then
|
||||
;RefreshAll
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
|
||||
TimerReset
|
||||
</EventTimeout>
|
||||
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/inter/hkg/xml/multi/menu_catalog_new.lxml"
|
||||
|
||||
|
||||
|
||||
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen_v3.py
|
||||
?>
|
||||
|
||||
|
||||
</Popup>
|
||||
9665
inter/hkg/xml/multi/v3/page_catalog_group_recommend.lxml
Normal file
9665
inter/hkg/xml/multi/v3/page_catalog_group_recommend.lxml
Normal file
File diff suppressed because it is too large
Load diff
74
inter/hkg/xml/multi/v3/page_catalog_group_recommend.skt
Normal file
74
inter/hkg/xml/multi/v3/page_catalog_group_recommend.skt
Normal file
|
|
@ -0,0 +1,74 @@
|
|||
<?hurr
|
||||
#include=menu_head.py
|
||||
?>
|
||||
; this file for generate from page_catalog_group_recommend.skt
|
||||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
;<Background> "0xeae6e1" </Background>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventOpen>
|
||||
|
||||
</EventOpen>
|
||||
|
||||
<EventOnShow>
|
||||
Var RecommendTimeOut = 0
|
||||
|
||||
; On open
|
||||
;include="ROOT/taobin_project/inter/hkg/xml/multi/menu_catalog_default_init.lxml"
|
||||
Var Menu1Selected = "PressForever"
|
||||
|
||||
|
||||
SAVELOG PreviseXMLFileName2
|
||||
;include="ROOT/taobin_project/inter/hkg/xml/multi/tab_menu_show_and_refresh.lxml"
|
||||
|
||||
Var Timeout = 0
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/inter/hkg/xml/multi/menu_catalog_new_menu.lxml"
|
||||
|
||||
RefreshAll
|
||||
</EventOnShow>
|
||||
|
||||
<Timeout> 1000 </Timeout>
|
||||
<EventTimeout>
|
||||
|
||||
;include="ROOT/taobin_project/inter/hkg/xml/multi/InstanceGetSetString.inc"
|
||||
|
||||
|
||||
GetVisible inst_show_exclude_group
|
||||
|
||||
If inst_show_exclude_group_counter = "" Then
|
||||
Var inst_show_exclude_group_counter = 45
|
||||
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 = 45
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
Var RecommendTimeOut = RecommendTimeOut + 1
|
||||
|
||||
TimerReset
|
||||
</EventTimeout>
|
||||
|
||||
;include="ROOT/taobin_project/inter/hkg/xml/multi/menu_catalog_new.lxml"
|
||||
|
||||
|
||||
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen_v3.py
|
||||
?>
|
||||
|
||||
|
||||
|
||||
</Popup>
|
||||
9633
inter/hkg/xml/multi/v3/page_catalog_group_recommend_multi_pro.lxml
Normal file
9633
inter/hkg/xml/multi/v3/page_catalog_group_recommend_multi_pro.lxml
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -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/hkg/xml/multi/menu_catalog_default_init.lxml"
|
||||
|
||||
|
||||
Var Timeout = 0
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/inter/hkg/xml/multi/menu_catalog_new_menu.lxml"
|
||||
SetInstanceIgnoreTouch
|
||||
</EventOpen>
|
||||
|
||||
<Timeout> 1000 </Timeout>
|
||||
<EventTimeout>
|
||||
|
||||
;include="ROOT/taobin_project/inter/hkg/xml/multi/ForProGroup.inc"
|
||||
|
||||
|
||||
TimerReset
|
||||
</EventTimeout>
|
||||
|
||||
;include="ROOT/taobin_project/inter/hkg/xml/multi/menu_catalog_new.lxml"
|
||||
|
||||
|
||||
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen_v3.py
|
||||
?>
|
||||
|
||||
|
||||
|
||||
</Popup>
|
||||
11340
inter/hkg/xml/multi/v3/page_catalog_group_tea.lxml
Normal file
11340
inter/hkg/xml/multi/v3/page_catalog_group_tea.lxml
Normal file
File diff suppressed because it is too large
Load diff
140
inter/hkg/xml/multi/v3/page_catalog_group_tea.skt
Normal file
140
inter/hkg/xml/multi/v3/page_catalog_group_tea.skt
Normal file
|
|
@ -0,0 +1,140 @@
|
|||
<?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>
|
||||
|
||||
SetInstanceIgnoreTouch
|
||||
|
||||
DEBUGVAR SlientRefreshIndex
|
||||
|
||||
If SlientRefreshIndex = 3 Then
|
||||
Var SlientRefreshIndex = 4
|
||||
|
||||
EndIf
|
||||
|
||||
|
||||
</EventOpen>
|
||||
|
||||
|
||||
<EventOnShow>
|
||||
; On open
|
||||
;include="ROOT/taobin_project/inter/hkg/xml/multi/menu_catalog_default_init.lxml"
|
||||
Var Menu3Selected = "PressForever"
|
||||
|
||||
|
||||
SAVELOG PreviseXMLFileName2
|
||||
;include="ROOT/taobin_project/inter/hkg/xml/multi/tab_menu_show_and_refresh.lxml"
|
||||
|
||||
Var Timeout = 0
|
||||
|
||||
|
||||
Var inst_show_tea_counter = 4
|
||||
|
||||
;include="ROOT/taobin_project/inter/hkg/xml/multi/menu_catalog_new_menu.lxml"
|
||||
|
||||
RefreshAll
|
||||
</EventOnShow>
|
||||
|
||||
<Timeout> 1000 </Timeout>
|
||||
<EventTimeout>
|
||||
;DEBUGVAR ICE_PROCESS_STATUS
|
||||
|
||||
;include="ROOT/taobin_project/inter/hkg/xml/multi/InstanceGetSetString.inc"
|
||||
|
||||
|
||||
|
||||
|
||||
GetVisible inst_show_tea
|
||||
|
||||
|
||||
If inst_show_tea = 1 Then
|
||||
If inst_show_tea_counter > 0 Then
|
||||
DEBUGVAR inst_show_tea_counter
|
||||
|
||||
Var inst_show_tea_counter = inst_show_tea_counter - 1
|
||||
|
||||
If inst_show_tea_counter = 0 Then
|
||||
RefreshAll
|
||||
Var inst_show_tea_counter = 4
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
|
||||
|
||||
|
||||
TimerReset
|
||||
</EventTimeout>
|
||||
|
||||
<EventOnShow>
|
||||
InstanceGetString SaveStringInst
|
||||
DEBUGVAR SaveStringInst
|
||||
DEBUGVAR show_eng
|
||||
|
||||
If SaveStringInst = "RefreshNow" Then
|
||||
GetXMLFileNameCurrentRunning CurrentOpenFile
|
||||
Open CurrentOpenFile
|
||||
EndIf
|
||||
DEBUGVAR LanguageShow
|
||||
|
||||
|
||||
If SaveStringInst = "ShowMTC" Then
|
||||
If LanguageShow = "MTC" Then
|
||||
|
||||
Else
|
||||
Var show_eng = "true"
|
||||
InstanceSetString "ShowMSC"
|
||||
GetXMLFileNameCurrentRunning CurrentOpenFile
|
||||
Open CurrentOpenFile
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If SaveStringInst = "ShowMSC" Then
|
||||
If LanguageShow = "MSC" Then
|
||||
|
||||
Else
|
||||
Var show_eng = "false"
|
||||
InstanceSetString "ShowEng"
|
||||
GetXMLFileNameCurrentRunning CurrentOpenFile
|
||||
Open CurrentOpenFile
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If SaveStringInst = "ShowEng" Then
|
||||
If LanguageShow = "ENG" Then
|
||||
|
||||
Else
|
||||
Var show_eng = "false"
|
||||
InstanceSetString "ShowMTC"
|
||||
GetXMLFileNameCurrentRunning CurrentOpenFile
|
||||
Open CurrentOpenFile
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
|
||||
RefreshAll
|
||||
|
||||
</EventOnShow>
|
||||
|
||||
;include="ROOT/taobin_project/inter/hkg/xml/multi/menu_catalog_new.lxml"
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen_v3.py
|
||||
?>
|
||||
|
||||
|
||||
</Popup>
|
||||
3986
inter/hkg/xml/multi/v3/page_catalog_group_whey.lxml
Normal file
3986
inter/hkg/xml/multi/v3/page_catalog_group_whey.lxml
Normal file
File diff suppressed because it is too large
Load diff
86
inter/hkg/xml/multi/v3/page_catalog_group_whey.skt
Normal file
86
inter/hkg/xml/multi/v3/page_catalog_group_whey.skt
Normal file
|
|
@ -0,0 +1,86 @@
|
|||
<?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 = 5 Then
|
||||
Var SlientRefreshIndex = 6
|
||||
EndIf
|
||||
|
||||
Var inst_show_whey_counter = 5
|
||||
</EventOpen>
|
||||
|
||||
<EventOnShow>
|
||||
;include="ROOT/taobin_project/inter/hkg/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
|
||||
|
||||
|
||||
Var Timeout = 0
|
||||
;include="ROOT/taobin_project/inter/hkg/xml/multi/tab_menu_show_and_refresh.lxml"
|
||||
|
||||
SetInstanceIgnoreTouch
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/inter/hkg/xml/multi/menu_catalog_new_menu.lxml"
|
||||
|
||||
DEBUGVAR SlientRefreshIndex
|
||||
</EventOnShow>
|
||||
|
||||
<Timeout> 1000 </Timeout>
|
||||
<EventTimeout>
|
||||
;DEBUGVAR ICE_PROCESS_STATUS
|
||||
;include="ROOT/taobin_project/inter/hkg/xml/multi/InstanceGetSetString.inc"
|
||||
|
||||
|
||||
GetVisible inst_show_whey
|
||||
|
||||
|
||||
If inst_show_whey = 1 Then
|
||||
If inst_show_whey_counter > 0 Then
|
||||
DEBUGVAR inst_show_whey_counter
|
||||
|
||||
Var inst_show_whey_counter = inst_show_whey_counter - 1
|
||||
|
||||
If inst_show_whey_counter = 0 Then
|
||||
RefreshAll
|
||||
Var inst_show_whey_counter = 4
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
TimerReset
|
||||
</EventTimeout>
|
||||
|
||||
<EventOnShow>
|
||||
|
||||
|
||||
|
||||
</EventOnShow>
|
||||
|
||||
;include="ROOT/taobin_project/inter/hkg/xml/multi/menu_catalog_new.lxml"
|
||||
|
||||
|
||||
|
||||
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen_v3.py
|
||||
?>
|
||||
|
||||
|
||||
</Popup>
|
||||
|
|
@ -1143,6 +1143,10 @@
|
|||
SetLanguage "MTC"
|
||||
LanguageControl "UpdateList" "-"
|
||||
|
||||
If BoxID = 210699 Then
|
||||
Var CatalogLayoutV3 = 1
|
||||
EndIf
|
||||
|
||||
Var show_eng = "true"
|
||||
Var img_press_main_page = "ROOT/taobin_project/image/main_page_en/bp_main_page_start.png"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue