THAI: Added Happy Trios, Free Jemila topping, Free Sugar zero cal
BIN
image/event/happy_trios/happy_trios.png
Normal file
|
After Width: | Height: | Size: 491 KiB |
BIN
image/event/happy_trios/send_code_complate_en.png
Normal file
|
After Width: | Height: | Size: 83 KiB |
BIN
image/event/happy_trios/send_code_complate_th.png
Normal file
|
After Width: | Height: | Size: 76 KiB |
BIN
image/event/happy_trios/send_code_fail_en.png
Normal file
|
After Width: | Height: | Size: 89 KiB |
BIN
image/event/happy_trios/send_code_fail_th.png
Normal file
|
After Width: | Height: | Size: 89 KiB |
BIN
image/event/happy_trios/send_code_pending_en.png
Normal file
|
After Width: | Height: | Size: 56 KiB |
BIN
image/event/happy_trios/send_code_pending_th.png
Normal file
|
After Width: | Height: | Size: 56 KiB |
|
|
@ -1,6 +1,6 @@
|
||||||
normal_eng=ROOT/taobin_project/image/event/robinson_beauty/robinson_beauty_en.png
|
normal_eng=ROOT/taobin_project/image/event/happy_trios/happy_trios.png
|
||||||
normal_thai=ROOT/taobin_project/image/event/robinson_beauty/robinson_beauty_th.png
|
normal_thai=ROOT/taobin_project/image/event/happy_trios/happy_trios.png
|
||||||
press_eng=ROOT/taobin_project/image/event/robinson_beauty/robinson_beauty_en.png
|
press_eng=ROOT/taobin_project/image/event/happy_trios/happy_trios.png
|
||||||
press_thai=ROOT/taobin_project/image/event/robinson_beauty/robinson_beauty_th.png
|
press_thai=ROOT/taobin_project/image/event/happy_trios/happy_trios.png
|
||||||
disable_eng=ROOT/taobin_project/image/event/robinson_beauty/robinson_beauty_en.png
|
disable_eng=ROOT/taobin_project/image/event/happy_trios/happy_trios.png
|
||||||
disable_thai=ROOT/taobin_project/image/event/robinson_beauty/robinson_beauty_th.png
|
disable_thai=ROOT/taobin_project/image/event/happy_trios/happy_trios.png
|
||||||
|
|
|
||||||
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 16 KiB |
BIN
image/page_drink_n/bn_super_oreo_volcano_Caramel_happy_trios.png
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
image/page_drink_n/bn_super_oreo_volcano_Matcha_happy_trios.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
image/page_drink_n/bn_super_oreo_volcano_ThaiTea_happy_trios.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 31 KiB |
|
After Width: | Height: | Size: 32 KiB |
|
After Width: | Height: | Size: 34 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 16 KiB |
BIN
image/topping2/bd_add_jemila.png
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
image/topping2/bg_top_jemila.png
Normal file
|
After Width: | Height: | Size: 11 KiB |
BIN
image/topping2/bg_top_jemila_free.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
image/topping2/bn_add_jemila.png
Normal file
|
After Width: | Height: | Size: 2.8 KiB |
BIN
image/topping2/bp_add_jemila.png
Normal file
|
After Width: | Height: | Size: 2.9 KiB |
BIN
image/topping2/free.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
image/topping2_en/bg_top_jemila.png
Normal file
|
After Width: | Height: | Size: 11 KiB |
BIN
image/topping2_en/bg_top_jemila_free.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
153
xml/event/happy_trios/page_sending_discount_code.xml
Normal file
|
|
@ -0,0 +1,153 @@
|
||||||
|
<Popup>
|
||||||
|
<Width> 1080 </Width>
|
||||||
|
<Height> 1920 </Height>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
|
||||||
|
<EventOpen>
|
||||||
|
Var Timeout = 0
|
||||||
|
Var ImageDir = "ROOT/taobin_project/image/event/happy_trios/"
|
||||||
|
|
||||||
|
If show_eng = "true" Then
|
||||||
|
Var Image = ImageDir + "send_code_pending_en.png"
|
||||||
|
Else
|
||||||
|
Var Image = ImageDir + "send_code_pending_th.png"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
Var CodeIsSended = 0
|
||||||
|
|
||||||
|
DEBUGVAR Image
|
||||||
|
DEBUGVAR TelephoneNumber
|
||||||
|
|
||||||
|
Var Param1 = "152"
|
||||||
|
Var Param2 = ""
|
||||||
|
Var Param3 = ""
|
||||||
|
AddData 43 TelephoneNumber Param1 Param2 Param3
|
||||||
|
</EventOpen>
|
||||||
|
|
||||||
|
|
||||||
|
<Timeout> 1000 </Timeout>
|
||||||
|
<EventTimeout>
|
||||||
|
|
||||||
|
Var Timeout = Timeout + 1
|
||||||
|
|
||||||
|
If Timeout > 5 Then
|
||||||
|
If CodeIsSended = 1 Then
|
||||||
|
If CoffeePoint >= 28 Then
|
||||||
|
If GetDrink5Bath = 1 Then
|
||||||
|
Open "ROOT/taobin_project/xml/page_display_get_drink_5_baht.xml"
|
||||||
|
Else
|
||||||
|
If Seeker.IsLineMember = 0 Then
|
||||||
|
If LuckyDrawCampaign = 1 Then
|
||||||
|
Open "ROOT/taobin_project/xml/sometime/page_campaign_ads_lucky_draw.xml"
|
||||||
|
Else
|
||||||
|
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
|
||||||
|
EndIf
|
||||||
|
Else
|
||||||
|
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
|
||||||
|
EndIf
|
||||||
|
EndIf
|
||||||
|
Else
|
||||||
|
If Seeker.IsLineMember = 0 Then
|
||||||
|
If LuckyDrawCampaign = 1 Then
|
||||||
|
Open "ROOT/taobin_project/xml/sometime/page_campaign_ads_lucky_draw.xml"
|
||||||
|
Else
|
||||||
|
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
|
||||||
|
EndIf
|
||||||
|
Else
|
||||||
|
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
|
||||||
|
EndIf
|
||||||
|
EndIf
|
||||||
|
Else
|
||||||
|
|
||||||
|
If show_eng = "true" Then
|
||||||
|
Var Image = ImageDir + "send_code_fail_en.png"
|
||||||
|
Else
|
||||||
|
Var Image = ImageDir + "send_code_fail_th.png"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
Var Timeout = 0
|
||||||
|
|
||||||
|
EndIf
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
TimerReset
|
||||||
|
Refresh
|
||||||
|
</EventTimeout>
|
||||||
|
|
||||||
|
<EventMachine>
|
||||||
|
If MachineStage = "drink-success" Then
|
||||||
|
Var MachineState_Result = 1
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
If MachineStage = "drink-failed" Then
|
||||||
|
Var MachineState_Result = 2
|
||||||
|
EndIf
|
||||||
|
</EventMachine>
|
||||||
|
|
||||||
|
<EventSecurity>
|
||||||
|
Open "/media/bt/xml/security_alarm.xml"
|
||||||
|
</EventSecurity>
|
||||||
|
|
||||||
|
|
||||||
|
<EventActionOk>
|
||||||
|
If Ext1a = "ok" Then
|
||||||
|
If show_eng = "true" Then
|
||||||
|
Var Image = ImageDir + "send_code_complate_en.png"
|
||||||
|
Else
|
||||||
|
Var Image = ImageDir + "send_code_complate_th.png"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
Var CodeIsSended = 1
|
||||||
|
Else
|
||||||
|
Var Seeker.TaobinErrorNetwork = 1
|
||||||
|
Var Seeker.PointTaobinStr = ParamCP
|
||||||
|
Var TelephoneNumber = TelephoneNumberX
|
||||||
|
Var Seeker.TNumberTaobinMember= TelephoneNumber
|
||||||
|
|
||||||
|
If show_eng = "true" Then
|
||||||
|
Var Image = ImageDir + "send_code_fail_en.png"
|
||||||
|
Else
|
||||||
|
Var Image = ImageDir + "send_code_fail_th.png"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
Var Timeout = 0
|
||||||
|
|
||||||
|
Refresh
|
||||||
|
</EventActionOk>
|
||||||
|
|
||||||
|
<EventActionError>
|
||||||
|
Var Seeker.TaobinErrorNetwork = 1
|
||||||
|
|
||||||
|
Var Seeker.PointTaobinStr = ParamCP
|
||||||
|
Var TelephoneNumber = TelephoneNumberX
|
||||||
|
Var Seeker.TNumberTaobinMember= TelephoneNumber
|
||||||
|
|
||||||
|
If show_eng = "true" Then
|
||||||
|
Var Image = ImageDir + "send_code_fail_en.png"
|
||||||
|
Else
|
||||||
|
Var Image = ImageDir + "send_code_fail_th.png"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
Var Timeout = 0
|
||||||
|
|
||||||
|
Refresh
|
||||||
|
</EventActionError>
|
||||||
|
|
||||||
|
|
||||||
|
;include="ROOT/taobin_project/inc/video.inc"
|
||||||
|
|
||||||
|
<Image>
|
||||||
|
<X> 0 </X>
|
||||||
|
<Y> 380 </Y>
|
||||||
|
<Filename> "ROOT/taobin_project/image/collectiing/alpha.png" </Filename>
|
||||||
|
</Image>
|
||||||
|
|
||||||
|
<Image>
|
||||||
|
<X> 158 </X>
|
||||||
|
<Y> 607 </Y>
|
||||||
|
<Filename> Image </Filename>
|
||||||
|
</Image>
|
||||||
|
|
||||||
|
</Popup>
|
||||||
|
|
@ -0,0 +1,41 @@
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"name": "happy_trios",
|
||||||
|
"template": "/event/promotion_template.inc",
|
||||||
|
"config": {
|
||||||
|
"normal_eng": "ROOT/taobin_project/image/event/happy_trios/happy_trios.png",
|
||||||
|
"normal_thai": "ROOT/taobin_project/image/event/happy_trios/happy_trios.png",
|
||||||
|
"press_eng": "ROOT/taobin_project/image/event/happy_trios/happy_trios.png",
|
||||||
|
"press_thai": "ROOT/taobin_project/image/event/happy_trios/happy_trios.png",
|
||||||
|
"disable_eng": "ROOT/taobin_project/image/event/happy_trios/happy_trios.png",
|
||||||
|
"disable_thai": "ROOT/taobin_project/image/event/happy_trios/happy_trios.png",
|
||||||
|
"event_on_click": "ROOT/taobin_project/xml/event/happy_trios/page_catalog_group_pro_happy_trios.xml"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "weekday_discount",
|
||||||
|
"template": "/event/promotion_template.inc",
|
||||||
|
"config": {
|
||||||
|
"normal_eng": "ROOT/taobin_project/image/event/weekday_discount/weekday_discount_en.png",
|
||||||
|
"normal_thai": "ROOT/taobin_project/image/event/weekday_discount/weekday_discount_th.png",
|
||||||
|
"press_eng": "ROOT/taobin_project/image/event/weekday_discount/weekday_discount_en.png",
|
||||||
|
"press_thai": "ROOT/taobin_project/image/event/weekday_discount/weekday_discount_th.png",
|
||||||
|
"disable_eng": "ROOT/taobin_project/image/event/weekday_discount/weekday_discount_en.png",
|
||||||
|
"disable_thai": "ROOT/taobin_project/image/event/weekday_discount/weekday_discount_th.png",
|
||||||
|
"event_on_click": "ROOT/taobin_project/xml/page_catalog_group_pro_weekday_discount_event_on.xml"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "oreo_11",
|
||||||
|
"template": "/event/promotion_template.inc",
|
||||||
|
"config": {
|
||||||
|
"normal_eng": "ROOT/taobin_project/image/event/oreo_11/oreo_11_th.png",
|
||||||
|
"normal_thai": "ROOT/taobin_project/image/event/oreo_11/oreo_11_th.png",
|
||||||
|
"press_eng": "ROOT/taobin_project/image/event/oreo_11/oreo_11_th.png",
|
||||||
|
"press_thai": "ROOT/taobin_project/image/event/oreo_11/oreo_11_th.png",
|
||||||
|
"disable_eng": "ROOT/taobin_project/image/event/oreo_11/oreo_11_th.png",
|
||||||
|
"disable_thai": "ROOT/taobin_project/image/event/oreo_11/oreo_11_th.png",
|
||||||
|
"event_on_click": "ROOT/taobin_project/xml/page_catalog_group_pro_oreo_11_fixed.xml"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
|
@ -1 +1 @@
|
||||||
/event/promotion_robinson_beauty.xml
|
/event/promotion_happy_trios.xml
|
||||||
14893
xml/event/promotion_happy_trios.xml
Normal file
14893
xml/event/promotion_oreo_discount_11.xml
Normal file
|
|
@ -7,6 +7,7 @@ DEBUGVAR OpenFromPageBoard
|
||||||
DEBUGVAR WeekdayDiscountPro
|
DEBUGVAR WeekdayDiscountPro
|
||||||
DEBUGVAR WeekdayDiscountProEventOn
|
DEBUGVAR WeekdayDiscountProEventOn
|
||||||
DEBUGVAR OreoDiscount11Pro
|
DEBUGVAR OreoDiscount11Pro
|
||||||
|
DEBUGVAR HappyTriosPro
|
||||||
|
|
||||||
Var PromotionState1 = "Invisible"
|
Var PromotionState1 = "Invisible"
|
||||||
Var PromotionState2 = "Invisible"
|
Var PromotionState2 = "Invisible"
|
||||||
|
|
@ -28,49 +29,68 @@ Else
|
||||||
|
|
||||||
; zone promote
|
; zone promote
|
||||||
|
|
||||||
If HalloweenPro = 1 Then
|
|
||||||
|
If HappyTriosPro = 1 Then
|
||||||
Var PromotionState1 = "Enable"
|
Var PromotionState1 = "Enable"
|
||||||
Var ProEnableCount = 1
|
Var CountEnablePromotion = 1
|
||||||
If JemilaPro = 1 Then
|
|
||||||
|
If WeekdayDiscountProEventOn = 1 Then
|
||||||
Var PromotionState2 = "Enable"
|
Var PromotionState2 = "Enable"
|
||||||
Var ProEnableCount = ProEnableCount + 1
|
Var CountEnablePromotion = CountEnablePromotion + 1
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
If ProEnableCount > 1 Then
|
|
||||||
Var FileRecommendToOpen = "ROOT/taobin_project/xml/event/double_promotion_halloween_and_jemila.xml"
|
|
||||||
Else
|
|
||||||
Var FileRecommendToOpen = "ROOT/taobin_project/xml/event/promotion_halloween.xml"
|
|
||||||
EndIf
|
|
||||||
EndIf
|
|
||||||
|
|
||||||
If WeekdayDiscountPro = 1 Then
|
|
||||||
Var ProEnableCount = 1
|
|
||||||
Var PromotionState1 = "Enable"
|
|
||||||
|
|
||||||
If OreoDiscount11Pro = 1 Then
|
If OreoDiscount11Pro = 1 Then
|
||||||
Var PromotionState2 = "Enable"
|
Var PromotionState3 = "Enable"
|
||||||
Var ProEnableCount = ProEnableCount + 1
|
Var CountEnablePromotion = CountEnablePromotion + 1
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
Var FileRecommendToOpen = "ROOT/taobin_project/xml/event/weekday_discount/promotion_weekday_discount.xml"
|
|
||||||
|
|
||||||
If ProEnableCount > 1 Then
|
|
||||||
|
|
||||||
|
If CountEnablePromotion > 1 Then
|
||||||
If WeekdayDiscountProEventOn = 1 Then
|
If WeekdayDiscountProEventOn = 1 Then
|
||||||
Var FileRecommendToOpen = "ROOT/taobin_project/xml/event/weekday_discount/multi_promotion_weekday_discount_event_on.xml"
|
Var FileRecommendToOpen = "ROOT/taobin_project/xml/event/triple_promotion_happy_trios_and_weekday_discount_and_oreo_11_event_on.xml"
|
||||||
Else
|
Else
|
||||||
Var FileRecommendToOpen = "ROOT/taobin_project/xml/event/weekday_discount/promotion_oreo_discount_11.xml"
|
Var FileRecommendToOpen = "ROOT/taobin_project/xml/event/triple_promotion_happy_trios_and_weekday_discount_and_oreo_11.xml"
|
||||||
|
EndIf
|
||||||
|
Else
|
||||||
|
Var FileRecommendToOpen = "ROOT/taobin_project/xml/event/promotion_happy_trios.xml"
|
||||||
|
EndIf
|
||||||
|
Else
|
||||||
|
If WeekdayDiscountPro = 1 Then
|
||||||
|
Var ProEnableCount = 1
|
||||||
|
Var PromotionState1 = "Enable"
|
||||||
|
|
||||||
|
If OreoDiscount11Pro = 1 Then
|
||||||
|
Var PromotionState2 = "Enable"
|
||||||
|
Var ProEnableCount = ProEnableCount + 1
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
Else
|
Var FileRecommendToOpen = "ROOT/taobin_project/xml/event/weekday_discount/promotion_weekday_discount.xml"
|
||||||
If WeekdayDiscountProEventOn = 1 Then
|
|
||||||
Var FileRecommendToOpen = "ROOT/taobin_project/xml/event/weekday_discount/promotion_weekday_discount_event_on.xml"
|
If ProEnableCount > 1 Then
|
||||||
|
|
||||||
|
If WeekdayDiscountProEventOn = 1 Then
|
||||||
|
Var FileRecommendToOpen = "ROOT/taobin_project/xml/event/weekday_discount/multi_promotion_weekday_discount_event_on.xml"
|
||||||
|
Else
|
||||||
|
Var FileRecommendToOpen = "ROOT/taobin_project/xml/event/weekday_discount/promotion_oreo_discount_11_event_on.xml"
|
||||||
|
EndIf
|
||||||
|
|
||||||
Else
|
Else
|
||||||
Var FileRecommendToOpen = "ROOT/taobin_project/xml/event/weekday_discount/promotion_weekday_discount.xml"
|
If WeekdayDiscountProEventOn = 1 Then
|
||||||
|
Var FileRecommendToOpen = "ROOT/taobin_project/xml/event/weekday_discount/promotion_weekday_discount_event_on.xml"
|
||||||
|
Else
|
||||||
|
Var FileRecommendToOpen = "ROOT/taobin_project/xml/event/weekday_discount/promotion_weekday_discount.xml"
|
||||||
|
EndIf
|
||||||
|
EndIf
|
||||||
|
Else
|
||||||
|
If OreoDiscount11Pro = 1 Then
|
||||||
|
Var FileRecommendToOpen = "ROOT/taobin_project/xml/event/promotion_oreo_discount_11.xml"
|
||||||
EndIf
|
EndIf
|
||||||
EndIf
|
EndIf
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
If OpenFromPageBoard = 1 Then
|
If OpenFromPageBoard = 1 Then
|
||||||
DEBUGVAR FreeEnergyDrink
|
DEBUGVAR FreeEnergyDrink
|
||||||
DEBUGVAR BigButtonEnable
|
DEBUGVAR BigButtonEnable
|
||||||
|
|
|
||||||
|
|
@ -149,6 +149,17 @@ Var FromOreoDiscount11Pro = 0
|
||||||
Var Seeker.BuyOreo11ProFlag = 0
|
Var Seeker.BuyOreo11ProFlag = 0
|
||||||
Var FromBeforeGoToOreo = 0
|
Var FromBeforeGoToOreo = 0
|
||||||
|
|
||||||
|
; Happy trios, 21 - 30 Nov
|
||||||
|
Var HappyTriosPro = 0
|
||||||
|
Var FromHappyTrios = 0
|
||||||
|
|
||||||
|
; Jemila Topping Free every Wednesday, start 20 Nov
|
||||||
|
Var JemilaToppingFlag = 0
|
||||||
|
Var JemilaToppingFreeFlag = 0
|
||||||
|
|
||||||
|
; Sugar Zero Cal Free every day, start 20 Nov
|
||||||
|
Var SugarZeroCalFreeFlag = 0
|
||||||
|
|
||||||
Var NewCollectPoint = 1
|
Var NewCollectPoint = 1
|
||||||
Var PayMentCodeShouldCollectPromotionPoint = 0
|
Var PayMentCodeShouldCollectPromotionPoint = 0
|
||||||
Var NotCollectPointPromotion = 0
|
Var NotCollectPointPromotion = 0
|
||||||
|
|
@ -258,6 +269,20 @@ If SystemDateMonthInt = 11 Then
|
||||||
EndIf
|
EndIf
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
|
If SystemDateDayInt >= 20 Then
|
||||||
|
Var JemilaToppingFlag = 1
|
||||||
|
Var SugarZeroCalFreeFlag = 1
|
||||||
|
|
||||||
|
If SystemDateDayOfWeek = "Wednesday" Then
|
||||||
|
Var JemilaToppingFreeFlag = 1
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
If SystemDateDayInt >= 21 Then
|
||||||
|
Var HappyTriosPro = 1
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
|
||||||
If WeekdayDiscountPro = 1 Then
|
If WeekdayDiscountPro = 1 Then
|
||||||
If SystemTimeHourInt >= 16 Then
|
If SystemTimeHourInt >= 16 Then
|
||||||
|
|
@ -281,6 +306,11 @@ If BoxID = 105005 Then
|
||||||
Var WeekdayDiscountPro = 1
|
Var WeekdayDiscountPro = 1
|
||||||
Var WeekdayDiscountProEventOn = 1
|
Var WeekdayDiscountProEventOn = 1
|
||||||
Var OreoDiscount11Pro = 1
|
Var OreoDiscount11Pro = 1
|
||||||
|
Var HappyTriosPro = 1
|
||||||
|
|
||||||
|
Var JemilaToppingFlag = 1
|
||||||
|
Var JemilaToppingFreeFlag = 1
|
||||||
|
Var SugarZeroCalFreeFlag = 1
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
If BoxID = 172331 Then
|
If BoxID = 172331 Then
|
||||||
|
|
@ -481,6 +511,7 @@ If OreoEnable = "true" Then
|
||||||
|
|
||||||
Else
|
Else
|
||||||
Var OreoDiscount11Pro = 0
|
Var OreoDiscount11Pro = 0
|
||||||
|
Var HappyTriosPro = 0
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -572,3 +603,5 @@ READ_FILE "/mnt/sdcard/coffeevending/app_manager/app_list/king_power_service/ena
|
||||||
If POSMachineFlag = 1 Then
|
If POSMachineFlag = 1 Then
|
||||||
Var ConnectWithPOSMachine = 1
|
Var ConnectWithPOSMachine = 1
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
|
DEBUGVAR SystemDateDayOfWeek
|
||||||
|
|
@ -287,6 +287,10 @@
|
||||||
from_oreo_11 = True
|
from_oreo_11 = True
|
||||||
else:
|
else:
|
||||||
from_oreo_11 = False
|
from_oreo_11 = False
|
||||||
|
if current_file_name == "page_catalog_group_pro_happy_trios.skt":
|
||||||
|
from_happy_trios = True
|
||||||
|
else:
|
||||||
|
from_happy_trios = False
|
||||||
|
|
||||||
#print ("######################################################################################################")
|
#print ("######################################################################################################")
|
||||||
idx_of_eng = 2
|
idx_of_eng = 2
|
||||||
|
|
@ -641,6 +645,9 @@
|
||||||
if from_oreo_11:
|
if from_oreo_11:
|
||||||
out_xml( '\t\tVar FromOreoDiscount11Pro = 1 \r\n')
|
out_xml( '\t\tVar FromOreoDiscount11Pro = 1 \r\n')
|
||||||
|
|
||||||
|
if from_happy_trios:
|
||||||
|
out_xml( '\t\tVar FromHappyTriosPro = 1 \r\n')
|
||||||
|
|
||||||
out_xml( '\t\t\r\n')
|
out_xml( '\t\t\r\n')
|
||||||
out_xml( '\t\t'+ button_add_string +'\r\n')
|
out_xml( '\t\t'+ button_add_string +'\r\n')
|
||||||
out_xml( '\t\tOpen "ROOT/taobin_project/xml/page_topping_select5.xml"\r\n')
|
out_xml( '\t\tOpen "ROOT/taobin_project/xml/page_topping_select5.xml"\r\n')
|
||||||
|
|
@ -1291,6 +1298,9 @@
|
||||||
if from_oreo_11:
|
if from_oreo_11:
|
||||||
out_xml( '\t\tVar FromOreoDiscount11Pro = 1 \r\n')
|
out_xml( '\t\tVar FromOreoDiscount11Pro = 1 \r\n')
|
||||||
|
|
||||||
|
if from_happy_trios:
|
||||||
|
out_xml( '\t\tVar FromHappyTriosPro = 1 \r\n')
|
||||||
|
|
||||||
out_xml( '\t\t\r\n')
|
out_xml( '\t\t\r\n')
|
||||||
out_xml( '\t\t\r\n')
|
out_xml( '\t\t\r\n')
|
||||||
|
|
||||||
|
|
|
||||||
37
xml/page_catalog_group_pro_happy_trios.skt
Normal file
|
|
@ -0,0 +1,37 @@
|
||||||
|
<?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 FromHappyTrios = 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
|
||||||
|
?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</Popup>
|
||||||
1070
xml/page_catalog_group_pro_happy_trios.xml
Normal file
|
|
@ -26,7 +26,7 @@
|
||||||
DEBUGVAR TelephoneNumber
|
DEBUGVAR TelephoneNumber
|
||||||
DEBUGVAR TelephoneNumberX
|
DEBUGVAR TelephoneNumberX
|
||||||
|
|
||||||
If show_eng = "true" Then
|
If show_eng = "true" Then
|
||||||
Var DirImage = "ROOT/taobin_project/image/display_point_en"
|
Var DirImage = "ROOT/taobin_project/image/display_point_en"
|
||||||
Var page_doing_show_time_image = "ROOT/taobin_project/image/page_doing/img2.png"
|
Var page_doing_show_time_image = "ROOT/taobin_project/image/page_doing/img2.png"
|
||||||
|
|
||||||
|
|
@ -38,7 +38,7 @@
|
||||||
|
|
||||||
Var IMG_CNT = "ROOT/taobin_project/image/page_doing/img2.png"
|
Var IMG_CNT = "ROOT/taobin_project/image/page_doing/img2.png"
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
Var CoffeePointTmp = CoffeePoint
|
Var CoffeePointTmp = CoffeePoint
|
||||||
|
|
||||||
If CoffeePoint > 29 Then
|
If CoffeePoint > 29 Then
|
||||||
|
|
@ -46,8 +46,8 @@
|
||||||
Var CoffeePointTmp = 30
|
Var CoffeePointTmp = 30
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Var pImage = CoffeePointTmp * 20
|
Var pImage = CoffeePointTmp * 20
|
||||||
Var pImage = pImage / 30
|
Var pImage = pImage / 30
|
||||||
|
|
||||||
|
|
@ -66,14 +66,14 @@
|
||||||
Var TaobinExpireMonthX = ""
|
Var TaobinExpireMonthX = ""
|
||||||
Var TaobinExpireYear = ""
|
Var TaobinExpireYear = ""
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SPLIT TaobinExpire "/" 1 TaobinExpireDay
|
SPLIT TaobinExpire "/" 1 TaobinExpireDay
|
||||||
SPLIT TaobinExpire "/" 2 TaobinExpireMonth
|
SPLIT TaobinExpire "/" 2 TaobinExpireMonth
|
||||||
SPLIT TaobinExpire "/" 3 TaobinExpireYear
|
SPLIT TaobinExpire "/" 3 TaobinExpireYear
|
||||||
|
|
||||||
|
|
||||||
If show_eng = "true" Then
|
If show_eng = "true" Then
|
||||||
|
|
||||||
If TaobinExpireMonth = "01" Then
|
If TaobinExpireMonth = "01" Then
|
||||||
Var TaobinExpireMonth = "Jan"
|
Var TaobinExpireMonth = "Jan"
|
||||||
|
|
@ -140,7 +140,7 @@
|
||||||
|
|
||||||
Var TaobinExpireYear = TaobinExpireYear + 0
|
Var TaobinExpireYear = TaobinExpireYear + 0
|
||||||
|
|
||||||
Else
|
Else
|
||||||
|
|
||||||
If TaobinExpireMonth = "01" Then
|
If TaobinExpireMonth = "01" Then
|
||||||
Var TaobinExpireMonth = "ม.ค."
|
Var TaobinExpireMonth = "ม.ค."
|
||||||
|
|
@ -217,17 +217,17 @@
|
||||||
Var ExpireStrTmp = ExpireStrTmp + " "
|
Var ExpireStrTmp = ExpireStrTmp + " "
|
||||||
Var ExpireStrTmp = ExpireStrTmp + TaobinExpireYear
|
Var ExpireStrTmp = ExpireStrTmp + TaobinExpireYear
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
If TaobinLevel = "1" Then
|
If TaobinLevel = "1" Then
|
||||||
Var PointMaskState = "Enable"
|
Var PointMaskState = "Enable"
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
If show_eng = "true" Then
|
|
||||||
|
If show_eng = "true" Then
|
||||||
|
|
||||||
Var TaobinLevelDesc3 = TaobinCoupons
|
Var TaobinLevelDesc3 = TaobinCoupons
|
||||||
Var TaobinLevelDesc3 = TaobinLevelDesc3 + " coupons are available for you"
|
Var TaobinLevelDesc3 = TaobinLevelDesc3 + " coupons are available for you"
|
||||||
|
|
@ -261,7 +261,7 @@
|
||||||
|
|
||||||
If TaobinLevel = "3" Then
|
If TaobinLevel = "3" Then
|
||||||
Var TaobinLevelDesc1 = "Flying turtle level until " + ExpireStrTmp
|
Var TaobinLevelDesc1 = "Flying turtle level until " + ExpireStrTmp
|
||||||
|
|
||||||
Var PointDiff = 200 - CoffeePointRank
|
Var PointDiff = 200 - CoffeePointRank
|
||||||
Var TaobinLevelDesc2 = "Earn " + PointDiff
|
Var TaobinLevelDesc2 = "Earn " + PointDiff
|
||||||
Var TaobinLevelDesc2 = TaobinLevelDesc2 + " shells "
|
Var TaobinLevelDesc2 = TaobinLevelDesc2 + " shells "
|
||||||
|
|
@ -282,7 +282,7 @@
|
||||||
|
|
||||||
If TaobinLevel = "4" Then
|
If TaobinLevel = "4" Then
|
||||||
Var TaobinLevelDesc1 = "Master turtle level until " + ExpireStrTmp
|
Var TaobinLevelDesc1 = "Master turtle level until " + ExpireStrTmp
|
||||||
|
|
||||||
Var TaobinLevelDesc2 = ""
|
Var TaobinLevelDesc2 = ""
|
||||||
|
|
||||||
Var TaobinLeveImg = "/taoLevel4.png"
|
Var TaobinLeveImg = "/taoLevel4.png"
|
||||||
|
|
@ -346,7 +346,7 @@
|
||||||
|
|
||||||
If TaobinLevel = "4" Then
|
If TaobinLevel = "4" Then
|
||||||
Var TaobinLevelDesc1 = "ระดับสมาชิก ผู้เฒ่าเต่า จนถึง " + ExpireStrTmp
|
Var TaobinLevelDesc1 = "ระดับสมาชิก ผู้เฒ่าเต่า จนถึง " + ExpireStrTmp
|
||||||
|
|
||||||
Var TaobinLevelDesc2 = ""
|
Var TaobinLevelDesc2 = ""
|
||||||
|
|
||||||
Var TaobinLeveImg = "/taoLevel4.png"
|
Var TaobinLeveImg = "/taoLevel4.png"
|
||||||
|
|
@ -357,7 +357,7 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Var CheckCoupons = 0
|
Var CheckCoupons = 0
|
||||||
Var MakeDrinkState = 0
|
Var MakeDrinkState = 0
|
||||||
|
|
||||||
|
|
@ -609,7 +609,7 @@
|
||||||
Var PreviousSeeker.UseGet15Discount = 0
|
Var PreviousSeeker.UseGet15Discount = 0
|
||||||
Var PreviousSeeker.UseGetDrink5Bath = 0
|
Var PreviousSeeker.UseGetDrink5Bath = 0
|
||||||
Else
|
Else
|
||||||
|
|
||||||
If PreviousSeeker.TNumberTaobinCredit = Seeker.TNumberTaobinCredit Then
|
If PreviousSeeker.TNumberTaobinCredit = Seeker.TNumberTaobinCredit Then
|
||||||
If PreviousSeeker.UseGet15Discount = 1 Then
|
If PreviousSeeker.UseGet15Discount = 1 Then
|
||||||
Var Get15DiscountState = "Disable2"
|
Var Get15DiscountState = "Disable2"
|
||||||
|
|
@ -655,74 +655,48 @@
|
||||||
Var xPointEndDate = 490
|
Var xPointEndDate = 490
|
||||||
Var yPointEndDate = 1570
|
Var yPointEndDate = 1570
|
||||||
|
|
||||||
If show_eng = "true" Then
|
If show_eng = "true" Then
|
||||||
Var xPointEndDate = 575
|
Var xPointEndDate = 575
|
||||||
Var yPointEndDate = 1563
|
Var yPointEndDate = 1563
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</EventOpen>
|
</EventOpen>
|
||||||
<Timeout> 1000 </Timeout>
|
<Timeout> 1000 </Timeout>
|
||||||
<EventTimeout>
|
<EventTimeout>
|
||||||
|
|
||||||
Var CountDownBrewing = BREW_CNT
|
Var CountDownBrewing = BREW_CNT
|
||||||
|
|
||||||
Var ShowCountDownBrewing = CountDownBrewing
|
Var ShowCountDownBrewing = CountDownBrewing
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Var Timeout = Timeout + 1
|
Var Timeout = Timeout + 1
|
||||||
If Timeout > 5 Then
|
If Timeout > 5 Then
|
||||||
|
|
||||||
; goto lid straw
|
; process next page
|
||||||
|
Function 2
|
||||||
|
|
||||||
If CoffeePoint >= 28 Then
|
|
||||||
If GetDrink5Bath = 1 Then
|
|
||||||
Open "ROOT/taobin_project/xml/page_display_get_drink_5_baht.xml"
|
|
||||||
Else
|
|
||||||
If Seeker.IsLineMember = 0 Then
|
|
||||||
If LuckyDrawCampaign = 1 Then
|
|
||||||
Open "ROOT/taobin_project/xml/sometime/page_campaign_ads_lucky_draw.xml"
|
|
||||||
Else
|
|
||||||
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
|
|
||||||
EndIf
|
|
||||||
Else
|
|
||||||
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
|
|
||||||
EndIf
|
|
||||||
EndIf
|
|
||||||
Else
|
|
||||||
If Seeker.IsLineMember = 0 Then
|
|
||||||
If LuckyDrawCampaign = 1 Then
|
|
||||||
Open "ROOT/taobin_project/xml/sometime/page_campaign_ads_lucky_draw.xml"
|
|
||||||
Else
|
|
||||||
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
|
|
||||||
EndIf
|
|
||||||
Else
|
|
||||||
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
|
|
||||||
EndIf
|
|
||||||
EndIf
|
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
TimerReset
|
TimerReset
|
||||||
Refresh
|
Refresh
|
||||||
</EventTimeout>
|
</EventTimeout>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<EventSecurity>
|
<EventSecurity>
|
||||||
Open "/media/bt/xml/security_alarm.xml"
|
Open "/media/bt/xml/security_alarm.xml"
|
||||||
</EventSecurity>
|
</EventSecurity>
|
||||||
|
|
||||||
<EventActionOk>
|
<EventActionOk>
|
||||||
If CheckCoupons = 1 Then
|
If CheckCoupons = 1 Then
|
||||||
Var MakeDrinkState = 1
|
Var MakeDrinkState = 1
|
||||||
Var CouponPage = 1
|
Var CouponPage = 1
|
||||||
Var CouponInfo1 = Ext1a
|
Var CouponInfo1 = Ext1a
|
||||||
Var CouponInfo2 = Ext1b
|
Var CouponInfo2 = Ext1b
|
||||||
Var CouponInfo3 = Ext1c
|
Var CouponInfo3 = Ext1c
|
||||||
|
|
@ -733,23 +707,23 @@
|
||||||
Var CouponInfo8 = Ext1h
|
Var CouponInfo8 = Ext1h
|
||||||
Var CouponInfo9 = Ext1i
|
Var CouponInfo9 = Ext1i
|
||||||
Var CouponInfo10 = Ext1j
|
Var CouponInfo10 = Ext1j
|
||||||
|
|
||||||
Var TelephoneNumber = TelephoneNumberX
|
Var TelephoneNumber = TelephoneNumberX
|
||||||
GETACCEXT TelephoneNumber 13
|
GETACCEXT TelephoneNumber 13
|
||||||
Var CheckCoupons = 2
|
Var CheckCoupons = 2
|
||||||
|
|
||||||
Else
|
Else
|
||||||
|
|
||||||
If CheckCoupons = 2 Then
|
If CheckCoupons = 2 Then
|
||||||
|
|
||||||
Var TaobinCredit = Ext1b
|
Var TaobinCredit = Ext1b
|
||||||
Open "ROOT/taobin_project/xml/page_check_member2.xml"
|
Open "ROOT/taobin_project/xml/page_check_member2.xml"
|
||||||
|
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
|
|
||||||
</EventActionOk>
|
</EventActionOk>
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -763,6 +737,46 @@
|
||||||
EndIf
|
EndIf
|
||||||
</EventMachine>
|
</EventMachine>
|
||||||
|
|
||||||
|
|
||||||
|
<Function2>
|
||||||
|
|
||||||
|
If FromHappyTriosPro = 1 Then
|
||||||
|
If Seeker.VendingCode = "PX6" Then
|
||||||
|
|
||||||
|
Else
|
||||||
|
Open "ROOT/taobin_project/xml/event/happy_trios/page_sending_discount_code.xml"
|
||||||
|
EndIf
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
If CoffeePoint >= 28 Then
|
||||||
|
If GetDrink5Bath = 1 Then
|
||||||
|
Open "ROOT/taobin_project/xml/page_display_get_drink_5_baht.xml"
|
||||||
|
Else
|
||||||
|
If Seeker.IsLineMember = 0 Then
|
||||||
|
If LuckyDrawCampaign = 1 Then
|
||||||
|
Open "ROOT/taobin_project/xml/sometime/page_campaign_ads_lucky_draw.xml"
|
||||||
|
Else
|
||||||
|
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
|
||||||
|
EndIf
|
||||||
|
Else
|
||||||
|
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
|
||||||
|
EndIf
|
||||||
|
EndIf
|
||||||
|
Else
|
||||||
|
If Seeker.IsLineMember = 0 Then
|
||||||
|
If LuckyDrawCampaign = 1 Then
|
||||||
|
Open "ROOT/taobin_project/xml/sometime/page_campaign_ads_lucky_draw.xml"
|
||||||
|
Else
|
||||||
|
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
|
||||||
|
EndIf
|
||||||
|
Else
|
||||||
|
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
|
||||||
|
EndIf
|
||||||
|
EndIf
|
||||||
|
</Function2>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
;include="ROOT/taobin_project/inc/video.inc"
|
;include="ROOT/taobin_project/inc/video.inc"
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -835,34 +849,12 @@
|
||||||
<FilenamePress> Var( DirImage + KeepBpBtnImage ) </FilenamePress>
|
<FilenamePress> Var( DirImage + KeepBpBtnImage ) </FilenamePress>
|
||||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||||
<Volume> SoundVolume </Volume>
|
<Volume> SoundVolume </Volume>
|
||||||
<EventClick>
|
<EventClick>
|
||||||
; goto lid straw
|
; goto lid straw
|
||||||
;Open "ROOT/taobin_project/xml/page_back_to_main.xml"
|
;Open "ROOT/taobin_project/xml/page_back_to_main.xml"
|
||||||
If CoffeePoint >= 28 Then
|
|
||||||
If GetDrink5Bath = 1 Then
|
; process next page
|
||||||
Open "ROOT/taobin_project/xml/page_display_get_drink_5_baht.xml"
|
Function 2
|
||||||
Else
|
|
||||||
If Seeker.IsLineMember = 0 Then
|
|
||||||
If LuckyDrawCampaign = 1 Then
|
|
||||||
Open "ROOT/taobin_project/xml/sometime/page_campaign_ads_lucky_draw.xml"
|
|
||||||
Else
|
|
||||||
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
|
|
||||||
EndIf
|
|
||||||
Else
|
|
||||||
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
|
|
||||||
EndIf
|
|
||||||
EndIf
|
|
||||||
Else
|
|
||||||
If Seeker.IsLineMember = 0 Then
|
|
||||||
If LuckyDrawCampaign = 1 Then
|
|
||||||
Open "ROOT/taobin_project/xml/sometime/page_campaign_ads_lucky_draw.xml"
|
|
||||||
Else
|
|
||||||
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
|
|
||||||
EndIf
|
|
||||||
Else
|
|
||||||
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
|
|
||||||
EndIf
|
|
||||||
EndIf
|
|
||||||
|
|
||||||
</EventClick>
|
</EventClick>
|
||||||
</Button>
|
</Button>
|
||||||
|
|
@ -878,7 +870,7 @@
|
||||||
<FilenameDisable2> Var( DirImage + "/disable2_get15discount.png" )</FilenameDisable2>
|
<FilenameDisable2> Var( DirImage + "/disable2_get15discount.png" )</FilenameDisable2>
|
||||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||||
<Volume> SoundVolume </Volume>
|
<Volume> SoundVolume </Volume>
|
||||||
<EventClick>
|
<EventClick>
|
||||||
|
|
||||||
Open "ROOT/taobin_project/xml/page_display_get_15_discount.xml"
|
Open "ROOT/taobin_project/xml/page_display_get_15_discount.xml"
|
||||||
|
|
||||||
|
|
@ -1223,7 +1215,7 @@
|
||||||
</EventUnitTest1>
|
</EventUnitTest1>
|
||||||
|
|
||||||
<EventUnitTest2>
|
<EventUnitTest2>
|
||||||
If show_eng = "true" Then
|
If show_eng = "true" Then
|
||||||
Var show_eng = "false"
|
Var show_eng = "false"
|
||||||
Else
|
Else
|
||||||
Var show_eng = "true"
|
Var show_eng = "true"
|
||||||
|
|
@ -1242,4 +1234,3 @@
|
||||||
|
|
||||||
|
|
||||||
</Popup>
|
</Popup>
|
||||||
|
|
||||||
|
|
@ -28,7 +28,7 @@
|
||||||
|
|
||||||
Var DirImageLuckeyDraw = "ROOT/taobin_project/image/event/lucky_draw_collect_point/"
|
Var DirImageLuckeyDraw = "ROOT/taobin_project/image/event/lucky_draw_collect_point/"
|
||||||
|
|
||||||
If show_eng = "true" Then
|
If show_eng = "true" Then
|
||||||
Var DirImage = "ROOT/taobin_project/image/display_point_en"
|
Var DirImage = "ROOT/taobin_project/image/display_point_en"
|
||||||
Var page_doing_show_time_image = "ROOT/taobin_project/image/page_doing/img2.png"
|
Var page_doing_show_time_image = "ROOT/taobin_project/image/page_doing/img2.png"
|
||||||
|
|
||||||
|
|
@ -40,7 +40,7 @@
|
||||||
|
|
||||||
Var IMG_CNT = "ROOT/taobin_project/image/page_doing/img2.png"
|
Var IMG_CNT = "ROOT/taobin_project/image/page_doing/img2.png"
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
Var CoffeePointTmp = CoffeePoint
|
Var CoffeePointTmp = CoffeePoint
|
||||||
|
|
||||||
If CoffeePoint > 29 Then
|
If CoffeePoint > 29 Then
|
||||||
|
|
@ -48,8 +48,8 @@
|
||||||
Var CoffeePointTmp = 30
|
Var CoffeePointTmp = 30
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Var pImage = CoffeePointTmp * 20
|
Var pImage = CoffeePointTmp * 20
|
||||||
Var pImage = pImage / 30
|
Var pImage = pImage / 30
|
||||||
|
|
||||||
|
|
@ -68,14 +68,14 @@
|
||||||
Var TaobinExpireMonthX = ""
|
Var TaobinExpireMonthX = ""
|
||||||
Var TaobinExpireYear = ""
|
Var TaobinExpireYear = ""
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SPLIT TaobinExpire "/" 1 TaobinExpireDay
|
SPLIT TaobinExpire "/" 1 TaobinExpireDay
|
||||||
SPLIT TaobinExpire "/" 2 TaobinExpireMonth
|
SPLIT TaobinExpire "/" 2 TaobinExpireMonth
|
||||||
SPLIT TaobinExpire "/" 3 TaobinExpireYear
|
SPLIT TaobinExpire "/" 3 TaobinExpireYear
|
||||||
|
|
||||||
|
|
||||||
If show_eng = "true" Then
|
If show_eng = "true" Then
|
||||||
|
|
||||||
If TaobinExpireMonth = "01" Then
|
If TaobinExpireMonth = "01" Then
|
||||||
Var TaobinExpireMonth = "Jan"
|
Var TaobinExpireMonth = "Jan"
|
||||||
|
|
@ -142,7 +142,7 @@
|
||||||
|
|
||||||
Var TaobinExpireYear = TaobinExpireYear + 0
|
Var TaobinExpireYear = TaobinExpireYear + 0
|
||||||
|
|
||||||
Else
|
Else
|
||||||
|
|
||||||
If TaobinExpireMonth = "01" Then
|
If TaobinExpireMonth = "01" Then
|
||||||
Var TaobinExpireMonth = "ม.ค."
|
Var TaobinExpireMonth = "ม.ค."
|
||||||
|
|
@ -219,14 +219,14 @@
|
||||||
Var ExpireStrTmp = ExpireStrTmp + " "
|
Var ExpireStrTmp = ExpireStrTmp + " "
|
||||||
Var ExpireStrTmp = ExpireStrTmp + TaobinExpireYear
|
Var ExpireStrTmp = ExpireStrTmp + TaobinExpireYear
|
||||||
|
|
||||||
|
|
||||||
Var CurrentLevel = ""
|
Var CurrentLevel = ""
|
||||||
|
|
||||||
If TaobinLevel = "1" Then
|
If TaobinLevel = "1" Then
|
||||||
Var PointMaskState = "Enable"
|
Var PointMaskState = "Enable"
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
If show_eng = "true" Then
|
If show_eng = "true" Then
|
||||||
|
|
||||||
Var TaobinLevelDesc3 = TaobinCoupons
|
Var TaobinLevelDesc3 = TaobinCoupons
|
||||||
Var TaobinLevelDesc3 = TaobinLevelDesc3 + " coupons are available for you"
|
Var TaobinLevelDesc3 = TaobinLevelDesc3 + " coupons are available for you"
|
||||||
|
|
@ -260,7 +260,7 @@
|
||||||
|
|
||||||
If TaobinLevel = "3" Then
|
If TaobinLevel = "3" Then
|
||||||
Var TaobinLevelDesc1 = "Flying turtle level until " + ExpireStrTmp
|
Var TaobinLevelDesc1 = "Flying turtle level until " + ExpireStrTmp
|
||||||
|
|
||||||
Var PointDiff = 200 - CoffeePointRank
|
Var PointDiff = 200 - CoffeePointRank
|
||||||
Var TaobinLevelDesc2 = "Earn " + PointDiff
|
Var TaobinLevelDesc2 = "Earn " + PointDiff
|
||||||
Var TaobinLevelDesc2 = TaobinLevelDesc2 + " shells "
|
Var TaobinLevelDesc2 = TaobinLevelDesc2 + " shells "
|
||||||
|
|
@ -360,7 +360,7 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Var MakeDrinkState = 0
|
Var MakeDrinkState = 0
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -611,7 +611,7 @@
|
||||||
Var PreviousSeeker.UseGet15Discount = 0
|
Var PreviousSeeker.UseGet15Discount = 0
|
||||||
Var PreviousSeeker.UseGetDrink5Bath = 0
|
Var PreviousSeeker.UseGetDrink5Bath = 0
|
||||||
Else
|
Else
|
||||||
|
|
||||||
If PreviousSeeker.TNumberTaobinCredit = Seeker.TNumberTaobinCredit Then
|
If PreviousSeeker.TNumberTaobinCredit = Seeker.TNumberTaobinCredit Then
|
||||||
If PreviousSeeker.UseGet15Discount = 1 Then
|
If PreviousSeeker.UseGet15Discount = 1 Then
|
||||||
Var Get15DiscountState = "Disable2"
|
Var Get15DiscountState = "Disable2"
|
||||||
|
|
@ -657,11 +657,11 @@
|
||||||
Var xPointEndDate = 490
|
Var xPointEndDate = 490
|
||||||
Var yPointEndDate = 1570
|
Var yPointEndDate = 1570
|
||||||
|
|
||||||
If show_eng = "true" Then
|
If show_eng = "true" Then
|
||||||
Var xPointEndDate = 575
|
Var xPointEndDate = 575
|
||||||
Var yPointEndDate = 1563
|
Var yPointEndDate = 1563
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
Var LuckyDrawTicketFormat = "%03.0f"
|
Var LuckyDrawTicketFormat = "%03.0f"
|
||||||
Var ShowLuckyDrawTicketState = "Enable"
|
Var ShowLuckyDrawTicketState = "Enable"
|
||||||
Var ShowLuckyDrawAds = "Invisible"
|
Var ShowLuckyDrawAds = "Invisible"
|
||||||
|
|
@ -704,7 +704,7 @@
|
||||||
Var LuckyDrawGoalImg = "/goal_regular.png"
|
Var LuckyDrawGoalImg = "/goal_regular.png"
|
||||||
Var targetDate = "31-12-2024"
|
Var targetDate = "31-12-2024"
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
If SystemDateYearInt = 2025 Then
|
If SystemDateYearInt = 2025 Then
|
||||||
If SystemDateMonthInt = 1 Then
|
If SystemDateMonthInt = 1 Then
|
||||||
Var LuckyDrawGoalImg = "/goal_Tesla.png"
|
Var LuckyDrawGoalImg = "/goal_Tesla.png"
|
||||||
|
|
@ -748,70 +748,47 @@
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
Else
|
Else
|
||||||
|
|
||||||
Var ShowLuckyDrawTicketState = "Invisible"
|
Var ShowLuckyDrawTicketState = "Invisible"
|
||||||
Var ShowLuckyDrawAds = "Enable"
|
Var ShowLuckyDrawAds = "Enable"
|
||||||
|
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</EventOpen>
|
</EventOpen>
|
||||||
<Timeout> 1000 </Timeout>
|
<Timeout> 1000 </Timeout>
|
||||||
<EventTimeout>
|
<EventTimeout>
|
||||||
|
|
||||||
Var CountDownBrewing = BREW_CNT
|
Var CountDownBrewing = BREW_CNT
|
||||||
|
|
||||||
Var ShowCountDownBrewing = CountDownBrewing
|
Var ShowCountDownBrewing = CountDownBrewing
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Var Timeout = Timeout + 1
|
Var Timeout = Timeout + 1
|
||||||
If Timeout > 5 Then
|
If Timeout > 5 Then
|
||||||
|
|
||||||
; goto lid straw
|
; goto lid straw
|
||||||
|
|
||||||
|
|
||||||
If CoffeePoint >= 28 Then
|
|
||||||
If GetDrink5Bath = 1 Then
|
; process next page
|
||||||
Open "ROOT/taobin_project/xml/page_display_get_drink_5_baht.xml"
|
Function 2
|
||||||
Else
|
|
||||||
If Seeker.IsLineMember = 0 Then
|
|
||||||
If LuckyDrawCampaign = 1 Then
|
|
||||||
Open "ROOT/taobin_project/xml/sometime/page_campaign_ads_lucky_draw.xml"
|
|
||||||
Else
|
|
||||||
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
|
|
||||||
EndIf
|
|
||||||
Else
|
|
||||||
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
|
|
||||||
EndIf
|
|
||||||
EndIf
|
|
||||||
Else
|
|
||||||
If Seeker.IsLineMember = 0 Then
|
|
||||||
If LuckyDrawCampaign = 1 Then
|
|
||||||
Open "ROOT/taobin_project/xml/sometime/page_campaign_ads_lucky_draw.xml"
|
|
||||||
Else
|
|
||||||
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
|
|
||||||
EndIf
|
|
||||||
Else
|
|
||||||
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
|
|
||||||
EndIf
|
|
||||||
EndIf
|
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
TimerReset
|
TimerReset
|
||||||
Refresh
|
Refresh
|
||||||
</EventTimeout>
|
</EventTimeout>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<EventSecurity>
|
<EventSecurity>
|
||||||
Open "/media/bt/xml/security_alarm.xml"
|
Open "/media/bt/xml/security_alarm.xml"
|
||||||
</EventSecurity>
|
</EventSecurity>
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -825,6 +802,44 @@
|
||||||
EndIf
|
EndIf
|
||||||
</EventMachine>
|
</EventMachine>
|
||||||
|
|
||||||
|
|
||||||
|
<Function2>
|
||||||
|
|
||||||
|
If FromHappyTriosPro = 1 Then
|
||||||
|
If Seeker.VendingCode = "PX6" Then
|
||||||
|
|
||||||
|
Else
|
||||||
|
Open "ROOT/taobin_project/xml/event/happy_trios/page_sending_discount_code.xml"
|
||||||
|
EndIf
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
If CoffeePoint >= 28 Then
|
||||||
|
If GetDrink5Bath = 1 Then
|
||||||
|
Open "ROOT/taobin_project/xml/page_display_get_drink_5_baht.xml"
|
||||||
|
Else
|
||||||
|
If Seeker.IsLineMember = 0 Then
|
||||||
|
If LuckyDrawCampaign = 1 Then
|
||||||
|
Open "ROOT/taobin_project/xml/sometime/page_campaign_ads_lucky_draw.xml"
|
||||||
|
Else
|
||||||
|
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
|
||||||
|
EndIf
|
||||||
|
Else
|
||||||
|
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
|
||||||
|
EndIf
|
||||||
|
EndIf
|
||||||
|
Else
|
||||||
|
If Seeker.IsLineMember = 0 Then
|
||||||
|
If LuckyDrawCampaign = 1 Then
|
||||||
|
Open "ROOT/taobin_project/xml/sometime/page_campaign_ads_lucky_draw.xml"
|
||||||
|
Else
|
||||||
|
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
|
||||||
|
EndIf
|
||||||
|
Else
|
||||||
|
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
|
||||||
|
EndIf
|
||||||
|
EndIf
|
||||||
|
</Function2>
|
||||||
|
|
||||||
;include="ROOT/taobin_project/inc/video.inc"
|
;include="ROOT/taobin_project/inc/video.inc"
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1020,34 +1035,12 @@
|
||||||
<FilenamePress> Var( DirImage + KeepBpBtnImage ) </FilenamePress>
|
<FilenamePress> Var( DirImage + KeepBpBtnImage ) </FilenamePress>
|
||||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||||
<Volume> SoundVolume </Volume>
|
<Volume> SoundVolume </Volume>
|
||||||
<EventClick>
|
<EventClick>
|
||||||
; goto lid straw
|
; goto lid straw
|
||||||
;Open "ROOT/taobin_project/xml/page_back_to_main.xml"
|
;Open "ROOT/taobin_project/xml/page_back_to_main.xml"
|
||||||
If CoffeePoint >= 28 Then
|
|
||||||
If GetDrink5Bath = 1 Then
|
; process next page
|
||||||
Open "ROOT/taobin_project/xml/page_display_get_drink_5_baht.xml"
|
Function 2
|
||||||
Else
|
|
||||||
If Seeker.IsLineMember = 0 Then
|
|
||||||
If LuckyDrawCampaign = 1 Then
|
|
||||||
Open "ROOT/taobin_project/xml/sometime/page_campaign_ads_lucky_draw.xml"
|
|
||||||
Else
|
|
||||||
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
|
|
||||||
EndIf
|
|
||||||
Else
|
|
||||||
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
|
|
||||||
EndIf
|
|
||||||
EndIf
|
|
||||||
Else
|
|
||||||
If Seeker.IsLineMember = 0 Then
|
|
||||||
If LuckyDrawCampaign = 1 Then
|
|
||||||
Open "ROOT/taobin_project/xml/sometime/page_campaign_ads_lucky_draw.xml"
|
|
||||||
Else
|
|
||||||
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
|
|
||||||
EndIf
|
|
||||||
Else
|
|
||||||
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
|
|
||||||
EndIf
|
|
||||||
EndIf
|
|
||||||
|
|
||||||
</EventClick>
|
</EventClick>
|
||||||
</Button>
|
</Button>
|
||||||
|
|
@ -1063,7 +1056,7 @@
|
||||||
<FilenameDisable2> Var( DirImage + "/disable2_get15discount.png" )</FilenameDisable2>
|
<FilenameDisable2> Var( DirImage + "/disable2_get15discount.png" )</FilenameDisable2>
|
||||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||||
<Volume> SoundVolume </Volume>
|
<Volume> SoundVolume </Volume>
|
||||||
<EventClick>
|
<EventClick>
|
||||||
|
|
||||||
Open "ROOT/taobin_project/xml/page_display_get_15_discount.xml"
|
Open "ROOT/taobin_project/xml/page_display_get_15_discount.xml"
|
||||||
|
|
||||||
|
|
@ -1373,7 +1366,7 @@
|
||||||
</EventUnitTest1>
|
</EventUnitTest1>
|
||||||
|
|
||||||
<EventUnitTest2>
|
<EventUnitTest2>
|
||||||
If show_eng = "true" Then
|
If show_eng = "true" Then
|
||||||
Var show_eng = "false"
|
Var show_eng = "false"
|
||||||
Else
|
Else
|
||||||
Var show_eng = "true"
|
Var show_eng = "true"
|
||||||
|
|
@ -1392,4 +1385,3 @@
|
||||||
|
|
||||||
|
|
||||||
</Popup>
|
</Popup>
|
||||||
|
|
||||||
|
|
@ -911,7 +911,7 @@
|
||||||
|
|
||||||
CRLFToSpace showname
|
CRLFToSpace showname
|
||||||
CRLFToSpace showdesc
|
CRLFToSpace showdesc
|
||||||
|
|
||||||
|
|
||||||
If SugarSoundFlag = 1 Then
|
If SugarSoundFlag = 1 Then
|
||||||
If SelectDrinkType = 1 Then
|
If SelectDrinkType = 1 Then
|
||||||
|
|
@ -948,7 +948,7 @@
|
||||||
Function 2
|
Function 2
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</EventClick>
|
</EventClick>
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
|
|
@ -1035,6 +1035,9 @@
|
||||||
DEBUGVAR toppingID2index4
|
DEBUGVAR toppingID2index4
|
||||||
DEBUGVAR toppingID2index5
|
DEBUGVAR toppingID2index5
|
||||||
|
|
||||||
|
DEBUGVAR toppingID3index1
|
||||||
|
DEBUGVAR toppingID3index2
|
||||||
|
|
||||||
DEBUGVAR toppingID6index1
|
DEBUGVAR toppingID6index1
|
||||||
DEBUGVAR toppingID6index2
|
DEBUGVAR toppingID6index2
|
||||||
DEBUGVAR toppingID6index3
|
DEBUGVAR toppingID6index3
|
||||||
|
|
@ -1396,6 +1399,8 @@
|
||||||
If showOreoAddEnable = "Press" Then
|
If showOreoAddEnable = "Press" Then
|
||||||
Var showOreoAddEnable = "Disable"
|
Var showOreoAddEnable = "Disable"
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
|
Var CollagenState = "Disable"
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
; i f cold menu disable away
|
; i f cold menu disable away
|
||||||
|
|
@ -2005,7 +2010,18 @@
|
||||||
|
|
||||||
Var SugarZeroCalPrice = 10
|
Var SugarZeroCalPrice = 10
|
||||||
Var priceFormat = "(+฿%.0f)"
|
Var priceFormat = "(+฿%.0f)"
|
||||||
Var SugarZeroCalPriceStr !assigned StringFmt( SugarZeroCalPrice , priceFormat, PreScaleConvertShow)
|
|
||||||
|
Var SugarZeroCalState = "Invisible"
|
||||||
|
Var SugarZeroCalFreeState = "Invisible"
|
||||||
|
|
||||||
|
If SugarZeroCalFreeFlag = 1 Then
|
||||||
|
Var SugarZeroCalFreeState = "Enable"
|
||||||
|
Var SugarZeroCalPrice = 0
|
||||||
|
Else
|
||||||
|
Var SugarZeroCalState = "Enable"
|
||||||
|
Var SugarZeroCalPriceStr !assigned StringFmt( SugarZeroCalPrice , priceFormat, PreScaleConvertShow)
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
|
||||||
Var SugarNormalCheck = "PressForever"
|
Var SugarNormalCheck = "PressForever"
|
||||||
Else
|
Else
|
||||||
|
|
@ -2339,13 +2355,30 @@
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
;-END
|
;-END
|
||||||
If TOPPING3 = "Collagen" Then
|
DEBUGVAR TOPPING3
|
||||||
|
If TOPPING3 = "Collagen(mix)" Then
|
||||||
Var CollagenState = "Enable"
|
Var CollagenState = "Enable"
|
||||||
|
Var ExtraTopping = "Enable"
|
||||||
Else
|
Else
|
||||||
Var CollagenState = "Invisible"
|
Var CollagenState = "Invisible"
|
||||||
Var ShowCollagenOnly = "Invisible"
|
Var ShowCollagenOnly = "Invisible"
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
|
If JemilaToppingFlag = 1 Then
|
||||||
|
If CollagenState = "Enable" Then
|
||||||
|
If JemilaToppingFreeFlag = 1 Then
|
||||||
|
Var CollagenToppingBg = "/bg_top_jemila_free.png"
|
||||||
|
Var CollagenToppingPrice = 0
|
||||||
|
Else
|
||||||
|
Var CollagenToppingBg = "/bg_top_jemila.png"
|
||||||
|
Var CollagenToppingPrice = 5
|
||||||
|
EndIf
|
||||||
|
EndIf
|
||||||
|
Else
|
||||||
|
Var CollagenState = "Invisible"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
|
||||||
EndIf
|
EndIf
|
||||||
;topping_price_refresh = 0
|
;topping_price_refresh = 0
|
||||||
|
|
||||||
|
|
@ -3811,12 +3844,18 @@
|
||||||
<X> SugarZeroCalPrice_X </X>
|
<X> SugarZeroCalPrice_X </X>
|
||||||
<Y> 67 </Y>
|
<Y> 67 </Y>
|
||||||
<Font> KanitRegularTTF </Font>
|
<Font> KanitRegularTTF </Font>
|
||||||
<State> "Enable" </State>
|
<State> SugarZeroCalState </State>
|
||||||
<Size> 28 </Size>
|
<Size> 28 </Size>
|
||||||
<Color> 0x84776F </Color>
|
<Color> 0x84776F </Color>
|
||||||
<Value> SugarZeroCalPriceStr </Value>
|
<Value> SugarZeroCalPriceStr </Value>
|
||||||
</Text>
|
</Text>
|
||||||
|
|
||||||
|
<Image>
|
||||||
|
<X> SugarZeroCalPrice_X </X>
|
||||||
|
<Y> 75 </Y>
|
||||||
|
<State> SugarZeroCalFreeState </State>
|
||||||
|
<Filename> Var( DirImage + "/free.png" ) </Filename>
|
||||||
|
</Image>
|
||||||
|
|
||||||
; sugar1
|
; sugar1
|
||||||
<Button>
|
<Button>
|
||||||
|
|
@ -4425,12 +4464,19 @@
|
||||||
<X> SugarZeroCalPrice_X </X>
|
<X> SugarZeroCalPrice_X </X>
|
||||||
<Y> 67 </Y>
|
<Y> 67 </Y>
|
||||||
<Font> KanitRegularTTF </Font>
|
<Font> KanitRegularTTF </Font>
|
||||||
<State> "Enable" </State>
|
<State> SugarZeroCalState </State>
|
||||||
<Size> 28 </Size>
|
<Size> 28 </Size>
|
||||||
<Color> 0x84776F </Color>
|
<Color> 0x84776F </Color>
|
||||||
<Value> SugarZeroCalPriceStr </Value>
|
<Value> SugarZeroCalPriceStr </Value>
|
||||||
</Text>
|
</Text>
|
||||||
|
|
||||||
|
<Image>
|
||||||
|
<X> SugarZeroCalPrice_X </X>
|
||||||
|
<Y> 75 </Y>
|
||||||
|
<State> SugarZeroCalFreeState </State>
|
||||||
|
<Filename> Var( DirImage + "/free.png" ) </Filename>
|
||||||
|
</Image>
|
||||||
|
|
||||||
|
|
||||||
; sugar1
|
; sugar1
|
||||||
<Button>
|
<Button>
|
||||||
|
|
@ -4741,12 +4787,19 @@
|
||||||
<X> SugarZeroCalPrice_X </X>
|
<X> SugarZeroCalPrice_X </X>
|
||||||
<Y> 67 </Y>
|
<Y> 67 </Y>
|
||||||
<Font> KanitRegularTTF </Font>
|
<Font> KanitRegularTTF </Font>
|
||||||
<State> "Enable" </State>
|
<State> SugarZeroCalState </State>
|
||||||
<Size> 28 </Size>
|
<Size> 28 </Size>
|
||||||
<Color> 0x84776F </Color>
|
<Color> 0x84776F </Color>
|
||||||
<Value> SugarZeroCalPriceStr </Value>
|
<Value> SugarZeroCalPriceStr </Value>
|
||||||
</Text>
|
</Text>
|
||||||
|
|
||||||
|
<Image>
|
||||||
|
<X> SugarZeroCalPrice_X </X>
|
||||||
|
<Y> 75 </Y>
|
||||||
|
<State> SugarZeroCalFreeState </State>
|
||||||
|
<Filename> Var( DirImage + "/free.png" ) </Filename>
|
||||||
|
</Image>
|
||||||
|
|
||||||
|
|
||||||
; sugar1
|
; sugar1
|
||||||
<Button>
|
<Button>
|
||||||
|
|
@ -5535,6 +5588,82 @@
|
||||||
|
|
||||||
</Row1>
|
</Row1>
|
||||||
|
|
||||||
|
<Row1>
|
||||||
|
<Width> 986 </Width>
|
||||||
|
<Height> "auto" </Height>
|
||||||
|
<State> CollagenState </State>
|
||||||
|
;
|
||||||
|
<Image>
|
||||||
|
<X> 0 </X>
|
||||||
|
<Y> 0 </Y>
|
||||||
|
<Filename> Var( DirImage + CollagenToppingBg ) </Filename>
|
||||||
|
</Image>
|
||||||
|
;
|
||||||
|
<Button>
|
||||||
|
<X> 40 </X>
|
||||||
|
<Y> 5 </Y>
|
||||||
|
<State> CollagenState </State>
|
||||||
|
<Mode> "No" </Mode>
|
||||||
|
<Filename> "ROOT/taobin_project/image/topping2/bn_add_jemila.png" </Filename>
|
||||||
|
<FilenamePress> "ROOT/taobin_project/image/topping2/bp_add_jemila.png" </FilenamePress>
|
||||||
|
<FilenameDisable> "ROOT/taobin_project/image/topping2/bd_add_jemila.png" ) </FilenameDisable>
|
||||||
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventClick>
|
||||||
|
SAVELOG "Press add jemila"
|
||||||
|
|
||||||
|
If CollagenState = "Press" Then
|
||||||
|
Var CollagenState = "Enable"
|
||||||
|
Else
|
||||||
|
Var CollagenState = "Press"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
Function 2
|
||||||
|
|
||||||
|
Refresh
|
||||||
|
|
||||||
|
</EventClick>
|
||||||
|
<Animation>
|
||||||
|
<Style> "shake-text" </Style>
|
||||||
|
<OnEvent> "OnValueChange" </OnEvent>
|
||||||
|
</Animation>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
;
|
||||||
|
<Button>
|
||||||
|
<X> 896 </X>
|
||||||
|
<Y> 14 </Y>
|
||||||
|
<State> CollagenState </State>
|
||||||
|
<Mode> "No" </Mode>
|
||||||
|
<Filename> Var( DirImage + "/cb_notcheck.png" ) </Filename>
|
||||||
|
<FilenamePress> Var( DirImage + "/cb_checked.png" ) </FilenamePress>
|
||||||
|
<FilenameDisable> Var( DirImage + "/cb_checkdis.png" ) </FilenameDisable>
|
||||||
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventClick>
|
||||||
|
|
||||||
|
SAVELOG "Press add jemila"
|
||||||
|
|
||||||
|
If CollagenState = "Press" Then
|
||||||
|
Var CollagenState = "Enable"
|
||||||
|
Else
|
||||||
|
Var CollagenState = "Press"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
Function 2
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Refresh
|
||||||
|
|
||||||
|
</EventClick>
|
||||||
|
<Animation>
|
||||||
|
<Style> "shake-text" </Style>
|
||||||
|
<OnEvent> "OnValueChange" </OnEvent>
|
||||||
|
</Animation>
|
||||||
|
</Button>
|
||||||
|
</Row1>
|
||||||
|
|
||||||
|
|
||||||
;
|
;
|
||||||
;
|
;
|
||||||
|
|
@ -7607,6 +7736,15 @@
|
||||||
|
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
|
If CollagenState = "Press" Then
|
||||||
|
Var TOPPING_PRICE = TOPPING_PRICE + CollagenToppingPrice
|
||||||
|
Var topping3 = toppingID3index2
|
||||||
|
Var DisableUsingCode = "true"
|
||||||
|
Else
|
||||||
|
Var topping3 = toppingID3index1
|
||||||
|
Var DisableUsingCode = "false"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
|
||||||
If SugarZeroCalEnable = "true" Then
|
If SugarZeroCalEnable = "true" Then
|
||||||
If SugarZeroCalOption = "Enable" Then
|
If SugarZeroCalOption = "Enable" Then
|
||||||
|
|
|
||||||