Added: Rerun promotion

This commit is contained in:
Kenta420 2024-01-16 15:39:07 +07:00
parent a09907615b
commit a0334ca60e
13 changed files with 14745 additions and 39 deletions

View file

@ -1,6 +1,6 @@
normal_eng=ROOT/taobin_project/image/event/pro_mystery_cup_en.png normal_eng=ROOT/taobin_project/image/event/pro_rerun.png
normal_thai=ROOT/taobin_project/image/event/pro_mystery_cup_th.png normal_thai=ROOT/taobin_project/image/event/pro_rerun.png
press_eng=ROOT/taobin_project/image/event/pro_mystery_cup_en.png press_eng=ROOT/taobin_project/image/event/pro_rerun.png
press_thai=ROOT/taobin_project/image/event/pro_mystery_cup_th.png press_thai=ROOT/taobin_project/image/event/pro_rerun.png
disable_eng=ROOT/taobin_project/image/event/pro_mystery_cup_en.png disable_eng=ROOT/taobin_project/image/event/pro_rerun.png
disable_thai=ROOT/taobin_project/image/event/pro_mystery_cup_th.png disable_thai=ROOT/taobin_project/image/event/pro_rerun.png

BIN
image/event/pro_rerun.mp4 Normal file

Binary file not shown.

BIN
image/event/pro_rerun.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 202 KiB

View file

@ -1 +1 @@
/event/promotion_pepween.xml /event/promotion_rerun.xml

View file

@ -1,2 +1 @@
Var BigButtonEnable = "Invisible" Var BigButtonEnable = "Invisible"

10891
xml/event/promotion_rerun.xml Normal file

File diff suppressed because it is too large Load diff

View file

@ -7,39 +7,33 @@
<Filename> <Filename>
eval( eval(
If show_eng = "true" Then If show_eng = "true" Then
Var return = "ROOT/taobin_project/image/event/pepween/pro_pepween_en.png" Var return = ###normal_eng
Else Else
Var return = "ROOT/taobin_project/image/event/pepween/pro_pepween_th.png" Var return = ###normal_thai
EndIf EndIf
) )
</Filename> </Filename>
<FilenamePress> <FilenamePress>
eval( eval(
If show_eng = "true" Then If show_eng = "true" Then
Var return = "ROOT/taobin_project/image/event/pepween/pro_pepween_en.png" Var return = ###normal_eng
Else Else
Var return = "ROOT/taobin_project/image/event/pepween/pro_pepween_th.png" Var return = ###normal_thai
EndIf EndIf
) )
</FilenamePress> </FilenamePress>
<FilenameDisable> <FilenameDisable>
eval( eval(
If show_eng = "true" Then If show_eng = "true" Then
Var return = "ROOT/taobin_project/image/event/pepween/pro_pepween_en.png" Var return = ###normal_eng
Else Else
Var return = "ROOT/taobin_project/image/event/pepween/pro_pepween_th.png" Var return = ###normal_thai
EndIf EndIf
) )
</FilenameDisable> </FilenameDisable>
<EventOnClick> <EventOnClick>
Open "ROOT/taobin_project/xml/page_catalog_group_pro_rerun.xml"
Open "ROOT/taobin_project/xml/page_catalog_group_pro_pepween.xml"
; test random page
;Open "ROOT/taobin_project/xml/event/pepween/page_pepween_random.xml"
</EventOnClick> </EventOnClick>
@ -59,7 +53,7 @@
EndIf EndIf
) )
</State> </State>
<Filename> "ROOT/taobin_project/image/event/pepween/bn_pepween_videoTH.mp4" </Filename> <Filename> "ROOT/taobin_project/image/event/pro_rerun.mp4" </Filename>
</Video> </Video>
<Video> <Video>
@ -77,7 +71,7 @@
) )
</State> </State>
<Loop> "true" </Loop> <Loop> "true" </Loop>
<Filename> "ROOT/taobin_project/image/event/pepween/bn_pepween_videoEN.mp4" </Filename> <Filename> "ROOT/taobin_project/image/event/pro_rerun.mp4" </Filename>
</Video> </Video>
</Button> </Button>

View file

@ -16,15 +16,15 @@ Else
; zone promote ; zone promote
If OpenFromPageBoard = 1 Then If OpenFromPageBoard = 1 Then
If pro15THBEnable = 1 Then If RerunProEnable = 1 Then
Var BigButtonEnable = "Enable" Var BigButtonEnable = "Enable"
OpenInst 2 "ROOT/taobin_project/xml/event/promotion_15THB.xml" OpenInst 2 "ROOT/taobin_project/xml/event/promotion_rerun.xml"
Var OpenFromPageBoard = 0 Var OpenFromPageBoard = 0
Else Else
If MyMintEnable = 1 Then If pro15THBEnable = 1 Then
Var BigButtonEnable = "Enable" Var BigButtonEnable = "Enable"
OpenInst 2 "ROOT/taobin_project/xml/event/promotion_mymint.xml" OpenInst 2 "ROOT/taobin_project/xml/event/promotion_15THB.xml"
Var OpenFromPageBoard = 0 Var OpenFromPageBoard = 0
Else Else
@ -33,16 +33,16 @@ Else
EndIf EndIf
EndIf EndIf
Else Else
If pro15THBEnable = 1 Then If RerunProEnable = 1 Then
; Temporary debug ; Temporary debug
Var BigButtonEnable = "Enable" Var BigButtonEnable = "Enable"
Open "ROOT/taobin_project/xml/event/promotion_15THB.xml" Open "ROOT/taobin_project/xml/event/promotion_rerun.xml"
Else Else
If MyMintEnable = 1 Then If pro15THBEnable = 1 Then
Var BigButtonEnable = "Enable" Var BigButtonEnable = "Enable"
Open "ROOT/taobin_project/xml/event/promotion_mymint.xml" Open "ROOT/taobin_project/xml/event/promotion_15THB.xml"
Else Else
Open "ROOT/taobin_project/xml/page_catalog_group_recommend.xml" Open "ROOT/taobin_project/xml/page_catalog_group_recommend.xml"

View file

@ -53,6 +53,10 @@ Var From15THBPro = 0
Var MyMintEnable = 0 Var MyMintEnable = 0
Var FromMyMintPro = 0 Var FromMyMintPro = 0
; Enable pro Rerun, Jan 22-26/29-31
Var RerunProEnable = 0
Var FromRerunPro = 0
Var NewCollectPoint = 1 Var NewCollectPoint = 1
If SystemDateMonthInt = 10 Then If SystemDateMonthInt = 10 Then
@ -85,14 +89,25 @@ If SystemDateMonthInt = 1 Then
If SystemDateDayInt < 15 Then If SystemDateDayInt < 15 Then
Var MyMintEnable = 1 Var MyMintEnable = 1
EndIf EndIf
If SystemDateDayInt >= 22 Then
If SystemDateDayInt <= 26 Then
Var RerunProEnable = 1
Else
If SystemDateDayInt >= 29 Then
If SystemDateDayInt <= 31 Then
Var RerunProEnable = 1
EndIf
EndIf
EndIf
EndIf
EndIf EndIf
If BoxID = 173149 Then If BoxID = 173149 Then
Var MyMintEnable = 1 Var RerunProEnable = 1
Var pro15THBEnable = 0
EndIf EndIf
If BoxID = 176757 Then If BoxID = 176757 Then
@ -126,8 +141,19 @@ EndIf
If BoxID = 105005 Then If BoxID = 105005 Then
Var NewCollectPoint = 1 Var NewCollectPoint = 1
Var MyMintEnable = 1 Var RerunProEnable = 1
Var pro15THBEnable = 0 EndIf
If BoxID = 175668 Then
Var RerunProEnable = 1
EndIf
If BoxID = 173969 Then
Var RerunProEnable = 1
EndIf
If BoxID = 176128 Then
Var RerunProEnable = 1
EndIf EndIf
Var GameEnableFromTrickerEv = 1 Var GameEnableFromTrickerEv = 1
@ -158,6 +184,7 @@ If InternationalEnable = 1 Then
Var PepsiProCodeEnable = 0 Var PepsiProCodeEnable = 0
Var MysteryProEnable = 0 Var MysteryProEnable = 0
Var PepweenEnable = 0 Var PepweenEnable = 0
Var RerunProEnable = 0
EndIf EndIf

View file

@ -13,6 +13,95 @@
else: else:
fixed_price = 0 fixed_price = 0
if current_file_name == "page_catalog_group_pro_rerun.skt":
def GetPrice(product_code_1, product_code_2, product_code_3):
prices = {
"12-02-02-0043": 15,
"12-99-05-0057": 15,
"12-99-05-0059": 15,
"12-02-02-0044": 20,
"12-99-03-0046": 20,
"12-99-02-0050": 20,
"12-99-02-0011": 25,
"12-99-02-0015": 25,
"12-99-02-0003": 30,
"12-99-02-0001": 30,
"12-03-02-0036": 30,
"12-03-03-0035": 35,
"12-99-03-0066": 30
}
if product_code_1 in prices:
return prices[product_code_1]
elif product_code_2 in prices:
return prices[product_code_2]
elif product_code_3 in prices:
return prices[product_code_3]
else:
return ""
def GetOriginalPrice(product_code_1, product_code_2, product_code_3):
original_prices = {
"12-02-02-0043": 35,
"12-99-05-0057": 20,
"12-99-05-0059": 20,
"12-02-02-0044": 25,
"12-99-03-0046": 25,
"12-99-02-0050": 25,
"12-99-02-0011": 30,
"12-99-02-0015": 30,
"12-99-02-0003": 35,
"12-99-02-0001": 35,
"12-03-02-0036": 40,
"12-03-03-0035": 45,
"12-99-03-0066": 60
}
if product_code_1 in original_prices:
return original_prices[product_code_1]
elif product_code_2 in original_prices:
return original_prices[product_code_2]
elif product_code_3 in original_prices:
return original_prices[product_code_3]
else:
return ""
def GetTricker(product_code_1, product_code_2, product_code_3):
trickers = {
"12-02-02-0043": "PMD20",
"12-99-05-0057": "PMD05",
"12-99-05-0059": "PMD05",
"12-02-02-0044": "PMD05",
"12-99-03-0046": "PMD05",
"12-99-02-0011": "PMD05",
"12-99-02-0015": "PMD05",
"12-99-02-0003": "PMD05",
"12-99-02-0001": "PMD05",
"12-03-02-0036": "PMD10",
"12-03-03-0035": "PMD10",
"12-99-03-0066": "PMD30"
}
if product_code_1 in trickers:
return trickers[product_code_1]
elif product_code_2 in trickers:
return trickers[product_code_2]
elif product_code_3 in trickers:
return trickers[product_code_3]
else:
return ""
get_price = GetPrice
get_original_price = GetOriginalPrice
get_tricker = GetTricker
rerun_fix_price = True
else:
get_price = None
get_original_price = None
get_tricker = None
rerun_fix_price = False
if current_file_name == "page_catalog_group_pro_mymint.skt": if current_file_name == "page_catalog_group_pro_mymint.skt":
from_my_mint_promotion = True from_my_mint_promotion = True
menu_white_color_catalog = True menu_white_color_catalog = True
@ -201,9 +290,15 @@
out_xml( '\t\tVar OpenFromXML = CurrentXMLFileName2\r\n') out_xml( '\t\tVar OpenFromXML = CurrentXMLFileName2\r\n')
out_xml( '\t\tVar PriceD1 = $' + spl[4] + '.Price\r\n') if rerun_fix_price:
out_xml( '\t\tVar PriceD2 = $' + spl[5] + '.Price\r\n') out_xml( '\t\tVar PriceD1 = ' + str(get_price(pd_code_1, pd_code_2, pd_code_3)) + '\r\n')
out_xml( '\t\tVar PriceD3 = $' + spl[6] + '.Price\r\n') out_xml( '\t\tVar PriceD2 = ' + str(get_price(pd_code_1, pd_code_2, pd_code_3)) + '\r\n')
out_xml( '\t\tVar PriceD3 = ' + str(get_price(pd_code_1, pd_code_2, pd_code_3)) + '\r\n')
out_xml( '\t\tVar OldPrice = ' + str(get_original_price(pd_code_1, pd_code_2, pd_code_3)) + '\r\n')
else:
out_xml( '\t\tVar PriceD1 = $' + spl[4] + '.Price\r\n')
out_xml( '\t\tVar PriceD2 = $' + spl[5] + '.Price\r\n')
out_xml( '\t\tVar PriceD3 = $' + spl[6] + '.Price\r\n')
out_xml( '\t\tVar PD_CODE1 = "' + pd_code_1 + '"\r\n') out_xml( '\t\tVar PD_CODE1 = "' + pd_code_1 + '"\r\n')
out_xml( '\t\tVar PD_CODE2 = "' + pd_code_2 + '"\r\n') out_xml( '\t\tVar PD_CODE2 = "' + pd_code_2 + '"\r\n')
@ -284,6 +379,10 @@
if fixed_price > 0: if fixed_price > 0:
out_xml( '\t\tVar From15THBPro = 1 \r\n') out_xml( '\t\tVar From15THBPro = 1 \r\n')
if rerun_fix_price:
out_xml( '\t\tVar FromRerunPro = 1 \r\n')
out_xml( '\t\tVar RerunProCode = "' + get_tricker(pd_code_1, pd_code_2, pd_code_3) + '"\r\n')
if from_my_mint_promotion: if from_my_mint_promotion:
out_xml( '\t\tVar FromMyMintPro = 1 \r\n') out_xml( '\t\tVar FromMyMintPro = 1 \r\n')
@ -412,11 +511,15 @@
else: else:
if fixed_price > 0: if fixed_price > 0:
out_xml( '\t<Value> StringFmt( 15 , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n') out_xml( '\t<Value> StringFmt( 15 , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
elif rerun_fix_price:
out_xml( '\t<Value> StringFmt( ' + str(get_price(pd_code_1, pd_code_2, pd_code_3)) + ' , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
else: else:
out_xml( '\t<Value> StringFmt( $' + spl[4] + '.Price , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n') out_xml( '\t<Value> StringFmt( $' + spl[4] + '.Price , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
else: else:
if fixed_price > 0: if fixed_price > 0:
out_xml( '\t<Value> "฿15" </Value>\r\n') out_xml( '\t<Value> "฿15" </Value>\r\n')
elif rerun_fix_price:
out_xml( '\t<Value> "฿' + str(get_price(pd_code_1, pd_code_2, pd_code_3)) + '" </Value>\r\n')
else: else:
out_xml( '\t<Value> Var( "฿" + $' + spl[4] + '.Price ) </Value>\r\n') out_xml( '\t<Value> Var( "฿" + $' + spl[4] + '.Price ) </Value>\r\n')
out_xml( '\t</Text>\r\n') out_xml( '\t</Text>\r\n')
@ -463,11 +566,15 @@
else: else:
if fixed_price > 0: if fixed_price > 0:
out_xml( '\t<Value> StringFmt( 15 , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n') out_xml( '\t<Value> StringFmt( 15 , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
elif rerun_fix_price:
out_xml( '\t<Value> StringFmt( ' + str(get_price(pd_code_1, pd_code_2, pd_code_3)) + ' , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
else: else:
out_xml( '\t<Value> StringFmt( $' + spl[5] + '.Price , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n') out_xml( '\t<Value> StringFmt( $' + spl[5] + '.Price , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
else: else:
if fixed_price > 0: if fixed_price > 0:
out_xml( '\t<Value> "฿15" </Value>\r\n') out_xml( '\t<Value> "฿15" </Value>\r\n')
elif rerun_fix_price:
out_xml( '\t<Value> "฿' + str(get_price(pd_code_1, pd_code_2, pd_code_3)) + '" </Value>\r\n')
else: else:
out_xml( '\t<Value> Var( "฿" + $' + spl[5] + '.Price ) </Value>\r\n') out_xml( '\t<Value> Var( "฿" + $' + spl[5] + '.Price ) </Value>\r\n')
out_xml( '\t</Text>\r\n') out_xml( '\t</Text>\r\n')
@ -516,11 +623,15 @@
else: else:
if fixed_price > 0: if fixed_price > 0:
out_xml( '\t<Value> StringFmt( 15 , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n') out_xml( '\t<Value> StringFmt( 15 , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
elif rerun_fix_price:
out_xml( '\t<Value> StringFmt( ' + str(get_price(pd_code_1, pd_code_2, pd_code_3)) + ' , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
else: else:
out_xml( '\t<Value> StringFmt( $' + spl[6] + '.Price , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n') out_xml( '\t<Value> StringFmt( $' + spl[6] + '.Price , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
else: else:
if fixed_price > 0: if fixed_price > 0:
out_xml( '\t<Value> "฿15" </Value>\r\n') out_xml( '\t<Value> "฿15" </Value>\r\n')
elif rerun_fix_price:
out_xml( '\t<Value> "฿' + str(get_price(pd_code_1, pd_code_2, pd_code_3)) + '" </Value>\r\n')
else: else:
out_xml( '\t<Value> Var( "฿" + $' + spl[6] + '.Price ) </Value>\r\n') out_xml( '\t<Value> Var( "฿" + $' + spl[6] + '.Price ) </Value>\r\n')
out_xml( '\t</Text>\r\n') out_xml( '\t</Text>\r\n')

View file

@ -0,0 +1,47 @@
<?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.py
?>
Var Timeout = 0
Var RerunProCode = ""
Var FromRerunPro = 0
<?hurr
#include=menu_catalog_new_menu.py
?>
</EventOpen>
<?hurr
#include=menu_catalog_new.py
?>
<?hurr
#include=menu_new_layout_gen_v2.py
?>
<?hurr
#include=menu_new_layout_gen.py
?>
</Popup>

File diff suppressed because it is too large Load diff

View file

@ -76,6 +76,14 @@
Var PriceDrink = OriginalPrice Var PriceDrink = OriginalPrice
EndIf EndIf
If FromRerunPro = 1 Then
Var PromoPriceDrink = PriceDrink
Var PriceDrink = OldPrice
DEBUGVAR PriceDrink
DEBUGVAR PromoPriceDrink
EndIf
;Var AdultFlag = 1 ;Var AdultFlag = 1
@ -269,6 +277,20 @@
DEBUGVAR PriceDrink DEBUGVAR PriceDrink
DEBUGVAR PriceDrinkTmp DEBUGVAR PriceDrinkTmp
If FromRerunPro = 1 Then
Var PriceDiff = PriceDrink - PromoPriceDrink
Var Seeker.VendingCode = RerunProCode
Var Seeker.IntVendingCampaign = PriceDiff
Var Seeker.FreeVendingCampaign = 0
Var Seeker.CodeChannel = 1
Var Seeker.CodeNumber = IDNum
Var Seeker.VendingCampaignRI3 = PriceDiff
Var Seeker.CampaignPPrice = PromoPriceDrink
; reset
Var RerunProCode = ""
EndIf
If NightTime = 1 Then If NightTime = 1 Then
If SelectDrink = "12-99-03-0066" Then If SelectDrink = "12-99-03-0066" Then
Var PriceDrink = 60 Var PriceDrink = 60