This commit is contained in:
kong 2023-05-12 15:49:12 +07:00
parent 44f9795ea8
commit 539ec9676a
32 changed files with 9896 additions and 105 deletions

View file

@ -1,66 +1,70 @@
print( "dir= " + directory_to_process + "/page_catalog_group_recommend.xml");
file_xml = open(directory_to_process + "/page_catalog_group_recommend.xml", '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_inc2 = open(directory_to_process + "/big_logo.inc", 'r')
file_inc2_content = file_inc2.read()
#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)
if "v2" in param:
print("V2 ignore")
else:
print( "dir= " + directory_to_process + "/page_catalog_group_recommend.xml");
file_xml = open(directory_to_process + "/page_catalog_group_recommend.xml", '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_inc2 = open(directory_to_process + "/big_logo.inc", 'r')
file_inc2_content = file_inc2.read()
#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]
begin_text = content_data.index(";TAGESP")
end_text = content_data.index(";TAGESP", begin_text + 7)
tmp2 = content_data[ end_text:-1]
print("tmp1=" + tmp1)
print("tmp2=" + tmp2)
#print("sub text = " + str(begin_text) + " end = " + str(end_text))
tmp1 = content_data[: begin_text - 7]
content_data = tmp1 + tmp2
tmp2 = content_data[ end_text:-1]
#print("tmp1=" + tmp1)
#print("tmp2=" + tmp2)
file_xml.close()
content_data = tmp1 + tmp2
file_xml.close()
file_inc2 = open(directory_to_process + "/event/big_logo_back_to_school.inc", 'r')
file_inc2_content = file_inc2.read()
content_data = content_data_was_repack.replace(";BigLogoLayout", file_inc2_content)
file_inc2 = open(directory_to_process + "/event/big_logo_back_to_school.inc", 'r')
file_inc2_content = file_inc2.read()
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]
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)
tmp2 = content_data[ end_text:-1]
#print("tmp1=" + tmp1)
#print("tmp2=" + tmp2)
content_data = tmp1 + tmp2
content_data = tmp1 + tmp2
file_xml3 = open(directory_to_process + "/event/page_recommend_backToSchool.xml", 'w')
file_xml3.write( content_data)
file_xml3.close()
#############################################
file_inc2 = open(directory_to_process + "/event/big_logo_oreo_buy2_save_movel.inc", 'r')
file_inc2_content = file_inc2.read()
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 = open(directory_to_process + "/event/page_recommend_oreo_buy2_save_more.xml", 'w')
file_xml3.write( content_data)
file_xml3.close()
file_xml3 = open(directory_to_process + "/event/page_recommend_backToSchool.xml", 'w')
file_xml3.write( content_data)
file_xml3.close()
#############################################
file_inc2 = open(directory_to_process + "/event/big_logo_oreo_buy2_save_movel.inc", 'r')
file_inc2_content = file_inc2.read()
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 = open(directory_to_process + "/event/page_recommend_oreo_buy2_save_more.xml", 'w')
file_xml3.write( content_data)
file_xml3.close()

View file

@ -237,6 +237,7 @@
EndIf
; zone cup on arm
If CupOnArm = "true" Then
If CheckCupStateDoorCupClose = "" Then
@ -3565,6 +3566,8 @@ VOLCANO" </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; - - -
; ==================> Len = 11
; 12-21-01-0003 12-21-02-0001 -
<Block>
<MarginLeft> 33 </MarginLeft>
@ -3639,7 +3642,7 @@ VOLCANO" </Value>
Var SelectDrinkType = 0
Open "ROOT/taobin_project/xml/page_topping_select6.xml"
Open "ROOT/taobin_project/xml/page_topping_select5.xml"
</EventOnClick>
</Button>
@ -3706,7 +3709,7 @@ VOLCANO" </Value>
<Color> 0x6F5F51 </Color>
<ColorDisable> 0xEAE6E1 </ColorDisable>
<State> $12-21-01-0003.Button </State>
<Value> StringFmt( $12-21-01-0003.Price , DisplayFormat, PreScaleConvertShow) </Value>; test
<Value> StringFmt( $12-21-01-0003.Price , DisplayFormat, PreScaleConvertShow) </Value>; test
</Text>
<Image>
<X> 81 </X>
@ -3734,15 +3737,15 @@ VOLCANO" </Value>
<State> "Invisible" </State>
</Image>
<Text>
<X> 183 </X>
<X> 180 </X>
<Y> TextPriceMenuY </Y>
<Size> TextPriceMenuSize </Size>
<Width>220</Width>
<Font> KanitMediumTTF </Font>
<Font> KanitRegularTTF </Font>
<Color> 0x6F5F51 </Color>
<ColorDisable> 0xEAE6E1 </ColorDisable>
<State> "Invisible" </State>
<Value> StringFmt( $-.Price , DisplayFormat, PreScaleConvertShow) </Value>; test
<Value> StringFmt( $-.Price , DisplayFormat, PreScaleConvertShow) </Value>; test
</Text>
<Image>
<X> 81 </X>
@ -3815,6 +3818,7 @@ VOLCANO" </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; - - -
; ==================> Len = 16
; 12-01-01-0014 12-01-02-0011 -
<Block>
@ -8906,7 +8910,7 @@ LIMENADE SODA" </Value>
<EventClick>
Machine RemoveCup
Machine DoorLidOpen
;Var buttonRemoveCup = "Invisible"
Var buttonRemoveCup = "Invisible"
</EventClick>
</Button>

View file

@ -237,6 +237,7 @@
EndIf
; zone cup on arm
If CupOnArm = "true" Then
If CheckCupStateDoorCupClose = "" Then
@ -3565,6 +3566,8 @@ VOLCANO" </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; - - -
; ==================> Len = 11
; 12-21-01-0003 12-21-02-0001 -
<Block>
<MarginLeft> 33 </MarginLeft>
@ -3639,7 +3642,7 @@ VOLCANO" </Value>
Var SelectDrinkType = 0
Open "ROOT/taobin_project/xml/page_topping_select6.xml"
Open "ROOT/taobin_project/xml/page_topping_select5.xml"
</EventOnClick>
</Button>
@ -3706,7 +3709,7 @@ VOLCANO" </Value>
<Color> 0x6F5F51 </Color>
<ColorDisable> 0xEAE6E1 </ColorDisable>
<State> $12-21-01-0003.Button </State>
<Value> StringFmt( $12-21-01-0003.Price , DisplayFormat, PreScaleConvertShow) </Value>; test
<Value> StringFmt( $12-21-01-0003.Price , DisplayFormat, PreScaleConvertShow) </Value>; test
</Text>
<Image>
<X> 81 </X>
@ -3734,15 +3737,15 @@ VOLCANO" </Value>
<State> "Invisible" </State>
</Image>
<Text>
<X> 183 </X>
<X> 180 </X>
<Y> TextPriceMenuY </Y>
<Size> TextPriceMenuSize </Size>
<Width>220</Width>
<Font> KanitMediumTTF </Font>
<Font> KanitRegularTTF </Font>
<Color> 0x6F5F51 </Color>
<ColorDisable> 0xEAE6E1 </ColorDisable>
<State> "Invisible" </State>
<Value> StringFmt( $-.Price , DisplayFormat, PreScaleConvertShow) </Value>; test
<Value> StringFmt( $-.Price , DisplayFormat, PreScaleConvertShow) </Value>; test
</Text>
<Image>
<X> 81 </X>
@ -3815,6 +3818,7 @@ VOLCANO" </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; - - -
; ==================> Len = 16
; 12-01-01-0014 12-01-02-0011 -
<Block>
@ -8906,7 +8910,7 @@ LIMENADE SODA" </Value>
<EventClick>
Machine RemoveCup
Machine DoorLidOpen
;Var buttonRemoveCup = "Invisible"
Var buttonRemoveCup = "Invisible"
</EventClick>
</Button>

View file

@ -48,6 +48,12 @@ If SystemDateMonthInt = 5 Then
Var OreoForFreeEnable = 1
EndIf
EndIf
If SystemDateDayInt > 14 Then
If SystemDateDayInt < 20 Then
Var OreoForFreeEnable = 1
EndIf
EndIf
EndIf