THAI: add UI for free energy drink promotion, WIP add data
BIN
image/consent_en/bn_back.png
Normal file
|
After Width: | Height: | Size: 2.8 KiB |
BIN
image/consent_en/bp_back.png
Normal file
|
After Width: | Height: | Size: 2.8 KiB |
6
image/event/image_template4
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
normal_eng=ROOT/taobin_project/image/event/pepsi_second_cup_30/pro_pepsi_second_cup_30.png
|
||||||
|
normal_thai=ROOT/taobin_project/image/event/pepsi_second_cup_30/pro_pepsi_second_cup_30.png
|
||||||
|
press_eng=ROOT/taobin_project/image/event/pepsi_second_cup_30/pro_pepsi_second_cup_30.png
|
||||||
|
press_thai=ROOT/taobin_project/image/event/pepsi_second_cup_30/pro_pepsi_second_cup_30.png
|
||||||
|
disable_eng=ROOT/taobin_project/image/event/pepsi_second_cup_30/pro_pepsi_second_cup_30.png
|
||||||
|
disable_thai=ROOT/taobin_project/image/event/pepsi_second_cup_30/pro_pepsi_second_cup_30.png
|
||||||
|
Before Width: | Height: | Size: 134 KiB After Width: | Height: | Size: 134 KiB |
|
Before Width: | Height: | Size: 134 KiB After Width: | Height: | Size: 134 KiB |
BIN
image/event/powerup_free_1/powerup.png
Normal file
|
After Width: | Height: | Size: 171 KiB |
|
Before Width: | Height: | Size: 42 KiB After Width: | Height: | Size: 42 KiB |
|
Before Width: | Height: | Size: 41 KiB After Width: | Height: | Size: 41 KiB |
|
Before Width: | Height: | Size: 298 KiB After Width: | Height: | Size: 298 KiB |
|
Before Width: | Height: | Size: 300 KiB After Width: | Height: | Size: 300 KiB |
|
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 29 KiB |
|
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.8 KiB |
|
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 3.4 KiB |
|
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 4.7 KiB |
|
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 4.1 KiB |
1
xml/event/out_put_file4.txt
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
/event/promotion_powerup_free_1.xml
|
||||||
86
xml/event/powerup_free_1/page_powerup_bridge.xml
Normal file
|
|
@ -0,0 +1,86 @@
|
||||||
|
; 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>
|
||||||
|
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>
|
||||||
188
xml/event/powerup_free_1/page_powerup_consent.xml
Normal 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>
|
||||||
462
xml/event/powerup_free_1/page_powerup_identity.xml
Normal file
|
|
@ -0,0 +1,462 @@
|
||||||
|
<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 StepGetServer = 0
|
||||||
|
|
||||||
|
Var Cid = 29
|
||||||
|
Var PointCrm = "2"
|
||||||
|
Var GetScore = "1"
|
||||||
|
Var IDNumx = "2640100003053"
|
||||||
|
;AddData Cid TelephoneNumber IDNumx PointCrm GetScore
|
||||||
|
|
||||||
|
</EventOpen>
|
||||||
|
|
||||||
|
<EventActionOk>
|
||||||
|
|
||||||
|
DEBUGVAR Ext1a
|
||||||
|
|
||||||
|
; 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>
|
||||||
|
</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
|
||||||
|
; 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>
|
||||||
|
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>
|
||||||
|
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>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<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 FailState = "Enable"
|
||||||
|
</EventUnitTest3>
|
||||||
|
|
||||||
|
<EventUnitTest4>
|
||||||
|
Var IDCardState = "PRESENT"
|
||||||
|
Var IDCardStatus = "ERROR"
|
||||||
|
Var IDCardReady = "ERROR"
|
||||||
|
Var IDCardData = "ERROR"
|
||||||
|
</EventUnitTest4>
|
||||||
|
|
||||||
|
</Popup>
|
||||||
|
|
||||||
1
xml/event/promotion_onclick4.inc
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
Var BigButtonEnable = "Invisible"
|
||||||
11373
xml/event/promotion_powerup_free_1.xml
Normal file
49
xml/event/promotion_template4.inc
Normal file
|
|
@ -0,0 +1,49 @@
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 42 </X>
|
||||||
|
<Y> 520 </Y>
|
||||||
|
|
||||||
|
<State> BigButtonEnable </State>
|
||||||
|
<Filename>
|
||||||
|
eval(
|
||||||
|
If show_eng = "true" Then
|
||||||
|
Var return = "ROOT/taobin_project/image/event/powerup_free_1/powerup.png"
|
||||||
|
Else
|
||||||
|
Var return = "ROOT/taobin_project/image/event/powerup_free_1/powerup.png"
|
||||||
|
EndIf
|
||||||
|
)
|
||||||
|
</Filename>
|
||||||
|
<FilenamePress>
|
||||||
|
eval(
|
||||||
|
If show_eng = "true" Then
|
||||||
|
Var return = "ROOT/taobin_project/image/event/powerup_free_1/powerup.png"
|
||||||
|
Else
|
||||||
|
Var return = "ROOT/taobin_project/image/event/powerup_free_1/powerup.png"
|
||||||
|
EndIf
|
||||||
|
)
|
||||||
|
</FilenamePress>
|
||||||
|
<FilenameDisable>
|
||||||
|
eval(
|
||||||
|
If show_eng = "true" Then
|
||||||
|
Var return = "ROOT/taobin_project/image/event/powerup_free_1/powerup.png"
|
||||||
|
Else
|
||||||
|
Var return = "ROOT/taobin_project/image/event/powerup_free_1/powerup.png"
|
||||||
|
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>
|
||||||
|
|
@ -1,7 +1,8 @@
|
||||||
DEBUGVAR NetworkStatus
|
DEBUGVAR NetworkStatus
|
||||||
DEBUGVAR SELLONLINE
|
DEBUGVAR SELLONLINE
|
||||||
DEBUGVAR PayOfflineMode
|
DEBUGVAR PayOfflineMode
|
||||||
|
DEBUGVAR CocktailShow
|
||||||
|
DEBUGVAR OpenFromPageBoard
|
||||||
|
|
||||||
If CocktailShow = "true" Then
|
If CocktailShow = "true" Then
|
||||||
|
|
||||||
|
|
@ -15,36 +16,28 @@ If CocktailShow = "true" Then
|
||||||
Else
|
Else
|
||||||
; zone promote
|
; zone promote
|
||||||
If OpenFromPageBoard = 1 Then
|
If OpenFromPageBoard = 1 Then
|
||||||
|
DEBUGVAR FreeEnergyDrink
|
||||||
If PepsiSecondCup30Enable = 1 Then
|
DEBUGVAR BigButtonEnable
|
||||||
|
If FreeEnergyDrink = 1 Then
|
||||||
|
Var FreePowerup = "Enable"
|
||||||
Var BigButtonEnable = "Enable"
|
Var BigButtonEnable = "Enable"
|
||||||
OpenInst 2 "ROOT/taobin_project/xml/event/promotion_pepsi_second_cup_30.xml"
|
|
||||||
|
OpenInst 2 "ROOT/taobin_project/xml/event/promotion_powerup_free_1.xml"
|
||||||
|
|
||||||
Var OpenFromPageBoard = 0
|
Var OpenFromPageBoard = 0
|
||||||
|
|
||||||
Else
|
Else
|
||||||
If ProBadValentineEnable = 1 Then
|
Var FreePowerup = "Invisible"
|
||||||
Var BigButtonEnable = "Enable"
|
OpenInst 2 "ROOT/taobin_project/xml/page_catalog_group_recommend.xml"
|
||||||
OpenInst 2 "ROOT/taobin_project/xml/event/promotion_bad_valentine.xml"
|
|
||||||
Var OpenFromPageBoard = 0
|
|
||||||
|
|
||||||
Else
|
|
||||||
OpenInst 2 "ROOT/taobin_project/xml/page_catalog_group_recommend.xml"
|
|
||||||
|
|
||||||
EndIf
|
|
||||||
EndIf
|
EndIf
|
||||||
Else
|
Else
|
||||||
If PepsiSecondCup30Enable = 1 Then
|
DEBUGVAR FreeEnergyDrink
|
||||||
|
If FreeEnergyDrink = 1 Then
|
||||||
|
Var FreePowerup = "Enable"
|
||||||
Var BigButtonEnable = "Enable"
|
Var BigButtonEnable = "Enable"
|
||||||
Open "ROOT/taobin_project/xml/event/promotion_pepsi_second_cup_30.xml"
|
OpenInst 2 "ROOT/taobin_project/xml/event/promotion_powerup_free_1.xml"
|
||||||
|
|
||||||
Else
|
Else
|
||||||
If ProBadValentineEnable = 1 Then
|
Var FreePowerup = "Invisible"
|
||||||
Var BigButtonEnable = "Enable"
|
OpenInst 2 "ROOT/taobin_project/xml/page_catalog_group_recommend.xml"
|
||||||
Open "ROOT/taobin_project/xml/event/promotion_bad_valentine.xml"
|
|
||||||
Else
|
|
||||||
Open "ROOT/taobin_project/xml/page_catalog_group_recommend.xml"
|
|
||||||
EndIf
|
|
||||||
|
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -73,6 +73,9 @@ Var NewCollectPoint = 1
|
||||||
|
|
||||||
Var NewFlowPaymentCode = 0
|
Var NewFlowPaymentCode = 0
|
||||||
|
|
||||||
|
; Enable Free Energy Drink
|
||||||
|
Var FreeEnergyDrink = 0
|
||||||
|
|
||||||
If SystemDateMonthInt = 10 Then
|
If SystemDateMonthInt = 10 Then
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -224,7 +227,10 @@ If BoxID = 200435 Then
|
||||||
Var ProBadValentineEnable = 1
|
Var ProBadValentineEnable = 1
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
|
If BoxID = 177746 Then
|
||||||
|
Var FreeEnergyDrink = 1
|
||||||
|
Var PepsiSecondCup30Enable = 0
|
||||||
|
EndIf
|
||||||
|
|
||||||
Var GameEnableFromTrickerEv = 1
|
Var GameEnableFromTrickerEv = 1
|
||||||
|
|
||||||
|
|
@ -258,6 +264,7 @@ If InternationalEnable = 1 Then
|
||||||
Var RerunProEnable = 0
|
Var RerunProEnable = 0
|
||||||
Var ProPeachEnable = 0
|
Var ProPeachEnable = 0
|
||||||
Var ProBadValentineEnable = 0
|
Var ProBadValentineEnable = 0
|
||||||
|
Var FreeEnergyDrink = 0
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
If BananaSyrupEnable = "true" Then
|
If BananaSyrupEnable = "true" Then
|
||||||
|
|
@ -274,4 +281,4 @@ Else
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
|
|
||||||
|
DEBUGVAR FreePowerup
|
||||||
|
|
@ -39,7 +39,10 @@
|
||||||
Var LastMakeDrinkResult = "-"
|
Var LastMakeDrinkResult = "-"
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
|
If FreeEnergyDrink = 1 Then
|
||||||
|
; reset
|
||||||
|
Var RoadShow = ""
|
||||||
|
EndIf
|
||||||
|
|
||||||
If show_eng = "true" Then
|
If show_eng = "true" Then
|
||||||
Var ImageDoing = "ROOT/taobin_project/image/page_doing/img2_eng.png"
|
Var ImageDoing = "ROOT/taobin_project/image/page_doing/img2_eng.png"
|
||||||
|
|
|
||||||
|
|
@ -63,6 +63,10 @@
|
||||||
EndIf
|
EndIf
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
|
If FreePowerup = "Enable" Then
|
||||||
|
Open "ROOT/taobin_project/xml/page_topping_select8.xml"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
|
||||||
If BoxID = 200001 Then
|
If BoxID = 200001 Then
|
||||||
;Open "ROOT/taobin_project/xml/page_topping_select8.xml"
|
;Open "ROOT/taobin_project/xml/page_topping_select8.xml"
|
||||||
|
|
|
||||||
|
|
@ -438,6 +438,7 @@
|
||||||
|
|
||||||
DEBUGVAR MenuReady
|
DEBUGVAR MenuReady
|
||||||
DEBUGVAR CupRemain
|
DEBUGVAR CupRemain
|
||||||
|
DEBUGVAR FreePowerup
|
||||||
|
|
||||||
If SelectDrinkType = 1 Then
|
If SelectDrinkType = 1 Then
|
||||||
|
|
||||||
|
|
@ -5803,6 +5804,22 @@
|
||||||
</EventClick>
|
</EventClick>
|
||||||
</Button>
|
</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>
|
<Image>
|
||||||
|
|
|
||||||