HK => HKG
This commit is contained in:
parent
4387f7a8c2
commit
634ea4b77a
2420 changed files with 1814 additions and 1842 deletions
575
inter/hkg/xml/event/dummy_layout_promotion.py
Normal file
575
inter/hkg/xml/event/dummy_layout_promotion.py
Normal file
|
|
@ -0,0 +1,575 @@
|
|||
from pathlib import Path
|
||||
import json
|
||||
|
||||
print("params=" + param)
|
||||
print( "dir= " + directory_to_process + "/page_catalog_group_recommend.lxml");
|
||||
file_xml = open(directory_to_process + "/page_catalog_group_recommend.lxml", 'r')
|
||||
file_content_main = file_xml.read()
|
||||
#print(file_xml.read())
|
||||
# ; include-file=dummy_layout.inc
|
||||
file_inc = open(directory_to_process + "/dummy_layout.inc", 'r')
|
||||
file_inc_content = file_inc.read()
|
||||
|
||||
|
||||
file_xml.close()
|
||||
|
||||
if "template1" in param:
|
||||
file_inc2 = open(directory_to_process + "/event/promotion_template1.inc", 'r')
|
||||
file_inc2_content = file_inc2.read()
|
||||
file_inc_img = open(directory_to_process + "/../image/event/image_template1", 'r')
|
||||
file_inc2_img_content = file_inc_img.read()
|
||||
|
||||
# replace key.
|
||||
|
||||
sp_key = file_inc2_img_content.split("\n")
|
||||
print("sp_key = " + str(len( sp_key)))
|
||||
for sp_line in sp_key:
|
||||
sp_line = sp_line.strip()
|
||||
key_val = sp_line.split("=")
|
||||
if len( key_val) == 2:
|
||||
print("k = " + key_val[0] + " val=" + key_val[1])
|
||||
file_inc2_content = file_inc2_content.replace( "###" + key_val[0], '"' + key_val[1].strip() + '"')
|
||||
|
||||
|
||||
file_inc_event_click = open(directory_to_process + "/event/promotion_onclick1.inc", 'r')
|
||||
file_inc_event_click_content = file_inc_event_click.read()
|
||||
|
||||
file_inc2_content = file_inc2_content.replace("###EventOnClick", file_inc_event_click_content)
|
||||
|
||||
|
||||
print(file_inc2_content)
|
||||
|
||||
#print( file_inc_content)
|
||||
content_data_was_repack = file_content_main.replace(";dummy_layout.inc", file_inc_content)
|
||||
content_data = content_data_was_repack.replace(";BigLogoLayout", file_inc2_content)
|
||||
|
||||
begin_text = content_data.index(";TAGESP")
|
||||
end_text = content_data.index(";TAGESP", begin_text + 7)
|
||||
print("TAGESP sub text = " + str(begin_text) + " end = " + str(end_text))
|
||||
tmp1 = content_data[: begin_text - 7]
|
||||
|
||||
tmp2 = content_data[ end_text:-1]
|
||||
#print("tmp1=" + tmp1)
|
||||
#print("tmp2=" + tmp2)
|
||||
|
||||
content_data = tmp1 + tmp2
|
||||
|
||||
file_xml3_out = open(directory_to_process + "/event/out_put_file1.txt", 'r')
|
||||
file_xml3_out_content = file_xml3_out.read()
|
||||
file_xml3_out_content = file_xml3_out_content.strip()
|
||||
file_xml3_out_content = file_xml3_out_content.replace("\r", "")
|
||||
file_xml3_out_content = file_xml3_out_content.replace("\n", "")
|
||||
|
||||
file_xml3 = open(directory_to_process + file_xml3_out_content, 'w')
|
||||
file_xml3.write( content_data)
|
||||
file_xml3.close()
|
||||
|
||||
if "template2" in param:
|
||||
file_inc2 = open(directory_to_process + "/event/promotion_template2.inc", 'r')
|
||||
file_inc2_content = file_inc2.read()
|
||||
file_inc_img = open(directory_to_process + "/../image/event/image_template2", 'r')
|
||||
file_inc2_img_content = file_inc_img.read()
|
||||
|
||||
# replace key.
|
||||
|
||||
sp_key = file_inc2_img_content.split("\n")
|
||||
print("sp_key = " + str(len( sp_key)))
|
||||
for sp_line in sp_key:
|
||||
sp_line = sp_line.strip()
|
||||
key_val = sp_line.split("=")
|
||||
if len( key_val) == 2:
|
||||
print("k = " + key_val[0] + " val=" + key_val[1])
|
||||
file_inc2_content = file_inc2_content.replace( "###" + key_val[0], '"' + key_val[1].strip() + '"')
|
||||
|
||||
|
||||
file_inc_event_click = open(directory_to_process + "/event/promotion_onclick2.inc", 'r')
|
||||
file_inc_event_click_content = file_inc_event_click.read()
|
||||
|
||||
file_inc2_content = file_inc2_content.replace("###EventOnClick", file_inc_event_click_content)
|
||||
|
||||
|
||||
print(file_inc2_content)
|
||||
|
||||
#print( file_inc_content)
|
||||
content_data_was_repack = file_content_main.replace(";dummy_layout.inc", file_inc_content)
|
||||
content_data = content_data_was_repack.replace(";BigLogoLayout", file_inc2_content)
|
||||
|
||||
begin_text = content_data.index(";TAGESP")
|
||||
end_text = content_data.index(";TAGESP", begin_text + 7)
|
||||
#print("sub text = " + str(begin_text) + " end = " + str(end_text))
|
||||
tmp1 = content_data[: begin_text - 7]
|
||||
|
||||
tmp2 = content_data[ end_text:-1]
|
||||
#print("tmp1=" + tmp1)
|
||||
#print("tmp2=" + tmp2)
|
||||
|
||||
content_data = tmp1 + tmp2
|
||||
|
||||
file_xml3_out = open(directory_to_process + "/event/out_put_file2.txt", 'r')
|
||||
file_xml3_out_content = file_xml3_out.read()
|
||||
file_xml3_out_content = file_xml3_out_content.strip()
|
||||
file_xml3_out_content = file_xml3_out_content.replace("\r", "")
|
||||
file_xml3_out_content = file_xml3_out_content.replace("\n", "")
|
||||
|
||||
file_xml3 = open(directory_to_process + file_xml3_out_content, 'w')
|
||||
file_xml3.write( content_data)
|
||||
file_xml3.close()
|
||||
|
||||
if "template3" in param:
|
||||
file_inc3 = open(directory_to_process + "/event/promotion_template3.inc", 'r')
|
||||
file_inc3_content = file_inc3.read()
|
||||
file_inc_img = open(directory_to_process + "/../image/event/image_template3", 'r')
|
||||
file_inc3_img_content = file_inc_img.read()
|
||||
|
||||
# replace key.
|
||||
|
||||
sp_key = file_inc3_img_content.split("\n")
|
||||
print("sp_key = " + str(len( sp_key)))
|
||||
for sp_line in sp_key:
|
||||
sp_line = sp_line.strip()
|
||||
key_val = sp_line.split("=")
|
||||
print("Kenta420:", key_val)
|
||||
if len( key_val) == 2:
|
||||
print("k = " + key_val[0] + " val=" + key_val[1])
|
||||
file_inc3_content = file_inc3_content.replace( "###" + key_val[0], '"' + key_val[1].strip() + '"')
|
||||
|
||||
|
||||
file_inc_event_click = open(directory_to_process + "/event/promotion_onclick3.inc", 'r')
|
||||
file_inc_event_click_content = file_inc_event_click.read()
|
||||
|
||||
file_inc3_content = file_inc3_content.replace("###EventOnClick", file_inc_event_click_content)
|
||||
|
||||
|
||||
print(file_inc3_content)
|
||||
|
||||
#print( file_inc_content)
|
||||
content_data_was_repack = file_content_main.replace(";dummy_layout.inc", file_inc_content)
|
||||
content_data = content_data_was_repack.replace(";BigLogoLayout", file_inc3_content)
|
||||
|
||||
begin_text = content_data.index(";TAGESP")
|
||||
end_text = content_data.index(";TAGESP", begin_text + 7)
|
||||
#print("sub text = " + str(begin_text) + " end = " + str(end_text))
|
||||
tmp1 = content_data[: begin_text - 7]
|
||||
|
||||
tmp3 = content_data[ end_text:-1]
|
||||
#print("tmp1=" + tmp1)
|
||||
#print("tmp3=" + tmp3)
|
||||
|
||||
content_data = tmp1 + tmp3
|
||||
|
||||
file_xml3_out = open(directory_to_process + "/event/out_put_file3.txt", 'r')
|
||||
file_xml3_out_content = file_xml3_out.read()
|
||||
file_xml3_out_content = file_xml3_out_content.strip()
|
||||
file_xml3_out_content = file_xml3_out_content.replace("\r", "")
|
||||
file_xml3_out_content = file_xml3_out_content.replace("\n", "")
|
||||
|
||||
file_xml3 = open(directory_to_process + file_xml3_out_content, 'w')
|
||||
file_xml3.write( content_data)
|
||||
file_xml3.close()
|
||||
|
||||
|
||||
if "template4" in param:
|
||||
# NOTE: promotion_template4.inc, image_template4, promotion_onclick4.inc, out_put_file4.txt
|
||||
|
||||
# promotion 4
|
||||
file_inc3 = open(directory_to_process + "/event/promotion_template4.inc", 'r')
|
||||
file_inc3_content = file_inc3.read()
|
||||
file_inc_img = open(directory_to_process + "/../image/event/image_template4", 'r')
|
||||
file_inc3_img_content = file_inc_img.read()
|
||||
|
||||
# replace key.
|
||||
|
||||
sp_key = file_inc3_img_content.split("\n")
|
||||
print("sp_key = " + str(len( sp_key)))
|
||||
for sp_line in sp_key:
|
||||
sp_line = sp_line.strip()
|
||||
key_val = sp_line.split("=")
|
||||
print("Kenta420:", key_val)
|
||||
if len( key_val) == 2:
|
||||
print("k = " + key_val[0] + " val=" + key_val[1])
|
||||
file_inc3_content = file_inc3_content.replace( "###" + key_val[0], '"' + key_val[1].strip() + '"')
|
||||
|
||||
|
||||
file_inc_event_click = open(directory_to_process + "/event/promotion_onclick4.inc", 'r')
|
||||
file_inc_event_click_content = file_inc_event_click.read()
|
||||
|
||||
file_inc3_content = file_inc3_content.replace("###EventOnClick", file_inc_event_click_content)
|
||||
|
||||
|
||||
print(file_inc3_content)
|
||||
|
||||
#print( file_inc_content)
|
||||
content_data_was_repack = file_content_main.replace(";dummy_layout.inc", file_inc_content)
|
||||
content_data = content_data_was_repack.replace(";BigLogoLayout", file_inc3_content)
|
||||
|
||||
begin_text = content_data.index(";TAGESP")
|
||||
end_text = content_data.index(";TAGESP", begin_text + 7)
|
||||
#print("sub text = " + str(begin_text) + " end = " + str(end_text))
|
||||
tmp1 = content_data[: begin_text - 7]
|
||||
|
||||
tmp3 = content_data[ end_text:-1]
|
||||
#print("tmp1=" + tmp1)
|
||||
#print("tmp3=" + tmp3)
|
||||
|
||||
content_data = tmp1 + tmp3
|
||||
|
||||
file_xml3_out = open(directory_to_process + "/event/out_put_file4.txt", 'r')
|
||||
file_xml3_out_content = file_xml3_out.read()
|
||||
file_xml3_out_content = file_xml3_out_content.strip()
|
||||
file_xml3_out_content = file_xml3_out_content.replace("\r", "")
|
||||
file_xml3_out_content = file_xml3_out_content.replace("\n", "")
|
||||
|
||||
file_xml3 = open(directory_to_process + file_xml3_out_content, 'w')
|
||||
file_xml3.write( content_data)
|
||||
file_xml3.close()
|
||||
|
||||
|
||||
|
||||
if "template5" in param:
|
||||
|
||||
# promotion thai tea
|
||||
file_inc3 = open(directory_to_process + "/event/promotion_template5.inc", 'r')
|
||||
file_inc3_content = file_inc3.read()
|
||||
file_inc_img = open(directory_to_process + "/../image/event/image_template5", 'r')
|
||||
file_inc3_img_content = file_inc_img.read()
|
||||
|
||||
# replace key.
|
||||
|
||||
sp_key = file_inc3_img_content.split("\n")
|
||||
print("sp_key = " + str(len( sp_key)))
|
||||
for sp_line in sp_key:
|
||||
sp_line = sp_line.strip()
|
||||
key_val = sp_line.split("=")
|
||||
print("Kenta420:", key_val)
|
||||
if len( key_val) == 2:
|
||||
print("k = " + key_val[0] + " val=" + key_val[1])
|
||||
file_inc3_content = file_inc3_content.replace( "###" + key_val[0], '"' + key_val[1].strip() + '"')
|
||||
|
||||
|
||||
file_inc_event_click = open(directory_to_process + "/event/promotion_onclick5.inc", 'r')
|
||||
file_inc_event_click_content = file_inc_event_click.read()
|
||||
|
||||
file_inc3_content = file_inc3_content.replace("###EventOnClick", file_inc_event_click_content)
|
||||
|
||||
|
||||
print(file_inc3_content)
|
||||
|
||||
#print( file_inc_content)
|
||||
content_data_was_repack = file_content_main.replace(";dummy_layout.inc", file_inc_content)
|
||||
content_data = content_data_was_repack.replace(";BigLogoLayout", file_inc3_content)
|
||||
|
||||
begin_text = content_data.index(";TAGESP")
|
||||
end_text = content_data.index(";TAGESP", begin_text + 7)
|
||||
#print("sub text = " + str(begin_text) + " end = " + str(end_text))
|
||||
tmp1 = content_data[: begin_text - 7]
|
||||
|
||||
tmp3 = content_data[ end_text:-1]
|
||||
#print("tmp1=" + tmp1)
|
||||
#print("tmp3=" + tmp3)
|
||||
|
||||
content_data = tmp1 + tmp3
|
||||
|
||||
file_xml3_out = open(directory_to_process + "/event/out_put_file5.txt", 'r')
|
||||
file_xml3_out_content = file_xml3_out.read()
|
||||
file_xml3_out_content = file_xml3_out_content.strip()
|
||||
file_xml3_out_content = file_xml3_out_content.replace("\r", "")
|
||||
file_xml3_out_content = file_xml3_out_content.replace("\n", "")
|
||||
|
||||
file_xml3 = open(directory_to_process + file_xml3_out_content, 'w')
|
||||
file_xml3.write( content_data)
|
||||
file_xml3.close()
|
||||
|
||||
|
||||
|
||||
|
||||
###############################################################
|
||||
# MULTI PRO
|
||||
###############################################################
|
||||
print("dummy.current_file_name=", current_file_name)
|
||||
if "multi_promotion" in param:
|
||||
|
||||
print("Should gen multi")
|
||||
|
||||
files = os.listdir(directory_to_process + "/event/")
|
||||
files = [f for f in files if f.startswith("multi_promotion_config")]
|
||||
for filename in files:
|
||||
recommend_multi_pro_buff = Path(directory_to_process + "/page_catalog_group_recommend_multi_pro.lxml").read_text()
|
||||
# print("pre-regex multi pro buff = ", recommend_multi_pro_buff)
|
||||
|
||||
|
||||
# print("test split", json.dumps(recommend_multi_pro_buff.splitlines(), indent=2))
|
||||
temp = []
|
||||
for buffer in recommend_multi_pro_buff.splitlines():
|
||||
# print("buffer:"+buffer)
|
||||
if "\\n" in buffer:
|
||||
# print("found")
|
||||
buffer = buffer.replace("\\n", "\\\\n")
|
||||
temp.append(buffer)
|
||||
|
||||
recommend_multi_pro_buff = "\n".join(temp)
|
||||
# print("after-splitlines multi pro buff = ", recommend_multi_pro_buff)
|
||||
|
||||
# recommend_multi_pro_buff = recommend_multi_pro.read()
|
||||
# recommend_multi_pro.close()
|
||||
|
||||
#read config
|
||||
multi_pro_config_file = open(directory_to_process + "/event/"+ filename)
|
||||
multi_pro_config = json.load(multi_pro_config_file)
|
||||
|
||||
# if has any 'reorder'
|
||||
order_list: list = []
|
||||
|
||||
index = 0
|
||||
promotion_name = []
|
||||
while index < len(multi_pro_config):
|
||||
promotion_config = multi_pro_config[index]
|
||||
index += 1
|
||||
|
||||
# add promotion name for create filename later
|
||||
promotion_name.append(promotion_config["name"])
|
||||
|
||||
#load template
|
||||
template_file = open(directory_to_process + promotion_config["template"])
|
||||
template = template_file.read()
|
||||
template_file.close()
|
||||
|
||||
# TODO: get script and replace ###event_on_click
|
||||
if gen_season_pass and promotion_config["name"].startswith("s") and "product_code_key" in promotion_config.keys():
|
||||
product_code = promotion_config["product_code_key"]
|
||||
script = None
|
||||
print("try find script for ", product_code)
|
||||
try:
|
||||
script = season_pass_menu_script[product_code]
|
||||
if "\\n" in script:
|
||||
script = script.replace("\\n", "\\\\n")
|
||||
except:
|
||||
pass
|
||||
|
||||
# print("script=", script)
|
||||
|
||||
if script != None:
|
||||
template = template.replace("###on_click_script", script.strip())
|
||||
|
||||
# replace state
|
||||
product_code_state = "$Sum" + ''.join(product_code.split('.')[1:]).replace("-","").replace("#","")
|
||||
product_code_list = product_code.split('.')[1:]
|
||||
pd_dot_btn = [pd +".Button" for pd in product_code_list if "#" not in pd]
|
||||
print("gen state", product_code_state)
|
||||
|
||||
# template = template.replace("BigButtonEnable", f"Flag( {','.join(pd_dot_btn)},Disable=Invisible,{product_code_state})")
|
||||
if "dev" in param:
|
||||
template = template.replace("BigButtonEnable", f"\"Enable\"")
|
||||
else:
|
||||
|
||||
template = template.replace("BigButtonEnable", f"{product_code_state}")
|
||||
|
||||
template = template.replace("###on_click_script", "")
|
||||
|
||||
for key, value in promotion_config["config"].items():
|
||||
template = template.replace("###"+key, '"' + value.strip() + '"')
|
||||
|
||||
promotion_block_str = '\r\n<Block>\r\n\t<State> PromotionState{0} </State>\r\n\t<MarginLeft> 33 </MarginLeft>\r\n\t<MarginTop> 22 </MarginTop>\r\n\t<Width> 484 </Width>\r\n\t<Height> 602 </Height>\r\n'.format(index)
|
||||
if gen_season_pass and promotion_config["name"].startswith("s") and "product_code_key" in promotion_config.keys():
|
||||
promotion_block_str = f"\r\n<Block>\r\n\t<State> Flag( {','.join(pd_dot_btn)},Disable=Invisible,{product_code_state}) </State>\r\n\t<MarginLeft> 33 </MarginLeft>\r\n\t<MarginTop> 22 </MarginTop>\r\n\t<Width> 484 </Width>\r\n\t<Height> 602 </Height>\r\n"
|
||||
|
||||
# insert overlay tag
|
||||
# promotion_block_str += season_pass_menu_big_btn_ui[f"{product_code}.overlay"].replace("menu_overlay_set", "event/menu_overlay_set")
|
||||
try:
|
||||
template = template.replace(";#Overlay", season_pass_menu_big_btn_ui[f"{product_code}.overlay"].replace("menu_overlay_set", "event/menu_overlay_set"))
|
||||
except:
|
||||
print("Overlay not found for "+product_code)
|
||||
pass
|
||||
|
||||
|
||||
if "dev" in param:
|
||||
promotion_block_str = f"\r\n<Block>\r\n\t<State> \"Enable\" </State>\r\n\t<MarginLeft> 33 </MarginLeft>\r\n\t<MarginTop> 22 </MarginTop>\r\n\t<Width> 484 </Width>\r\n\t<Height> 602 </Height>\r\n"
|
||||
|
||||
# Add text for price and name
|
||||
# season_pass_menu_big_btn_ui
|
||||
if gen_season_pass and promotion_config["name"].startswith("s") and "product_code_key" in promotion_config.keys():
|
||||
price_name_ui = season_pass_menu_big_btn_ui[product_code]
|
||||
if price_name_ui != None:
|
||||
print("get cloned ui OK")
|
||||
# print("preview\n", price_name_ui)
|
||||
template += "\r\n" + price_name_ui.replace("\\n", "\\\\n")
|
||||
|
||||
# <Image>
|
||||
# <X> 10 </X>
|
||||
# <Y> 10 </Y>
|
||||
# <Filename> "ROOT/taobin_project/inter/hkg/image/event/menu_overlay_set/gradeB/button_overlay_catalog_3_posi1.png" </Filename>
|
||||
# </Image>
|
||||
# print("after replace\n", template)
|
||||
|
||||
# try:
|
||||
# # get overlay
|
||||
# overlay_original_tag = season_pass_menu_big_btn_ui[f"{product_code}.overlay"]
|
||||
# # print(f"[OverlayClone] {product_code} --- "+overlay_original_tag+".")
|
||||
# overlay_new_path = " ".join(overlay_original_tag.split(' ')[3:-1]).replace("menu_overlay_set", "event/menu_overlay_set").replace(")","")
|
||||
# template += f"\t<Image>\r\n\t<X> 10 </X>\r\n\t<Y> 10 </Y>\r\n\t<Filename> {overlay_new_path} </Filename>\r\n\t</Image>\r\n"
|
||||
# except:
|
||||
# print("\t\t> Overlay not found for "+product_code+"\n")
|
||||
|
||||
|
||||
|
||||
promotion_block_str += template
|
||||
|
||||
|
||||
|
||||
promotion_block_str += '\r\n</Block>\r\n'
|
||||
|
||||
recommend_multi_pro_buff = re.sub(r'(?is)(;block{0}).*(;endblock{0})'.format(index), r'\1{0}\2'.format(promotion_block_str), recommend_multi_pro_buff)
|
||||
# print("before idx cond check", recommend_multi_pro_buff)
|
||||
# Path("./before_idx_cond_check."+str(index)).write_text(recommend_multi_pro_buff, encoding="utf-8")
|
||||
|
||||
if gen_season_pass and promotion_config["name"].startswith("s") and "product_code_key" in promotion_config.keys():
|
||||
current_season = int([ s for s in product_code.split('.')[0]][1])
|
||||
print("[REPL] season ", current_season)
|
||||
filter_sm = [ pd for pd in season_pass_menu[current_season] if pd.endswith("sm")]
|
||||
print("[SM] expect at least 4, ", len(filter_sm))
|
||||
|
||||
has_reorder = "reorder" in promotion_config.keys()
|
||||
# interact_idx = (-1, -1)
|
||||
# do load list
|
||||
if has_reorder:
|
||||
print("reorder mode")
|
||||
order_list = promotion_config["reorder"]
|
||||
print(json.dumps(order_list, indent=2), " while ", json.dumps(filter_sm, indent=2))
|
||||
# buffer_key = ""
|
||||
|
||||
# new_sorted_list = [
|
||||
# "",
|
||||
# "",
|
||||
# "",
|
||||
# ""
|
||||
# ]
|
||||
|
||||
filter_sm = order_list
|
||||
|
||||
# sort by has_order
|
||||
# for filtered in filter_sm:
|
||||
# print("try reorder", filtered, order_list)
|
||||
# # get index from order
|
||||
# expect_index = order_list.index(filtered)
|
||||
# # interact_idx[0] = expect_index
|
||||
# print("get expect = ", expect_index)
|
||||
# current_index = filter_sm.index(filtered)
|
||||
# # interact_idx[1] = current_index
|
||||
# print("get current = ", current_index)
|
||||
# is_matched_index = expect_index != -1 and expect_index == current_index
|
||||
# print(f"check match {filtered}: ", not is_matched_index)
|
||||
|
||||
|
||||
# # apply to new list
|
||||
# new_sorted_list[expect_index] = filtered
|
||||
|
||||
|
||||
|
||||
# if not is_matched_index:
|
||||
# print(f"swap current={filtered}@{current_index} to position@{expect_index} was {filter_sm[expect_index]}")
|
||||
# buffer_key = filter_sm[expect_index]
|
||||
# filter_sm[expect_index] = filtered
|
||||
# filter_sm[current_index] = buffer_key
|
||||
# buffer_key = ""
|
||||
|
||||
# print("final reorder \n\n",filter_sm,order_list,"\n\n", new_sorted_list ,"\n\n")
|
||||
# try get block
|
||||
generated_block_buffer = ""
|
||||
for sm_menu in filter_sm:
|
||||
|
||||
if ";season-sm-block" not in recommend_multi_pro_buff:
|
||||
print("expect already generated")
|
||||
break
|
||||
|
||||
try:
|
||||
sm_menu = ".".join(sm_menu.split(".")[:-1])
|
||||
print("sm_menu", sm_menu)
|
||||
|
||||
curr_sm_block = store_block_list[sm_menu]
|
||||
curr_sm_block = curr_sm_block.replace(",$Sum", ",Disable=Invisible,$Sum").replace("\\n", "\\\\n")
|
||||
generated_block_buffer += curr_sm_block
|
||||
|
||||
# if "52-05-02-0076" in sm_menu:
|
||||
# print("52-05-02-0076", generated_block_buffer)
|
||||
except:
|
||||
print("Cannot find store block for ", sm_menu)
|
||||
pass
|
||||
|
||||
|
||||
# replace by set of season menus
|
||||
if generated_block_buffer != "" and ";season-sm-block" in recommend_multi_pro_buff:
|
||||
print("init replace block")
|
||||
recommend_multi_pro_buff = re.sub(r'(?is);season-sm-block.*?;end-season-sm-block', generated_block_buffer, recommend_multi_pro_buff)
|
||||
# print(recommend_multi_pro_buff)
|
||||
# recommend_multi_pro_buff = recommend_multi_pro_buff.replace("\\n", "\\n")
|
||||
|
||||
|
||||
|
||||
# Path("./generated_buffer_sm."+str(index)).write_text(recommend_multi_pro_buff, encoding="utf-8")
|
||||
|
||||
if index == 2:
|
||||
# expend block3 to full width bottom
|
||||
inner_block = re.search(r'(?is);block{0}(.*);endblock{0}'.format(index+1), recommend_multi_pro_buff).group(1)
|
||||
inner_block = inner_block.replace("<Width> 516 </Width>", "<Width> 1032 </Width>", 2)
|
||||
inner_block = inner_block.replace("<Max> 4 </Max>", "<Max> 8 </Max>", 1)
|
||||
inner_block = inner_block.replace("<Column> 2 </Column>", "<Column> 4 </Column>", 1)
|
||||
recommend_multi_pro_buff = re.sub(r'(?is)(;block{0}).*(;endblock{0})'.format(index+1), r'\1{0}\2'.format(inner_block), recommend_multi_pro_buff)
|
||||
|
||||
# remove block4
|
||||
recommend_multi_pro_buff = re.sub(r'(?is)(;block{0}).*(;endblock{0})'.format(index+2), r'\1\2', recommend_multi_pro_buff)
|
||||
# print("after idx 2 cond check", recommend_multi_pro_buff)
|
||||
|
||||
if index == 3:
|
||||
# create expand block
|
||||
# print("inner block2. Is buffer contain ;block?", ";block" in recommend_multi_pro_buff, re.search(r'(?is)(;block{0}.*;endblock{0})'.format(index+1), recommend_multi_pro_buff))
|
||||
inner_block2 = re.search(r'(?is)(;block{0}.*;endblock{0})'.format(index+1), recommend_multi_pro_buff).group(1)
|
||||
|
||||
# print("inner_block2 = ", inner_block2)
|
||||
# Path("./inner_block2."+str(index)).write_text(inner_block2, encoding="utf-8")
|
||||
# Path("./inner_block2_buffer."+str(index)).write_text(recommend_multi_pro_buff, encoding="utf-8")
|
||||
|
||||
|
||||
inner_block2 = inner_block2.replace(";block{0}".format(index+1), ";block{0}-expand".format(index+1))
|
||||
# print("inner_block2_1 = ", inner_block2)
|
||||
# Path("./inner_block2_1."+str(index)).write_text(inner_block2, encoding="utf-8")
|
||||
# Path("./inner_block2_1_buffer."+str(index)).write_text(recommend_multi_pro_buff, encoding="utf-8")
|
||||
|
||||
|
||||
inner_block2 = inner_block2.replace(";endblock{0}".format(index+1), ";endblock{0}-expand".format(index+1))
|
||||
# print("inner_block2_2 = ", inner_block2)
|
||||
# Path("./inner_block2_2."+str(index)).write_text(inner_block2, encoding="utf-8")
|
||||
# Path("./inner_block2_2_buffer."+str(index)).write_text(recommend_multi_pro_buff, encoding="utf-8")
|
||||
# print(f"inner_block2_2.buffer {index} = ", recommend_multi_pro_buff)
|
||||
|
||||
inner_block2 = inner_block2.replace("<Width> 516 </Width>", "<Width> 1032 </Width>", 2)
|
||||
|
||||
# inner_block2 = inner_block2.replace("<State> \"Enable\" </State> ", "<State>\r\n\teval(\r\n\tIf PromotionState{0} = \"Enable\" Then\r\n\t\tVar block_expend_show = \"Invisible\"\r\n\tElse\r\n\t\tVar block_expend_show = \"Enable\"\r\n\tEndIf\r\n\tVar return = block_expend_show\r\n\t)\r\n</State>".format(index), 1)
|
||||
inner_block2 = inner_block2.replace("<Max> 4 </Max>", "<Max>\r\neval(\r\n\tIf CountEnablePromotion > 2 Then\r\n\t\tVar max_count = 4\r\n\tElse\r\n\t\tVar max_count = 8\r\n\tEndIf\r\n\tVar return = max_count\r\n)\r\n</Max>", 1)
|
||||
inner_block2 = inner_block2.replace("<Column> 2 </Column>", "<Column>\r\neval(\r\n\tIf CountEnablePromotion > 2 Then\r\n\t\tVar column_count = 2\r\n\tElse\r\n\t\tVar column_count = 4\r\n\tEndIf\r\n\tVar return = column_count\r\n)\r\n</Column>", 1)
|
||||
# print("inner_block2_3 = ", inner_block2)
|
||||
if "\\n" in inner_block2:
|
||||
inner_block2 = inner_block2.replace("\\n", "\\\\n")
|
||||
recommend_multi_pro_buff = re.sub(r'(?is);block{0}.*;endblock{0}'.format(index+1), inner_block2, recommend_multi_pro_buff)
|
||||
|
||||
# print("after idx 3 cond check", recommend_multi_pro_buff)
|
||||
# print("index = ", index)
|
||||
|
||||
|
||||
# create promotion file
|
||||
count_name_dict = {
|
||||
2: "double_",
|
||||
3: "triple_"
|
||||
}
|
||||
|
||||
# print("write buffer encode: ", str(recommend_multi_pro_buff))
|
||||
|
||||
# test
|
||||
# print("test pathlib", Path(directory_to_process + "/page_catalog_group_recommend_multi_pro.lxml").read_text())
|
||||
|
||||
|
||||
# promo_file = open(directory_to_process + "/event/" + count_name_dict[len(multi_pro_config)]+ "promotion_" + "_and_".join(promotion_name) + ".lxml", "w")
|
||||
Path(directory_to_process + "/event/" + count_name_dict[len(multi_pro_config)]+ "promotion_" + "_and_".join(promotion_name) + ".lxml").write_text(recommend_multi_pro_buff, encoding="utf-8")
|
||||
|
||||
|
||||
# promo_file.write(recommend_multi_pro_buff)
|
||||
# # promo_file.writelines(recommend_multi_pro_buff.split("\r\n"))
|
||||
# promo_file.close()
|
||||
50
inter/hkg/xml/event/multi_promotion_config_season1.json
Normal file
50
inter/hkg/xml/event/multi_promotion_config_season1.json
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
[
|
||||
{
|
||||
"name": "s1topleft",
|
||||
"template": "/event/promotion_template.inc",
|
||||
"product_code_key": "s1.52-21-01-0007.52-21-02-0004.52-21-03-0004",
|
||||
"config": {
|
||||
"normal_eng": "ROOT/taobin_project/inter/sgp/image/event/season_pass/bn_hot_caramel_latte.png",
|
||||
"normal_thai": "ROOT/taobin_project/inter/sgp/image/event/season_pass/bn_hot_caramel_latte.png",
|
||||
"press_eng": "ROOT/taobin_project/inter/sgp/image/event/season_pass/bp_hot_caramel_latte.png",
|
||||
"press_thai": "ROOT/taobin_project/inter/sgp/image/event/season_pass/bp_hot_caramel_latte.png",
|
||||
"disable_eng": "ROOT/taobin_project/inter/sgp/image/event/season_pass/bd_hot_caramel_latte.png",
|
||||
"disable_thai": "ROOT/taobin_project/inter/sgp/image/event/season_pass/bd_hot_caramel_latte.png",
|
||||
"event_on_click": "ROOT/taobin_project/xml/page_topping_select6.lxml"
|
||||
},
|
||||
"reorder": [
|
||||
"-.52-05-02-0076.-.sm",
|
||||
"52-21-01-0004.52-21-02-0002.52-21-03-0002.sm",
|
||||
"52-02-01-0039.52-02-02-0039.52-02-03-0039.sm",
|
||||
"-.52-05-02-0025.52-05-03-0025.sm"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "s1topright",
|
||||
"template": "/event/promotion_template.inc",
|
||||
"product_code_key": "s1.##-##-##-####.##-##-##-####.52-03-03-0009",
|
||||
"config": {
|
||||
"normal_eng": "ROOT/taobin_project/inter/sgp/image/event/season_pass/bn_smoothie_oreo.png",
|
||||
"normal_thai": "ROOT/taobin_project/inter/sgp/image/event/season_pass/bn_smoothie_oreo.png",
|
||||
"press_eng": "ROOT/taobin_project/inter/sgp/image/event/season_pass/bp_smoothie_oreo.png",
|
||||
"press_thai": "ROOT/taobin_project/inter/sgp/image/event/season_pass/bp_smoothie_oreo.png",
|
||||
"disable_eng": "ROOT/taobin_project/inter/sgp/image/event/season_pass/bd_smoothie_oreo.png",
|
||||
"disable_thai": "ROOT/taobin_project/inter/sgp/image/event/season_pass/bd_smoothie_oreo.png",
|
||||
"event_on_click": "ROOT/taobin_project/xml/page_topping_select6.lxml"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "s1botleft",
|
||||
"template": "/event/promotion_template.inc",
|
||||
"product_code_key": "s1.52-02-01-0026.52-02-02-0026.52-02-03-0026",
|
||||
"config": {
|
||||
"normal_eng": "ROOT/taobin_project/inter/sgp/image/event/season_pass/bn_hot_matcha_milk_tea.png",
|
||||
"normal_thai": "ROOT/taobin_project/inter/sgp/image/event/season_pass/bn_hot_matcha_milk_tea.png",
|
||||
"press_eng": "ROOT/taobin_project/inter/sgp/image/event/season_pass/bp_hot_matcha_milk_tea.png",
|
||||
"press_thai": "ROOT/taobin_project/inter/sgp/image/event/season_pass/bp_hot_matcha_milk_tea.png",
|
||||
"disable_eng": "ROOT/taobin_project/inter/sgp/image/event/season_pass/bd_hot_matcha_milk_tea.png",
|
||||
"disable_thai": "ROOT/taobin_project/inter/sgp/image/event/season_pass/bd_hot_matcha_milk_tea.png",
|
||||
"event_on_click": "ROOT/taobin_project/xml/page_topping_select6.lxml"
|
||||
}
|
||||
}
|
||||
]
|
||||
50
inter/hkg/xml/event/multi_promotion_config_season2.json
Normal file
50
inter/hkg/xml/event/multi_promotion_config_season2.json
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
[
|
||||
{
|
||||
"name": "s2topleft",
|
||||
"template": "/event/promotion_template.inc",
|
||||
"product_code_key": "s2.52-21-01-0006.52-21-02-0003.52-21-03-0003",
|
||||
"config": {
|
||||
"normal_eng": "ROOT/taobin_project/inter/sgp/image/event/season_pass/bn_hot_mocha.png",
|
||||
"normal_thai": "ROOT/taobin_project/inter/sgp/image/event/season_pass/bn_hot_mocha.png",
|
||||
"press_eng": "ROOT/taobin_project/inter/sgp/image/event/season_pass/bn_hot_mocha.png",
|
||||
"press_thai": "ROOT/taobin_project/inter/sgp/image/event/season_pass/bn_hot_mocha.png",
|
||||
"disable_eng": "ROOT/taobin_project/inter/sgp/image/event/season_pass/bn_hot_mocha.png",
|
||||
"disable_thai": "ROOT/taobin_project/inter/sgp/image/event/season_pass/bn_hot_mocha.png",
|
||||
"event_on_click": "ROOT/taobin_project/xml/page_topping_select6.lxml"
|
||||
},
|
||||
"reorder": [
|
||||
"-.52-05-02-0045.-.sm",
|
||||
"52-21-01-0005.52-31-02-0002.52-31-03-0002.sm",
|
||||
"52-02-01-0026.52-02-02-0026.52-02-03-0026.sm",
|
||||
"-.52-05-02-0074.52-05-03-0074.sm"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "s2topright",
|
||||
"template": "/event/promotion_template.inc",
|
||||
"product_code_key": "s2.##-##-##-####.##-##-##-####.52-03-03-0049",
|
||||
"config": {
|
||||
"normal_eng": "ROOT/taobin_project/inter/sgp/image/event/season_pass/bn_iced_Milovalcocoa_smoothie.png",
|
||||
"normal_thai": "ROOT/taobin_project/inter/sgp/image/event/season_pass/bn_iced_Milovalcocoa_smoothie.png",
|
||||
"press_eng": "ROOT/taobin_project/inter/sgp/image/event/season_pass/bp_iced_Milovalcocoa_smoothie.png",
|
||||
"press_thai": "ROOT/taobin_project/inter/sgp/image/event/season_pass/bp_iced_Milovalcocoa_smoothie.png",
|
||||
"disable_eng": "ROOT/taobin_project/inter/sgp/image/event/season_pass/bn_iced_Milovalcocoa_smoothie.png",
|
||||
"disable_thai": "ROOT/taobin_project/inter/sgp/image/event/season_pass/bn_iced_Milovalcocoa_smoothie.png",
|
||||
"event_on_click": "ROOT/taobin_project/xml/page_topping_select6.lxml"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "s2botleft",
|
||||
"template": "/event/promotion_template.inc",
|
||||
"product_code_key": "s2.52-02-01-0039.52-02-02-0039.52-02-03-0039",
|
||||
"config": {
|
||||
"normal_eng": "ROOT/taobin_project/inter/sgp/image/event/season_pass/bn_thai_milk_tea_SingPark.png",
|
||||
"normal_thai": "ROOT/taobin_project/inter/sgp/image/event/season_pass/bn_thai_milk_tea_SingPark.png",
|
||||
"press_eng": "ROOT/taobin_project/inter/sgp/image/event/season_pass/bp_thai_milk_tea_SingPark.png",
|
||||
"press_thai": "ROOT/taobin_project/inter/sgp/image/event/season_pass/bp_thai_milk_tea_SingPark.png",
|
||||
"disable_eng": "ROOT/taobin_project/inter/sgp/image/event/season_pass/bn_thai_milk_tea_SingPark.png",
|
||||
"disable_thai": "ROOT/taobin_project/inter/sgp/image/event/season_pass/bn_thai_milk_tea_SingPark.png",
|
||||
"event_on_click": "ROOT/taobin_project/xml/page_topping_select6.lxml"
|
||||
}
|
||||
}
|
||||
]
|
||||
50
inter/hkg/xml/event/multi_promotion_config_season3.json
Normal file
50
inter/hkg/xml/event/multi_promotion_config_season3.json
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
[
|
||||
{
|
||||
"name": "s3topleft",
|
||||
"template": "/event/promotion_template.inc",
|
||||
"product_code_key": "s3.52-21-01-0005.52-31-02-0002.52-31-03-0002",
|
||||
"config": {
|
||||
"normal_eng": "ROOT/taobin_project/inter/sgp/image/event/season_pass/bn_hot_cappuccino.png",
|
||||
"normal_thai": "ROOT/taobin_project/inter/sgp/image/event/season_pass/bn_hot_cappuccino.png",
|
||||
"press_eng": "ROOT/taobin_project/inter/sgp/image/event/season_pass/bp_hot_cappuccino.png",
|
||||
"press_thai": "ROOT/taobin_project/inter/sgp/image/event/season_pass/bp_hot_cappuccino.png",
|
||||
"disable_eng": "ROOT/taobin_project/inter/sgp/image/event/season_pass/bn_hot_cappuccino.png",
|
||||
"disable_thai": "ROOT/taobin_project/inter/sgp/image/event/season_pass/bn_hot_cappuccino.png",
|
||||
"event_on_click": "ROOT/taobin_project/xml/page_topping_select6.lxml"
|
||||
},
|
||||
"reorder": [
|
||||
"-.52-05-02-0117.-.sm",
|
||||
"52-21-01-0003.52-21-02-0001.-.sm",
|
||||
"52-02-01-0039.52-02-02-0039.52-02-03-0039.sm",
|
||||
"-.52-05-02-0033.52-05-03-0033.sm"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "s3topright",
|
||||
"template": "/event/promotion_template.inc",
|
||||
"product_code_key": "s3.##-##-##-####.52-04-02-0002.##-##-##-####",
|
||||
"config": {
|
||||
"normal_eng": "ROOT/taobin_project/inter/sgp/image/event/season_pass/bn_protein_Chocolate.png",
|
||||
"normal_thai": "ROOT/taobin_project/inter/sgp/image/event/season_pass/bn_protein_Chocolate.png",
|
||||
"press_eng": "ROOT/taobin_project/inter/sgp/image/event/season_pass/bp_protein_Chocolate.png",
|
||||
"press_thai": "ROOT/taobin_project/inter/sgp/image/event/season_pass/bp_protein_Chocolate.png",
|
||||
"disable_eng": "ROOT/taobin_project/inter/sgp/image/event/season_pass/bn_protein_Chocolate.png",
|
||||
"disable_thai": "ROOT/taobin_project/inter/sgp/image/event/season_pass/bn_protein_Chocolate.png",
|
||||
"event_on_click": "ROOT/taobin_project/xml/page_topping_select6.lxml"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "s3botleft",
|
||||
"template": "/event/promotion_template.inc",
|
||||
"product_code_key": "s3.##-##-##-####.##-##-##-####.52-03-03-0027",
|
||||
"config": {
|
||||
"normal_eng": "ROOT/taobin_project/inter/sgp/image/event/season_pass/bn_StrawberrOreo_smoothie.png",
|
||||
"normal_thai": "ROOT/taobin_project/inter/sgp/image/event/season_pass/bn_StrawberrOreo_smoothie.png",
|
||||
"press_eng": "ROOT/taobin_project/inter/sgp/image/event/season_pass/bp_StrawberrOreo_smoothie.png",
|
||||
"press_thai": "ROOT/taobin_project/inter/sgp/image/event/season_pass/bp_StrawberrOreo_smoothie.png",
|
||||
"disable_eng": "ROOT/taobin_project/inter/sgp/image/event/season_pass/bn_StrawberrOreo_smoothie.png",
|
||||
"disable_thai": "ROOT/taobin_project/inter/sgp/image/event/season_pass/bn_StrawberrOreo_smoothie.png",
|
||||
"event_on_click": "ROOT/taobin_project/xml/page_topping_select6.lxml"
|
||||
}
|
||||
}
|
||||
]
|
||||
1
inter/hkg/xml/event/out_put_file1.txt
Normal file
1
inter/hkg/xml/event/out_put_file1.txt
Normal file
|
|
@ -0,0 +1 @@
|
|||
/event/promotion_pepsi_099.lxml
|
||||
1
inter/hkg/xml/event/out_put_file2.txt
Normal file
1
inter/hkg/xml/event/out_put_file2.txt
Normal file
|
|
@ -0,0 +1 @@
|
|||
/event/promotion_2.xml
|
||||
1
inter/hkg/xml/event/out_put_file3.txt
Normal file
1
inter/hkg/xml/event/out_put_file3.txt
Normal file
|
|
@ -0,0 +1 @@
|
|||
/event/promotion_3.xml
|
||||
12288
inter/hkg/xml/event/promotion_2.xml
Normal file
12288
inter/hkg/xml/event/promotion_2.xml
Normal file
File diff suppressed because it is too large
Load diff
12865
inter/hkg/xml/event/promotion_3.xml
Normal file
12865
inter/hkg/xml/event/promotion_3.xml
Normal file
File diff suppressed because it is too large
Load diff
48
inter/hkg/xml/event/promotion_config.json
Normal file
48
inter/hkg/xml/event/promotion_config.json
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
{
|
||||
"recommendPath": "/sdcard/coffeevending/taobin_project/xml/page_catalog_group_recommend.xml",
|
||||
"dummyLayoutPath": "/sdcard/coffeevending/taobin_project/xml/dummy_layout.inc",
|
||||
"trickerYamlPath": "/sdcard/coffeevending/taobin_project/xml/event/tricker.yaml",
|
||||
"outDir": "/sdcard/coffeevending/taobin_project/xml/event/",
|
||||
"templates": [
|
||||
{
|
||||
"name": "promotion_pepsi",
|
||||
"path": "/sdcard/coffeevending/taobin_project/xml/event/promotion_template1.inc",
|
||||
"onclickFile": "/sdcard/coffeevending/taobin_project/xml/event/promotion_onclick1.inc",
|
||||
"imagesTemplate": {
|
||||
"normal_eng": "ROOT/taobin_project/image/event/welcomedrink_en.png",
|
||||
"normal_thai": "ROOT/taobin_project/image/event/welcomedrink.png",
|
||||
"press_eng": "ROOT/taobin_project/image/event/welcomedrink_en.png",
|
||||
"press_thai": "ROOT/taobin_project/image/event/welcomedrink.png",
|
||||
"disable_eng": "ROOT/taobin_project/image/event/welcomedrink_en.png",
|
||||
"disable_thai": "ROOT/taobin_project/image/event/welcomedrink.png"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "promotion_pepsi_end",
|
||||
"path": "/sdcard/coffeevending/taobin_project/xml/event/promotion_template2.inc",
|
||||
"onclickFile": "/sdcard/coffeevending/taobin_project/xml/event/promotion_onclick2.inc",
|
||||
"imagesTemplate": {
|
||||
"normal_eng": "ROOT/taobin_project/image/event/bn_pepsi_buy2_save_move_end_en.png",
|
||||
"normal_thai": "ROOT/taobin_project/image/event/bn_pepsi_buy2_save_move_end_th.png",
|
||||
"press_eng": "ROOT/taobin_project/image/event/bn_pepsi_buy2_save_move_end_en.png",
|
||||
"press_thai": "ROOT/taobin_project/image/event/bn_pepsi_buy2_save_move_end_th.png",
|
||||
"disable_eng": "ROOT/taobin_project/image/event/bn_pepsi_buy2_save_move_end_en.png",
|
||||
"disable_thai": "ROOT/taobin_project/image/event/bn_pepsi_buy2_save_move_end_th.png"
|
||||
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "promotion_mystery_cup_35",
|
||||
"path": "/sdcard/coffeevending/taobin_project/xml/event/promotion_template3.inc",
|
||||
"onclickFile": "/sdcard/coffeevending/taobin_project/xml/event/promotion_onclick3.inc",
|
||||
"imagesTemplate": {
|
||||
"normal_eng": "ROOT/taobin_project/image/event/pro_mystery_cup_en.png",
|
||||
"normal_thai": "ROOT/taobin_project/image/event/pro_mystery_cup_th.png",
|
||||
"press_eng": "ROOT/taobin_project/image/event/pro_mystery_cup_en.png",
|
||||
"press_thai": "ROOT/taobin_project/image/event/pro_mystery_cup_th.png",
|
||||
"disable_eng": "ROOT/taobin_project/image/event/pro_mystery_cup_en.png",
|
||||
"disable_thai": "ROOT/taobin_project/image/event/pro_mystery_cup_th.png"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
84
inter/hkg/xml/event/promotion_onclick1.inc
Normal file
84
inter/hkg/xml/event/promotion_onclick1.inc
Normal file
|
|
@ -0,0 +1,84 @@
|
|||
Var PictureDrink = "ROOT/taobin_project/image/page_drink_picture2_n/" + "bn_iced_pepsi.png"
|
||||
Var OpenFromXML = CurrentXMLFileName2
|
||||
Var PriceD1 = $-.Price
|
||||
Var PriceD2 = 99
|
||||
Var PriceD3 = $12-05-03-0007.Price
|
||||
Var PD_CODE1 = "##-##-##-####"
|
||||
Var PD_CODE2 = "12-05-02-0007"
|
||||
Var PD_CODE3 = "12-05-03-0007"
|
||||
; begin lang
|
||||
Var aliasName[0] = "PEPSI"
|
||||
Var aliasDesc[0] = "Pepsi & Ice"
|
||||
Var aliasName[1] = "เป๊ปซี่น้ำแข็ง"
|
||||
Var aliasDesc[1] = "เป๊ปซี่"
|
||||
Var aliasName[2] = "-"
|
||||
Var aliasDesc[2] = "-"
|
||||
Var aliasName[3] = "-"
|
||||
Var aliasDesc[3] = "-"
|
||||
Var aliasName[4] = "PEPSI"
|
||||
Var aliasDesc[4] = "Pepsi, Ais"
|
||||
Var NameLang[0][0] = ""
|
||||
Var NameLang[0][1] = ""
|
||||
Var NameLang[0][2] = ""
|
||||
Var NameLang[0][3] = ""
|
||||
Var NameLang[0][4] = ""
|
||||
Var DescLang[0][0] = ""
|
||||
Var DescLang[0][1] = ""
|
||||
Var DescLang[0][2] = ""
|
||||
Var DescLang[0][3] = ""
|
||||
Var DescLang[0][4] = ""
|
||||
Var NameLang[1][0] = "PEPSI"
|
||||
Var NameLang[1][1] = "เป๊ปซี่น้ำแข็ง"
|
||||
Var NameLang[1][2] = ""
|
||||
Var NameLang[1][3] = ""
|
||||
Var NameLang[1][4] = "PEPSI"
|
||||
Var DescLang[1][0] = "Pepsi, Ice"
|
||||
Var DescLang[1][1] = "เป๊ปซี่ และน้ำแข็ง"
|
||||
Var DescLang[1][2] = ""
|
||||
Var DescLang[1][3] = ""
|
||||
Var DescLang[1][4] = "Pepsi, Ais"
|
||||
Var NameLang[2][0] = "TAO SLUSHIE"
|
||||
Var NameLang[2][1] = "เต่าสลัชชี่"
|
||||
Var NameLang[2][2] = ""
|
||||
Var NameLang[2][3] = ""
|
||||
Var NameLang[2][4] = "TAO SLUSHIE"
|
||||
Var DescLang[2][0] = "Pepsi, Ice"
|
||||
Var DescLang[2][1] = "เป๊ปซี่ และน้ำแข็ง"
|
||||
Var DescLang[2][2] = ""
|
||||
Var DescLang[2][3] = ""
|
||||
Var DescLang[2][4] = "Pepsi, Ais"
|
||||
; end lang
|
||||
Var PD_STAGE_1 = "Disable2"
|
||||
Var PD_STAGE_2 = $12-05-02-0007.Button
|
||||
Var PD_STAGE_3 = $12-05-03-0007.Button
|
||||
Var SelectCountDrinkType = 0
|
||||
Var DefaultDrinkType = 0
|
||||
If PD_STAGE_1 = "Enable" Then
|
||||
Var SelectCountDrinkType = SelectCountDrinkType + 1
|
||||
Var DefaultDrinkType = 1
|
||||
EndIf
|
||||
If PD_STAGE_2 = "Enable" Then
|
||||
Var SelectCountDrinkType = SelectCountDrinkType + 1
|
||||
Var DefaultDrinkType = 2
|
||||
EndIf
|
||||
If PD_STAGE_3 = "Enable" Then
|
||||
Var SelectCountDrinkType = SelectCountDrinkType + 1
|
||||
Var DefaultDrinkType = 3
|
||||
EndIf
|
||||
If PD_STAGE_2 = "Enable" Then
|
||||
Topping "Load" "12-05-02-0007"
|
||||
Else
|
||||
If PD_STAGE_1 = "Enable" Then
|
||||
Topping "Load" "-"
|
||||
Else
|
||||
Topping "Load" "12-05-03-0007"
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
DEBUGVAR PD_STAGE_1
|
||||
DEBUGVAR PD_STAGE_2
|
||||
DEBUGVAR PD_STAGE_3
|
||||
Var SelectDrinkType = 0
|
||||
|
||||
|
||||
Open "ROOT/taobin_project/xml/page_topping_select6.lxml"
|
||||
1
inter/hkg/xml/event/promotion_onclick2.inc
Normal file
1
inter/hkg/xml/event/promotion_onclick2.inc
Normal file
|
|
@ -0,0 +1 @@
|
|||
Open "ROOT/taobin_project/xml/page_catalog_momday.xml"
|
||||
320
inter/hkg/xml/event/promotion_onclick3.inc
Normal file
320
inter/hkg/xml/event/promotion_onclick3.inc
Normal file
|
|
@ -0,0 +1,320 @@
|
|||
Var BigButtonEnable = "Invisible"
|
||||
|
||||
DEBUGVAR BigButtonEnable
|
||||
DEBUGVAR OreoGuarantee
|
||||
|
||||
; Enable all 4 buttons
|
||||
Var SubRandMilkButtonEnable = "Enable"
|
||||
DEBUGVAR SubRandMilkButtonEnable
|
||||
|
||||
Var SubRandTeaButtonEnable = "Enable"
|
||||
DEBUGVAR SubRandTeaButtonEnable
|
||||
|
||||
Var SubRandCoffButtonEnable = "Enable"
|
||||
DEBUGVAR SubRandCoffButtonEnable
|
||||
|
||||
Var SubRandAllButtonEnable = "Enable"
|
||||
DEBUGVAR SubRandAllButtonEnable
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
; For real, yeah for real
|
||||
; All random cup
|
||||
|
||||
Var IndexOfAllRandom = 0
|
||||
Var IndexOfMilk = 0
|
||||
Var IndexOfTea = 0
|
||||
Var IndexOfCoffee = 0
|
||||
|
||||
Var IndexOfRateupOreoAll = 0
|
||||
Var IndexOfRateupOreoMilk = 0
|
||||
Var IndexOfRateupOreoTea = 0
|
||||
Var IndexOfRateupOreoCoffee = 0
|
||||
|
||||
; Oreo smoothie volcano
|
||||
If $12-99-03-0020.Button = "Enable" Then
|
||||
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0020"
|
||||
Var ListOfMilk[IndexOfMilk] = "12-99-03-0020"
|
||||
|
||||
Var ListOfOreoAll[IndexOfRateupOreoAll] = "12-99-03-0020"
|
||||
Var ListOfOreoMilk[IndexOfRateupOreoMilk] = "12-99-03-0020"
|
||||
|
||||
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||
Var IndexOfMilk = IndexOfMilk + 1
|
||||
|
||||
Var IndexOfRateupOreoAll = IndexOfRateupOreoAll + 1
|
||||
Var IndexOfRateupOreoMilk = IndexOfRateupOreoMilk + 1
|
||||
EndIf
|
||||
|
||||
; Pink milk oreo volcano
|
||||
If $12-99-03-0021.Button = "Enable" Then
|
||||
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0021"
|
||||
Var ListOfMilk[IndexOfMilk] = "12-99-03-0021"
|
||||
|
||||
Var ListOfOreoAll[IndexOfRateupOreoAll] = "12-99-03-0021"
|
||||
Var ListOfOreoMilk[IndexOfRateupOreoMilk] = "12-99-03-0021"
|
||||
|
||||
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||
Var IndexOfMilk = IndexOfMilk + 1
|
||||
|
||||
Var IndexOfRateupOreoAll = IndexOfRateupOreoAll + 1
|
||||
Var IndexOfRateupOreoMilk = IndexOfRateupOreoMilk + 1
|
||||
EndIf
|
||||
|
||||
; Choco oreo volcano
|
||||
If $12-99-03-0022.Button = "Enable" Then
|
||||
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0022"
|
||||
Var ListOfMilk[IndexOfMilk] = "12-99-03-0022"
|
||||
|
||||
Var ListOfOreoAll[IndexOfRateupOreoAll] = "12-99-03-0022"
|
||||
Var ListOfOreoMilk[IndexOfRateupOreoMilk] = "12-99-03-0022"
|
||||
|
||||
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||
Var IndexOfMilk = IndexOfMilk + 1
|
||||
|
||||
Var IndexOfRateupOreoAll = IndexOfRateupOreoAll + 1
|
||||
Var IndexOfRateupOreoMilk = IndexOfRateupOreoMilk + 1
|
||||
EndIf
|
||||
|
||||
; Caramel milk oreo volcano
|
||||
If $12-99-03-0023.Button = "Enable" Then
|
||||
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0023"
|
||||
Var ListOfMilk[IndexOfMilk] = "12-99-03-0023"
|
||||
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||
Var IndexOfMilk = IndexOfMilk + 1
|
||||
|
||||
Var ListOfOreoAll[IndexOfRateupOreoAll] = "12-99-03-0023"
|
||||
Var ListOfOreoMilk[IndexOfRateupOreoMilk] = "12-99-03-0023"
|
||||
Var IndexOfRateupOreoAll = IndexOfRateupOreoAll + 1
|
||||
Var IndexOfRateupOreoMilk = IndexOfRateupOreoMilk + 1
|
||||
EndIf
|
||||
|
||||
; Thai milk tea oreo smoothie
|
||||
If $12-99-03-0024.Button = "Enable" Then
|
||||
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0024"
|
||||
Var ListOfTea[IndexOfTea] = "12-99-03-0024"
|
||||
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||
Var IndexOfTea = IndexOfTea + 1
|
||||
|
||||
Var ListOfOreoAll[IndexOfRateupOreoAll] = "12-99-03-0024"
|
||||
Var ListOfOreoTea[IndexOfRateupOreoTea] = "12-99-03-0024"
|
||||
Var IndexOfRateupOreoAll = IndexOfRateupOreoAll + 1
|
||||
Var IndexOfRateupOreoTea = IndexOfRateupOreoTea + 1
|
||||
EndIf
|
||||
|
||||
; Cafe late oreo smoothie
|
||||
If $12-99-03-0025.Button = "Enable" Then
|
||||
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0025"
|
||||
Var ListOfCoffee[IndexOfCoffee] = "12-99-03-0025"
|
||||
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||
Var IndexOfCoffee = IndexOfCoffee + 1
|
||||
|
||||
Var ListOfOreoAll[IndexOfRateupOreoAll] = "12-99-03-0025"
|
||||
Var ListOfOreoCoffee[IndexOfRateupOreoCoffee] = "12-99-03-0025"
|
||||
Var IndexOfRateupOreoAll = IndexOfRateupOreoAll + 1
|
||||
Var IndexOfRateupOreoCoffee = IndexOfRateupOreoCoffee + 1
|
||||
EndIf
|
||||
|
||||
; Strawberry milk oreo volcano
|
||||
If $12-99-03-0026.Button = "Enable" Then
|
||||
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0026"
|
||||
Var ListOfMilk[IndexOfMilk] = "12-99-03-0026"
|
||||
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||
Var IndexOfMilk = IndexOfMilk + 1
|
||||
|
||||
Var ListOfOreoAll[IndexOfRateupOreoAll] = "12-99-03-0026"
|
||||
Var ListOfOreoMilk[IndexOfRateupOreoMilk] = "12-99-03-0026"
|
||||
Var IndexOfRateupOreoAll = IndexOfRateupOreoAll + 1
|
||||
Var IndexOfRateupOreoMilk = IndexOfRateupOreoMilk + 1
|
||||
EndIf
|
||||
|
||||
; Melon milk oreo volcano
|
||||
If $12-99-03-0027.Button = "Enable" Then
|
||||
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0027"
|
||||
Var ListOfMilk[IndexOfMilk] = "12-99-03-0027"
|
||||
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||
Var IndexOfMilk = IndexOfMilk + 1
|
||||
|
||||
Var ListOfOreoAll[IndexOfRateupOreoAll] = "12-99-03-0027"
|
||||
Var ListOfOreoMilk[IndexOfRateupOreoMilk] = "12-99-03-0027"
|
||||
Var IndexOfRateupOreoAll = IndexOfRateupOreoAll + 1
|
||||
Var IndexOfRateupOreoMilk = IndexOfRateupOreoMilk + 1
|
||||
EndIf
|
||||
|
||||
; Bana^2 milk oreo volcano
|
||||
If $12-99-03-0028.Button = "Enable" Then
|
||||
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0028"
|
||||
Var ListOfMilk[IndexOfMilk] = "12-99-03-0028"
|
||||
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||
Var IndexOfMilk = IndexOfMilk + 1
|
||||
|
||||
Var ListOfOreoAll[IndexOfRateupOreoAll] = "12-99-03-0028"
|
||||
Var ListOfOreoMilk[IndexOfRateupOreoMilk] = "12-99-03-0028"
|
||||
Var IndexOfRateupOreoAll = IndexOfRateupOreoAll + 1
|
||||
Var IndexOfRateupOreoMilk = IndexOfRateupOreoMilk + 1
|
||||
EndIf
|
||||
|
||||
; Hojicha oreo volcano
|
||||
If $12-99-03-0028.Button = "Enable" Then
|
||||
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0029"
|
||||
Var ListOfTea[IndexOfTea] = "12-99-03-0029"
|
||||
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||
Var IndexOfTea = IndexOfTea + 1
|
||||
|
||||
Var ListOfOreoAll[IndexOfRateupOreoAll] = "12-99-03-0029"
|
||||
Var ListOfOreoTea[IndexOfRateupOreoTea] = "12-99-03-0029"
|
||||
Var IndexOfRateupOreoAll = IndexOfRateupOreoAll + 1
|
||||
Var IndexOfRateupOreoMilk = IndexOfRateupOreoMilk + 1
|
||||
EndIf
|
||||
|
||||
; Thai milk tea smoothie
|
||||
If $12-99-03-0030.Button = "Enable" Then
|
||||
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0030"
|
||||
Var ListOfTea[IndexOfTea] = "12-99-03-0030"
|
||||
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||
Var IndexOfTea = IndexOfTea + 1
|
||||
EndIf
|
||||
|
||||
; Melon milk smoothie
|
||||
If $12-99-03-0031.Button = "Enable" Then
|
||||
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0031"
|
||||
Var ListOfMilk[IndexOfMilk] = "12-99-03-0031"
|
||||
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||
Var IndexOfMilk = IndexOfMilk + 1
|
||||
EndIf
|
||||
|
||||
; Taiwanese tea smoothie
|
||||
If $12-99-03-0032.Button = "Enable" Then
|
||||
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0032"
|
||||
Var ListOfTea[IndexOfTea] = "12-99-03-0032"
|
||||
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||
Var IndexOfTea = IndexOfTea + 1
|
||||
EndIf
|
||||
|
||||
; THAI MILK TEA OREO SMOOTHIE
|
||||
If $12-99-03-0040.Button = "Enable" Then
|
||||
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0040"
|
||||
Var ListOfTea[IndexOfTea] = "12-99-03-0040"
|
||||
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||
Var IndexOfTea = IndexOfTea + 1
|
||||
|
||||
Var ListOfOreoAll[IndexOfRateupOreoAll] = "12-99-03-0040"
|
||||
Var ListOfOreoTea[IndexOfRateupOreoTea] = "12-99-03-0040"
|
||||
Var IndexOfRateupOreoAll = IndexOfRateupOreoAll + 1
|
||||
Var IndexOfRateupOreoTea = IndexOfRateupOreoTea + 1
|
||||
EndIf
|
||||
|
||||
; THAI MILK TEA SMOOTHIE
|
||||
If $12-99-03-0041.Button = "Enable" Then
|
||||
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0041"
|
||||
Var ListOfTea[IndexOfTea] = "12-99-03-0041"
|
||||
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||
Var IndexOfTea = IndexOfTea + 1
|
||||
EndIf
|
||||
|
||||
|
||||
; Tokyo bana^2 milk smoothie
|
||||
If $12-99-03-0033.Button = "Enable" Then
|
||||
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0033"
|
||||
Var ListOfMilk[IndexOfMilk] = "12-99-03-0033"
|
||||
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||
Var IndexOfMilk = IndexOfMilk + 1
|
||||
EndIf
|
||||
|
||||
; Hojicha smoothie
|
||||
If $12-99-03-0034.Button = "Enable" Then
|
||||
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0034"
|
||||
Var ListOfTea[IndexOfTea] = "12-99-03-0034"
|
||||
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||
Var IndexOfTea = IndexOfTea + 1
|
||||
EndIf
|
||||
|
||||
; Cocoa bana^2 smoothie
|
||||
If $12-99-03-0035.Button = "Enable" Then
|
||||
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0035"
|
||||
Var ListOfMilk[IndexOfMilk] = "12-99-03-0035"
|
||||
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||
Var IndexOfMilk = IndexOfMilk + 1
|
||||
EndIf
|
||||
|
||||
; Taiwanese tea cafe latte smoothie
|
||||
If $12-99-03-0036.Button = "Enable" Then
|
||||
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0036"
|
||||
Var ListOfCoffee[IndexOfCoffee] = "12-99-03-0036"
|
||||
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||
Var IndexOfCoffee = IndexOfCoffee + 1
|
||||
EndIf
|
||||
|
||||
; Melon cafe latte smoothie
|
||||
If $12-99-03-0037.Button = "Enable" Then
|
||||
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0037"
|
||||
Var ListOfCoffee[IndexOfCoffee] = "12-99-03-0037"
|
||||
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||
Var IndexOfCoffee = IndexOfCoffee + 1
|
||||
EndIf
|
||||
|
||||
; Taiwanese tea cafe latte smoothie v2
|
||||
If $12-99-03-0038.Button = "Enable" Then
|
||||
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0038"
|
||||
Var ListOfCoffee[IndexOfCoffee] = "12-99-03-0038"
|
||||
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||
Var IndexOfCoffee = IndexOfCoffee + 1
|
||||
EndIf
|
||||
|
||||
; Melon cafe latte smoothie v2
|
||||
If $12-99-03-0039.Button = "Enable" Then
|
||||
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0039"
|
||||
Var ListOfCoffee[IndexOfCoffee] = "12-99-03-0039"
|
||||
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||
Var IndexOfCoffee = IndexOfCoffee + 1
|
||||
EndIf
|
||||
|
||||
|
||||
DEBUGVAR IndexOfAllRandom
|
||||
DEBUGVAR IndexOfCoffee
|
||||
DEBUGVAR IndexOfMilk
|
||||
DEBUGVAR IndexOfTea
|
||||
|
||||
DEBUGVAR IndexOfRateupOreoAll
|
||||
DEBUGVAR IndexOfRateupOreoCoffee
|
||||
DEBUGVAR IndexOfRateupOreoMilk
|
||||
DEBUGVAR IndexOfRateupOreoTea
|
||||
|
||||
If IndexOfAllRandom = 0 Then
|
||||
Var SubRandAllButtonEnable = "Disable"
|
||||
EndIf
|
||||
|
||||
If IndexOfCoffee = 0 Then
|
||||
Var SubRandCoffButtonEnable = "Disable"
|
||||
EndIf
|
||||
If IndexOfMilk = 0 Then
|
||||
Var SubRandMilkButtonEnable = "Disable"
|
||||
EndIf
|
||||
If IndexOfTea = 0 Then
|
||||
Var SubRandTeaButtonEnable = "Disable"
|
||||
EndIf
|
||||
|
||||
|
||||
If IndexOfRateupOreoAll = 0 Then
|
||||
Var SubRandAllButtonEnable = "Disable"
|
||||
EndIf
|
||||
|
||||
If IndexOfRateupOreoCoffee = 0 Then
|
||||
Var SubRandCoffButtonEnable = "Disable"
|
||||
EndIf
|
||||
If IndexOfRateupOreoMilk = 0 Then
|
||||
Var SubRandMilkButtonEnable = "Disable"
|
||||
EndIf
|
||||
If IndexOfRateupOreoTea = 0 Then
|
||||
Var SubRandTeaButtonEnable = "Disable"
|
||||
EndIf
|
||||
|
||||
|
||||
|
||||
|
||||
Var ResultRandomIndex = 0
|
||||
|
||||
|
||||
Refresh
|
||||
12372
inter/hkg/xml/event/promotion_pepsi_099.lxml
Normal file
12372
inter/hkg/xml/event/promotion_pepsi_099.lxml
Normal file
File diff suppressed because it is too large
Load diff
40
inter/hkg/xml/event/promotion_template.inc
Normal file
40
inter/hkg/xml/event/promotion_template.inc
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
|
||||
<Button>
|
||||
;#Overlay
|
||||
<State> BigButtonEnable </State>
|
||||
<Filename>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###normal_eng
|
||||
Else
|
||||
Var return = ###normal_thai
|
||||
EndIf
|
||||
)
|
||||
</Filename>
|
||||
<FilenamePress>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###press_eng
|
||||
Else
|
||||
Var return = ###press_thai
|
||||
EndIf
|
||||
)
|
||||
</FilenamePress>
|
||||
<FilenameDisable>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###disable_eng
|
||||
Else
|
||||
Var return = ###disable_thai
|
||||
EndIf
|
||||
)
|
||||
</FilenameDisable>
|
||||
<EventOnClick>
|
||||
|
||||
###on_click_script
|
||||
|
||||
Open ###event_on_click
|
||||
|
||||
</EventOnClick>
|
||||
|
||||
</Button>
|
||||
48
inter/hkg/xml/event/promotion_template1.inc
Normal file
48
inter/hkg/xml/event/promotion_template1.inc
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
|
||||
<Button>
|
||||
<X> 42 </X>
|
||||
<Y> 520 </Y>
|
||||
|
||||
<State> BigButtonEnable </State>
|
||||
<Filename>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###normal_eng
|
||||
Else
|
||||
Var return = ###normal_thai
|
||||
EndIf
|
||||
)
|
||||
</Filename>
|
||||
<FilenamePress>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###press_eng
|
||||
Else
|
||||
Var return = ###press_thai
|
||||
EndIf
|
||||
)
|
||||
</FilenamePress>
|
||||
<FilenameDisable>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###disable_eng
|
||||
Else
|
||||
Var return = ###disable_thai
|
||||
EndIf
|
||||
)
|
||||
</FilenameDisable>
|
||||
<EventOnClick>
|
||||
|
||||
###EventOnClick
|
||||
|
||||
</EventOnClick>
|
||||
</Button>
|
||||
|
||||
<EventUnitTest1>
|
||||
Var BigButtonEnable = "Enable"
|
||||
Refresh
|
||||
</EventUnitTest1>
|
||||
<EventUnitTest2>
|
||||
Var BigButtonEnable = "Invisible"
|
||||
Refresh
|
||||
</EventUnitTest2>
|
||||
47
inter/hkg/xml/event/promotion_template2.inc
Normal file
47
inter/hkg/xml/event/promotion_template2.inc
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
|
||||
<Button>
|
||||
<X> 42 </X>
|
||||
<Y> 520 </Y>
|
||||
<State> BigButtonEnable </State>
|
||||
<Filename>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###normal_eng
|
||||
Else
|
||||
Var return = ###normal_thai
|
||||
EndIf
|
||||
)
|
||||
</Filename>
|
||||
<FilenamePress>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###press_eng
|
||||
Else
|
||||
Var return = ###press_thai
|
||||
EndIf
|
||||
)
|
||||
</FilenamePress>
|
||||
<FilenameDisable>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###disable_eng
|
||||
Else
|
||||
Var return = ###disable_thai
|
||||
EndIf
|
||||
)
|
||||
</FilenameDisable>
|
||||
<EventOnClick>
|
||||
|
||||
###EventOnClick
|
||||
|
||||
</EventOnClick>
|
||||
</Button>
|
||||
|
||||
<EventUnitTest1>
|
||||
Var BigButtonEnable = "Enable"
|
||||
Refresh
|
||||
</EventUnitTest1>
|
||||
<EventUnitTest2>
|
||||
Var BigButtonEnable = "Invisible"
|
||||
Refresh
|
||||
</EventUnitTest2>
|
||||
305
inter/hkg/xml/event/promotion_template3.inc
Normal file
305
inter/hkg/xml/event/promotion_template3.inc
Normal file
|
|
@ -0,0 +1,305 @@
|
|||
;
|
||||
;
|
||||
;
|
||||
|
||||
; Sub-button for 4 random menu
|
||||
|
||||
;
|
||||
;
|
||||
;
|
||||
|
||||
<Button>
|
||||
<X> 43 </X>
|
||||
<Y> 519 </Y>
|
||||
<State> SubRandMilkButtonEnable </State>
|
||||
<Filename>
|
||||
eval(
|
||||
Var return = "ROOT/taobin_project/image/event/bn_random_milk.png"
|
||||
)
|
||||
</Filename>
|
||||
<FilenamePress>
|
||||
eval(
|
||||
Var return = "ROOT/taobin_project/image/event/bn_random_milk.png"
|
||||
)
|
||||
</FilenamePress>
|
||||
<FilenameDisable>
|
||||
eval(
|
||||
Var return = "ROOT/taobin_project/image/event/bd_random_milk.png"
|
||||
)
|
||||
</FilenameDisable>
|
||||
<EventClick>
|
||||
Var OreoGuarantee = OreoGuarantee + 1
|
||||
Var ResultRandomIndex = 0
|
||||
DEBUGVAR OreoGuarantee
|
||||
If OreoGuarantee > 4 Then
|
||||
Var IndexOfMilk = IndexOfMilk - 1
|
||||
Random2 0 IndexOfMilk ResultRandomIndex
|
||||
Var ProductCodeRandom = ListOfMilk[ResultRandomIndex]
|
||||
DEBUGVAR ListOfMilk[ResultRandomIndex]
|
||||
|
||||
Var OreoGuarantee = 0
|
||||
Else
|
||||
Var IndexOfRateupOreoMilk = IndexOfRateupOreoMilk - 1
|
||||
Random2 0 IndexOfRateupOreoMilk ResultRandomIndex
|
||||
Var ProductCodeRandom = ListOfOreoMilk[ResultRandomIndex]
|
||||
DEBUGVAR ListOfOreoMilk[ResultRandomIndex]
|
||||
EndIf
|
||||
|
||||
DEBUGVAR ResultRandomIndex
|
||||
|
||||
Topping "Load" ProductCodeRandom
|
||||
Var OpenFromXML = CurrentXMLFileName2
|
||||
Open "ROOT/taobin_project/xml/page_topping_select_35.xml"
|
||||
</EventClick>
|
||||
</Button>
|
||||
<Text>
|
||||
<X> 91</X>
|
||||
<Y> 635 </Y>
|
||||
<Size> 32 </Size>
|
||||
<Width>128</Width>
|
||||
<Height>64</Height>
|
||||
<Font> MITRegularTTF </Font>
|
||||
<Color> 0x5A5A5A </Color>
|
||||
<Mode> "disable-show" </Mode>
|
||||
<State> SubRandMilkButtonEnable </State>
|
||||
<Value> text_unavailable </Value>
|
||||
<Align> center-vertical-horizontal </Align>
|
||||
</Text>
|
||||
|
||||
<Button>
|
||||
<X> 301 </X>
|
||||
<Y> 519 </Y>
|
||||
<State> SubRandTeaButtonEnable </State>
|
||||
<Filename>
|
||||
eval(
|
||||
Var return = "ROOT/taobin_project/image/event/bn_random_tea.png"
|
||||
)
|
||||
</Filename>
|
||||
<FilenamePress>
|
||||
eval(
|
||||
Var return = "ROOT/taobin_project/image/event/bn_random_tea.png"
|
||||
)
|
||||
</FilenamePress>
|
||||
<FilenameDisable>
|
||||
eval(
|
||||
Var return = "ROOT/taobin_project/image/event/bd_random_tea.png"
|
||||
)
|
||||
</FilenameDisable>
|
||||
<EventClick>
|
||||
Var OreoGuarantee = OreoGuarantee + 1
|
||||
Var ResultRandomIndex = 0
|
||||
DEBUGVAR OreoGuarantee
|
||||
DEBUGVAR IndexOfTea
|
||||
DEBUGVAR IndexOfRateupOreoTea
|
||||
If OreoGuarantee > 4 Then
|
||||
|
||||
Var IndexOfTea = IndexOfTea - 1
|
||||
Random2 0 IndexOfTea ResultRandomIndex
|
||||
Var ProductCodeRandom = ListOfTea[ResultRandomIndex]
|
||||
DEBUGVAR ListOfTea[ResultRandomIndex]
|
||||
|
||||
Var OreoGuarantee = 0
|
||||
Else
|
||||
|
||||
Var IndexOfRateupOreoTea = IndexOfRateupOreoTea - 1
|
||||
Random2 0 IndexOfRateupOreoTea ResultRandomIndex
|
||||
Var ProductCodeRandom = ListOfOreoTea[ResultRandomIndex]
|
||||
DEBUGVAR ListOfOreoTea[ResultRandomIndex]
|
||||
|
||||
EndIf
|
||||
|
||||
DEBUGVAR ResultRandomIndex
|
||||
|
||||
Topping "Load" ProductCodeRandom
|
||||
Var OpenFromXML = CurrentXMLFileName2
|
||||
Open "ROOT/taobin_project/xml/page_topping_select_35.xml"
|
||||
</EventClick>
|
||||
</Button>
|
||||
<Text>
|
||||
<X> 349 </X>
|
||||
<Y> 635 </Y>
|
||||
<Size> 32 </Size>
|
||||
<Width>128</Width>
|
||||
<Height>64</Height>
|
||||
<Font> MITRegularTTF </Font>
|
||||
<Color> 0x5A5A5A </Color>
|
||||
<Mode> "disable-show" </Mode>
|
||||
<State> SubRandTeaButtonEnable </State>
|
||||
<Value> text_unavailable </Value>
|
||||
<Align> center-vertical-horizontal </Align>
|
||||
</Text>
|
||||
|
||||
|
||||
<Button>
|
||||
<X> 43 </X>
|
||||
<Y> 837 </Y>
|
||||
<State> SubRandCoffButtonEnable </State>
|
||||
<Filename>
|
||||
eval(
|
||||
Var return = "ROOT/taobin_project/image/event/bn_random_coffee.png"
|
||||
)
|
||||
</Filename>
|
||||
<FilenamePress>
|
||||
eval(
|
||||
Var return = "ROOT/taobin_project/image/event/bn_random_coffee.png"
|
||||
)
|
||||
</FilenamePress>
|
||||
<FilenameDisable>
|
||||
eval(
|
||||
Var return = "ROOT/taobin_project/image/event/bd_random_coffee.png"
|
||||
)
|
||||
</FilenameDisable>
|
||||
<EventClick>
|
||||
Var OreoGuarantee = OreoGuarantee + 1
|
||||
Var ResultRandomIndex = 0
|
||||
DEBUGVAR OreoGuarantee
|
||||
DEBUGVAR IndexOfCoffee
|
||||
DEBUGVAR IndexOfRateupOreoCoffee
|
||||
If OreoGuarantee > 4 Then
|
||||
|
||||
Var IndexOfCoffee = IndexOfCoffee - 1
|
||||
Random2 0 IndexOfCoffee ResultRandomIndex
|
||||
Var ProductCodeRandom = ListOfCoffee[ResultRandomIndex]
|
||||
DEBUGVAR ListOfCoffee[ResultRandomIndex]
|
||||
|
||||
Var OreoGuarantee = 0
|
||||
|
||||
Else
|
||||
|
||||
Var IndexOfRateupOreoCoffee = IndexOfRateupOreoCoffee - 1
|
||||
Random2 0 IndexOfRateupOreoCoffee ResultRandomIndex
|
||||
Var ProductCodeRandom = ListOfOreoCoffee[ResultRandomIndex]
|
||||
DEBUGVAR ListOfOreoCoffee[ResultRandomIndex]
|
||||
|
||||
EndIf
|
||||
DEBUGVAR ResultRandomIndex
|
||||
|
||||
Topping "Load" ProductCodeRandom
|
||||
Var OpenFromXML = CurrentXMLFileName2
|
||||
Open "ROOT/taobin_project/xml/page_topping_select_35.xml"
|
||||
</EventClick>
|
||||
</Button>
|
||||
<Text>
|
||||
<X> 91</X>
|
||||
<Y> 953 </Y>
|
||||
<Size> 32 </Size>
|
||||
<Width>128</Width>
|
||||
<Height>64</Height>
|
||||
<Font> MITRegularTTF </Font>
|
||||
<Color> 0x5A5A5A </Color>
|
||||
<Mode> "disable-show" </Mode>
|
||||
<State> SubRandCoffButtonEnable </State>
|
||||
<Value> text_unavailable </Value>
|
||||
<Align> center-vertical-horizontal </Align>
|
||||
</Text>
|
||||
|
||||
<Button>
|
||||
<X> 301 </X>
|
||||
<Y> 837 </Y>
|
||||
<State> SubRandAllButtonEnable </State>
|
||||
<Filename>
|
||||
eval(
|
||||
Var return = "ROOT/taobin_project/image/event/bn_random_all.png"
|
||||
)
|
||||
</Filename>
|
||||
<FilenamePress>
|
||||
eval(
|
||||
Var return = "ROOT/taobin_project/image/event/bn_random_all.png"
|
||||
)
|
||||
</FilenamePress>
|
||||
<FilenameDisable>
|
||||
eval(
|
||||
Var return = "ROOT/taobin_project/image/event/bd_random_all.png"
|
||||
)
|
||||
</FilenameDisable>
|
||||
<EventClick>
|
||||
Var OreoGuarantee = OreoGuarantee + 1
|
||||
Var ResultRandomIndex = 0
|
||||
DEBUGVAR OreoGuarantee
|
||||
If OreoGuarantee > 4 Then
|
||||
Var IndexOfAllRandom = IndexOfAllRandom - 1
|
||||
Random2 0 IndexOfAllRandom ResultRandomIndex
|
||||
Var ProductCodeRandom = ListOfAllRandom[ResultRandomIndex]
|
||||
DEBUGVAR ListOfAllRandom[ResultRandomIndex]
|
||||
Var OreoGuarantee = 0
|
||||
Else
|
||||
Var IndexOfRateupOreoAll = IndexOfRateupOreoAll - 1
|
||||
Random2 0 IndexOfRateupOreoAll ResultRandomIndex
|
||||
Var ProductCodeRandom = ListOfOreoAll[ResultRandomIndex]
|
||||
DEBUGVAR ListOfOreoAll[ResultRandomIndex]
|
||||
|
||||
EndIf
|
||||
DEBUGVAR ResultRandomIndex
|
||||
|
||||
Topping "Load" ProductCodeRandom
|
||||
Var OpenFromXML = CurrentXMLFileName2
|
||||
Open "ROOT/taobin_project/xml/page_topping_select_35.xml"
|
||||
</EventClick>
|
||||
</Button>
|
||||
<Text>
|
||||
<X> 349</X>
|
||||
<Y> 953 </Y>
|
||||
<Size> 32 </Size>
|
||||
<Width>128</Width>
|
||||
<Height>64</Height>
|
||||
<Font> MITRegularTTF </Font>
|
||||
<Color> 0x5A5A5A </Color>
|
||||
<Mode> "disable-show" </Mode>
|
||||
<State> SubRandAllButtonEnable </State>
|
||||
<Value> text_unavailable </Value>
|
||||
<Align> center-vertical-horizontal </Align>
|
||||
</Text>
|
||||
|
||||
;
|
||||
;
|
||||
;
|
||||
;
|
||||
; Big button for mys event
|
||||
;
|
||||
;
|
||||
;
|
||||
|
||||
<Button>
|
||||
<X> 42 </X>
|
||||
<Y> 518 </Y>
|
||||
<State> BigButtonEnable </State>
|
||||
<Filename>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = "ROOT/taobin_project/image/event/pro_mystery_cup_en.png"
|
||||
Else
|
||||
Var return = "ROOT/taobin_project/image/event/pro_mystery_cup_th.png"
|
||||
EndIf
|
||||
)
|
||||
</Filename>
|
||||
<FilenamePress>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = "ROOT/taobin_project/image/event/pro_mystery_cup_en.png"
|
||||
Else
|
||||
Var return = "ROOT/taobin_project/image/event/pro_mystery_cup_th.png"
|
||||
EndIf
|
||||
)
|
||||
</FilenamePress>
|
||||
<FilenameDisable>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = "ROOT/taobin_project/image/event/pro_mystery_cup_en.png"
|
||||
Else
|
||||
Var return = "ROOT/taobin_project/image/event/pro_mystery_cup_th.png"
|
||||
EndIf
|
||||
)
|
||||
</FilenameDisable>
|
||||
<EventOnClick>
|
||||
###EventOnClick
|
||||
</EventOnClick>
|
||||
</Button>
|
||||
|
||||
<EventUnitTest1>
|
||||
Var BigButtonEnable = "Enable"
|
||||
Refresh
|
||||
</EventUnitTest1>
|
||||
<EventUnitTest2>
|
||||
Var BigButtonEnable = "Invisible"
|
||||
Refresh
|
||||
</EventUnitTest2>
|
||||
56
inter/hkg/xml/event/script_common_for_open_promotion_xml.ev
Normal file
56
inter/hkg/xml/event/script_common_for_open_promotion_xml.ev
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
; HongKong
|
||||
; Var CountEnablePromotion = 0
|
||||
|
||||
; ensure
|
||||
Var CountSecureOpenPro = 0
|
||||
If SeasonPassMode = 1 Then
|
||||
|
||||
If Season1 = "false" Then
|
||||
Var CountSecureOpenPro = CountSecureOpenPro + 1
|
||||
EndIf
|
||||
|
||||
If Season2 = "false" Then
|
||||
Var CountSecureOpenPro = CountSecureOpenPro + 1
|
||||
EndIf
|
||||
|
||||
If Season3 = "false" Then
|
||||
Var CountSecureOpenPro = CountSecureOpenPro + 1
|
||||
EndIf
|
||||
|
||||
If CountSecureOpenPro = 3 Then
|
||||
Var SeasonPassMode = 0
|
||||
EndIf
|
||||
|
||||
Var SeasonPassFile = CountryRootPath + "xml/event/season_pass/season_pass.ev"
|
||||
TRY SeasonPassFile
|
||||
|
||||
EndIf
|
||||
|
||||
; zone promote
|
||||
If OpenFromPageBoard = 1 Then
|
||||
|
||||
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
|
||||
|
||||
|
||||
Else
|
||||
|
||||
If SeasonPassMode = 1 Then
|
||||
Var PromotionState1 = "Enable"
|
||||
Var PromotionState2 = "Enable"
|
||||
Var PromotionState3 = "Enable"
|
||||
|
||||
Open SeasonFile
|
||||
Else
|
||||
Open "ROOT/taobin_project/inter/hkg/xml/page_catalog_group_recommend.lxml"
|
||||
EndIf
|
||||
EndIf
|
||||
Var OpenFromPageBoard = 0
|
||||
72
inter/hkg/xml/event/season_pass/season_pass.ev
Normal file
72
inter/hkg/xml/event/season_pass/season_pass.ev
Normal file
|
|
@ -0,0 +1,72 @@
|
|||
Var Season1 = "false"
|
||||
Var Season2 = "false"
|
||||
Var Season3 = "false"
|
||||
|
||||
Var BigButtonEnable = "Enable"
|
||||
|
||||
Var SeasonTrick = CountryRootPath + "xml/event/season_pass/"
|
||||
|
||||
If SystemDateMonthInt = 7 Then
|
||||
|
||||
If SystemDateDayInt >= 29 Then
|
||||
Var Season1 = "true"
|
||||
Else
|
||||
Var Season1 = "false"
|
||||
EndIf
|
||||
|
||||
EndIf
|
||||
|
||||
If SystemDateMonthInt = 8 Then
|
||||
|
||||
If SystemDateDayInt <= 11 Then
|
||||
Var Season1 = "true"
|
||||
Else
|
||||
Var Season1 = "false"
|
||||
EndIf
|
||||
|
||||
If SystemDateDayInt > 11 Then
|
||||
If SystemDateDayInt < 26 Then
|
||||
Var Season2 = "true"
|
||||
Else
|
||||
Var Season2 = "false"
|
||||
Var Season3 = "true"
|
||||
EndIf
|
||||
|
||||
EndIf
|
||||
|
||||
EndIf
|
||||
|
||||
|
||||
If SystemDateMonthInt = 9 Then
|
||||
If SystemDateDayInt < 9 Then
|
||||
Var Season3 = "true"
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If BoxID = "177746" Then
|
||||
Var Season1 = "false"
|
||||
Var Season2 = "false"
|
||||
Var Season3 = "false"
|
||||
EndIf
|
||||
|
||||
DEBUGVAR Season1
|
||||
DEBUGVAR Season2
|
||||
DEBUGVAR Season3
|
||||
|
||||
DEBUGVAR SeasonTrick
|
||||
|
||||
|
||||
If Season1 = "true" Then
|
||||
Var SeasonTrick = SeasonTrick + "set1.ev"
|
||||
TRY SeasonTrick
|
||||
Else
|
||||
If Season2 = "true" Then
|
||||
Var SeasonTrick = SeasonTrick + "set2.ev"
|
||||
TRY SeasonTrick
|
||||
Else
|
||||
If Season3 = "true" Then
|
||||
Var SeasonTrick = SeasonTrick + "set3.ev"
|
||||
TRY SeasonTrick
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
24
inter/hkg/xml/event/season_pass/set1.ev
Normal file
24
inter/hkg/xml/event/season_pass/set1.ev
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
; Define
|
||||
Var SeasonPass = 1
|
||||
|
||||
Var SeasonFile = CountryRootPath + "xml/event/triple_promotion_s1topleft_and_s1topright_and_s1botleft.lxml"
|
||||
|
||||
|
||||
DEBUGVAR SeasonPass
|
||||
DEBUGVAR SeasonFile
|
||||
|
||||
Var CountEnablePromotion = 0
|
||||
|
||||
If $Sum522101000752210200045221030004 = "Enable" Then
|
||||
Var CountEnablePromotion = CountEnablePromotion + 1
|
||||
EndIf
|
||||
|
||||
If $Sum5203030009 = "Enable" Then
|
||||
Var CountEnablePromotion = CountEnablePromotion + 1
|
||||
EndIf
|
||||
|
||||
If $Sum520201002652020200265202030026 = "Enable" Then
|
||||
Var CountEnablePromotion = CountEnablePromotion + 1
|
||||
EndIf
|
||||
|
||||
DEBUGVAR CountEnablePromotion
|
||||
24
inter/hkg/xml/event/season_pass/set2.ev
Normal file
24
inter/hkg/xml/event/season_pass/set2.ev
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
; Define
|
||||
Var SeasonPass = 2
|
||||
|
||||
Var SeasonFile = CountryRootPath + "xml/event/triple_promotion_s2topleft_and_s2topright_and_s2botleft.lxml"
|
||||
|
||||
|
||||
DEBUGVAR SeasonPass
|
||||
DEBUGVAR SeasonFile
|
||||
|
||||
Var CountEnablePromotion = 0
|
||||
|
||||
If $Sum522101000652210200035221030003 = "Enable" Then
|
||||
Var CountEnablePromotion = CountEnablePromotion + 1
|
||||
EndIf
|
||||
|
||||
If $Sum5203030049 = "Enable" Then
|
||||
Var CountEnablePromotion = CountEnablePromotion + 1
|
||||
EndIf
|
||||
|
||||
If $Sum520201003952020200395202030039 = "Enable" Then
|
||||
Var CountEnablePromotion = CountEnablePromotion + 1
|
||||
EndIf
|
||||
|
||||
DEBUGVAR CountEnablePromotion
|
||||
24
inter/hkg/xml/event/season_pass/set3.ev
Normal file
24
inter/hkg/xml/event/season_pass/set3.ev
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
; Define
|
||||
Var SeasonPass = 3
|
||||
|
||||
Var SeasonFile = CountryRootPath + "xml/event/triple_promotion_s3topleft_and_s3topright_and_s3botleft.lxml"
|
||||
|
||||
|
||||
DEBUGVAR SeasonPass
|
||||
DEBUGVAR SeasonFile
|
||||
|
||||
Var CountEnablePromotion = 0
|
||||
|
||||
If $Sum522101000552310200025231030002 = "Enable" Then
|
||||
Var CountEnablePromotion = CountEnablePromotion + 1
|
||||
EndIf
|
||||
|
||||
If $Sum5204020002 = "Enable" Then
|
||||
Var CountEnablePromotion = CountEnablePromotion + 1
|
||||
EndIf
|
||||
|
||||
If $Sum5203030027 = "Enable" Then
|
||||
Var CountEnablePromotion = CountEnablePromotion + 1
|
||||
EndIf
|
||||
|
||||
DEBUGVAR CountEnablePromotion
|
||||
10
inter/hkg/xml/event/tricker.ev
Normal file
10
inter/hkg/xml/event/tricker.ev
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
; HongKong
|
||||
|
||||
|
||||
;DEBUGVAR SystemDateMonthInt
|
||||
;DEBUGVAR SystemDateDayInt
|
||||
|
||||
; Reset flag away.
|
||||
|
||||
|
||||
Var SeasonPassMode = 0
|
||||
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue