THAI: PRO

This commit is contained in:
Kenta420 2024-07-10 19:21:33 +07:00
parent 0c39850ad1
commit a14ee93cc7
158 changed files with 23855 additions and 132 deletions

View file

@ -1 +1 @@
/event/promotion_nam_hom_coconut.xml
/event/promotion_passion_mint.xml

File diff suppressed because it is too large Load diff

View file

@ -33,7 +33,7 @@
</FilenameDisable>
<EventOnClick>
Open "ROOT/taobin_project/xml/page_catalog_group_pro_nam_hom_coconut.xml"
Open "ROOT/taobin_project/xml/page_catalog_group_pro_passion_mint.xml"
</EventOnClick>
@ -53,7 +53,7 @@
EndIf
)
</State>
<Filename> "ROOT/taobin_project/image/event/nam_hom_coconut/nam_hom_coconut_th.mp4" </Filename>
<Filename> "ROOT/taobin_project/image/event/passion_mint/passion_mint_th.mp4" </Filename>
</Video>
<Video>
@ -71,7 +71,7 @@
)
</State>
<Loop> "true" </Loop>
<Filename> "ROOT/taobin_project/image/event/nam_hom_coconut/nam_hom_coconut_en.mp4" </Filename>
<Filename> "ROOT/taobin_project/image/event/passion_mint/passion_mint_en.mp4" </Filename>
</Video>
</Button>

View file

@ -4,9 +4,8 @@ DEBUGVAR PayOfflineMode
DEBUGVAR CocktailShow
DEBUGVAR OpenFromPageBoard
DEBUGVAR NamHomCoconutPro
DEBUGVAR Cocoa77Pro
DEBUGVAR PassionMintPro
DEBUGVAR 7UpLuckyDrawX2Pro
Var PromotionState1 = "Invisible"
Var PromotionState2 = "Invisible"
@ -21,49 +20,37 @@ If CocktailShow = "true" Then
EndIf
Else
; check profile to enable free energy drink promotion
STRCONTAIN "ProEnergyDrinkFreePerCardID" XMLProfile EnableFreeEnergyDrink
Var BigButtonEnable = "Enable"
DEBUGVAR FreeEnergyDrink
;Var FreeEnergyDrink = 1
;Var EnableFreeEnergyDrink = "true"
DEBUGVAR EnableFreeEnergyDrink
Var CountEnablePromotion = 0
Var FileRecommendToOpen = "ROOT/taobin_project/xml/page_catalog_group_recommend.xml"
; zone promote
If Cocoa77Pro = 1 Then
Var PromotionState1 = "Enable"
Var CountEnablePromotion = CountEnablePromotion + 1
If NamHomCoconutPro = 1 Then
Var PromotionState2 = "Enable"
Var CountEnablePromotion = CountEnablePromotion + 1
EndIf
If CountEnablePromotion > 1 Then
Var FileRecommendToOpen = "ROOT/taobin_project/xml/event/double_promotion_cocoa_77_and_nam_hom_coconut.xml"
Else
Var FileRecommendToOpen = "ROOT/taobin_project/xml/event/promotion_cocoa77.xml"
EndIf
If PassionMintPro = 1 Then
Var FileRecommendToOpen = "ROOT/taobin_project/xml/event/promotion_passion_mint.xml"
Else
If 7UpLuckyDrawX2Pro = 1 Then
Var FileRecommendToOpen = "ROOT/taobin_project/xml/event/promotion_7up_lucky_draw_x2.xml"
EndIf
If NamHomCoconutPro = 1 Then
Var FileRecommendToOpen = "ROOT/taobin_project/xml/event/ignore_gen_promotion_nam_hom_coconut.xml"
If Cocoa77Pro = 1 Then
Var PromotionState1 = "Enable"
Var CountEnablePromotion = CountEnablePromotion + 1
If NamHomCoconutPro = 1 Then
Var PromotionState2 = "Enable"
Var CountEnablePromotion = CountEnablePromotion + 1
EndIf
If CountEnablePromotion > 1 Then
Var FileRecommendToOpen = "ROOT/taobin_project/xml/event/double_promotion_cocoa_77_and_nam_hom_coconut.xml"
Else
Var FileRecommendToOpen = "ROOT/taobin_project/xml/event/promotion_cocoa77.xml"
EndIf
EndIf
EndIf
If OpenFromPageBoard = 1 Then
DEBUGVAR FreeEnergyDrink
DEBUGVAR BigButtonEnable

View file

@ -112,6 +112,10 @@ Var NamHomCoconutRewardOutOfStock = 0
Var Cocoa77Pro = 0
Var FromCocoa77Pro = 0
; Enable Passion Mint promotion, 15 - 17 Jul
Var PassionMintPro = 0
Var FromPassionMintPro = 0
; Enable 7UpLuckyDrawX2 promotion, 22 Jul - 9 Aus
Var 7UpLuckyDrawX2Pro = 0
@ -208,6 +212,12 @@ If SystemDateMonthInt = 7 Then
If SystemDateDayInt >= 22 Then
Var 7UpLuckyDrawX2Pro = 1
EndIf
If SystemDateDayInt >= 15 Then
If SystemDateDayInt <= 17 Then
Var PassionMintPro = 1
EndIf
EndIf
EndIf
If SystemDateMonthInt >= 7 Then
@ -242,6 +252,7 @@ If BoxID = 105005 Then
Var NamHomCoconutPro = 0
Var Cocoa77Pro = 0
Var 7UpLuckyDrawX2Pro = 1
Var PassionMintPro = 0
EndIf
@ -328,6 +339,10 @@ If taobin_nopro = "true" Then
Var WednesdayMelonPro = 0
Var NamHomCoconutPro = 0
Var Cocoa77Pro = 0
Var 7UpLuckyDrawX2Pro = 0
Var PassionMintPro = 0
Var AdvertiseProfile = "00/00/00/00/00/00/00/00/00/00/00/00/00/00/00/00/00/00/00/00/00/00"
@ -375,7 +390,13 @@ EndIf
If 7UpSyrupEnable = "true" Then
Else
Var 7UpLuckyDrawX2Pro = 1
Var 7UpLuckyDrawX2Pro = 0
EndIf
If MintSyrupEnable = "true" Then
Else
Var PassionMintPro = 0
EndIf

View file

@ -242,6 +242,30 @@
else:
from_cocoa77 = False
cocoa77_fix_price = False
if current_file_name == "page_catalog_group_pro_passion_mint.skt":
passion_mint = True
passion_mint_fix_price = {
"12-01-02-0057": 29,
"12-21-02-0057": 29,
"12-01-02-0058": 19,
"12-21-02-0058": 19,
"12-02-03-0050": 39,
"12-01-02-0064": 29,
"12-21-02-0064": 29,
"12-03-02-0035": 29,
"12-03-03-0034": 39,
"12-03-03-0037": 29,
"12-05-02-0063": 19,
"12-05-02-0064": 19,
"12-05-02-0067": 19
}
else:
passion_mint = False
passion_mint_fix_price = {}
if current_file_name == "page_catalog_group_pro_7up_lucky_draw_x2.skt":
menu_white_color_catalog = True
#print ("######################################################################################################")
idx_of_eng = 2
@ -459,6 +483,13 @@
out_xml( '\t\tVar OriginalPriceD1 = $' + spl[4] + '.Price\r\n')
out_xml( '\t\tVar OriginalPriceD2 = $' + spl[5] + '.Price\r\n')
out_xml( '\t\tVar OriginalPriceD3 = $' + spl[6] + '.Price\r\n')
elif passion_mint:
out_xml( '\t\tVar PriceD1 = ' + str(GetPrice(passion_mint_fix_price, pd_code_1)) + '\r\n')
out_xml( '\t\tVar PriceD2 = ' + str(GetPrice(passion_mint_fix_price, pd_code_2)) + '\r\n')
out_xml( '\t\tVar PriceD3 = ' + str(GetPrice(passion_mint_fix_price, pd_code_3)) + '\r\n')
out_xml( '\t\tVar OriginalPriceD1 = $' + spl[4] + '.Price\r\n')
out_xml( '\t\tVar OriginalPriceD2 = $' + spl[5] + '.Price\r\n')
out_xml( '\t\tVar OriginalPriceD3 = $' + spl[6] + '.Price\r\n')
else:
out_xml( '\t\tVar PriceD1 = $' + spl[4] + '.Price\r\n')
out_xml( '\t\tVar PriceD2 = $' + spl[5] + '.Price\r\n')
@ -573,6 +604,10 @@
if from_cocoa77:
out_xml( '\t\tVar FromCocoa77Pro = 1 \r\n')
if passion_mint:
out_xml( '\t\tVar FromPassionMintPro = 1 \r\n')
out_xml( '\t\t\r\n')
@ -712,6 +747,8 @@
out_xml( '\t<Value> StringFmt( ' + str(GetPrice(wednesday_melon_prices, spl[4])) + ' , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
elif cocoa77_fix_price:
out_xml( '\t<Value> StringFmt( $' + spl[4] + '.Price - 7 , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
elif passion_mint:
out_xml( '\t<Value> StringFmt( ' + str(GetPrice(passion_mint_fix_price, spl[4])) + ' , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
else:
out_xml( '\t<Value> StringFmt( $' + spl[4] + '.Price , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
else:
@ -725,6 +762,8 @@
out_xml( '\t<Value> "฿' + str(GetPrice(wednesday_melon_prices, spl[4])) + '" </Value>\r\n')
elif cocoa77_fix_price:
out_xml( '\t<Value> Var( "฿" + $' + spl[4] + '.Price - 7 ) </Value>\r\n')
elif passion_mint:
out_xml( '\t<Value> "฿' + str(GetPrice(passion_mint_fix_price, spl[4])) + '" </Value>\r\n')
else:
out_xml( '\t<Value> Var( "฿" + $' + spl[4] + '.Price ) </Value>\r\n')
out_xml( '\t</Text>\r\n')
@ -783,6 +822,8 @@
out_xml( '\t<Value> StringFmt( ' + str(GetPrice(wednesday_melon_prices, spl[5])) + ' , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
elif cocoa77_fix_price:
out_xml( '\t<Value> StringFmt( $' + spl[5] + '.Price - 7, DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
elif passion_mint:
out_xml( '\t<Value> StringFmt( ' + str(GetPrice(passion_mint_fix_price, spl[5])) + ' , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
else:
out_xml( '\t<Value> StringFmt( $' + spl[5] + '.Price , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
else:
@ -796,6 +837,8 @@
out_xml( '\t<Value> "฿' + str(GetPrice(wednesday_melon_prices, spl[5])) + '" </Value>\r\n')
elif cocoa77_fix_price:
out_xml( '\t<Value> Var( "฿" + $' + spl[5] + '.Price - 7 ) </Value>\r\n')
elif passion_mint:
out_xml( '\t<Value> "฿' + str(GetPrice(passion_mint_fix_price, spl[5])) + '" </Value>\r\n')
else:
out_xml( '\t<Value> Var( "฿" + $' + spl[5] + '.Price ) </Value>\r\n')
out_xml( '\t</Text>\r\n')
@ -870,6 +913,8 @@
out_xml( '\t<Value> StringFmt( ' + str(GetPrice(wednesday_melon_prices, spl[6])) + ' , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
elif cocoa77_fix_price:
out_xml( '\t<Value> StringFmt( $' + spl[6] + '.Price - 7, DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
elif passion_mint:
out_xml( '\t<Value> StringFmt( ' + str(GetPrice(passion_mint_fix_price, spl[6])) + ' , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
else:
out_xml( '\t<Value> StringFmt( $' + spl[6] + '.Price , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
else:
@ -883,6 +928,8 @@
out_xml( '\t<Value> "฿' + str(GetPrice(wednesday_melon_prices, spl[6])) + '" </Value>\r\n')
elif cocoa77_fix_price:
out_xml( '\t<Value> Var( "฿" + $' + spl[6] + '.Price - 7 ) </Value>\r\n')
elif passion_mint:
out_xml( '\t<Value> "฿' + str(GetPrice(passion_mint_fix_price, spl[6])) + '" </Value>\r\n')
else:
out_xml( '\t<Value> Var( "฿" + $' + spl[6] + '.Price ) </Value>\r\n')
out_xml( '\t</Text>\r\n')
@ -1086,6 +1133,13 @@
out_xml( '\t\tVar OriginalPriceD1 = $' + spl[8] + '.Price\r\n')
out_xml( '\t\tVar OriginalPriceD2 = $' + spl[9] + '.Price\r\n')
out_xml( '\t\tVar OriginalPriceD3 = $' + spl[10] + '.Price\r\n')
elif passion_mint:
out_xml( '\t\tVar PriceD1 = ' + str(GetPrice(passion_mint_fix_price, pd_code_1)) + '\r\n')
out_xml( '\t\tVar PriceD2 = ' + str(GetPrice(passion_mint_fix_price, pd_code_2)) + '\r\n')
out_xml( '\t\tVar PriceD3 = ' + str(GetPrice(passion_mint_fix_price, pd_code_3)) + '\r\n')
out_xml( '\t\tVar OriginalPriceD1 = $' + spl[8] + '.Price\r\n')
out_xml( '\t\tVar OriginalPriceD2 = $' + spl[9] + '.Price\r\n')
out_xml( '\t\tVar OriginalPriceD3 = $' + spl[10] + '.Price\r\n')
else:
out_xml( '\t\tVar PriceD1 = $' + spl[8] + '.Price\r\n')
out_xml( '\t\tVar PriceD2 = $' + spl[9] + '.Price\r\n')
@ -1191,6 +1245,9 @@
if from_cocoa77:
out_xml( '\t\tVar FromCocoa77Pro = 1 \r\n')
if passion_mint:
out_xml( '\t\tVar FromPassionMintPro = 1 \r\n')
out_xml( '\t\t\r\n')
out_xml( '\t\t\r\n')
@ -1303,6 +1360,8 @@
out_xml( '\t<Value> StringFmt( ' + str(GetPrice(wednesday_melon_prices, spl[8])) + ' , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
elif cocoa77_fix_price:
out_xml( '\t<Value> StringFmt( $' +spl[8] + '.Price - 7 , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
elif passion_mint:
out_xml( '\t<Value> StringFmt( ' + str(GetPrice(passion_mint_fix_price, spl[8])) + ' , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
else:
out_xml( '\t<Value> StringFmt( $' +spl[8] + '.Price , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
else:
@ -1310,6 +1369,8 @@
out_xml( '\t<Value> "฿' + str(GetPrice(wednesday_melon_prices, spl[8])) + '" </Value>\r\n')
elif cocoa77_fix_price:
out_xml( '\t<Value> Var( "฿" + $' + spl[8] + '.Price - 7 ) </Value>\r\n')
elif passion_mint:
out_xml( '\t<Value> "฿' + str(GetPrice(passion_mint_fix_price, spl[8])) + '" </Value>\r\n')
else:
out_xml( '\t<Value> Var( "฿" + $' + spl[8] + '.Price ) </Value>\r\n')
@ -1360,6 +1421,8 @@
out_xml( '\t<Value> StringFmt( ' + str(GetPrice(wednesday_melon_prices, spl[9])) + ' , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
elif cocoa77_fix_price:
out_xml( '\t<Value> StringFmt( $' +spl[9] + '.Price - 7, DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
elif passion_mint:
out_xml( '\t<Value> StringFmt( ' + str(GetPrice(passion_mint_fix_price, spl[9])) + ' , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
else:
out_xml( '\t<Value> StringFmt( $' +spl[9] + '.Price , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
else:
@ -1367,6 +1430,8 @@
out_xml( '\t<Value> "฿' + str(GetPrice(wednesday_melon_prices, spl[9])) + '" </Value>\r\n')
elif cocoa77_fix_price:
out_xml( '\t<Value> Var( "฿" + $' + spl[9] + '.Price - 7 ) </Value>\r\n')
elif passion_mint:
out_xml( '\t<Value> "฿' + str(GetPrice(passion_mint_fix_price, spl[9])) + '" </Value>\r\n')
else:
out_xml( '\t<Value> Var( "฿" + $' + spl[9] + '.Price ) </Value>\r\n')
@ -1416,6 +1481,8 @@
out_xml( '\t<Value> StringFmt( ' + str(GetPrice(wednesday_melon_prices, spl[10])) + ' , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
elif cocoa77_fix_price:
out_xml( '\t<Value> StringFmt( $' +spl[10] + '.Price - 7, DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
elif passion_mint:
out_xml( '\t<Value> StringFmt( ' + str(GetPrice(passion_mint_fix_price, spl[10])) + ' , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
else:
out_xml( '\t<Value> StringFmt( $' +spl[10] + '.Price , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
else:
@ -1423,6 +1490,8 @@
out_xml( '\t<Value> "฿' + str(GetPrice(wednesday_melon_prices, spl[10])) + '" </Value>\r\n')
elif cocoa77_fix_price:
out_xml( '\t<Value> Var( "฿" + $' + spl[10] + '.Price - 7 ) </Value>\r\n')
elif passion_mint:
out_xml( '\t<Value> "฿' + str(GetPrice(passion_mint_fix_price, spl[10])) + '" </Value>\r\n')
else:
out_xml( '\t<Value> Var( "฿" + $' + spl[10] + '.Price ) </Value>\r\n')

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,52 @@
<?hurr
#include=menu_head.py
?>
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
;<Background> "0xeae6e1" </Background>
<Volume> SoundVolume </Volume>
<EventOpen>
; On open
;include="ROOT/taobin_project/xml/menu_catalog_default_init.xml"
Var Timeout = 0
;include="ROOT/taobin_project/xml/menu_catalog_new_menu.xml"
</EventOpen>
;include="ROOT/taobin_project/xml/menu_catalog_new.xml"
<?hurr
#include=menu_new_layout_gen_v2.py
?>
<?hurr
#include=menu_new_layout_gen.py
?>
;BigLogoLayout
<Button>
<X> 780 </X>
<Y> 500 </Y>
<State> buttonRemoveCup </State>
;<Color> "0x00BDFF" </Color>
<Interval> 500 </Interval>
<Filename> "ROOT/taobin_project/image/main_page/bn_remove_cup.png" </Filename>
<Filename> "ROOT/taobin_project/image/main_page/bp_remove_cup.png" </Filename>
<EventClick>
Machine RemoveCup
Machine DoorLidOpen
Var buttonRemoveCup = "Invisible"
</EventClick>
</Button>
</Popup>

File diff suppressed because it is too large Load diff

View file

@ -306,6 +306,13 @@
Var Seeker.CampaignPPrice = PromotionPriceDrink
EndIf
If FromPassionMintPro = 1 Then
Var OriginalPriceWithTopping = OriginalPrice + TOPPING_PRICE
Var PriceDiff = OriginalPriceWithTopping - PromotionPriceDrink
Var DiscountDrink = PriceDiff
Var Seeker.CampaignPPrice = PromotionPriceDrink
EndIf
If FromRerunPro = 1 Then
Var PriceDiff = PriceDrink - PromoPriceDrink
Var Seeker.VendingCode = RerunProCode