MYS: prep for fruity raya promo
This commit is contained in:
parent
f174d7530b
commit
f67160c120
12 changed files with 15790 additions and 7 deletions
6
inter/mys/image/event/image_template4
Normal file
6
inter/mys/image/event/image_template4
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
normal_eng=ROOT/taobin_project/inter/mys/image/event/pro_fruity_raya/mys_promo_fruity_raya.png
|
||||
normal_thai=ROOT/taobin_project/inter/mys/image/event/pro_fruity_raya/mys_promo_fruity_raya.png
|
||||
press_eng=ROOT/taobin_project/inter/mys/image/event/pro_fruity_raya/mys_promo_fruity_raya.png
|
||||
press_thai=ROOT/taobin_project/inter/mys/image/event/pro_fruity_raya/mys_promo_fruity_raya.png
|
||||
disable_eng=ROOT/taobin_project/inter/mys/image/event/pro_fruity_raya/mys_promo_fruity_raya.png
|
||||
disable_thai=ROOT/taobin_project/inter/mys/image/event/pro_fruity_raya/mys_promo_fruity_raya.png
|
||||
|
Before Width: | Height: | Size: 243 KiB After Width: | Height: | Size: 243 KiB |
|
|
@ -164,3 +164,56 @@ 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()
|
||||
|
||||
|
||||
# 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()
|
||||
1
inter/mys/xml/event/out_put_file4.txt
Normal file
1
inter/mys/xml/event/out_put_file4.txt
Normal file
|
|
@ -0,0 +1 @@
|
|||
/event/promotion_fruit_raya.xml
|
||||
12590
inter/mys/xml/event/promotion_fruit_raya.xml
Normal file
12590
inter/mys/xml/event/promotion_fruit_raya.xml
Normal file
File diff suppressed because it is too large
Load diff
1
inter/mys/xml/event/promotion_onclick4.inc
Normal file
1
inter/mys/xml/event/promotion_onclick4.inc
Normal file
|
|
@ -0,0 +1 @@
|
|||
Open "ROOT/taobin_project/inter/mys/xml/page_catalog_fruity_raya.xml"
|
||||
55
inter/mys/xml/event/promotion_template4.inc
Normal file
55
inter/mys/xml/event/promotion_template4.inc
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
;
|
||||
;
|
||||
;
|
||||
;
|
||||
; Big button for mys event
|
||||
;
|
||||
;
|
||||
;
|
||||
|
||||
<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>
|
||||
|
|
@ -8,15 +8,17 @@
|
|||
|
||||
Var Propepsi99Enable = 0
|
||||
|
||||
; FruityRaya Promo
|
||||
Var FruityRayaEnable = 0
|
||||
Var FromFruityRaya = 0
|
||||
|
||||
If SystemDateMonthInt = 8 Then
|
||||
If SystemDateDayInt > 29 Then
|
||||
Var Propepsi99Enable = 1
|
||||
If SystemDateMonthInt = 3 Then
|
||||
If SystemDateDayInt >= 25 Then
|
||||
Var FruityRayaEnable = 1
|
||||
EndIf
|
||||
EndIf
|
||||
If SystemDateMonthInt = 9 Then
|
||||
Var Propepsi99Enable = 1
|
||||
|
||||
If SystemDateMonthInt = 4 Then
|
||||
Var FruityRayaEnable = 1
|
||||
EndIf
|
||||
|
||||
DEBUGVAR Propepsi99Enable
|
||||
DEBUGVAR DisplayFormatFull
|
||||
3020
inter/mys/xml/page_catalog_group_fruity_raya.lxml
Normal file
3020
inter/mys/xml/page_catalog_group_fruity_raya.lxml
Normal file
File diff suppressed because it is too large
Load diff
46
inter/mys/xml/page_catalog_group_fruity_raya.skt
Normal file
46
inter/mys/xml/page_catalog_group_fruity_raya.skt
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
<?hurr
|
||||
#include=menu_head.py
|
||||
?>
|
||||
|
||||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
;<Background> "0xeae6e1" </Background>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventOpen>
|
||||
; On open
|
||||
<?hurr
|
||||
#include=menu_catalog_default_init.xml
|
||||
?>
|
||||
|
||||
Var FromFruityRaya = 0
|
||||
Var Timeout = 0
|
||||
|
||||
|
||||
<?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
|
||||
?>
|
||||
|
||||
|
||||
|
||||
</Popup>
|
||||
Loading…
Add table
Add a link
Reference in a new issue