THAI: Oreo Volcano and extend Matcha Every Day
This commit is contained in:
parent
5d29666002
commit
8fbed2ac9b
38 changed files with 43155 additions and 10386 deletions
|
|
@ -1,8 +1,6 @@
|
|||
<Popup>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
<Volume> SoundVolume </Volume>
|
||||
|
||||
<EventOpen>
|
||||
Var Timeout = 0
|
||||
Var ImageDir = "ROOT/taobin_project/image/event/boost_energy/"
|
||||
|
|
@ -33,9 +31,9 @@
|
|||
|
||||
<Timeout> 1000 </Timeout>
|
||||
<EventTimeout>
|
||||
Var CountDownBrewing = BREW_CNT
|
||||
;Var CountDownBrewing = BREW_CNT
|
||||
|
||||
Var ShowCountDownBrewing = CountDownBrewing
|
||||
;Var ShowCountDownBrewing = CountDownBrewing
|
||||
|
||||
Var Timeout = Timeout + 1
|
||||
If Timeout > 5 Then
|
||||
|
|
@ -137,22 +135,22 @@
|
|||
</Button>
|
||||
|
||||
|
||||
;
|
||||
<Image>
|
||||
<X> 751 </X>
|
||||
<Y> 413 </Y>
|
||||
<Filename> IMG_CNT </Filename>
|
||||
</Image>
|
||||
;
|
||||
<Text>
|
||||
<X> XPosiShowCountDownBrew </X>
|
||||
<Y> 470 </Y>
|
||||
<Align> End </Align>
|
||||
<Width> 153 </Width>
|
||||
<Size> 88 </Size>
|
||||
<Font> RobotoBold </Font>
|
||||
<Color> 0x513C2F </Color>
|
||||
<Value> ShowCountDownBrewing </Value>
|
||||
</Text>
|
||||
|
||||
;<Image>
|
||||
;<X> 751 </X>
|
||||
;<Y> 413 </Y>
|
||||
;<Filename> IMG_CNT </Filename>
|
||||
;</Image>
|
||||
|
||||
;<Text>
|
||||
;<X> XPosiShowCountDownBrew </X>
|
||||
;<Y> 470 </Y>
|
||||
;<Align> End </Align>
|
||||
;<Width> 153 </Width>
|
||||
;<Size> 88 </Size>
|
||||
;<Font> RobotoBold </Font>
|
||||
;<Color> 0x513C2F </Color>
|
||||
;<Value> ShowCountDownBrewing </Value>
|
||||
;</Text>
|
||||
|
||||
</Popup>
|
||||
16185
xml/event/double_promotion_matcha_every_day_and_oreo_volcano.xml
Normal file
16185
xml/event/double_promotion_matcha_every_day_and_oreo_volcano.xml
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -281,38 +281,6 @@ else:
|
|||
file_xml4.write( content_data)
|
||||
file_xml4.close()
|
||||
|
||||
if "catalog_other_pro" in param:
|
||||
with open(directory_to_process + "/page_catalog_group_other_other.xml", 'r') as otherCatalogFile:
|
||||
|
||||
otherCatalogConent = otherCatalogFile.read()
|
||||
|
||||
file_inc2 = open(directory_to_process + "/event/promotion_template_other_catalog.inc", 'r')
|
||||
file_inc2_content = file_inc2.read()
|
||||
file_inc2.close()
|
||||
|
||||
content_data = otherCatalogConent.replace(";BigLogoLayout", file_inc2_content)
|
||||
content_data = content_data.replace("<Max> 16 </Max>", '<Max> 12 </Max>')
|
||||
content_data = content_data.replace(";layout_mode", '<Mode> "EnableAdjust" </Mode>')
|
||||
content_data = content_data.replace(";banner_shifting",
|
||||
'''Var ColumnOverride[0] = 2
|
||||
Var ColumnOverride[1] = 2
|
||||
Var ColumnOverride[2] = 4
|
||||
Var ColumnOverride[3] = 4
|
||||
Var ColumnOverride[4] = 4
|
||||
Var ColumnGravity[0] = 3
|
||||
Var ColumnGravity[1] = 3
|
||||
''')
|
||||
|
||||
file_xml3_out = open(directory_to_process + "/event/out_put_file_other_catalog.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", "")
|
||||
|
||||
with open(directory_to_process + file_xml3_out_content, 'w') as outputFile:
|
||||
outputFile.write(content_data)
|
||||
|
||||
|
||||
if "multi_promotion" in param:
|
||||
files = os.listdir(directory_to_process + "/event/")
|
||||
files = [f for f in files if f.startswith("multi_promotion_config")]
|
||||
|
|
|
|||
|
|
@ -0,0 +1,28 @@
|
|||
[
|
||||
{
|
||||
"name": "matcha_every_day",
|
||||
"template": "/event/promotion_template.inc",
|
||||
"config": {
|
||||
"normal_eng": "ROOT/taobin_project/image/event/matcha_every_day/matcha_every_day2.png",
|
||||
"normal_thai": "ROOT/taobin_project/image/event/matcha_every_day/matcha_every_day2.png",
|
||||
"press_eng": "ROOT/taobin_project/image/event/matcha_every_day/matcha_every_day2.png",
|
||||
"press_thai": "ROOT/taobin_project/image/event/matcha_every_day/matcha_every_day2.png",
|
||||
"disable_eng": "ROOT/taobin_project/image/event/matcha_every_day/matcha_every_day2.png",
|
||||
"disable_thai": "ROOT/taobin_project/image/event/matcha_every_day/matcha_every_day2.png",
|
||||
"event_on_click": "ROOT/taobin_project/xml/page_catalog_group_pro_matcha_every_day.xml"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "oreo_volcano",
|
||||
"template": "/event/promotion_template.inc",
|
||||
"config": {
|
||||
"normal_eng": "ROOT/taobin_project/image/event/oreo_volcano/oreo_volcano_banner.png",
|
||||
"normal_thai": "ROOT/taobin_project/image/event/oreo_volcano/oreo_volcano_banner.png",
|
||||
"press_eng": "ROOT/taobin_project/image/event/oreo_volcano/oreo_volcano_banner.png",
|
||||
"press_thai": "ROOT/taobin_project/image/event/oreo_volcano/oreo_volcano_banner.png",
|
||||
"disable_eng": "ROOT/taobin_project/image/event/oreo_volcano/oreo_volcano_banner.png",
|
||||
"disable_thai": "ROOT/taobin_project/image/event/oreo_volcano/oreo_volcano_banner.png",
|
||||
"event_on_click": "ROOT/taobin_project/xml/page_catalog_group_pro_oreo_volcano.xml"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
|
@ -1 +1 @@
|
|||
/event/promotion_coconut_milk.xml
|
||||
/event/promotion_oreo_volcano.xml
|
||||
|
|
@ -1 +0,0 @@
|
|||
/event/promotion_boost_energy.xml
|
||||
|
|
@ -9,9 +9,7 @@
|
|||
<EventOpen>
|
||||
; On open
|
||||
|
||||
If BoostEnergyPro = 1 Then
|
||||
Open "ROOT/taobin_project/xml/event/promotion_boost_energy.xml"
|
||||
EndIf
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/xml/menu_catalog_default_init.xml"
|
||||
; soda and other
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -1 +1 @@
|
|||
Open "ROOT/taobin_project/xml/page_catalog_group_pro_coconut_milk.xml"
|
||||
Open "ROOT/taobin_project/xml/page_catalog_group_pro_oreo_volcano.xml"
|
||||
|
|
|
|||
16612
xml/event/promotion_oreo_volcano.xml
Normal file
16612
xml/event/promotion_oreo_volcano.xml
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -12,22 +12,4 @@
|
|||
###EventOnClick
|
||||
|
||||
</EventOnClick>
|
||||
|
||||
<Video>
|
||||
<X> 42 </X>
|
||||
<Y> 518 </Y>
|
||||
<Width> 484 </Width>
|
||||
<Height> 616 </Height>
|
||||
<Loop> "true" </Loop>
|
||||
<Filename> "ROOT/taobin_project/image/event/coconut_milk/coconut_milk.mp4" </Filename>
|
||||
</Video>
|
||||
</Button>
|
||||
|
||||
<EventUnitTest1>
|
||||
Var BigButtonEnable = "Enable"
|
||||
Refresh
|
||||
</EventUnitTest1>
|
||||
<EventUnitTest2>
|
||||
Var BigButtonEnable = "Invisible"
|
||||
Refresh
|
||||
</EventUnitTest2>
|
||||
|
|
|
|||
|
|
@ -1,15 +0,0 @@
|
|||
<Button>
|
||||
<X> 42 </X>
|
||||
<Y> 518 </Y>
|
||||
|
||||
<State> BigButtonEnable </State>
|
||||
<Filename> "ROOT/taobin_project/image/event/boost_energy/boost_energy.png" </Filename>
|
||||
<FilenamePress> "ROOT/taobin_project/image/event/boost_energy/boost_energy.png" </FilenamePress>
|
||||
<FilenameDisable> "ROOT/taobin_project/image/event/boost_energy/boost_energy.png" </FilenameDisable>
|
||||
<EventOnClick>
|
||||
|
||||
Open "ROOT/taobin_project/xml/page_catalog_group_pro_boost_energy.xml"
|
||||
|
||||
</EventOnClick>
|
||||
|
||||
</Button>
|
||||
|
|
@ -4,13 +4,10 @@ DEBUGVAR PayOfflineMode
|
|||
DEBUGVAR CocktailShow
|
||||
DEBUGVAR OpenFromPageBoard
|
||||
|
||||
DEBUGVAR StrawberrySeriesPro
|
||||
DEBUGVAR OvaltineSchoolPro
|
||||
DEBUGVAR RedStringOfFatePro
|
||||
DEBUGVAR CoconutMilkPro
|
||||
DEBUGVAR MatchaEveryDayPro
|
||||
DEBUGVAR KingdomThaiTeaPro
|
||||
DEBUGVAR PepsiXTaobinPro
|
||||
DEBUGVAR MatchaEveryDayPro
|
||||
DEBUGVAR OreoVolcanoPro
|
||||
|
||||
Var PromotionState1 = "Invisible"
|
||||
Var PromotionState2 = "Invisible"
|
||||
|
|
@ -34,18 +31,8 @@ Else
|
|||
|
||||
Else
|
||||
|
||||
If CoconutMilkPro = 1 Then
|
||||
Var FileRecommendToOpen = "ROOT/taobin_project/xml/event/promotion_coconut_milk.xml"
|
||||
Var PromotionState2 = "Enable"
|
||||
|
||||
If MatchaEveryDayPro = 1 Then
|
||||
Var PromotionState1 = "Enable"
|
||||
Var FileRecommendToOpen = "ROOT/taobin_project/xml/event/double_promotion_matcha_every_day_and_coconut_milk.xml"
|
||||
EndIf
|
||||
Else
|
||||
If MatchaEveryDayPro = 1 Then
|
||||
Var FileRecommendToOpen = "ROOT/taobin_project/xml/event/promotion_matcha_every_day.xml"
|
||||
EndIf
|
||||
If PepsiXTaobinPro = 1 Then
|
||||
Var FileRecommendToOpen = "ROOT/taobin_project/xml/event/promotion_pepsi_x_taobin.xml"
|
||||
EndIf
|
||||
|
||||
If KingdomThaiTeaPro = 1 Then
|
||||
|
|
@ -61,13 +48,19 @@ Else
|
|||
Var PromotionState2 = "Enable"
|
||||
Var FileRecommendToOpen = "ROOT/taobin_project/xml/event/double_promotion_kingdom_thai_tea_and_matcha_every_day.xml"
|
||||
EndIf
|
||||
Else
|
||||
If PepsiXTaobinPro = 1 Then
|
||||
Var FileRecommendToOpen = "ROOT/taobin_project/xml/event/promotion_pepsi_x_taobin.xml"
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If MatchaEveryDayPro = 1 Then
|
||||
Var FileRecommendToOpen = "ROOT/taobin_project/xml/event/promotion_matcha_every_day.xml"
|
||||
EndIf
|
||||
|
||||
If OreoVolcanoPro = 1 Then
|
||||
Var FileRecommendToOpen = "ROOT/taobin_project/xml/event/promotion_oreo_volcano.xml"
|
||||
Var PromotionState1 = "Enable"
|
||||
|
||||
If MatchaEveryDayPro = 1 Then
|
||||
Var FileRecommendToOpen = "ROOT/taobin_project/xml/event/promotion_matcha_every_day.xml"
|
||||
Var PromotionState2 = "Enable"
|
||||
Var FileRecommendToOpen = "ROOT/taobin_project/xml/event/double_promotion_matcha_every_day_and_oreo_volcano.xml"
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
|
|
|
|||
|
|
@ -68,9 +68,6 @@ Var SwensenPro = 0
|
|||
; Coconut Milk, 1 Mar - 31 Mar
|
||||
Var CoconutMilkPro = 0
|
||||
|
||||
; Matcha every day, 10 Mar - 31 Mar
|
||||
Var MatchaEveryDayPro = 0
|
||||
|
||||
; Kingdom of Thai tea, 1 Apr - 30 Apr
|
||||
Var KingdomThaiTeaPro = 0
|
||||
|
||||
|
|
@ -83,6 +80,12 @@ Var SongkranSoundCampaign = 0
|
|||
; Boost Energy drink, 1 - 11 May
|
||||
Var BoostEnergyPro = 0
|
||||
|
||||
; Matcha every day, 1 - 31 May
|
||||
Var MatchaEveryDayPro = 0
|
||||
|
||||
; Oreo volcano, 1 - 31 May
|
||||
Var OreoVolcanoPro = 0
|
||||
|
||||
Var NewCollectPoint = 1
|
||||
Var PaymentCodeShouldCollectPromotionPoint = 0
|
||||
|
||||
|
|
@ -132,6 +135,10 @@ If SystemDateMonthInt = 3 Then
|
|||
EndIf
|
||||
|
||||
If SystemDateMonthInt = 5 Then
|
||||
|
||||
Var OreoVolcanoPro = 1
|
||||
Var MatchaEveryDayPro = 1
|
||||
|
||||
If SystemDateDayInt <= 11 Then
|
||||
Var BoostEnergyPro = 1
|
||||
EndIf
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue