THAI: Add assets Cocoa 7.7 pro
This commit is contained in:
parent
324e18880d
commit
53bf26c207
146 changed files with 126 additions and 11 deletions
|
|
@ -1 +1 @@
|
|||
/event/promotion_energy_drink_1_bath.xml
|
||||
/event/promotion_cocoa77.xml
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@
|
|||
)
|
||||
</FilenameDisable>
|
||||
<EventOnClick>
|
||||
Open "ROOT/taobin_project/xml/event/energy_drink_1_bath/page_energy_drink_1_bath_check_member.xml"
|
||||
Open "ROOT/taobin_project/xml/page_catalog_group_pro_cocoa77.xml"
|
||||
|
||||
</EventOnClick>
|
||||
|
||||
|
|
@ -52,7 +52,7 @@
|
|||
EndIf
|
||||
)
|
||||
</State>
|
||||
<Filename> "ROOT/taobin_project/image/event/energy_drink_1_bath/energy_drink_1_bath_th.mp4" </Filename>
|
||||
<Filename> "ROOT/taobin_project/image/event/cocoa77/cocoa77.mp4" </Filename>
|
||||
</Video>
|
||||
|
||||
<Video>
|
||||
|
|
@ -70,7 +70,7 @@
|
|||
)
|
||||
</State>
|
||||
<Loop> "true" </Loop>
|
||||
<Filename> "ROOT/taobin_project/image/event/energy_drink_1_bath/energy_drink_1_bath_en.mp4" </Filename>
|
||||
<Filename> "ROOT/taobin_project/image/event/cocoa77/cocoa77.mp4" </Filename>
|
||||
</Video>
|
||||
|
||||
</Button>
|
||||
|
|
|
|||
|
|
@ -108,6 +108,10 @@ Var NamHomCoconutPro = 0
|
|||
Var FromNamHomCoconutPro = 0
|
||||
Var NamHomCoconutRewardOutOfStock = 0
|
||||
|
||||
; Enable Cocoa 7.7 promotion, 7 - 9 July
|
||||
Var Cocoa77Pro = 0
|
||||
Var FromCocoa77Pro = 0
|
||||
|
||||
Var NewCollectPoint = 1
|
||||
Var ShouldCollectPromotionPoint = 0
|
||||
|
||||
|
|
@ -191,6 +195,12 @@ If SystemDateMonthInt = 7 Then
|
|||
If SystemDateDayInt <= 10 Then
|
||||
Var NamHomCoconutPro = 1
|
||||
EndIf
|
||||
|
||||
If SystemDateDayInt >= 7 Then
|
||||
If SystemDateDayInt <= 9 Then
|
||||
Var Cocoa77Pro = 1
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If SystemDateMonthInt >= 7 Then
|
||||
|
|
@ -219,7 +229,7 @@ If BoxID = 105005 Then
|
|||
Var EnergyDrink1BathPro = 1
|
||||
Var CoffeeDrink1BathPro = 0
|
||||
Var NamHomCoconutPro = 1
|
||||
Var CheckMemberPageCampaign = 1
|
||||
;Var CheckMemberPageCampaign = 1
|
||||
EndIf
|
||||
|
||||
If BoxID = 200001 Then
|
||||
|
|
|
|||
|
|
@ -236,6 +236,13 @@
|
|||
else:
|
||||
from_nam_hom_coconut = False
|
||||
|
||||
if current_file_name == "page_catalog_group_pro_cocoa77.skt":
|
||||
from_cocoa77 = True
|
||||
cocoa77_fix_price = True
|
||||
else:
|
||||
from_cocoa77 = False
|
||||
cocoa77_fix_price = False
|
||||
|
||||
#print ("######################################################################################################")
|
||||
idx_of_eng = 2
|
||||
out_xml('<FrameScroll> \r\n')
|
||||
|
|
@ -445,6 +452,10 @@
|
|||
out_xml( '\t\tVar OriginalPriceD1 = ' + str(GetOriginalPrice(wednesday_melon_original_prices, pd_code_1)) + '\r\n')
|
||||
out_xml( '\t\tVar OriginalPriceD2 = ' + str(GetOriginalPrice(wednesday_melon_original_prices, pd_code_2)) + '\r\n')
|
||||
out_xml( '\t\tVar OriginalPriceD3 = ' + str(GetOriginalPrice(wednesday_melon_original_prices, pd_code_3)) + '\r\n')
|
||||
elif cocoa77_fix_price:
|
||||
out_xml( '\t\tVar PriceD1 = $' + spl[4] + '.Price - 7\r\n')
|
||||
out_xml( '\t\tVar PriceD2 = $' + spl[5] + '.Price - 7\r\n')
|
||||
out_xml( '\t\tVar PriceD3 = $' + spl[6] + '.Price - 7\r\n')
|
||||
else:
|
||||
out_xml( '\t\tVar PriceD1 = $' + spl[4] + '.Price\r\n')
|
||||
out_xml( '\t\tVar PriceD2 = $' + spl[5] + '.Price\r\n')
|
||||
|
|
@ -556,6 +567,9 @@
|
|||
|
||||
if from_nam_hom_coconut:
|
||||
out_xml( '\t\tVar FromNamHomCoconutPro = 1 \r\n')
|
||||
|
||||
if from_cocoa77:
|
||||
out_xml( '\t\tVar FromCocoa77Pro = 1 \r\n')
|
||||
|
||||
|
||||
out_xml( '\t\t\r\n')
|
||||
|
|
@ -760,6 +774,8 @@
|
|||
out_xml( '\t<Value> StringFmt( ' + str(GetPrice(monday_banana_prices, spl[5])) + ' , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
|
||||
elif wednesday_melon_fix_price:
|
||||
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')
|
||||
else:
|
||||
out_xml( '\t<Value> StringFmt( $' + spl[5] + '.Price , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
|
||||
else:
|
||||
|
|
@ -771,6 +787,8 @@
|
|||
out_xml( '\t<Value> "฿' + str(GetPrice(monday_banana_prices, spl[5])) + '" </Value>\r\n')
|
||||
elif wednesday_melon_fix_price:
|
||||
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')
|
||||
else:
|
||||
out_xml( '\t<Value> Var( "฿" + $' + spl[5] + '.Price ) </Value>\r\n')
|
||||
out_xml( '\t</Text>\r\n')
|
||||
|
|
@ -843,6 +861,8 @@
|
|||
out_xml( '\t<Value> StringFmt( ' + str(GetPrice(monday_banana_prices, spl[6])) + ' , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
|
||||
elif wednesday_melon_fix_price:
|
||||
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')
|
||||
else:
|
||||
out_xml( '\t<Value> StringFmt( $' + spl[6] + '.Price , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
|
||||
else:
|
||||
|
|
@ -854,6 +874,8 @@
|
|||
out_xml( '\t<Value> "฿' + str(GetPrice(monday_banana_prices, spl[6])) + '" </Value>\r\n')
|
||||
elif wednesday_melon_fix_price:
|
||||
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')
|
||||
else:
|
||||
out_xml( '\t<Value> Var( "฿" + $' + spl[6] + '.Price ) </Value>\r\n')
|
||||
out_xml( '\t</Text>\r\n')
|
||||
|
|
@ -1050,6 +1072,13 @@
|
|||
out_xml( '\t\tVar OriginalPriceD1 = ' + str(GetOriginalPrice(wednesday_melon_original_prices, pd_code_1)) + '\r\n')
|
||||
out_xml( '\t\tVar OriginalPriceD2 = ' + str(GetOriginalPrice(wednesday_melon_original_prices, pd_code_2)) + '\r\n')
|
||||
out_xml( '\t\tVar OriginalPriceD3 = ' + str(GetOriginalPrice(wednesday_melon_original_prices, pd_code_3)) + '\r\n')
|
||||
elif cocoa77_fix_price:
|
||||
out_xml( '\t\tVar PriceD1 = $' + spl[8] + '.Price - 7\r\n')
|
||||
out_xml( '\t\tVar PriceD2 = $' + spl[9] + '.Price - 7\r\n')
|
||||
out_xml( '\t\tVar PriceD3 = $' + spl[10] + '.Price - 7\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')
|
||||
|
|
@ -1151,6 +1180,9 @@
|
|||
|
||||
if from_nam_hom_coconut:
|
||||
out_xml( '\t\tVar FromNamHomCoconutPro = 1 \r\n')
|
||||
|
||||
if from_cocoa77:
|
||||
out_xml( '\t\tVar FromCocoa77Pro = 1 \r\n')
|
||||
|
||||
out_xml( '\t\t\r\n')
|
||||
out_xml( '\t\t\r\n')
|
||||
|
|
|
|||
60
xml/page_catalog_group_pro_cocoa77.skt
Normal file
60
xml/page_catalog_group_pro_cocoa77.skt
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
<?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
|
||||
|
||||
Var FromWednesdayMelonPro = 0
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/xml/menu_catalog_new_menu.xml"
|
||||
|
||||
If show_eng = "true" Then
|
||||
Var extension = "_en.png"
|
||||
Else
|
||||
Var extension = ".png"
|
||||
EndIf
|
||||
|
||||
</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>
|
||||
|
||||
|
||||
|
|
@ -95,6 +95,10 @@
|
|||
Var PriceDrink = OriginalPrice
|
||||
EndIf
|
||||
|
||||
If FromCocoa77Pro = 1 Then
|
||||
Var PriceDrink = OriginalPrice
|
||||
EndIf
|
||||
|
||||
|
||||
DEBUGVAR PriceDrink
|
||||
DEBUGVAR PromotionPriceDrink
|
||||
|
|
@ -296,6 +300,12 @@
|
|||
DEBUGVAR PriceDrink
|
||||
DEBUGVAR PriceDrinkTmp
|
||||
|
||||
If FromCocoa77Pro = 1 Then
|
||||
Var PriceDiff = PriceDrink - PromotionPriceDrink
|
||||
Var Seeker.VendingDiscount = PriceDiff
|
||||
Var Seeker.CampaignPPrice = PromotionPriceDrink
|
||||
EndIf
|
||||
|
||||
If FromRerunPro = 1 Then
|
||||
Var PriceDiff = PriceDrink - PromoPriceDrink
|
||||
Var Seeker.VendingCode = RerunProCode
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue