merge double triple pro to multi pro
This commit is contained in:
parent
866f21d4e8
commit
3cca67f106
45 changed files with 40205 additions and 75720 deletions
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
|
@ -1 +0,0 @@
|
|||
Var BigButtonEnable = "Invisible"
|
||||
|
|
@ -1 +0,0 @@
|
|||
Var BigButtonEnable = "Invisible"
|
||||
|
|
@ -1 +0,0 @@
|
|||
Var BigButtonEnable = "Invisible"
|
||||
|
|
@ -1 +0,0 @@
|
|||
Var BigButtonEnable = "Invisible"
|
||||
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
|
@ -1,125 +0,0 @@
|
|||
<Button>
|
||||
<X> 42 </X>
|
||||
<Y> 518 </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 = ###normal_eng
|
||||
Else
|
||||
Var return = ###normal_thai
|
||||
EndIf
|
||||
)
|
||||
</FilenamePress>
|
||||
<FilenameDisable>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###normal_eng
|
||||
Else
|
||||
Var return = ###normal_thai
|
||||
EndIf
|
||||
)
|
||||
</FilenameDisable>
|
||||
<EventOnClick>
|
||||
|
||||
Open "ROOT/taobin_project/xml/page_catalog_group_pro_pepsi_second_cup_30.xml"
|
||||
|
||||
</EventOnClick>
|
||||
|
||||
|
||||
<Video>
|
||||
<X> 42 </X>
|
||||
<Y> 518 </Y>
|
||||
<Width> 484 </Width>
|
||||
<Height> 616 </Height>
|
||||
<Loop> "true" </Loop>
|
||||
<State>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = "Invisible"
|
||||
Else
|
||||
Var return = "Enable"
|
||||
EndIf
|
||||
)
|
||||
</State>
|
||||
<Filename> "ROOT/taobin_project/image/event/pepsi_second_cup_30/pro_pepsi_second_cup_30_th.mp4" </Filename>
|
||||
</Video>
|
||||
|
||||
<Video>
|
||||
<X> 42 </X>
|
||||
<Y> 518 </Y>
|
||||
<Width> 484 </Width>
|
||||
<Height> 616 </Height>
|
||||
<State>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = "Enable"
|
||||
Else
|
||||
Var return = "Invisible"
|
||||
EndIf
|
||||
)
|
||||
</State>
|
||||
<Loop> "true" </Loop>
|
||||
<Filename> "ROOT/taobin_project/image/event/pepsi_second_cup_30/pro_pepsi_second_cup_30_en.mp4" </Filename>
|
||||
</Video>
|
||||
|
||||
</Button>
|
||||
|
||||
<Button>
|
||||
<X> 559 </X>
|
||||
<Y> 519 </Y>
|
||||
|
||||
<State> BigButtonEnable </State>
|
||||
<Filename>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###second_normal_eng
|
||||
Else
|
||||
Var return = ###second_normal_thai
|
||||
EndIf
|
||||
)
|
||||
</Filename>
|
||||
<FilenamePress>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###second_normal_eng
|
||||
Else
|
||||
Var return = ###second_normal_thai
|
||||
EndIf
|
||||
)
|
||||
</FilenamePress>
|
||||
<FilenameDisable>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###second_normal_eng
|
||||
Else
|
||||
Var return = ###second_normal_thai
|
||||
EndIf
|
||||
)
|
||||
</FilenameDisable>
|
||||
<EventOnClick>
|
||||
|
||||
Open "ROOT/taobin_project/xml/page_catalog_group_pro_monday_banana.xml"
|
||||
|
||||
</EventOnClick>
|
||||
|
||||
</Button>
|
||||
|
||||
<EventUnitTest1>
|
||||
Var BigButtonEnable = "Enable"
|
||||
Refresh
|
||||
</EventUnitTest1>
|
||||
<EventUnitTest2>
|
||||
Var BigButtonEnable = "Invisible"
|
||||
Refresh
|
||||
</EventUnitTest2>
|
||||
|
|
@ -1,125 +0,0 @@
|
|||
<Button>
|
||||
<X> 42 </X>
|
||||
<Y> 518 </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 = ###normal_eng
|
||||
Else
|
||||
Var return = ###normal_thai
|
||||
EndIf
|
||||
)
|
||||
</FilenamePress>
|
||||
<FilenameDisable>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###normal_eng
|
||||
Else
|
||||
Var return = ###normal_thai
|
||||
EndIf
|
||||
)
|
||||
</FilenameDisable>
|
||||
<EventOnClick>
|
||||
|
||||
Open "ROOT/taobin_project/xml/page_catalog_group_pro_lipit.xml"
|
||||
|
||||
</EventOnClick>
|
||||
|
||||
|
||||
<Video>
|
||||
<X> 42 </X>
|
||||
<Y> 518 </Y>
|
||||
<Width> 484 </Width>
|
||||
<Height> 616 </Height>
|
||||
<Loop> "true" </Loop>
|
||||
<State>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = "Invisible"
|
||||
Else
|
||||
Var return = "Enable"
|
||||
EndIf
|
||||
)
|
||||
</State>
|
||||
<Filename> "ROOT/taobin_project/image/event/lipit/pro_lipit_th.mp4" </Filename>
|
||||
</Video>
|
||||
|
||||
<Video>
|
||||
<X> 42 </X>
|
||||
<Y> 518 </Y>
|
||||
<Width> 484 </Width>
|
||||
<Height> 616 </Height>
|
||||
<State>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = "Enable"
|
||||
Else
|
||||
Var return = "Invisible"
|
||||
EndIf
|
||||
)
|
||||
</State>
|
||||
<Loop> "true" </Loop>
|
||||
<Filename> "ROOT/taobin_project/image/event/lipit/pro_lipit_en.mp4" </Filename>
|
||||
</Video>
|
||||
|
||||
</Button>
|
||||
|
||||
<Button>
|
||||
<X> 559 </X>
|
||||
<Y> 519 </Y>
|
||||
|
||||
<State> BigButtonEnable </State>
|
||||
<Filename>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###second_normal_eng
|
||||
Else
|
||||
Var return = ###second_normal_thai
|
||||
EndIf
|
||||
)
|
||||
</Filename>
|
||||
<FilenamePress>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###second_normal_eng
|
||||
Else
|
||||
Var return = ###second_normal_thai
|
||||
EndIf
|
||||
)
|
||||
</FilenamePress>
|
||||
<FilenameDisable>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###second_normal_eng
|
||||
Else
|
||||
Var return = ###second_normal_thai
|
||||
EndIf
|
||||
)
|
||||
</FilenameDisable>
|
||||
<EventOnClick>
|
||||
|
||||
Open "ROOT/taobin_project/xml/page_catalog_group_pro_monday_banana.xml"
|
||||
|
||||
</EventOnClick>
|
||||
|
||||
</Button>
|
||||
|
||||
<EventUnitTest1>
|
||||
Var BigButtonEnable = "Enable"
|
||||
Refresh
|
||||
</EventUnitTest1>
|
||||
<EventUnitTest2>
|
||||
Var BigButtonEnable = "Invisible"
|
||||
Refresh
|
||||
</EventUnitTest2>
|
||||
|
|
@ -1,125 +0,0 @@
|
|||
<Button>
|
||||
<X> 42 </X>
|
||||
<Y> 518 </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 = ###normal_eng
|
||||
Else
|
||||
Var return = ###normal_thai
|
||||
EndIf
|
||||
)
|
||||
</FilenamePress>
|
||||
<FilenameDisable>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###normal_eng
|
||||
Else
|
||||
Var return = ###normal_thai
|
||||
EndIf
|
||||
)
|
||||
</FilenameDisable>
|
||||
<EventOnClick>
|
||||
|
||||
Open "ROOT/taobin_project/xml/page_catalog_group_pro_lipit.xml"
|
||||
|
||||
</EventOnClick>
|
||||
|
||||
|
||||
<Video>
|
||||
<X> 42 </X>
|
||||
<Y> 518 </Y>
|
||||
<Width> 484 </Width>
|
||||
<Height> 616 </Height>
|
||||
<Loop> "true" </Loop>
|
||||
<State>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = "Invisible"
|
||||
Else
|
||||
Var return = "Enable"
|
||||
EndIf
|
||||
)
|
||||
</State>
|
||||
<Filename> "ROOT/taobin_project/image/event/lipit/pro_lipit_th.mp4" </Filename>
|
||||
</Video>
|
||||
|
||||
<Video>
|
||||
<X> 42 </X>
|
||||
<Y> 518 </Y>
|
||||
<Width> 484 </Width>
|
||||
<Height> 616 </Height>
|
||||
<State>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = "Enable"
|
||||
Else
|
||||
Var return = "Invisible"
|
||||
EndIf
|
||||
)
|
||||
</State>
|
||||
<Loop> "true" </Loop>
|
||||
<Filename> "ROOT/taobin_project/image/event/lipit/pro_lipit_en.mp4" </Filename>
|
||||
</Video>
|
||||
|
||||
</Button>
|
||||
|
||||
<Button>
|
||||
<X> 559 </X>
|
||||
<Y> 519 </Y>
|
||||
|
||||
<State> BigButtonEnable </State>
|
||||
<Filename>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###second_normal_eng
|
||||
Else
|
||||
Var return = ###second_normal_thai
|
||||
EndIf
|
||||
)
|
||||
</Filename>
|
||||
<FilenamePress>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###second_normal_eng
|
||||
Else
|
||||
Var return = ###second_normal_thai
|
||||
EndIf
|
||||
)
|
||||
</FilenamePress>
|
||||
<FilenameDisable>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###second_normal_eng
|
||||
Else
|
||||
Var return = ###second_normal_thai
|
||||
EndIf
|
||||
)
|
||||
</FilenameDisable>
|
||||
<EventOnClick>
|
||||
|
||||
Open "ROOT/taobin_project/xml/event/powerup_free_1/page_powerup_bridge.xml"
|
||||
|
||||
</EventOnClick>
|
||||
|
||||
</Button>
|
||||
|
||||
<EventUnitTest1>
|
||||
Var BigButtonEnable = "Enable"
|
||||
Refresh
|
||||
</EventUnitTest1>
|
||||
<EventUnitTest2>
|
||||
Var BigButtonEnable = "Invisible"
|
||||
Refresh
|
||||
</EventUnitTest2>
|
||||
|
|
@ -1,125 +0,0 @@
|
|||
<Button>
|
||||
<X> 42 </X>
|
||||
<Y> 518 </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 = ###normal_eng
|
||||
Else
|
||||
Var return = ###normal_thai
|
||||
EndIf
|
||||
)
|
||||
</FilenamePress>
|
||||
<FilenameDisable>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###normal_eng
|
||||
Else
|
||||
Var return = ###normal_thai
|
||||
EndIf
|
||||
)
|
||||
</FilenameDisable>
|
||||
<EventOnClick>
|
||||
|
||||
Open "ROOT/taobin_project/xml/page_catalog_group_pro_pepsi_second_cup_30.xml"
|
||||
|
||||
</EventOnClick>
|
||||
|
||||
|
||||
<Video>
|
||||
<X> 42 </X>
|
||||
<Y> 518 </Y>
|
||||
<Width> 484 </Width>
|
||||
<Height> 616 </Height>
|
||||
<Loop> "true" </Loop>
|
||||
<State>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = "Invisible"
|
||||
Else
|
||||
Var return = "Enable"
|
||||
EndIf
|
||||
)
|
||||
</State>
|
||||
<Filename> "ROOT/taobin_project/image/event/pepsi_second_cup_30/pro_pepsi_second_cup_30_th.mp4" </Filename>
|
||||
</Video>
|
||||
|
||||
<Video>
|
||||
<X> 42 </X>
|
||||
<Y> 518 </Y>
|
||||
<Width> 484 </Width>
|
||||
<Height> 616 </Height>
|
||||
<State>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = "Enable"
|
||||
Else
|
||||
Var return = "Invisible"
|
||||
EndIf
|
||||
)
|
||||
</State>
|
||||
<Loop> "true" </Loop>
|
||||
<Filename> "ROOT/taobin_project/image/event/pepsi_second_cup_30/pro_pepsi_second_cup_30_en.mp4" </Filename>
|
||||
</Video>
|
||||
|
||||
</Button>
|
||||
|
||||
<Button>
|
||||
<X> 559 </X>
|
||||
<Y> 519 </Y>
|
||||
|
||||
<State> BigButtonEnable </State>
|
||||
<Filename>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###second_normal_eng
|
||||
Else
|
||||
Var return = ###second_normal_thai
|
||||
EndIf
|
||||
)
|
||||
</Filename>
|
||||
<FilenamePress>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###second_normal_eng
|
||||
Else
|
||||
Var return = ###second_normal_thai
|
||||
EndIf
|
||||
)
|
||||
</FilenamePress>
|
||||
<FilenameDisable>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###second_normal_eng
|
||||
Else
|
||||
Var return = ###second_normal_thai
|
||||
EndIf
|
||||
)
|
||||
</FilenameDisable>
|
||||
<EventOnClick>
|
||||
|
||||
Open "ROOT/taobin_project/xml/event/powerup_free_1/page_powerup_bridge.xml"
|
||||
|
||||
</EventOnClick>
|
||||
|
||||
</Button>
|
||||
|
||||
<EventUnitTest1>
|
||||
Var BigButtonEnable = "Enable"
|
||||
Refresh
|
||||
</EventUnitTest1>
|
||||
<EventUnitTest2>
|
||||
Var BigButtonEnable = "Invisible"
|
||||
Refresh
|
||||
</EventUnitTest2>
|
||||
|
|
@ -6,12 +6,6 @@ else:
|
|||
#print( "dir= " + directory_to_process + "/page_catalog_group_recommend.xml");
|
||||
file_recommend = open(directory_to_process + "/page_catalog_group_recommend.xml", 'r')
|
||||
content_recommend = file_recommend.read()
|
||||
|
||||
file_recommend_double_pro = open(directory_to_process + "/page_catalog_group_recommend_double_pro.xml", "r")
|
||||
content_recommend_double_pro = file_recommend_double_pro.read()
|
||||
|
||||
file_recommend_triple_pro = open(directory_to_process + "/page_catalog_group_recommend_triple_pro.xml", "r")
|
||||
content_recommend_triple_pro = file_recommend_triple_pro.read()
|
||||
#print(file_xml.read())
|
||||
# ; include-file=dummy_layout.inc
|
||||
# file_inc = open(directory_to_process + "/dummy_layout.inc", 'r')
|
||||
|
|
@ -19,7 +13,6 @@ else:
|
|||
|
||||
|
||||
file_recommend.close()
|
||||
file_recommend_double_pro.close()
|
||||
if "template1" in param:
|
||||
|
||||
file_inc1 = open(directory_to_process + "/event/promotion_template1.inc", 'r')
|
||||
|
|
@ -240,362 +233,70 @@ else:
|
|||
file_xml4.write( content_data)
|
||||
file_xml4.close()
|
||||
|
||||
if "double_template1" in param:
|
||||
file_inc_double1 = open(directory_to_process + "/event/double_promotion_template1.inc", 'r')
|
||||
file_inc_double1_content = file_inc_double1.read()
|
||||
file_inc_img = open(directory_to_process + "../image/event/image_double_template1", 'r')
|
||||
file_inc_double1_img_content = file_inc_img.read()
|
||||
|
||||
# replace key.
|
||||
|
||||
sp_key = file_inc_double1_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_inc_double1_content = file_inc_double1_content.replace( "###" + key_val[0], '"' + key_val[1].strip() + '"')
|
||||
|
||||
|
||||
file_inc_event_click = open(directory_to_process + "/event/double_promotion_onclick1.inc", 'r')
|
||||
file_inc_event_click_content = file_inc_event_click.read()
|
||||
|
||||
file_inc_double1_content = file_inc_double1_content.replace("###EventOnClick", file_inc_event_click_content)
|
||||
|
||||
|
||||
# print(file_inc_double1_content)
|
||||
|
||||
# print( file_inc_content)
|
||||
|
||||
file_inc = open(directory_to_process + "/dummy_layout_double_pro.inc", 'r')
|
||||
file_inc_content = file_inc.read()
|
||||
|
||||
content_data_was_repack = content_recommend_double_pro.replace(";dummy_layout.inc", file_inc_content)
|
||||
content_data = content_data_was_repack.replace(";BigLogoLayout", file_inc_double1_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_xml_double1_out = open(directory_to_process + "/event/out_put_file_double_pro1.txt", 'r')
|
||||
file_xml_double1_out_content = file_xml_double1_out.read()
|
||||
file_xml_double1_out_content = file_xml_double1_out_content.strip()
|
||||
file_xml_double1_out_content = file_xml_double1_out_content.replace("\r", "")
|
||||
file_xml_double1_out_content = file_xml_double1_out_content.replace("\n", "")
|
||||
|
||||
file_xml_double1 = open(directory_to_process + file_xml_double1_out_content, 'w')
|
||||
file_xml_double1.write( content_data)
|
||||
file_xml_double1.close()
|
||||
|
||||
if "double_template2" in param:
|
||||
file_inc_double2 = open(directory_to_process + "/event/double_promotion_template2.inc", 'r')
|
||||
file_inc_double2_content = file_inc_double2.read()
|
||||
file_inc_img = open(directory_to_process + "../image/event/image_double_template2", 'r')
|
||||
file_inc_double2_img_content = file_inc_img.read()
|
||||
|
||||
# replace key.
|
||||
|
||||
sp_key = file_inc_double2_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_inc_double2_content = file_inc_double2_content.replace( "###" + key_val[0], '"' + key_val[1].strip() + '"')
|
||||
|
||||
|
||||
file_inc_event_click = open(directory_to_process + "/event/double_promotion_onclick2.inc", 'r')
|
||||
file_inc_event_click_content = file_inc_event_click.read()
|
||||
|
||||
file_inc_double2_content = file_inc_double2_content.replace("###EventOnClick", file_inc_event_click_content)
|
||||
|
||||
|
||||
# print(file_inc_double2_content)
|
||||
|
||||
# print( file_inc_content)
|
||||
|
||||
file_inc = open(directory_to_process + "/dummy_layout_double_pro.inc", 'r')
|
||||
file_inc_content = file_inc.read()
|
||||
|
||||
content_data_was_repack = content_recommend_double_pro.replace(";dummy_layout.inc", file_inc_content)
|
||||
content_data = content_data_was_repack.replace(";BigLogoLayout", file_inc_double2_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_xml_double2_out = open(directory_to_process + "/event/out_put_file_double_pro2.txt", 'r')
|
||||
file_xml_double2_out_content = file_xml_double2_out.read()
|
||||
file_xml_double2_out_content = file_xml_double2_out_content.strip()
|
||||
file_xml_double2_out_content = file_xml_double2_out_content.replace("\r", "")
|
||||
file_xml_double2_out_content = file_xml_double2_out_content.replace("\n", "")
|
||||
|
||||
file_xml_double2 = open(directory_to_process + file_xml_double2_out_content, 'w')
|
||||
file_xml_double2.write( content_data)
|
||||
file_xml_double2.close()
|
||||
|
||||
if "double_template3" in param:
|
||||
file_inc_double3 = open(directory_to_process + "/event/double_promotion_template3.inc", 'r')
|
||||
file_inc_double3_content = file_inc_double3.read()
|
||||
file_inc_img = open(directory_to_process + "../image/event/image_double_template3", 'r')
|
||||
file_inc_double3_img_content = file_inc_img.read()
|
||||
|
||||
# replace key.
|
||||
|
||||
sp_key = file_inc_double3_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_inc_double3_content = file_inc_double3_content.replace( "###" + key_val[0], '"' + key_val[1].strip() + '"')
|
||||
|
||||
|
||||
file_inc_event_click = open(directory_to_process + "/event/double_promotion_onclick3.inc", 'r')
|
||||
file_inc_event_click_content = file_inc_event_click.read()
|
||||
|
||||
file_inc_double3_content = file_inc_double3_content.replace("###EventOnClick", file_inc_event_click_content)
|
||||
|
||||
|
||||
# print(file_inc_double3_content)
|
||||
|
||||
# print( file_inc_content)
|
||||
|
||||
file_inc = open(directory_to_process + "/dummy_layout_double_pro.inc", 'r')
|
||||
file_inc_content = file_inc.read()
|
||||
|
||||
content_data_was_repack = content_recommend_double_pro.replace(";dummy_layout.inc", file_inc_content)
|
||||
content_data = content_data_was_repack.replace(";BigLogoLayout", file_inc_double3_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_xml_double3_out = open(directory_to_process + "/event/out_put_file_double_pro3.txt", 'r')
|
||||
file_xml_double3_out_content = file_xml_double3_out.read()
|
||||
file_xml_double3_out_content = file_xml_double3_out_content.strip()
|
||||
file_xml_double3_out_content = file_xml_double3_out_content.replace("\r", "")
|
||||
file_xml_double3_out_content = file_xml_double3_out_content.replace("\n", "")
|
||||
|
||||
file_xml_double3 = open(directory_to_process + file_xml_double3_out_content, 'w')
|
||||
file_xml_double3.write( content_data)
|
||||
file_xml_double3.close()
|
||||
|
||||
if "double_template4" in param:
|
||||
file_inc_double4 = open(directory_to_process + "/event/double_promotion_template4.inc", 'r')
|
||||
file_inc_double4_content = file_inc_double4.read()
|
||||
file_inc_img = open(directory_to_process + "../image/event/image_double_template4", 'r')
|
||||
file_inc_double4_img_content = file_inc_img.read()
|
||||
|
||||
# replace key.
|
||||
|
||||
sp_key = file_inc_double4_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_inc_double4_content = file_inc_double4_content.replace( "###" + key_val[0], '"' + key_val[1].strip() + '"')
|
||||
|
||||
|
||||
file_inc_event_click = open(directory_to_process + "/event/double_promotion_onclick4.inc", 'r')
|
||||
file_inc_event_click_content = file_inc_event_click.read()
|
||||
|
||||
file_inc_double4_content = file_inc_double4_content.replace("###EventOnClick", file_inc_event_click_content)
|
||||
|
||||
|
||||
# print(file_inc_double4_content)
|
||||
|
||||
# print( file_inc_content)
|
||||
|
||||
file_inc = open(directory_to_process + "/dummy_layout_double_pro.inc", 'r')
|
||||
file_inc_content = file_inc.read()
|
||||
|
||||
content_data_was_repack = content_recommend_double_pro.replace(";dummy_layout.inc", file_inc_content)
|
||||
content_data = content_data_was_repack.replace(";BigLogoLayout", file_inc_double4_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_xml_double4_out = open(directory_to_process + "/event/out_put_file_double_pro4.txt", 'r')
|
||||
file_xml_double4_out_content = file_xml_double4_out.read()
|
||||
file_xml_double4_out_content = file_xml_double4_out_content.strip()
|
||||
file_xml_double4_out_content = file_xml_double4_out_content.replace("\r", "")
|
||||
file_xml_double4_out_content = file_xml_double4_out_content.replace("\n", "")
|
||||
|
||||
file_xml_double4 = open(directory_to_process + file_xml_double4_out_content, 'w')
|
||||
file_xml_double4.write( content_data)
|
||||
file_xml_double4.close()
|
||||
|
||||
if "triple_template1" in param:
|
||||
file_inc_triple1 = open(directory_to_process + "/event/triple_promotion_template1.inc", 'r')
|
||||
file_inc_triple1_content = file_inc_triple1.read()
|
||||
file_inc_img = open(directory_to_process + "../image/event/image_triple_template1", 'r')
|
||||
file_inc_triple1_img_content = file_inc_img.read()
|
||||
|
||||
# replace key.
|
||||
|
||||
sp_key = file_inc_triple1_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_inc_triple1_content = file_inc_triple1_content.replace( "###" + key_val[0], '"' + key_val[1].strip() + '"')
|
||||
|
||||
|
||||
file_inc_event_click = open(directory_to_process + "/event/triple_promotion_onclick1.inc", 'r')
|
||||
file_inc_event_click_content = file_inc_event_click.read()
|
||||
|
||||
file_inc_triple1_content = file_inc_triple1_content.replace("###EventOnClick", file_inc_event_click_content)
|
||||
|
||||
|
||||
# print(file_inc_triple1_content)
|
||||
|
||||
# print( file_inc_content)
|
||||
|
||||
file_inc = open(directory_to_process + "/dummy_layout_triple_pro.inc", 'r')
|
||||
file_inc_content = file_inc.read()
|
||||
|
||||
content_data_was_repack = content_recommend_triple_pro.replace(";dummy_layout.inc", file_inc_content)
|
||||
content_data = content_data_was_repack.replace(";BigLogoLayout", file_inc_triple1_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_xml_triple1_out = open(directory_to_process + "/event/out_put_file_triple_pro1.txt", 'r')
|
||||
file_xml_triple1_out_content = file_xml_triple1_out.read()
|
||||
file_xml_triple1_out_content = file_xml_triple1_out_content.strip()
|
||||
file_xml_triple1_out_content = file_xml_triple1_out_content.replace("\r", "")
|
||||
file_xml_triple1_out_content = file_xml_triple1_out_content.replace("\n", "")
|
||||
|
||||
file_xml_triple1 = open(directory_to_process + file_xml_triple1_out_content, 'w')
|
||||
file_xml_triple1.write( content_data)
|
||||
file_xml_triple1.close()
|
||||
|
||||
if "triple_template2" in param:
|
||||
file_inc_triple2 = open(directory_to_process + "/event/triple_promotion_template2.inc", 'r')
|
||||
file_inc_triple2_content = file_inc_triple2.read()
|
||||
file_inc_img = open(directory_to_process + "../image/event/image_triple_template2", 'r')
|
||||
file_inc_triple2_img_content = file_inc_img.read()
|
||||
|
||||
# replace key.
|
||||
|
||||
sp_key = file_inc_triple2_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_inc_triple2_content = file_inc_triple2_content.replace( "###" + key_val[0], '"' + key_val[1].strip() + '"')
|
||||
|
||||
|
||||
file_inc_event_click = open(directory_to_process + "/event/triple_promotion_onclick1.inc", 'r')
|
||||
file_inc_event_click_content = file_inc_event_click.read()
|
||||
|
||||
file_inc_triple2_content = file_inc_triple2_content.replace("###EventOnClick", file_inc_event_click_content)
|
||||
|
||||
|
||||
# print(file_inc_triple2_content)
|
||||
|
||||
# print( file_inc_content)
|
||||
|
||||
file_inc = open(directory_to_process + "/dummy_layout_triple_pro.inc", 'r')
|
||||
file_inc_content = file_inc.read()
|
||||
|
||||
content_data_was_repack = content_recommend_triple_pro.replace(";dummy_layout.inc", file_inc_content)
|
||||
content_data = content_data_was_repack.replace(";BigLogoLayout", file_inc_triple2_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_xml_triple2_out = open(directory_to_process + "/event/out_put_file_triple_pro2.txt", 'r')
|
||||
file_xml_triple2_out_content = file_xml_triple2_out.read()
|
||||
file_xml_triple2_out_content = file_xml_triple2_out_content.strip()
|
||||
file_xml_triple2_out_content = file_xml_triple2_out_content.replace("\r", "")
|
||||
file_xml_triple2_out_content = file_xml_triple2_out_content.replace("\n", "")
|
||||
|
||||
file_xml_triple2 = open(directory_to_process + file_xml_triple2_out_content, 'w')
|
||||
file_xml_triple2.write( content_data)
|
||||
file_xml_triple2.close()
|
||||
|
||||
if "multi_promotion1" in param:
|
||||
recommend_multi_pro = open(directory_to_process + "/page_catgalog_group_recommend_multi_pro.xml", "r")
|
||||
recommend_multi_pro_buff = recommend_multi_pro.read()
|
||||
|
||||
#read config
|
||||
multi_pro_config_file = open(directory_to_process + "/event/multi_promotion_config1.json")
|
||||
multi_pro_config = json.load(multi_pro_config_file)
|
||||
|
||||
for index, promotion_config in enumerate(multi_pro_config):
|
||||
#load template
|
||||
template_file = open(dictionary_to_process + promotion_config["template"])
|
||||
template = template_file.read()
|
||||
|
||||
for key, value in promotion_config["config"].items():
|
||||
template = template.replace("###"+key, '"' + key_val[1].strip() + '"')
|
||||
|
||||
start_block_index = recommend_multi_pro_buff.find(";block"+(index+1))
|
||||
end_block_index = recommend_multi_pro_buff.find(";endblock"+(index+1))
|
||||
if "multi_promotion" in param:
|
||||
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 = open(directory_to_process + "/page_catalog_group_recommend_multi_pro.xml", "r")
|
||||
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)
|
||||
|
||||
promotion_block_str = '\t<Block>\r\n\t\t<State> ### </State> \r\n\t\t<MarginTop> 22 </MarginTop>\r\n\t\t<Width> 484 </Width>\r\n\t\t<Height> 602 </Height>\r\n'
|
||||
|
||||
recommend_multi_pro_buff = recommend_multi_pro_buff[start_block_index+len(";block"+(index+1)):end_block_index+";endblock"+(index+1)]
|
||||
|
||||
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()
|
||||
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)
|
||||
|
||||
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)
|
||||
|
||||
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)
|
||||
|
||||
if index == 3:
|
||||
# create expand block
|
||||
inner_block2 = re.search(r'(?is)(;block{0}.*;endblock{0})'.format(index+1), recommend_multi_pro_buff).group(1)
|
||||
inner_block2 = inner_block2.replace(";block{0}".format(index+1), ";block{0}-expand".format(index+1))
|
||||
inner_block2 = inner_block2.replace(";endblock{0}".format(index+1), ";endblock{0}-expand".format(index+1))
|
||||
|
||||
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)
|
||||
recommend_multi_pro_buff = re.sub(r'(?is);block{0}.*;endblock{0}'.format(index+1), inner_block2, recommend_multi_pro_buff)
|
||||
|
||||
|
||||
# create promotion file
|
||||
count_name_dict = {
|
||||
2: "double_",
|
||||
3: "triple_"
|
||||
}
|
||||
promo_file = open(directory_to_process + "/event/" + count_name_dict[len(multi_pro_config)]+ "promotion_" + "_and_".join(promotion_name) + ".xml", "w")
|
||||
promo_file.write(recommend_multi_pro_buff)
|
||||
promo_file.close()
|
||||
|
|
|
|||
43
xml/event/multi_promotion_config_1-17_03_2024.json
Normal file
43
xml/event/multi_promotion_config_1-17_03_2024.json
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
[
|
||||
{
|
||||
"name": "pepsi_second_cup_30",
|
||||
"template": "/event/promotion_video_template.inc",
|
||||
"config": {
|
||||
"normal_eng": "ROOT/taobin_project/image/event/pepsi_second_cup_30/pro_pepsi_second_cup_30.png",
|
||||
"normal_thai": "ROOT/taobin_project/image/event/pepsi_second_cup_30/pro_pepsi_second_cup_30.png",
|
||||
"press_eng": "ROOT/taobin_project/image/event/pepsi_second_cup_30/pro_pepsi_second_cup_30.png",
|
||||
"press_thai": "ROOT/taobin_project/image/event/pepsi_second_cup_30/pro_pepsi_second_cup_30.png",
|
||||
"disable_eng": "ROOT/taobin_project/image/event/pepsi_second_cup_30/pro_pepsi_second_cup_30.png",
|
||||
"disable_thai": "ROOT/taobin_project/image/event/pepsi_second_cup_30/pro_pepsi_second_cup_30.png",
|
||||
"video_eng": "ROOT/taobin_project/image/event/pepsi_second_cup_30/pro_pepsi_second_cup_30_en.mp4",
|
||||
"video_thai": "ROOT/taobin_project/image/event/pepsi_second_cup_30/pro_pepsi_second_cup_30_th.mp4",
|
||||
"event_on_click": "ROOT/taobin_project/xml/page_catalog_group_pro_lipit.xml"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "monday_banana",
|
||||
"template": "/event/promotion_template.inc",
|
||||
"config": {
|
||||
"normal_eng": "ROOT/taobin_project/image/event/monday_banana/monday_banana_th.png",
|
||||
"normal_thai": "ROOT/taobin_project/image/event/monday_banana/monday_banana_th.png",
|
||||
"press_eng": "ROOT/taobin_project/image/event/monday_banana/monday_banana_th.png",
|
||||
"press_thai": "ROOT/taobin_project/image/event/monday_banana/monday_banana_th.png",
|
||||
"disable_eng": "ROOT/taobin_project/image/event/monday_banana/monday_banana_th.png",
|
||||
"disable_thai": "ROOT/taobin_project/image/event/monday_banana/monday_banana_th.png",
|
||||
"event_on_click": "ROOT/taobin_project/xml/page_catalog_group_pro_monday_banana.xml"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "free_energy_drink",
|
||||
"template": "/event/promotion_template.inc",
|
||||
"config": {
|
||||
"normal_eng": "ROOT/taobin_project/image/event/powerup_free_1/powerup_en.png",
|
||||
"normal_thai": "ROOT/taobin_project/image/event/powerup_free_1/powerup.png",
|
||||
"press_eng": "ROOT/taobin_project/image/event/powerup_free_1/powerup_en.png",
|
||||
"press_thai": "ROOT/taobin_project/image/event/powerup_free_1/powerup.png",
|
||||
"disable_eng": "ROOT/taobin_project/image/event/powerup_free_1/powerup_en.png",
|
||||
"disable_thai": "ROOT/taobin_project/image/event/powerup_free_1/powerup.png",
|
||||
"event_on_click": "ROOT/taobin_project/xml/event/powerup_free_1/page_powerup_bridge.xml"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
|
@ -14,6 +14,19 @@
|
|||
"event_on_click": "ROOT/taobin_project/xml/page_catalog_group_pro_lipit.xml"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "monday_banana",
|
||||
"template": "/event/promotion_template.inc",
|
||||
"config": {
|
||||
"normal_eng": "ROOT/taobin_project/image/event/monday_banana/monday_banana_th.png",
|
||||
"normal_thai": "ROOT/taobin_project/image/event/monday_banana/monday_banana_th.png",
|
||||
"press_eng": "ROOT/taobin_project/image/event/monday_banana/monday_banana_th.png",
|
||||
"press_thai": "ROOT/taobin_project/image/event/monday_banana/monday_banana_th.png",
|
||||
"disable_eng": "ROOT/taobin_project/image/event/monday_banana/monday_banana_th.png",
|
||||
"disable_thai": "ROOT/taobin_project/image/event/monday_banana/monday_banana_th.png",
|
||||
"event_on_click": "ROOT/taobin_project/xml/page_catalog_group_pro_monday_banana.xml"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "free_energy_drink",
|
||||
"template": "/event/promotion_template.inc",
|
||||
|
|
@ -1,48 +0,0 @@
|
|||
<Block>
|
||||
<MarginLeft> 33 </MarginLeft>
|
||||
<MarginTop> 22 </MarginTop>
|
||||
<Width> 484 </Width>
|
||||
<Height> 602 </Height>
|
||||
<State> </State>
|
||||
|
||||
<Button>
|
||||
<State> BigButtonEnable </State>
|
||||
<Filename>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###normal_eng
|
||||
Else
|
||||
Var return = ###normal_th
|
||||
EndIf
|
||||
)
|
||||
</Filename>
|
||||
<FilenamePress>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###normal_eng
|
||||
Else
|
||||
Var return = ###normal_th
|
||||
EndIf
|
||||
)
|
||||
</FilenamePress>
|
||||
<FilenameDisable>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###normal_eng
|
||||
Else
|
||||
Var return = ###normal_th
|
||||
EndIf
|
||||
)
|
||||
</FilenameDisable>
|
||||
<EventOnClick>
|
||||
|
||||
###event_click1
|
||||
|
||||
</EventOnClick>
|
||||
|
||||
|
||||
###video_layout
|
||||
|
||||
</Button>
|
||||
|
||||
</Block>
|
||||
|
|
@ -1 +0,0 @@
|
|||
/event/double_promotion_pepsi_second_cup_30_and_monday_banana.xml
|
||||
|
|
@ -1 +0,0 @@
|
|||
/event/double_promotion_lipit_and_monday_banana.xml
|
||||
|
|
@ -1 +0,0 @@
|
|||
/event/double_promotion_lipit_and_free_energy_drink.xml
|
||||
|
|
@ -1 +0,0 @@
|
|||
/event/double_promotion_pepsi_second_cup_30_and_free_energy_drink.xml
|
||||
|
|
@ -1 +0,0 @@
|
|||
/event/triple_promotion_pepsi_second_cup_30_and_monday_banana_and_free_energy_drink.xml
|
||||
|
|
@ -1 +0,0 @@
|
|||
/event/triple_promotion_lipit_and_monday_banana_and_free_energy_drink.xml
|
||||
|
|
@ -1,7 +1,5 @@
|
|||
|
||||
<Button>
|
||||
<X> 42 </X>
|
||||
<Y> 518 </Y>
|
||||
|
||||
<State> BigButtonEnable </State>
|
||||
<Filename>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,5 @@
|
|||
|
||||
<Button>
|
||||
<X> 42 </X>
|
||||
<Y> 518 </Y>
|
||||
|
||||
<State> BigButtonEnable </State>
|
||||
<Filename>
|
||||
|
|
@ -33,14 +31,12 @@
|
|||
</FilenameDisable>
|
||||
<EventOnClick>
|
||||
|
||||
###event_on_click
|
||||
Open ###event_on_click
|
||||
|
||||
</EventOnClick>
|
||||
|
||||
|
||||
<Video>
|
||||
<X> 42 </X>
|
||||
<Y> 518 </Y>
|
||||
<Width> 484 </Width>
|
||||
<Height> 616 </Height>
|
||||
<Loop> "true" </Loop>
|
||||
|
|
@ -53,12 +49,10 @@
|
|||
EndIf
|
||||
)
|
||||
</State>
|
||||
<Filename> ###video_th </Filename>
|
||||
<Filename> ###video_thai </Filename>
|
||||
</Video>
|
||||
|
||||
<Video>
|
||||
<X> 42 </X>
|
||||
<Y> 518 </Y>
|
||||
<Width> 484 </Width>
|
||||
<Height> 616 </Height>
|
||||
<State>
|
||||
|
|
|
|||
|
|
@ -10,6 +10,10 @@ DEBUGVAR PepsiSecondCup30Enable
|
|||
DEBUGVAR FreeEnergyDrink
|
||||
DEBUGVAR EnergyDrinkEnable
|
||||
|
||||
Var PromotionState1 = "Invisible"
|
||||
Var PromotionState2 = "Invisible"
|
||||
Var PromotionState3 = "Invisible"
|
||||
|
||||
If CocktailShow = "true" Then
|
||||
|
||||
If OpenFromPageBoard = 1 Then
|
||||
|
|
@ -21,152 +25,88 @@ If CocktailShow = "true" Then
|
|||
Else
|
||||
; check profile to enable free energy drink promotion
|
||||
STRCONTAIN "ProEnergyDrinkFreePerCardID" XMLProfile EnableFreeEnergyDrink
|
||||
|
||||
|
||||
Var BigButtonEnable = "Enable"
|
||||
DEBUGVAR FreeEnergyDrink
|
||||
Var FreeEnergyDrink = 1
|
||||
Var EnableFreeEnergyDrink = "true"
|
||||
;Var FreeEnergyDrink = 1
|
||||
;Var EnableFreeEnergyDrink = "true"
|
||||
DEBUGVAR EnableFreeEnergyDrink
|
||||
|
||||
Var CountEnablePromotion = 0
|
||||
Var FileRecommendToOpen = "ROOT/taobin_project/xml/page_catalog_group_recommend.xml"
|
||||
; zone promote
|
||||
|
||||
If LipitPro = 1 Then
|
||||
Var PromotionState1 = "Enable"
|
||||
Var CountEnablePromotion = CountEnablePromotion + 1
|
||||
|
||||
If MondayBananaPro = 1 Then
|
||||
Var PromotionState2 = "Enable"
|
||||
Var CountEnablePromotion = CountEnablePromotion + 1
|
||||
EndIf
|
||||
If EnableFreeEnergyDrink = "true" Then
|
||||
If FreeEnergyDrink = 1 Then
|
||||
Var FreePowerup = "Enable"
|
||||
|
||||
Var PromotionState3 = "Enable"
|
||||
Var CountEnablePromotion = CountEnablePromotion + 1
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If CountEnablePromotion > 1 Then
|
||||
Var FileRecommendToOpen = "ROOT/taobin_project/xml/event/triple_promotion_lipit_and_monday_banana_and_free_energy_drink.xml"
|
||||
Else
|
||||
If CountEnablePromotion = 1 Then
|
||||
Var FileRecommendToOpen = "ROOT/taobin_project/xml/event/promotion_lipit.xml"
|
||||
Else
|
||||
Var FileRecommendToOpen = "ROOT/taobin_project/xml/page_catalog_group_recommend.xml"
|
||||
EndIf
|
||||
EndIf
|
||||
Else
|
||||
If PepsiSecondCup30Enable = 1 Then
|
||||
Var PromotionState1 = "Enable"
|
||||
Var CountEnablePromotion = CountEnablePromotion + 1
|
||||
|
||||
If MondayBananaPro = 1 Then
|
||||
Var PromotionState2 = "Enable"
|
||||
Var CountEnablePromotion = CountEnablePromotion + 1
|
||||
EndIf
|
||||
|
||||
If EnableFreeEnergyDrink = "true" Then
|
||||
If FreeEnergyDrink = 1 Then
|
||||
Var FreePowerup = "Enable"
|
||||
|
||||
Var PromotionState3 = "Enable"
|
||||
Var CountEnablePromotion = CountEnablePromotion + 1
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If CountEnablePromotion > 1 Then
|
||||
Var FileRecommendToOpen = "ROOT/taobin_project/xml/event/triple_promotion_pepsi_second_cup_30_and_monday_banana_and_free_energy_drink.xml"
|
||||
Else
|
||||
If CountEnablePromotion = 1 Then
|
||||
Var FileRecommendToOpen = "ROOT/taobin_project/xml/event/promotion_pepsi_second_cup_30.xml"
|
||||
Else
|
||||
Var FileRecommendToOpen = "ROOT/taobin_project/xml/page_catalog_group_recommend.xml"
|
||||
EndIf
|
||||
EndIf
|
||||
Else
|
||||
Var FileRecommendToOpen = "ROOT/taobin_project/xml/page_catalog_group_recommend.xml"
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
|
||||
|
||||
If OpenFromPageBoard = 1 Then
|
||||
DEBUGVAR FreeEnergyDrink
|
||||
DEBUGVAR BigButtonEnable
|
||||
|
||||
If LipitPro = 1 Then
|
||||
Var BigButtonEnable = "Enable"
|
||||
|
||||
If MondayBananaPro = 1 Then
|
||||
If EnableFreeEnergyDrink = "true" Then
|
||||
If FreeEnergyDrink = 1 Then
|
||||
Var FreePowerup = "Enable"
|
||||
OpenInst 2 "ROOT/taobin_project/xml/event/triple_promotion_lipit_and_monday_banana_and_free_energy_drink.xml"
|
||||
Var OpenFromPageBoard = 0
|
||||
Else
|
||||
OpenInst 2 "ROOT/taobin_project/xml/event/double_promotion_lipit_and_monday_banana.xml"
|
||||
Var OpenFromPageBoard = 0
|
||||
EndIf
|
||||
Else
|
||||
OpenInst 2 "ROOT/taobin_project/xml/event/double_promotion_lipit_and_monday_banana.xml"
|
||||
Var OpenFromPageBoard = 0
|
||||
EndIf
|
||||
Else
|
||||
If EnableFreeEnergyDrink = "true" Then
|
||||
If FreeEnergyDrink = 1 Then
|
||||
Var FreePowerup = "Enable"
|
||||
OpenInst 2 "ROOT/taobin_project/xml/event/double_promotion_lipit_and_free_energy_drink.xml"
|
||||
Var OpenFromPageBoard = 0
|
||||
Else
|
||||
OpenInst 2 "ROOT/taobin_project/xml/event/promotion_lipit.xml"
|
||||
Var OpenFromPageBoard = 0
|
||||
EndIf
|
||||
Else
|
||||
OpenInst 2 "ROOT/taobin_project/xml/event/promotion_lipit.xml"
|
||||
Var OpenFromPageBoard = 0
|
||||
EndIf
|
||||
EndIf
|
||||
Else
|
||||
If PepsiSecondCup30Enable = 1 Then
|
||||
Var BigButtonEnable = "Enable"
|
||||
If MondayBananaPro = 1 Then
|
||||
OpenInst 2 "ROOT/taobin_project/xml/event/double_promotion_pepsi_second_cup_30_and_monday_banana.xml"
|
||||
Var OpenFromPageBoard = 0
|
||||
Else
|
||||
If EnableFreeEnergyDrink = "true" Then
|
||||
If FreeEnergyDrink = 1 Then
|
||||
Var FreePowerup = "Enable"
|
||||
OpenInst 2 "ROOT/taobin_project/xml/event/double_promotion_pepsi_second_cup_30_and_free_energy_drink.xml"
|
||||
Var OpenFromPageBoard = 0
|
||||
Else
|
||||
OpenInst 2 "ROOT/taobin_project/xml/event/promotion_pepsi_second_cup_30.xml"
|
||||
Var OpenFromPageBoard = 0
|
||||
EndIf
|
||||
Else
|
||||
OpenInst 2 "ROOT/taobin_project/xml/event/promotion_pepsi_second_cup_30.xml"
|
||||
Var OpenFromPageBoard = 0
|
||||
EndIf
|
||||
EndIf
|
||||
Else
|
||||
|
||||
If EnableFreeEnergyDrink = "true" Then
|
||||
If FreeEnergyDrink = 1 Then
|
||||
Var FreePowerup = "Enable"
|
||||
OpenInst 2 "ROOT/taobin_project/xml/event/promotion_powerup_free_1.xml"
|
||||
Var OpenFromPageBoard = 0
|
||||
Else
|
||||
OpenInst 2 "ROOT/taobin_project/xml/page_catalog_group_recommend.xml"
|
||||
Var OpenFromPageBoard = 0
|
||||
EndIf
|
||||
Else
|
||||
OpenInst 2 "ROOT/taobin_project/xml/page_catalog_group_recommend.xml"
|
||||
Var OpenFromPageBoard = 0
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
OpenInst 2 FileRecommendToOpen
|
||||
Var OpenFromPageBoard = 0
|
||||
|
||||
Else
|
||||
If LipitPro = 1 Then
|
||||
Var BigButtonEnable = "Enable"
|
||||
If MondayBananaPro = 1 Then
|
||||
If EnableFreeEnergyDrink = "true" Then
|
||||
If FreeEnergyDrink = 1 Then
|
||||
Var FreePowerup = "Enable"
|
||||
Open "ROOT/taobin_project/xml/event/triple_promotion_lipit_and_monday_banana_and_free_energy_drink.xml"
|
||||
Else
|
||||
Open "ROOT/taobin_project/xml/event/double_promotion_lipit_and_monday_banana.xml"
|
||||
EndIf
|
||||
Else
|
||||
Open "ROOT/taobin_project/xml/event/double_promotion_lipit_and_monday_banana.xml"
|
||||
EndIf
|
||||
Else
|
||||
If EnableFreeEnergyDrink = "true" Then
|
||||
If FreeEnergyDrink = 1 Then
|
||||
Var FreePowerup = "Enable"
|
||||
Open "ROOT/taobin_project/xml/event/double_promotion_lipit_and_free_energy_drink.xml"
|
||||
Else
|
||||
Open "ROOT/taobin_project/xml/event/promotion_lipit.xml"
|
||||
EndIf
|
||||
Else
|
||||
Open "ROOT/taobin_project/xml/event/promotion_lipit.xml"
|
||||
EndIf
|
||||
EndIf
|
||||
Else
|
||||
If PepsiSecondCup30Enable = 1 Then
|
||||
Var BigButtonEnable = "Enable"
|
||||
If MondayBananaPro = 1 Then
|
||||
If EnableFreeEnergyDrink = "true" Then
|
||||
If FreeEnergyDrink = 1 Then
|
||||
Var FreePowerup = "Enable"
|
||||
Open "ROOT/taobin_project/xml/event/triple_promotion_pepsi_second_cup_30_and_monday_banana_and_free_energy_drink.xml"
|
||||
Else
|
||||
Open "ROOT/taobin_project/xml/event/double_promotion_pepsi_second_cup_30_and_monday_banana.xml"
|
||||
EndIf
|
||||
Else
|
||||
Open "ROOT/taobin_project/xml/event/double_promotion_pepsi_second_cup_30_and_monday_banana.xml"
|
||||
EndIf
|
||||
Else
|
||||
If EnableFreeEnergyDrink = "true" Then
|
||||
If FreeEnergyDrink = 1 Then
|
||||
Var FreePowerup = "Enable"
|
||||
Open "ROOT/taobin_project/xml/event/double_promotion_pepsi_second_cup_30_and_free_energy_drink.xml"
|
||||
Else
|
||||
Open "ROOT/taobin_project/xml/event/promotion_pepsi_second_cup_30.xml"
|
||||
EndIf
|
||||
Else
|
||||
Open "ROOT/taobin_project/xml/event/promotion_pepsi_second_cup_30.xml"
|
||||
EndIf
|
||||
EndIf
|
||||
Else
|
||||
If EnableFreeEnergyDrink = "true" Then
|
||||
If FreeEnergyDrink = 1 Then
|
||||
Var FreePowerup = "Enable"
|
||||
Open "ROOT/taobin_project/xml/event/promotion_powerup_free_1.xml"
|
||||
Else
|
||||
Open "ROOT/taobin_project/xml/page_catalog_group_recommend.xml"
|
||||
EndIf
|
||||
Else
|
||||
Open "ROOT/taobin_project/xml/page_catalog_group_recommend.xml"
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
Open FileRecommendToOpen
|
||||
|
||||
EndIf
|
||||
EndIf
|
||||
Var OpenFromPageBoard = 0
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -1 +0,0 @@
|
|||
Var BigButtonEnable = "Invisible"
|
||||
|
|
@ -1 +0,0 @@
|
|||
Var BigButtonEnable = "Invisible"
|
||||
File diff suppressed because it is too large
Load diff
|
|
@ -1,163 +0,0 @@
|
|||
<Button>
|
||||
<X> 42 </X>
|
||||
<Y> 518 </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 = ###normal_eng
|
||||
Else
|
||||
Var return = ###normal_thai
|
||||
EndIf
|
||||
)
|
||||
</FilenamePress>
|
||||
<FilenameDisable>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###normal_eng
|
||||
Else
|
||||
Var return = ###normal_thai
|
||||
EndIf
|
||||
)
|
||||
</FilenameDisable>
|
||||
<EventOnClick>
|
||||
|
||||
Open "ROOT/taobin_project/xml/page_catalog_group_pro_pepsi_second_cup_30.xml"
|
||||
|
||||
</EventOnClick>
|
||||
|
||||
|
||||
<Video>
|
||||
<X> 42 </X>
|
||||
<Y> 518 </Y>
|
||||
<Width> 484 </Width>
|
||||
<Height> 616 </Height>
|
||||
<Loop> "true" </Loop>
|
||||
<State>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = "Invisible"
|
||||
Else
|
||||
Var return = "Enable"
|
||||
EndIf
|
||||
)
|
||||
</State>
|
||||
<Filename> "ROOT/taobin_project/image/event/pepsi_second_cup_30/pro_pepsi_second_cup_30_th.mp4" </Filename>
|
||||
</Video>
|
||||
|
||||
<Video>
|
||||
<X> 42 </X>
|
||||
<Y> 518 </Y>
|
||||
<Width> 484 </Width>
|
||||
<Height> 616 </Height>
|
||||
<State>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = "Enable"
|
||||
Else
|
||||
Var return = "Invisible"
|
||||
EndIf
|
||||
)
|
||||
</State>
|
||||
<Loop> "true" </Loop>
|
||||
<Filename> "ROOT/taobin_project/image/event/pepsi_second_cup_30/pro_pepsi_second_cup_30_en.mp4" </Filename>
|
||||
</Video>
|
||||
|
||||
</Button>
|
||||
|
||||
<Button>
|
||||
<X> 559 </X>
|
||||
<Y> 519 </Y>
|
||||
|
||||
<State> BigButtonEnable </State>
|
||||
<Filename>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###second_normal_eng
|
||||
Else
|
||||
Var return = ###second_normal_thai
|
||||
EndIf
|
||||
)
|
||||
</Filename>
|
||||
<FilenamePress>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###second_normal_eng
|
||||
Else
|
||||
Var return = ###second_normal_thai
|
||||
EndIf
|
||||
)
|
||||
</FilenamePress>
|
||||
<FilenameDisable>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###second_normal_eng
|
||||
Else
|
||||
Var return = ###second_normal_thai
|
||||
EndIf
|
||||
)
|
||||
</FilenameDisable>
|
||||
<EventOnClick>
|
||||
|
||||
Open "ROOT/taobin_project/xml/page_catalog_group_pro_monday_banana.xml"
|
||||
|
||||
</EventOnClick>
|
||||
|
||||
<Button>
|
||||
<X> 42 </X>
|
||||
<Y> 1153 </Y>
|
||||
|
||||
<State> BigButtonEnable </State>
|
||||
<Filename>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###third_normal_eng
|
||||
Else
|
||||
Var return = ###third_normal_thai
|
||||
EndIf
|
||||
)
|
||||
</Filename>
|
||||
<FilenamePress>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###third_normal_eng
|
||||
Else
|
||||
Var return = ###third_normal_thai
|
||||
EndIf
|
||||
)
|
||||
</FilenamePress>
|
||||
<FilenameDisable>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###third_normal_eng
|
||||
Else
|
||||
Var return = ###third_normal_thai
|
||||
EndIf
|
||||
)
|
||||
</FilenameDisable>
|
||||
<EventOnClick>
|
||||
|
||||
Open "ROOT/taobin_project/xml/event/powerup_free_1/page_powerup_bridge.xml"
|
||||
|
||||
</EventOnClick>
|
||||
|
||||
</Button>
|
||||
|
||||
<EventUnitTest1>
|
||||
Var BigButtonEnable = "Enable"
|
||||
Refresh
|
||||
</EventUnitTest1>
|
||||
<EventUnitTest2>
|
||||
Var BigButtonEnable = "Invisible"
|
||||
Refresh
|
||||
</EventUnitTest2>
|
||||
|
|
@ -1,163 +0,0 @@
|
|||
<Button>
|
||||
<X> 42 </X>
|
||||
<Y> 518 </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 = ###normal_eng
|
||||
Else
|
||||
Var return = ###normal_thai
|
||||
EndIf
|
||||
)
|
||||
</FilenamePress>
|
||||
<FilenameDisable>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###normal_eng
|
||||
Else
|
||||
Var return = ###normal_thai
|
||||
EndIf
|
||||
)
|
||||
</FilenameDisable>
|
||||
<EventOnClick>
|
||||
|
||||
Open "ROOT/taobin_project/xml/page_catalog_group_pro_lipit.xml"
|
||||
|
||||
</EventOnClick>
|
||||
|
||||
|
||||
<Video>
|
||||
<X> 42 </X>
|
||||
<Y> 518 </Y>
|
||||
<Width> 484 </Width>
|
||||
<Height> 616 </Height>
|
||||
<Loop> "true" </Loop>
|
||||
<State>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = "Invisible"
|
||||
Else
|
||||
Var return = "Enable"
|
||||
EndIf
|
||||
)
|
||||
</State>
|
||||
<Filename> "ROOT/taobin_project/image/event/lipit/pro_lipit_th.mp4" </Filename>
|
||||
</Video>
|
||||
|
||||
<Video>
|
||||
<X> 42 </X>
|
||||
<Y> 518 </Y>
|
||||
<Width> 484 </Width>
|
||||
<Height> 616 </Height>
|
||||
<State>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = "Enable"
|
||||
Else
|
||||
Var return = "Invisible"
|
||||
EndIf
|
||||
)
|
||||
</State>
|
||||
<Loop> "true" </Loop>
|
||||
<Filename> "ROOT/taobin_project/image/event/lipit/pro_lipit_en.mp4" </Filename>
|
||||
</Video>
|
||||
|
||||
</Button>
|
||||
|
||||
<Button>
|
||||
<X> 559 </X>
|
||||
<Y> 519 </Y>
|
||||
|
||||
<State> BigButtonEnable </State>
|
||||
<Filename>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###second_normal_eng
|
||||
Else
|
||||
Var return = ###second_normal_thai
|
||||
EndIf
|
||||
)
|
||||
</Filename>
|
||||
<FilenamePress>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###second_normal_eng
|
||||
Else
|
||||
Var return = ###second_normal_thai
|
||||
EndIf
|
||||
)
|
||||
</FilenamePress>
|
||||
<FilenameDisable>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###second_normal_eng
|
||||
Else
|
||||
Var return = ###second_normal_thai
|
||||
EndIf
|
||||
)
|
||||
</FilenameDisable>
|
||||
<EventOnClick>
|
||||
|
||||
Open "ROOT/taobin_project/xml/page_catalog_group_pro_monday_banana.xml"
|
||||
|
||||
</EventOnClick>
|
||||
|
||||
<Button>
|
||||
<X> 42 </X>
|
||||
<Y> 1153 </Y>
|
||||
|
||||
<State> BigButtonEnable </State>
|
||||
<Filename>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###third_normal_eng
|
||||
Else
|
||||
Var return = ###third_normal_thai
|
||||
EndIf
|
||||
)
|
||||
</Filename>
|
||||
<FilenamePress>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###third_normal_eng
|
||||
Else
|
||||
Var return = ###third_normal_thai
|
||||
EndIf
|
||||
)
|
||||
</FilenamePress>
|
||||
<FilenameDisable>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###third_normal_eng
|
||||
Else
|
||||
Var return = ###third_normal_thai
|
||||
EndIf
|
||||
)
|
||||
</FilenameDisable>
|
||||
<EventOnClick>
|
||||
|
||||
Open "ROOT/taobin_project/xml/event/powerup_free_1/page_powerup_bridge.xml"
|
||||
|
||||
</EventOnClick>
|
||||
|
||||
</Button>
|
||||
|
||||
<EventUnitTest1>
|
||||
Var BigButtonEnable = "Enable"
|
||||
Refresh
|
||||
</EventUnitTest1>
|
||||
<EventUnitTest2>
|
||||
Var BigButtonEnable = "Invisible"
|
||||
Refresh
|
||||
</EventUnitTest2>
|
||||
|
|
@ -60,7 +60,7 @@
|
|||
else:
|
||||
triple_pro_gen = False
|
||||
|
||||
if current_file_name == "page_catalog_group_recommend_multiple_pro.skt":
|
||||
if current_file_name == "page_catalog_group_recommend_multi_pro.skt":
|
||||
multi_pro_gen = True
|
||||
else:
|
||||
multi_pro_gen = False
|
||||
|
|
@ -1321,22 +1321,37 @@
|
|||
if spl[0].startswith("TAG"):
|
||||
out_xml( '\t;' + spl[0] + '\r\n')
|
||||
|
||||
count_test = count_test + 1
|
||||
count_test = count_test + 1
|
||||
#if count_test > 8 :
|
||||
# break
|
||||
|
||||
|
||||
if multi_pro_gen:
|
||||
for i in range(1, 5):
|
||||
out_put(';block'+i+'\r\n')
|
||||
out_put('\t<Block>\r\n')
|
||||
out_put('\t\t<State> ### </State> \r\n')
|
||||
out_put('\t\t<MarginTop> 22 </MarginTop>\r\n')
|
||||
out_put('\t\t<Width> 484 </Width>\r\n')
|
||||
out_put('\t\t<Height> 602 </Height>\r\n')
|
||||
out_xml(';block'+str(i)+'\r\n')
|
||||
out_xml('\t<Block>\r\n')
|
||||
out_xml('\t\t<State> \"Enable\" </State> \r\n')
|
||||
# out_xml('\t\t<MarginTop> 22 </MarginTop>\r\n')
|
||||
# out_xml('\t\t<MarginLeft> 33 </MarginLeft>\r\n')
|
||||
out_xml('\t\t<Width> 516 </Width>\r\n')
|
||||
out_xml('\t\t<Height> 636 </Height>\r\n')
|
||||
out_xml('\t\t<FrameScroll>\r\n')
|
||||
out_xml('\t\t\t<Max> 4 </Max>\r\n')
|
||||
out_xml('\t\t\t<X> 0 </X>\r\n')
|
||||
out_xml('\t\t\t<Y> 0 </Y>\r\n')
|
||||
out_xml('\t\t\t<Width> 516 </Width>\r\n')
|
||||
out_xml('\t\t\t<Height> 636 </Height>\r\n')
|
||||
out_xml('\t\t\t<ScrollHeight> "auto" </ScrollHeight>\r\n')
|
||||
out_xml('\t\t\t<Scroll> "Vertical" </Scroll>\r\n')
|
||||
out_xml('\t\t\t<Column> 2 </Column>\r\n')
|
||||
out_xml('\t\t\t<Script>\r\n')
|
||||
out_xml('\t\t\t\tVar block_index_override = 0\r\n')
|
||||
out_xml('\t\t\t\tVar block_index_move = 0\r\n')
|
||||
out_xml('\t\t\t</Script>\r\n')
|
||||
GenListMenu()
|
||||
out_put('\t\t</Block>')
|
||||
out_put(';endblock'+i+'\r\n')
|
||||
out_xml('\t\t</FrameScroll>\r\n')
|
||||
out_xml('\t\t</Block>\r\n')
|
||||
out_xml(';endblock'+str(i)+'\r\n')
|
||||
else:
|
||||
out_xml('; menu_new_list '+ str(len(menu_new_list))+'\r\n')
|
||||
GenListMenu()
|
||||
|
|
|
|||
|
|
@ -219,7 +219,7 @@
|
|||
EndIf
|
||||
|
||||
|
||||
;TRY "/mnt/sdcard/coffeevending/taobin_project/xml/event/tricker.ev"
|
||||
TRY "/mnt/sdcard/coffeevending/taobin_project/xml/event/tricker.ev"
|
||||
|
||||
; zone cup on arm
|
||||
If CupOnArm = "true" Then
|
||||
|
|
|
|||
|
|
@ -2327,8 +2327,8 @@ Water" </Value>
|
|||
<EventOnClick>
|
||||
Var NameDrink = "sum balm spf 15 pa++"
|
||||
Var NameDrinkTH = "เคาะค่ะ"
|
||||
Var DrinkDescriptionTH = "น้ำเชื่อมคาราเมล น้ำเชื่อมมินต์ นมและน้ำแข็ง"
|
||||
Var DrinkDescription = "Mint Syrup, Caramel Syrup, Milk and Ice"
|
||||
Var DrinkDescriptionTH = "น้ำเชื่อมคาราเมล มัทฉะ นมและน้ำแข็ง"
|
||||
Var DrinkDescription = "Caramel Syrup, Matcha Milk and Ice"
|
||||
Var PictureDrink = "ROOT/taobin_project/image/page_drink_picture2_n/" + "bn_Caramel_Mint_Milk_Sum_Balm_SPF_15.png"
|
||||
Var OpenFromXML = CurrentXMLFileName2
|
||||
Var PriceD1 = $-.Price
|
||||
|
|
@ -2410,7 +2410,7 @@ Water" </Value>
|
|||
<Font> KanitMediumTTF </Font>
|
||||
<Color> 0x6F5F51 </Color>
|
||||
<State> showthaiText </State>
|
||||
<Value> "น้ำเชื่อมคาราเมล น้ำเชื่อมมินต์ นมและน้ำแข็ง" </Value>
|
||||
<Value> "น้ำเชื่อมคาราเมล มัทฉะ นมและน้ำแข็ง" </Value>
|
||||
</Text>
|
||||
<Text>
|
||||
<X> 16 </X>
|
||||
|
|
@ -2431,7 +2431,7 @@ Water" </Value>
|
|||
<Font> KanitMediumTTF </Font>
|
||||
<Color> 0x6F5F51 </Color>
|
||||
<State> showengText </State>
|
||||
<Value> "Mint Syrup, Caramel Syrup, Milk and Ice" </Value>
|
||||
<Value> "Caramel Syrup, Matcha Milk and Ice" </Value>
|
||||
</Text>
|
||||
<Image>
|
||||
<X> 16 </X>
|
||||
|
|
|
|||
|
|
@ -1,83 +0,0 @@
|
|||
<?hurr
|
||||
#include=menu_head.py
|
||||
?>
|
||||
|
||||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
;<Background> "0xeae6e1" </Background>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventOpen>
|
||||
; On open
|
||||
<?hurr
|
||||
#include=menu_catalog_default_init.xml
|
||||
?>
|
||||
|
||||
Var Menu1Selected = "PressForever"
|
||||
|
||||
Var OreoBigButtonEnable = "Enable"
|
||||
|
||||
If $12-01-01-0001.Button = "Invisible" Then
|
||||
Var esp102101001Enable = "Invisible"
|
||||
Var esp122101001Enable = "Enable"
|
||||
|
||||
Else
|
||||
Var esp102101001Enable = "Enable"
|
||||
Var esp122101001Enable = "Invisible"
|
||||
|
||||
EndIf
|
||||
|
||||
SAVELOG PreviseXMLFileName2
|
||||
|
||||
Var Timeout = 0
|
||||
|
||||
If show_eng = "true" Then
|
||||
|
||||
Var text_unavailable = "UNAVAILABLE###size=16"
|
||||
Else
|
||||
Var text_unavailable = "หมด###size=32"
|
||||
|
||||
EndIf
|
||||
|
||||
<?hurr
|
||||
#include=menu_catalog_new_menu.xml
|
||||
?>
|
||||
|
||||
</EventOpen>
|
||||
|
||||
|
||||
<?hurr
|
||||
#include=menu_catalog_new.py
|
||||
?>
|
||||
|
||||
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen_v2.py
|
||||
?>
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen.py
|
||||
?>
|
||||
|
||||
|
||||
|
||||
;BigLogoLayout
|
||||
|
||||
<Button>
|
||||
<X> 780 </X>
|
||||
<Y> 500 </Y>
|
||||
<State> buttonRemoveCup </State>
|
||||
;<Color> "0x00BDFF" </Color>
|
||||
<Interval> 500 </Interval>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bn_remove_cup.png" </Filename>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bp_remove_cup.png" </Filename>
|
||||
<EventClick>
|
||||
Machine RemoveCup
|
||||
Machine DoorLidOpen
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
</Popup>
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load diff
39491
xml/page_catalog_group_recommend_multi_pro.xml
Normal file
39491
xml/page_catalog_group_recommend_multi_pro.xml
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -1,85 +0,0 @@
|
|||
<?hurr
|
||||
#include=menu_head.py
|
||||
?>
|
||||
|
||||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
;<Background> "0xeae6e1" </Background>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventOpen>
|
||||
; On open
|
||||
<?hurr
|
||||
#include=menu_catalog_default_init.xml
|
||||
?>
|
||||
|
||||
Var Menu1Selected = "PressForever"
|
||||
|
||||
Var OreoBigButtonEnable = "Enable"
|
||||
|
||||
If $12-01-01-0001.Button = "Invisible" Then
|
||||
Var esp102101001Enable = "Invisible"
|
||||
Var esp122101001Enable = "Enable"
|
||||
|
||||
Else
|
||||
Var esp102101001Enable = "Enable"
|
||||
Var esp122101001Enable = "Invisible"
|
||||
|
||||
EndIf
|
||||
|
||||
SAVELOG PreviseXMLFileName2
|
||||
|
||||
Var Timeout = 0
|
||||
|
||||
If show_eng = "true" Then
|
||||
|
||||
Var text_unavailable = "UNAVAILABLE###size=16"
|
||||
Else
|
||||
Var text_unavailable = "หมด###size=32"
|
||||
|
||||
EndIf
|
||||
|
||||
<?hurr
|
||||
#include=menu_catalog_new_menu.xml
|
||||
?>
|
||||
|
||||
</EventOpen>
|
||||
|
||||
|
||||
<?hurr
|
||||
#include=menu_catalog_new.py
|
||||
?>
|
||||
|
||||
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen_v2.py
|
||||
?>
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen.py
|
||||
?>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
;BigLogoLayout
|
||||
|
||||
<Button>
|
||||
<X> 780 </X>
|
||||
<Y> 500 </Y>
|
||||
<State> buttonRemoveCup </State>
|
||||
;<Color> "0x00BDFF" </Color>
|
||||
<Interval> 500 </Interval>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bn_remove_cup.png" </Filename>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bp_remove_cup.png" </Filename>
|
||||
<EventClick>
|
||||
Machine RemoveCup
|
||||
Machine DoorLidOpen
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
</Popup>
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue