Merge remote-tracking branch 'origin/freeEnergyDrink' into masterpiece

This commit is contained in:
Kenta420 2024-03-08 10:09:38 +07:00
commit 45264a090c
31 changed files with 12872 additions and 589 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

View file

@ -0,0 +1,6 @@
normal_eng=ROOT/taobin_project/image/event/powerup_free_1/powerup_en.png
normal_thai=ROOT/taobin_project/image/event/powerup_free_1/powerup.png
press_eng=ROOT/taobin_project/image/event/powerup_free_1/powerup_en.png
press_thai=ROOT/taobin_project/image/event/powerup_free_1/powerup.png
disable_eng=ROOT/taobin_project/image/event/powerup_free_1/powerup_en.png
disable_thai=ROOT/taobin_project/image/event/powerup_free_1/powerup.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 134 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 134 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 258 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 256 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 298 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 300 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 243 KiB

View file

@ -0,0 +1 @@
/event/promotion_powerup_free_1.xml

View file

@ -0,0 +1,84 @@
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
<Volume> SoundVolume </Volume>
;<Background> "0xeae6e1" </Background>
<EventOpen>
Var NameDrink = "TAO POWER DRINK"
Var NameDrinkTH = "เต่าทรงพลัง"
Var DrinkDescriptionTH = "เครื่องดื่มเต่าทรงพลัง (มีคาเฟอีน)"
Var DrinkDescription = "Medicine drink & Ice"
Var PictureDrink = "ROOT/taobin_project/image/page_drink_picture2_n/" + "bn_iced_energy_drink.png"
Var OpenFromXML = CurrentXMLFileName2
Var PriceD1 = $-.Price
Var PriceD2 = $12-05-02-0034.Price
Var PriceD3 = $12-05-03-0034.Price
Var PD_CODE1 = "##-##-##-####"
Var PD_CODE2 = "12-05-02-0034"
Var PD_CODE3 = "12-05-03-0034"
Var PD_STAGE_1 = "Disable2"
Var PD_STAGE_2 = $12-05-02-0034.Button
Var PD_STAGE_3 = $12-05-03-0034.Button
Var OverlayMenuFilter !assigned xmlpro( 12-05-03-0034, "ROOT/taobin_project/image/menu_overlay_set/button_overlay_pic_%s_posi1.png")
DEBUGVAR OverlayMenuFilter
Var SelectCountDrinkType = 0
Var DefaultDrinkType = 0
If PD_STAGE_1 = "Enable" Then
Var SelectCountDrinkType = SelectCountDrinkType + 1
Var DefaultDrinkType = 1
EndIf
If PD_STAGE_2 = "Enable" Then
Var SelectCountDrinkType = SelectCountDrinkType + 1
Var DefaultDrinkType = 2
EndIf
If PD_STAGE_3 = "Enable" Then
Var SelectCountDrinkType = SelectCountDrinkType + 1
Var DefaultDrinkType = 3
EndIf
If PD_STAGE_2 = "Enable" Then
Topping "Load" "12-05-02-0034"
Else
If PD_STAGE_1 = "Enable" Then
Topping "Load" "-"
Else
Topping "Load" "12-05-03-0034"
EndIf
EndIf
Var menu_name_eng_hot = $##-##-##-####.NameE
Var menu_desc_eng_hot = $##-##-##-####.descriptionE
Var menu_name_thai_hot = $##-##-##-####.Name
Var menu_desc_thai_hot = $##-##-##-####.description
Var menu_name_eng_cold = $12-05-02-0034.NameE
Var menu_desc_eng_cold = $12-05-02-0034.descriptionE
Var menu_name_thai_cold = $12-05-02-0034.Name
Var menu_desc_thai_cold = $12-05-02-0034.description
Var menu_name_eng_blender = $12-05-03-0034.NameE
Var menu_desc_eng_blender = $12-05-03-0034.descriptionE
Var menu_name_thai_blender = $12-05-03-0034.Name
Var menu_desc_thai_blender = $12-05-03-0034.description
DEBUGVAR PD_STAGE_1
DEBUGVAR PD_STAGE_2
DEBUGVAR PD_STAGE_3
Var SelectDrinkType = 0
Open "ROOT/taobin_project/xml/page_topping_select5.xml"
</EventOpen>
; ads
<Video>
<X> 0 </X>
<Y> 0 </Y>
<Width> 1080</Width>
<Height> 380 </Height>
<Loop> "true" </Loop>
<Filename> video_menu_0 </Filename>
</Video>
</Popup>

View file

@ -0,0 +1,188 @@
; TODO: like y20, but without age check instead check usage of that id.
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
<Volume> SoundVolume </Volume>
;<Background> "0xeae6e1" </Background>
<EventOpen>
</EventOpen>
; ads
<Video>
<X> 0 </X>
<Y> 0 </Y>
<Width> 1080</Width>
<Height> 380 </Height>
<Loop> "true" </Loop>
<Filename> video_menu_0 </Filename>
</Video>
; back --- debug
;
; move this to bottom left later
<Button>
<X> 19 </X>
<Y> 381 </Y>
<Filename> "ROOT/taobin_project/image/page2/bn_back_arrow_2.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page2/bn_back_arrow_2.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
If SpiralOnline = "true" Then
If Seeker = "curr" Then
Open "ROOT/taobin_project/xml/page_catalog_with_vending.xml"
Else
Open "ROOT/taobin_project/xml/page_catalog.xml"
EndIf
Else
Open "ROOT/taobin_project/xml/page_catalog.xml"
EndIf
</EventClick>
</Button>
; Thai policy
<Image>
<X> 76 </X>
<Y> 408 </Y>
<Filename> "ROOT/taobin_project/image/event/powerup_free_1/powerup_policy.png" </Filename>
<State>
eval(
If show_eng = "true" Then
Var return = "Invisible"
Else
Var return = "Enable"
EndIf
)
</State>
</Image>
; Eng policy
<Image>
<X> 76 </X>
<Y> 408 </Y>
<Filename> "ROOT/taobin_project/image/event/powerup_free_1/powerup_policy_en.png" </Filename>
<State>
eval(
If show_eng = "true" Then
Var return = "Enable"
Else
Var return = "Invisible"
EndIf
)
</State>
</Image>
; TH: accept button
<Button>
<X> 673 </X>
<Y> 1785 </Y>
<Width> 286 </Width>
<Height> 92 </Height>
<State>
eval(
If show_eng = "true" Then
Var return = "Invisible"
Else
Var return = "Enable"
EndIf
)
</State>
<Filename> "ROOT/taobin_project/image/consent/bn_accept.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/consent/bp_accept.png" </FilenamePress>
<EventOnClick>
; TODO: implement something
Open "ROOT/taobin_project/xml/event/powerup_free_1/page_powerup_identity.xml"
</EventOnClick>
</Button>
; TH: back button
<Button>
<X> 44 </X>
<Y> 1785 </Y>
<Width> 286 </Width>
<Height> 92 </Height>
<State>
eval(
If show_eng = "true" Then
Var return = "Invisible"
Else
Var return = "Enable"
EndIf
)
</State>
<Filename> "ROOT/taobin_project/image/consent/bn_back.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/consent/bp_back.png" </FilenamePress>
<EventOnClick>
; TODO: implement something
If SpiralOnline = "true" Then
If Seeker = "curr" Then
Open "ROOT/taobin_project/xml/page_catalog_with_vending.xml"
Else
Open "ROOT/taobin_project/xml/page_catalog.xml"
EndIf
Else
Open "ROOT/taobin_project/xml/page_catalog.xml"
EndIf
</EventOnClick>
</Button>
; EN: accept button
<Button>
<X> 673 </X>
<Y> 1785 </Y>
<Width> 286 </Width>
<Height> 92 </Height>
<State>
eval(
If show_eng = "true" Then
Var return = "Enable"
Else
Var return = "Invisible"
EndIf
)
</State>
<Filename> "ROOT/taobin_project/image/consent_en/bn_accept.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/consent_en/bp_accept.png" </FilenamePress>
<EventOnClick>
; TODO: implement something
Open "ROOT/taobin_project/xml/event/powerup_free_1/page_powerup_identity.xml"
</EventOnClick>
</Button>
; EN: back button
<Button>
<X> 44 </X>
<Y> 1785 </Y>
<Width> 286 </Width>
<Height> 92 </Height>
<State>
eval(
If show_eng = "true" Then
Var return = "Enable"
Else
Var return = "Invisible"
EndIf
)
</State>
<Filename> "ROOT/taobin_project/image/consent_en/bn_back.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/consent_en/bp_back.png" </FilenamePress>
<EventOnClick>
; TODO: implement something
If SpiralOnline = "true" Then
If Seeker = "curr" Then
Open "ROOT/taobin_project/xml/page_catalog_with_vending.xml"
Else
Open "ROOT/taobin_project/xml/page_catalog.xml"
EndIf
Else
Open "ROOT/taobin_project/xml/page_catalog.xml"
EndIf
</EventOnClick>
</Button>
</Popup>

View file

@ -0,0 +1,526 @@
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
<Background> "0xeae6e1" </Background>
<Volume> SoundVolume </Volume>
<EventOpen>
Var CamFlag = 0
Var CamCount = 0
Var Timeout = 0
Var ShutterResult = "-"
Var AdultFlag = 1
If AdultFlag = 1 Then
Var AdultFlag = 0
DEBUGVAR SystemDate
Var sdate = ""
Var sdate = SystemDate
Var sdateday = ""
Var sdatemonth = ""
Var sdateyear = ""
SPLIT sdate "/" 1 sdateday
SPLIT sdate "/" 2 sdatemonth
SPLIT sdate "/" 3 sdateyear
INT sdateday
INT sdatemonth
INT sdateyear
Var AdultState = "Enable"
Var AdultState1 = "Enable"
Var countAdultS2 = 0
Var AdultFlag2 = 1
EndIf
If show_eng = "true" Then
Var DirImage = "ROOT/taobin_project/image/page_payment_en/page_payment"
Var DirImage2 = "ROOT/taobin_project/image/page_payment_cash_extend_en"
Var page_doing_show_time_image = "ROOT/taobin_project/image/page_doing/img2.png"
Else
Var DirImage = "ROOT/taobin_project/image/page_payment"
Var DirImage2 = "ROOT/taobin_project/image/page_payment_cash_extend"
Var page_doing_show_time_image = "ROOT/taobin_project/image/page_doing/img2.png"
EndIf
If CameraCount = 1 Then
EndIf
Var IDBirthdate = ""
Var LivenessResult = ""
Var CountDownDelayReadCardID = 5
DEBUGVAR CameraCount
;STOPCARDID
Var LivenessShowString = ""
Var CameraStage = "Invisible"
Var IDcardStage = "Enable"
Var IDcardStageText = "Enable"
Var load_gif_stage = "Invisible"
Var IDcardTextStatus = "โปรดเสียบบัตรประชาชน \nเพื่อดำเนินการต่อ"
Var LivenessRestartCount = 0
Var FailTrickCount = 0
Var FailState = "Invisible"
Var FullQuotaState = "Invisible"
Var StepGetServer = 0
Var Cid = 29
Var PointCrm = "2"
Var GetScore = "1"
Var IDNumx = "2640100003053"
;AddData Cid TelephoneNumber IDNumx PointCrm GetScore
</EventOpen>
<EventActionOk>
DEBUGVAR Ext1a
; example
If StepGetServer = 1 Then
If Ext1a = "0" Then
If LegitAge = "true" Then
Var RoadShow = "true"
Open "ROOT/taobin_project/xml/page_payment.xml"
Else
Var load_gif_stage = "Invisible"
Var FailState = "Enable"
EndIf
Refresh
Else
Var FullQuotaState = "Enable"
EndIf
EndIf
; If StepGetServer = 1 Then
; If Ext1a = "ok" Then
; Var ChildrenFree = 1
; Open "ROOT/taobin_project/xml/page_payment.xml"
; Else
; If Ext1a = "limit" Then
; Var load_gif_stage = "Invisible"
; Var FailState = "Enable"
; Var img_popup16 = "/img_popup16-3.png"
; WRITE_FILE "/mnt/sdcard/oreo_for_free_limit" "true"
; Else
; Var load_gif_stage = "Invisible"
; Var FailState = "Enable"
; Var img_popup16 = "/img_popup16-2.png"
; EndIf
; Refresh
; EndIf
; EndIf
</EventActionOk>
<EventActionError>
; handle quota full
; response smth
Var FullQuotaState = "Enable"
</EventActionError>
<EventIDCard>
DEBUGVAR IDCardStatus
DEBUGVAR IDCardReady
DEBUGVAR IDCardData
DEBUGVAR IDBirthdate
DEBUGVAR IDFullNameEng
If IDCardStatus = "OK" Then
If IDCardReady = "OK" Then
If IDCardData = "START" Then
Var load_gif_stage = "Enable"
Var IDcardStageText = "Invisible"
Var FailState = "Invisible"
;Var img_popup16 = "/img_popup16-1.png"
RefreshAll
Var Timeout = 90
EndIf
EndIf
EndIf
If IDCardStatus = "OK" Then
If IDCardReady = "OK" Then
If IDCardData = "ERROR" Then
Var load_gif_stage = "Invisible"
Var IDcardStageText = "Enable"
Var IDcardTextStatus = "อ่านบัตรไม่ได้"
Var FailState = "Enable"
;
If show_eng = "true" Then
Var img_popup16 = "ROOT/taobin_project/image/event/powerup_free_1/powerup_error_en.png"
Else
Var img_popup16 = "ROOT/taobin_project/image/event/powerup_free_1/powerup_error.png"
EndIf
Refresh
EndIf
EndIf
EndIf
If IDCardStatus = "ERROR" Then
Var load_gif_stage = "Invisible"
Var IDcardStageText = "Enable"
Var IDcardTextStatus = "อ่านบัตรไม่ได้"
Var FailState = "Enable"
If show_eng = "true" Then
Var img_popup16 = "ROOT/taobin_project/image/event/powerup_free_1/powerup_error_en.png"
Else
Var img_popup16 = "ROOT/taobin_project/image/event/powerup_free_1/powerup_error.png"
EndIf
Refresh
EndIf
If IDCardStatus = "ERROR" Then
If IDCardReady = "ERROR" Then
If IDCardData = "ERROR" Then
Var FailState = "Invisible"
EndIf
EndIf
EndIf
If IDCardStatus = "OK" Then
If IDCardReady = "OK" Then
If IDCardData = "DONE" Then
;Var birthDate = IDBirthdate
Var StrYear = ""
Var StrMon = ""
Var StrDay = ""
SUBSTRING IDBirthdate 0 4 StrYear
SUBSTRING IDBirthdate 4 6 StrMon
SUBSTRING IDBirthdate 6 8 StrDay
INT StrYear
INT StrMon
INT StrDay
Var Adult7 = 0
Var Adult15 = 0
DEBUGVAR StrYear
DEBUGVAR StrMon
DEBUGVAR StrDay
DEBUGVAR sdatemonth
DEBUGVAR sdateday
Var sdateyear = sdateyear + 543
Var AgeNumber = sdateyear - StrYear
DEBUGVAR AgeNumber
If AgeNumber >= 18 Then
; TODO: check quota --- AddData; Wait for new add num
Var LegitAge = "true"
; Then enable RoadShow
;Var RoadShow = "true"
;Open "ROOT/taobin_project/xml/page_payment.xml"
EndIf
EndIf
EndIf
EndIf
</EventIDCard>
<Timeout> 1000 </Timeout>
<EventTimeout>
DEBUGVAR IDCardStatus
DEBUGVAR IDCardReady
DEBUGVAR IDCardData
DEBUGVAR IDBirthdate
DEBUGVAR CountDownDelayReadCardID
DEBUGVAR ShutterResult
DEBUGVAR IDCardState
DEBUGVAR load_gif_stage
DEBUGVAR img_popup16
If IDBirthdate = "" Then
Var CountDownDelayReadCardID = CountDownDelayReadCardID - 1
If CountDownDelayReadCardID = 0 Then
READCARDID
Var CountDownDelayReadCardID = 600
EndIf
EndIf
DEBUGVAR Timeout
Var Timeout = Timeout + 1
If Timeout > 120 Then
Open "ROOT/taobin_project/xml/page_catalog2.xml"
EndIf
If IDCardState = "PRESENT" Then
If IDCardStatus = "ERROR" Then
Var load_gif_stage = "Invisible"
Var IDcardStageText = "Enable"
Var IDcardTextStatus = "อ่านบัตรไม่ได้อะ"
Refresh
EndIf
EndIf
Refresh
TimerReset
</EventTimeout>
;include="ROOT/taobin_project/inc/video.inc"
; back
<Button>
<X> 19 </X>
<Y> 420 </Y>
<Filename> "ROOT/taobin_project/image/page2/bn_back_arrow.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page2/bn_back_arrow.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Open "ROOT/taobin_project/xml/page_catalog2.xml"
</EventClick>
</Button>
; TODO: fix filename path, change dir image
<Image>
<X> 75 </X>
<Y> 493 </Y>
<State>
eval(
If show_eng = "true" Then
Var return = "Invisible"
Else
Var return = "Enable"
EndIf
)
</State>
<Filename> "ROOT/taobin_project/image/event/powerup_free_1/insert_id_card.png" </Filename>
</Image>
<Image>
<X> 75 </X>
<Y> 493 </Y>
<State>
eval(
If show_eng = "true" Then
Var return = "Enable"
Else
Var return = "Invisible"
EndIf
)
</State>
<Filename> "ROOT/taobin_project/image/event/powerup_free_1/insert_id_card_en.png" </Filename>
</Image>
<Button>
<X> 358 </X>
<Y> 1769 </Y>
<State>"Enable"</State>
<Filename> Var( DirImage + "/bn_cancel_all.png" )</Filename>
<FilenamePress> Var( DirImage + "/bp_cancel_all.png" ) </FilenamePress>
<FilenameDisable> Var( DirImage + "/bp_cancel_all.png" ) </FilenameDisable>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var RoadShow = ""
Open "ROOT/taobin_project/xml/page_catalog2.xml"
</EventClick>
</Button>
<Button>
<X> 360 </X>
<Y> 1373 </Y>
<State>FailState</State>
<Filename> Var( DirImage + "/bn_cancel_all.png" )</Filename>
<FilenamePress> Var( DirImage + "/bp_cancel_all.png" ) </FilenamePress>
<FilenameDisable> Var( DirImage + "/bp_cancel_all.png" ) </FilenameDisable>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var RoadShow = ""
Open "ROOT/taobin_project/xml/page_catalog2.xml"
</EventClick>
</Button>
<Image>
<X> 0 </X>
<Y> 380 </Y>
<State> load_gif_stage </State>
<Filename> "ROOT/taobin_project/image/page_payment/alpha.png" </Filename>
</Image>
<Image>
<X> 0 </X>
<Y> 380 </Y>
<State> FailState </State>
<Filename> "ROOT/taobin_project/image/page_payment/alpha.png" </Filename>
</Image>
<Image>
<X> 249 </X>
<Y> 751 </Y>
<State> load_gif_stage </State>
<Filename> Var( DirImage + "/img_popup15.png" )</Filename>
</Image>
<Image>
<X> 249 </X>
<Y> 751 </Y>
<State> FailState </State>
<Filename> eval(
If show_eng = "true" Then
Var return = "ROOT/taobin_project/image/event/powerup_free_1/powerup_error_en.png"
Else
Var return = "ROOT/taobin_project/image/event/powerup_free_1/powerup_error.png"
EndIf
) </Filename>
</Image>
<Button>
<X> 350 </X>
<Y> 1370 </Y>
<State>FailState</State>
<Filename> Var( DirImage + "/bn_cancel_all.png" )</Filename>
<FilenamePress> Var( DirImage + "/bp_cancel_all.png" ) </FilenamePress>
<FilenameDisable> Var( DirImage + "/bp_cancel_all.png" ) </FilenameDisable>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Open "ROOT/taobin_project/xml/page_catalog2.xml"
</EventClick>
</Button>
; Full Quota
<Image>
<X> 0 </X>
<Y> 380 </Y>
<State> FullQuotaState </State>
<Filename> "ROOT/taobin_project/image/page_payment/alpha.png" </Filename>
</Image>
<Image>
<X> 249 </X>
<Y> 751 </Y>
<State> FullQuotaState </State>
<Filename> eval(
If show_eng = "true" Then
Var return = "ROOT/taobin_project/image/event/powerup_free_1/powerup_quota_full_en.png"
Else
Var return = "ROOT/taobin_project/image/event/powerup_free_1/powerup_quota_full.png"
EndIf
) </Filename>
</Image>
<Button>
<X> 350 </X>
<Y> 1370 </Y>
<State>FullQuotaState</State>
<Filename> Var( DirImage + "/bn_cancel_all.png" )</Filename>
<FilenamePress> Var( DirImage + "/bp_cancel_all.png" ) </FilenamePress>
<FilenameDisable> Var( DirImage + "/bp_cancel_all.png" ) </FilenameDisable>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var RoadShow = ""
Open "ROOT/taobin_project/xml/page_catalog2.xml"
</EventClick>
</Button>
<GIF>
<X> 440 </X>
<Y> 988 </Y>
<State> load_gif_stage </State>
<Filename> "ROOT/taobin_project/image/page_payment/loading.gif"</Filename>
</GIF>
<EventUnitTest1>
Var IDCardStatus = "OK"
Var IDCardReady = "OK"
Var IDCardData = "START"
EventEvaluate "EventIDCard"
</EventUnitTest1>
<EventUnitTest2>
Var IDBirthdate = 25271014
Var IDCardStatus = "OK"
Var IDCardReady = "OK"
Var IDCardData = "DONE"
EventEvaluate "EventIDCard"
</EventUnitTest2>
<EventUnitTest3>
Var FullQuotaState = "Enable"
</EventUnitTest3>
<EventUnitTest4>
Var IDCardState = "PRESENT"
Var IDCardStatus = "ERROR"
Var IDCardReady = "ERROR"
Var IDCardData = "ERROR"
</EventUnitTest4>
</Popup>

View file

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

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,48 @@
<Button>
<X> 42 </X>
<Y> 520 </Y>
<State> BigButtonEnable </State>
<Filename>
eval(
If show_eng = "true" Then
Var return = ###normal_eng
Else
Var return = ###normal_thai
EndIf
)
</Filename>
<FilenamePress>
eval(
If show_eng = "true" Then
Var return = ###normal_eng
Else
Var return = ###normal_thai
EndIf
)
</FilenamePress>
<FilenameDisable>
eval(
If show_eng = "true" Then
Var return = ###normal_eng
Else
Var return = ###normal_thai
EndIf
)
</FilenameDisable>
<EventOnClick>
Open "ROOT/taobin_project/xml/event/powerup_free_1/page_powerup_bridge.xml"
</EventOnClick>
</Button>
<EventUnitTest1>
Var BigButtonEnable = "Enable"
Refresh
</EventUnitTest1>
<EventUnitTest2>
Var BigButtonEnable = "Invisible"
Refresh
</EventUnitTest2>

View file

@ -1,7 +1,8 @@
DEBUGVAR NetworkStatus
DEBUGVAR SELLONLINE
DEBUGVAR PayOfflineMode
DEBUGVAR CocktailShow
DEBUGVAR OpenFromPageBoard
If CocktailShow = "true" Then
@ -13,26 +14,40 @@ If CocktailShow = "true" Then
EndIf
Else
; check profile to enable free energy drink promotion
STRCONTAIN "ProEnergyDrinkFreePerCardID" XMLProfile EnableFreeEnergyDrink
; zone promote
If OpenFromPageBoard = 1 Then
DEBUGVAR FreeEnergyDrink
DEBUGVAR BigButtonEnable
If LipitPro = 1 Then
Var BigButtonEnable = "Enable"
If MondayBananaPro = 1 Then
OpenInst 2 "ROOT/taobin_project/xml/event/double_promotion_lipit_and_monday_banana.xml"
Var OpenFromPageBoard = 0
If EnableFreeEnergyDrink = "true" Then
If FreeEnergyDrink = 1 Then
Var FreePowerup = "Enable"
OpenInst 2 "ROOT/taobin_project/xml/event/triple_promotion_lipit_and_monday_banana_and_free_energy_drink.xml"
Var OpenFromPageBoard = 0
Else
OpenInst 2 "ROOT/taobin_project/xml/event/double_promotion_lipit_and_monday_banana.xml"
Var OpenFromPageBoard = 0
EndIf
Else
OpenInst 2 "ROOT/taobin_project/xml/event/double_promotion_lipit_and_monday_banana.xml"
Var OpenFromPageBoard = 0
EndIf
Else
OpenInst 2 "ROOT/taobin_project/xml/event/promotion_lipit.xml"
Var OpenFromPageBoard = 0
EndIf
Else
If PepsiSecondCup30Enable = 1 Then
Var BigButtonEnable = "Enable"
If MondayBananaPro = 1 Then
OpenInst 2 "ROOT/taobin_project/xml/event/double_promotion_pepsi_second_cup_30_and_monday_banana_and_something.xml"
OpenInst 2 "ROOT/taobin_project/xml/event/double_promotion_pepsi_second_cup_30_and_monday_banana.xml"
Var OpenFromPageBoard = 0
Else
OpenInst 2 "ROOT/taobin_project/xml/event/promotion_pepsi_second_cup_30.xml"
@ -48,7 +63,6 @@ Else
Else
OpenInst 2 "ROOT/taobin_project/xml/page_catalog_group_recommend.xml"
EndIf
EndIf
EndIf
Else
@ -56,7 +70,16 @@ Else
Var BigButtonEnable = "Enable"
If MondayBananaPro = 1 Then
Open "ROOT/taobin_project/xml/event/double_promotion_lipit_and_monday_banana.xml"
If EnableFreeEnergyDrink = "true" Then
If FreeEnergyDrink = 1 Then
Var FreePowerup = "Enable"
Open "ROOT/taobin_project/xml/event/triple_promotion_lipit_and_monday_banana_and_free_energy_drink.xml"
Else
Open "ROOT/taobin_project/xml/event/double_promotion_lipit_and_monday_banana.xml"
EndIf
Else
Open "ROOT/taobin_project/xml/event/double_promotion_lipit_and_monday_banana.xml"
EndIf
Else
Open "ROOT/taobin_project/xml/event/promotion_lipit.xml"
EndIf
@ -65,7 +88,7 @@ Else
Var BigButtonEnable = "Enable"
If MondayBananaPro = 1 Then
Open "ROOT/taobin_project/xml/event/double_promotion_pepsi_second_cup_30_and_monday_banana_and_something.xml"
Open "ROOT/taobin_project/xml/event/double_promotion_pepsi_second_cup_30_and_monday_banana.xml"
Else
Open "ROOT/taobin_project/xml/event/promotion_pepsi_second_cup_30.xml"
EndIf
@ -76,10 +99,7 @@ Else
Open "ROOT/taobin_project/xml/page_catalog_group_recommend.xml"
EndIf
EndIf
EndIf
EndIf
EndIf
EndIf
Var OpenFromPageBoard = 0

View file

@ -81,6 +81,9 @@ Var NewCollectPoint = 1
Var NewFlowPaymentCode = 0
; Enable Free Energy Drink
Var FreeEnergyDrink = 0
If SystemDateMonthInt = 10 Then
@ -296,6 +299,10 @@ If BoxID = 173791 Then
Var LipitPro = 0
EndIf
If BoxID = 177746 Then
Var FreeEnergyDrink = 1
Var PepsiSecondCup30Enable = 0
EndIf
Var GameEnableFromTrickerEv = 1
@ -329,6 +336,7 @@ If InternationalEnable = 1 Then
Var RerunProEnable = 0
Var ProPeachEnable = 0
Var ProBadValentineEnable = 0
Var FreeEnergyDrink = 0
EndIf
If BananaSyrupEnable = "true" Then
@ -345,4 +353,4 @@ Else
EndIf
DEBUGVAR FreePowerup

File diff suppressed because it is too large Load diff

View file

@ -38,8 +38,6 @@
If Seeker = "curr" Then
Var LastMakeDrinkResult = "-"
EndIf
If show_eng = "true" Then
Var ImageDoing = "ROOT/taobin_project/image/page_doing/img2_eng.png"
@ -280,7 +278,16 @@
Var ShowCountDownBrewing = CountDownBrewing
If RoadShow = "true" Then
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
If FreeEnergyDrink = 1 Then
; reset
Var RoadShow = ""
; AddData
; +1 in quota in this id card
AddData <ID> <user-id> <menu?>
EndIf
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
Else
Var Seeker.OrderChanel = Seeker.OrderChanel + ":"

View file

@ -63,6 +63,10 @@
EndIf
EndIf
If FreePowerup = "Enable" Then
Open "ROOT/taobin_project/xml/page_topping_select8.xml"
EndIf
If BoxID = 200001 Then
;Open "ROOT/taobin_project/xml/page_topping_select8.xml"

View file

@ -438,6 +438,7 @@
DEBUGVAR MenuReady
DEBUGVAR CupRemain
DEBUGVAR FreePowerup
If SelectDrinkType = 1 Then
@ -5803,6 +5804,22 @@
</EventClick>
</Button>
; free energy drink
<Button>
<X> 673 </X>
<Y> 1785 </Y>
<State> FreePowerup </State>
<Filename> Var( DirImage + "/bn_powerupFree.png" ) </Filename>
<FilenamePress> Var( DirImage + "/bp_powerupFree.png" )</FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
; policy
Open "ROOT/taobin_project/xml/event/powerup_free_1/page_powerup_consent.xml"
</EventClick>
</Button>
<Image>