Merge branch 'masterpiece' of ssh://forthrd.ddns.net:2222/1TBHDD/ikong/taobin_project into masterpiece
This commit is contained in:
commit
f6a70c4f22
9 changed files with 12361 additions and 18 deletions
1
xml/event/double_promotion_onclick4.inc
Normal file
1
xml/event/double_promotion_onclick4.inc
Normal file
|
|
@ -0,0 +1 @@
|
|||
Var BigButtonEnable = "Invisible"
|
||||
12137
xml/event/double_promotion_pepsi_second_cup_30_and_free_energy_drink.xml
Normal file
12137
xml/event/double_promotion_pepsi_second_cup_30_and_free_energy_drink.xml
Normal file
File diff suppressed because it is too large
Load diff
125
xml/event/double_promotion_template4.inc
Normal file
125
xml/event/double_promotion_template4.inc
Normal file
|
|
@ -0,0 +1,125 @@
|
|||
<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>
|
||||
|
|
@ -408,6 +408,62 @@ else:
|
|||
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()
|
||||
|
|
@ -463,6 +519,7 @@ else:
|
|||
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()
|
||||
|
|
|
|||
1
xml/event/out_put_file_double_pro4.txt
Normal file
1
xml/event/out_put_file_double_pro4.txt
Normal file
|
|
@ -0,0 +1 @@
|
|||
/event/double_promotion_pepsi_second_cup_30_and_free_energy_drink.xml
|
||||
|
|
@ -166,14 +166,6 @@
|
|||
<Color> "0xeae6e1" </Color>
|
||||
</Image>
|
||||
|
||||
<EventOpen>
|
||||
|
||||
DEBUGVAR BigButtonEnable
|
||||
DEBUGVAR FreeEnergyDrink
|
||||
DEBUGVAR FreePowerup
|
||||
|
||||
</EventOpen>
|
||||
|
||||
|
||||
|
||||
<Timeout> 1000 </Timeout>
|
||||
|
|
@ -11318,10 +11310,9 @@ LIMENADE SODA" </Value>
|
|||
|
||||
|
||||
|
||||
|
||||
<Button>
|
||||
<X> 42 </X>
|
||||
<Y> 520 </Y>
|
||||
<Y> 518 </Y>
|
||||
|
||||
<State> BigButtonEnable </State>
|
||||
<Filename>
|
||||
|
|
@ -11368,6 +11359,5 @@ LIMENADE SODA" </Value>
|
|||
Refresh
|
||||
</EventUnitTest2>
|
||||
|
||||
|
||||
</Popup>
|
||||
|
||||
|
|
|
|||
|
|
@ -76,8 +76,19 @@ Else
|
|||
OpenInst 2 "ROOT/taobin_project/xml/event/double_promotion_pepsi_second_cup_30_and_monday_banana.xml"
|
||||
Var OpenFromPageBoard = 0
|
||||
Else
|
||||
OpenInst 2 "ROOT/taobin_project/xml/event/promotion_pepsi_second_cup_30.xml"
|
||||
Var OpenFromPageBoard = 0
|
||||
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
|
||||
|
||||
|
|
@ -137,7 +148,16 @@ 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/promotion_pepsi_second_cup_30.xml"
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue