This commit is contained in:
pichet 2023-05-02 14:04:02 +07:00
commit 86cc26c752
82 changed files with 19090 additions and 464 deletions

BIN
image/bn_back_to_school.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 120 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 115 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 119 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 115 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
sound_thai/boy/payment.wav Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
sound_thai/boy/thankyou.wav Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
sound_thai/girl/payment.wav Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -493,7 +493,7 @@
<MarginTop> 22 </MarginTop>
<Width> 225 </Width>
<Height> 296 </Height>
<State> Flag( 12-03-03-0032.Button,Disable=Invisible,$Sum1203030032) </State>
<State> Flag( 12-03-03-0032.Button, ,$Sum1203030032) </State>
<Button>
<State> $Sum1203030032 </State>
<Filename> "ROOT/taobin_project/image/page_drink_n//bn_super_oreo_volcano.png" </Filename>

View file

@ -0,0 +1,105 @@
<Button>
<X> 42 </X>
<Y> 520 </Y>
<State> Flag( 12-03-03-0032.Button, ,$Sum1203030032) </State>
<Filename>
eval(
If show_eng = "true" Then
Var return = "ROOT/taobin_project/image/event/bn_back_to_school_en.png"
Else
Var return = "ROOT/taobin_project/image/event/bn_back_to_school.png"
EndIf
)
</Filename>
<FilenamePress>
eval(
If show_eng = "true" Then
Var return = "ROOT/taobin_project/image/event/bp_back_to_school_en.png"
Else
Var return = "ROOT/taobin_project/image/event/bp_back_to_school.png"
EndIf
)
</FilenamePress>
<FilenameDisable>
eval(
If show_eng = "true" Then
Var return = "ROOT/taobin_project/image/event/bn_back_to_school_en.png"
Else
Var return = "ROOT/taobin_project/image/event/bn_back_to_school.png"
EndIf
)
</FilenameDisable>
<EventOnClick>
Var NameDrink = "OREO SMOOTHIE VOLCANO"
Var NameDrinkTH = "โอริโอ้ปั่นภูเขาไฟ"
Var DrinkDescriptionTH = "นม น้ำตาล โอริโอ้ "
Var DrinkDescription = "Milk, Sugar, Oreo"
Var PictureDrink = "ROOT/taobin_project/image/page_drink_picture2_n/" + "bn_smoothie_oreo.png"
Var OpenFromXML = CurrentXMLFileName2
Var PriceD1 = $-.Price
Var PriceD2 = $-.Price
Var PriceD3 = $12-03-03-0009.Price
Var PD_CODE1 = "##-##-##-####"
Var PD_CODE2 = "##-##-##-####"
Var PD_CODE3 = "12-03-03-0009"
Var PD_STAGE_1 = "Disable2"
Var PD_STAGE_2 = "Disable2"
Var PD_STAGE_3 = $12-03-03-0009.Button
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
Topping "Load" "12-03-03-0009"
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 = $##-##-##-####.NameE
Var menu_desc_eng_cold = $##-##-##-####.descriptionE
Var menu_name_thai_cold = $##-##-##-####.Name
Var menu_desc_thai_cold = $##-##-##-####.description
Var menu_name_eng_blender = $12-03-03-0009.NameE
Var menu_desc_eng_blender = $12-03-03-0009.descriptionE
Var menu_name_thai_blender = $12-03-03-0009.Name
Var menu_desc_thai_blender = $12-03-03-0009.description
DEBUGVAR PD_STAGE_1
DEBUGVAR PD_STAGE_2
DEBUGVAR PD_STAGE_3
Var SelectDrinkType = 0
Var BackToSchoolForFreeEnable = 1
Open "ROOT/taobin_project/xml/page_topping_select6.xml"
</EventOnClick>
</Button>
<EventUnitTest1>
Var BigButtonEnable = "Enable"
Refresh
</EventUnitTest1>
<EventUnitTest2>
Var BigButtonEnable = "Invisible"
Refresh
</EventUnitTest2>

View file

@ -0,0 +1,106 @@
<Button>
<X> 42 </X>
<Y> 520 </Y>
<State> Flag( 12-03-03-0032.Button, ,$Sum1203030032) </State>
<Filename>
eval(
If show_eng = "true" Then
Var return = "ROOT/taobin_project/image/event/bn_oreo_buy2_save_move_en.png"
Else
Var return = "ROOT/taobin_project/image/event/bn_oreo_buy2_save_move.png"
EndIf
)
</Filename>
<FilenamePress>
eval(
If show_eng = "true" Then
Var return = "ROOT/taobin_project/image/event/bp_oreo_buy2_save_move_en.png"
Else
Var return = "ROOT/taobin_project/image/event/bp_oreo_buy2_save_move.png"
EndIf
)
</FilenamePress>
<FilenameDisable>
eval(
If show_eng = "true" Then
Var return = "ROOT/taobin_project/image/event/bn_oreo_buy2_save_move_en.png"
Else
Var return = "ROOT/taobin_project/image/event/bn_oreo_buy2_save_move.png"
EndIf
)
</FilenameDisable>
<EventOnClick>
Var NameDrink = "OREO SMOOTHIE VOLCANO"
Var NameDrinkTH = "โอริโอ้ปั่นภูเขาไฟ"
Var DrinkDescriptionTH = "นม น้ำตาล โอริโอ้ "
Var DrinkDescription = "Milk, Sugar, Oreo"
Var PictureDrink = "ROOT/taobin_project/image/page_drink_picture2_n/" + "bn_save_buy2_oreo_volcano.png"
Var OpenFromXML = CurrentXMLFileName2
Var PriceD1 = 0
Var PriceD2 = 0
Var PriceD3 = 70
Var PD_CODE1 = "##-##-##-####"
Var PD_CODE2 = "##-##-##-####"
Var PD_CODE3 = "12-03-03-0009"
Var PD_STAGE_1 = "Disable2"
Var PD_STAGE_2 = "Disable2"
Var PD_STAGE_3 = $12-03-03-0009.Button
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
Topping "Load" "12-03-03-0009"
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 = $##-##-##-####.NameE
Var menu_desc_eng_cold = $##-##-##-####.descriptionE
Var menu_name_thai_cold = $##-##-##-####.Name
Var menu_desc_thai_cold = $##-##-##-####.description
Var menu_name_eng_blender = $12-03-03-0009.NameE
Var menu_desc_eng_blender = $12-03-03-0009.descriptionE
Var menu_name_thai_blender = $12-03-03-0009.Name
Var menu_desc_thai_blender = $12-03-03-0009.description
DEBUGVAR PD_STAGE_1
DEBUGVAR PD_STAGE_2
DEBUGVAR PD_STAGE_3
Var SelectDrinkType = 0
Var PromotionIDOreoBuyTwoSaveMore = 1
Open "ROOT/taobin_project/xml/page_topping_select6.xml"
</EventOnClick>
</Button>
<EventUnitTest1>
Var BigButtonEnable = "Enable"
Refresh
</EventUnitTest1>
<EventUnitTest2>
Var BigButtonEnable = "Invisible"
Refresh
</EventUnitTest2>

View file

@ -0,0 +1,66 @@
print( "dir= " + directory_to_process + "/page_catalog_group_recommend.xml");
file_xml = open(directory_to_process + "/page_catalog_group_recommend.xml", 'r')
file_content_main = file_xml.read()
#print(file_xml.read())
# ; include-file=dummy_layout.inc
file_inc = open(directory_to_process + "/dummy_layout.inc", 'r')
file_inc_content = file_inc.read()
file_inc2 = open(directory_to_process + "/big_logo.inc", 'r')
file_inc2_content = file_inc2.read()
#print( file_inc_content)
content_data_was_repack = file_content_main.replace(";dummy_layout.inc", file_inc_content)
content_data = content_data_was_repack.replace(";BigLogoLayout", file_inc2_content)
begin_text = content_data.index(";TAGESP")
end_text = content_data.index(";TAGESP", begin_text + 7)
print("sub text = " + str(begin_text) + " end = " + str(end_text))
tmp1 = content_data[: begin_text - 7]
tmp2 = content_data[ end_text:-1]
print("tmp1=" + tmp1)
print("tmp2=" + tmp2)
content_data = tmp1 + tmp2
file_xml.close()
file_inc2 = open(directory_to_process + "/event/big_logo_back_to_school.inc", 'r')
file_inc2_content = file_inc2.read()
content_data = content_data_was_repack.replace(";BigLogoLayout", file_inc2_content)
begin_text = content_data.index(";TAGESP")
end_text = content_data.index(";TAGESP", begin_text + 7)
print("sub text = " + str(begin_text) + " end = " + str(end_text))
tmp1 = content_data[: begin_text - 7]
tmp2 = content_data[ end_text:-1]
print("tmp1=" + tmp1)
print("tmp2=" + tmp2)
content_data = tmp1 + tmp2
file_xml3 = open(directory_to_process + "/event/page_recommend_backToSchool.xml", 'w')
file_xml3.write( content_data)
file_xml3.close()
#############################################
file_inc2 = open(directory_to_process + "/event/big_logo_oreo_buy2_save_movel.inc", 'r')
file_inc2_content = file_inc2.read()
content_data = content_data_was_repack.replace(";BigLogoLayout", file_inc2_content)
begin_text = content_data.index(";TAGESP")
end_text = content_data.index(";TAGESP", begin_text + 7)
print("sub text = " + str(begin_text) + " end = " + str(end_text))
tmp1 = content_data[: begin_text - 7]
tmp2 = content_data[ end_text:-1]
print("tmp1=" + tmp1)
print("tmp2=" + tmp2)
content_data = tmp1 + tmp2
file_xml3 = open(directory_to_process + "/event/page_recommend_oreo_buy2_save_more.xml", 'w')
file_xml3.write( content_data)
file_xml3.close()

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,40 @@
; zone promote
If OpenFromPageBoard = 1 Then
If SongkranEnable = 1 Then
OpenInst 2 "ROOT/taobin_project/xml/page_catalog_group_recommend3.xml"
Var OpenFromPageBoard = 0
Else
If OreoForFreeEnable = 1 Then
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/xml/event/page_recommend_backToSchool.xml"
Var OpenFromPageBoard = 0
EndIf
If OreoDueEnable = 1 Then
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/xml/event/page_recommend_oreo_buy2_save_more.xml"
Var OpenFromPageBoard = 0
EndIf
If OpenFromPageBoard = 1 Then
OpenInst 2 "ROOT/taobin_project/xml/page_catalog_group_recommend.xml"
EndIf
EndIf
Else
If SongkranEnable = 1 Then
Open "ROOT/taobin_project/xml/page_catalog_group_recommend3.xml"
Else
If OreoForFreeEnable = 1 Then
Open "/mnt/sdcard/coffeevending/taobin_project/xml/event/page_recommend_backToSchool.xml"
EndIf
If OreoDueEnable = 1 Then
Open "/mnt/sdcard/coffeevending/taobin_project/xml/event/page_recommend_oreo_buy2_save_more.xml"
EndIf
Open "ROOT/taobin_project/xml/page_catalog_group_recommend.xml"
EndIf
EndIf
Var OpenFromPageBoard = 0

83
xml/event/tricker.ev Normal file
View file

@ -0,0 +1,83 @@
Var PromotionIDOreoBuyTwoSaveMore = 0
Var BackToSchoolForFreeEnable = 0
;DEBUGVAR SystemDateMonthInt
;DEBUGVAR SystemDateDayInt
Var OreoForFreeEnable = 0
Var OreoDueEnable = 0
If SystemDateMonthInt = 5 Then
If SystemDateDayInt = 6 Then
Var OreoDueEnable = 1
EndIf
If SystemDateDayInt = 7 Then
Var OreoDueEnable = 1
EndIf
If SystemDateDayInt = 13 Then
Var OreoDueEnable = 1
EndIf
If SystemDateDayInt = 14 Then
Var OreoDueEnable = 1
EndIf
If SystemDateDayInt = 20 Then
Var OreoDueEnable = 1
EndIf
If SystemDateDayInt = 21 Then
Var OreoDueEnable = 1
EndIf
If SystemDateDayInt = 27 Then
Var OreoDueEnable = 1
EndIf
If SystemDateDayInt = 28 Then
Var OreoDueEnable = 1
EndIf
EndIf
If SystemDateMonthInt = 5 Then
If SystemDateDayInt > 7 Then
If SystemDateDayInt < 13 Then
Var OreoForFreeEnable = 1
EndIf
EndIf
EndIf
If OreoDueEnable = 0 Then
Var $12-03-03-0009-alter.Button = "Invisible"
Else
Var $12-03-03-0009-alter.Button = "Enable"
EndIf
If BoxID = 172644 Then
Var OreoDueEnable = 1
EndIf
If BoxID = 172527 Then
Var OreoDueEnable = 1
EndIf
If BoxID = 173149 Then
Var OreoForFreeEnable = 1
EndIf
Var SoundBackToSchoolEnable = 1
DEBUGVAR OreoDueEnable
DEBUGVAR OreoForFreeEnable
;Var $12-03-03-0009-alter.Price = 70
;Var $12-03-03-0009-alter.NameE = $12-03-03-0009.NameE
;Var $12-03-03-0009-alter.descriptionE = $12-03-03-0009.descriptionE
;Var $12-03-03-0009-alter.Name = $12-03-03-0009.Name
;Var $12-03-03-0009-alter.description = $12-03-03-0009.description

View file

@ -1 +0,0 @@

View file

@ -79,26 +79,28 @@
EndIf
EndIf
If CupOnArm = "true" Then
If CheckCupStateDoorCupClose = "" Then
Var buttonRemoveCup = "Enable"
EndIf
If CheckCupStateDoorCupClose = "done" Then
Var buttonRemoveCup = "Enable"
EndIf
Else
If buttonRemoveCup = "Enable" Then
Var buttonRemoveCup = "Invisible"
EndIf
EndIf
Var Timeout = Timeout + 1
TimerReset
</EventTimeout>
;<Image>
;<X> 0 </X>
;<Y> 0 </Y>
;<Filename> "ROOT/taobin_project/image/ad_medium_2.png" </Filename>
;</Image>
;<Video>
;<X> 0 </X>
;<Y> 0 </Y>
;<Width> 1080</Width>
;<Height> 380 </Height>
;<Loop> "true" </Loop>
;<Filename> video_menu_1 </Filename>
;</Video>
; under line
<Image>
<X> 0 </X>
@ -180,12 +182,8 @@
SAVELOG "Click rec"
Var NextPage = "-"
; zone promote
If SongkranEnable = 1 Then
Open "ROOT/taobin_project/xml/page_catalog_group_recommend3.xml"
Else
Open "ROOT/taobin_project/xml/page_catalog_group_recommend.xml"
EndIf
TRY "/mnt/sdcard/coffeevending/taobin_project/xml/event/script_common_for_open_promotion_xml.ev"
</EventClick>
</Button>

View file

@ -211,14 +211,14 @@
out_xml( '\t\tIf PD_STAGE_2 = "Enable" Then\r\n')
#out_xml( '\t\t\tVar PD_STAGE_2 = "Enable"\r\n')
out_xml( '\t\t\tTopping "Load" "'+ spl[5] +'"\r\n')
out_xml( '\t\t\tTopping "Load" "'+ spl[5].replace("-alter", "") +'"\r\n')
out_xml( '\t\tElse\r\n')
out_xml( '\t\t\tIf PD_STAGE_1 = "Enable" Then\r\n')
#out_xml( '\t\t\t\tVar PD_STAGE_1 = "Enable"\r\n')
out_xml( '\t\t\tTopping "Load" "'+ spl[4] +'"\r\n')
out_xml( '\t\t\tTopping "Load" "'+ spl[4].replace("-alter", "") +'"\r\n')
out_xml( '\t\t\tElse\r\n')
#out_xml( '\t\t\t\tVar PD_STAGE_3 = "Enable"\r\n')
out_xml( '\t\t\tTopping "Load" "'+ spl[6] +'"\r\n')
out_xml( '\t\t\tTopping "Load" "'+ spl[6].replace("-alter", "") +'"\r\n')
out_xml( '\t\t\tEndIf\r\n')
out_xml( '\t\tEndIf\r\n')
@ -251,10 +251,7 @@
out_xml( '\t\t\r\n')
out_xml( '\t\t\r\n')
if "inter" in param:
out_xml( '\t\tOpen "ROOT/taobin_project/xml/page_topping_select5.xml"\r\n')
else:
out_xml( '\t\tOpen "ROOT/taobin_project/xml/page_topping_select4.xml"\r\n')
out_xml( '\t\tOpen "ROOT/taobin_project/xml/page_topping_select5.xml"\r\n')
out_xml( '\t\t\r\n')

View file

@ -679,6 +679,15 @@
Var SongkranEnable = 1
EndIf
EndIf
If SystemDateMonthInt = 5 Then
If SystemDateDayInt = 1 Then
Var SongkranEnable = 1
EndIf
If SystemDateDayInt = 2 Then
Var SongkranEnable = 1
EndIf
EndIf
If SongkranEnable = 1 Then
@ -700,10 +709,18 @@
If BoxID = 200434 Then
Var SongkranEnable = 0
EndIf
If BoxID = 172644 Then
Var SongkranEnable = 0
EndIf
If BoxID = 172102 Then
Var SongkranEnable = 0
EndIf
TRY "/mnt/sdcard/coffeevending/taobin_project/xml/event/tricker.ev"
If BoxID = 200001 Then
Var OreoDueEnable = 0
EndIf
DEBUGVAR SoundThaiIndex
@ -727,6 +744,19 @@
DEBUGVAR Not#CameraSettingStatus
RootLayoutVisible 3 "hide"
; Init default
If SoundBackToSchoolType = "" Then
Var SoundBackToSchoolType = 1
EndIf
If SoundBackToSchoolType = 1 Then
Var SoundBackToSchoolType = 2
Else
Var SoundBackToSchoolType = 1
EndIf
</EventOpen>
<EventUnitTest1>
@ -844,12 +874,10 @@
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert2.xml"
If SongkranEnable = 1 Then
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/xml/page_catalog_group_recommend3.xml"
Else
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/xml/page_catalog_group_recommend.xml"
EndIf
Var OpenFromPageBoard = 1
TRY "/mnt/sdcard/coffeevending/taobin_project/xml/event/script_common_for_open_promotion_xml.ev"
Machine DoorClose
@ -884,9 +912,18 @@
;Var CupOnArm = "true"
If CupOnArm = "true" Then
Var buttonRemoveCup = "Enable"
If CheckCupStateDoorCupClose = "" Then
Var buttonRemoveCup = "Enable"
EndIf
If CheckCupStateDoorCupClose = "done" Then
Var buttonRemoveCup = "Enable"
EndIf
Else
Var buttonRemoveCup = "Invisible"
If buttonRemoveCup = "Enable" Then
Var buttonRemoveCup = "Invisible"
EndIf
EndIf
@ -924,6 +961,7 @@
EndIf
Refresh
TimerReset
@ -1136,6 +1174,9 @@
<EventClick>
Machine RemoveCup
Machine DoorLidOpen
Var CheckCupStateDoorCupClose = "reset"
Var buttonRemoveCup = "Invisible"
</EventClick>
</Button>

View file

@ -69,14 +69,16 @@
Else
Var PlaySoundLag = "ROOT/taobin_project/sound_thai/thankyou.mp3"
If SoundThaiIndex = 1 Then
Var PlaySoundLag = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/sublang/north/thankyou.wav"
EndIf
If SoundThaiIndex = 2 Then
Var PlaySoundLag = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/sublang/northeast/thankyou.wav"
EndIf
If SoundThaiIndex = 3 Then
Var PlaySoundLag = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/sublang/south/thankyou.wav"
; Play Sound #zone
If SoundBackToSchoolEnable = 1 Then
If SoundBackToSchoolType = 1 Then
Var RootPathSoundBackToSchool = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/boy/"
EndIf
If SoundBackToSchoolType = 2 Then
Var RootPathSoundBackToSchool = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/girl/"
EndIf
Var PlaySoundLag = RootPathSoundBackToSchool + "thankyou.wav"
EndIf
Play PlaySoundLag
@ -562,14 +564,17 @@
Else
Var PlaySoundLag = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/next_drink.mp3"
If SoundThaiIndex = 1 Then
Var PlaySoundLag = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/sublang/north/next_drink.wav"
EndIf
If SoundThaiIndex = 2 Then
Var PlaySoundLag = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/sublang/northeast/next_drink.wav"
EndIf
If SoundThaiIndex = 3 Then
Var PlaySoundLag = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/sublang/south/next_drink.wav"
; Play Sound #zone
If SoundBackToSchoolEnable = 1 Then
If SoundBackToSchoolType = 1 Then
Var RootPathSoundBackToSchool = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/boy/"
EndIf
If SoundBackToSchoolType = 2 Then
Var RootPathSoundBackToSchool = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/girl/"
EndIf
Var PlaySoundLag = RootPathSoundBackToSchool + "next_drink.wav"
EndIf
PlayLong PlaySoundLag

View file

@ -44,7 +44,8 @@
Var text_price_6 = ""
; zone sound
; Clear value
Topping "clear" "-"
@ -67,14 +68,16 @@
Var PlaySoundLag = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/taobin_sawade.mp3"
If SoundThaiIndex = 1 Then
Var PlaySoundLag = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/sublang/north/taobin_sawade.wav"
EndIf
If SoundThaiIndex = 2 Then
Var PlaySoundLag = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/sublang/northeast/taobin_sawade.wav"
EndIf
If SoundThaiIndex = 3 Then
Var PlaySoundLag = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/sublang/south/taobin_sawade.wav"
; Play Sound #zone
If SoundBackToSchoolEnable = 1 Then
If SoundBackToSchoolType = 1 Then
Var RootPathSoundBackToSchool = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/boy/"
EndIf
If SoundBackToSchoolType = 2 Then
Var RootPathSoundBackToSchool = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/girl/"
EndIf
Var PlaySoundLag = RootPathSoundBackToSchool + "taobin_sawade.wav"
EndIf
Play PlaySoundLag
@ -204,6 +207,8 @@
EndIf
TRY "/mnt/sdcard/coffeevending/taobin_project/xml/event/tricker.ev"
Var Price5Active = 0
</EventOpen>
@ -237,7 +242,21 @@
EndIf
EndIf
If CupOnArm = "true" Then
If CheckCupStateDoorCupClose = "" Then
Var buttonRemoveCup = "Enable"
EndIf
If CheckCupStateDoorCupClose = "done" Then
Var buttonRemoveCup = "Enable"
EndIf
Else
If buttonRemoveCup = "Enable" Then
Var buttonRemoveCup = "Invisible"
EndIf
EndIf
Refresh
TimerReset
@ -349,12 +368,8 @@
; zone promote
If SongkranEnable = 1 Then
Open "ROOT/taobin_project/xml/page_catalog_group_recommend3.xml"
Else
Open "ROOT/taobin_project/xml/page_catalog_group_recommend.xml"
EndIf
TRY "/mnt/sdcard/coffeevending/taobin_project/xml/event/script_common_for_open_promotion_xml.ev"
</EventClick>
</Button>
@ -581,7 +596,11 @@
<Filename> "ROOT/taobin_project/image/main_page/bp_remove_cup.png" </Filename>
<EventClick>
Machine RemoveCup
Machine DoorLidOpen
Machine DoorLidOpen
Var CheckCupStateDoorCupClose = "reset"
Var buttonRemoveCup = "Invisible"
</EventClick>
</Button>
@ -633,5 +652,12 @@
Var SongkranEnable = 1
</EventUnitTest2>
<EventUnitTest3>
Open "/mnt/sdcard/coffeevending/taobin_project/xml/event/page_recommend_backToSchool.xml"
</EventUnitTest3>
<EventUnitTest4>
Open "/mnt/sdcard/coffeevending/taobin_project/xml/event/page_recommend_oreo_buy2_save_more.xml"
</EventUnitTest4>
</Popup>

View file

@ -227,26 +227,28 @@
EndIf
EndIf
If CupOnArm = "true" Then
If CheckCupStateDoorCupClose = "" Then
Var buttonRemoveCup = "Enable"
EndIf
If CheckCupStateDoorCupClose = "done" Then
Var buttonRemoveCup = "Enable"
EndIf
Else
If buttonRemoveCup = "Enable" Then
Var buttonRemoveCup = "Invisible"
EndIf
EndIf
Var Timeout = Timeout + 1
TimerReset
</EventTimeout>
;<Image>
;<X> 0 </X>
;<Y> 0 </Y>
;<Filename> "ROOT/taobin_project/image/ad_medium_2.png" </Filename>
;</Image>
;<Video>
;<X> 0 </X>
;<Y> 0 </Y>
;<Width> 1080</Width>
;<Height> 380 </Height>
;<Loop> "true" </Loop>
;<Filename> video_menu_1 </Filename>
;</Video>
; under line
<Image>
<X> 0 </X>
@ -328,12 +330,8 @@
SAVELOG "Click rec"
Var NextPage = "-"
; zone promote
If SongkranEnable = 1 Then
Open "ROOT/taobin_project/xml/page_catalog_group_recommend3.xml"
Else
Open "ROOT/taobin_project/xml/page_catalog_group_recommend.xml"
EndIf
TRY "/mnt/sdcard/coffeevending/taobin_project/xml/event/script_common_for_open_promotion_xml.ev"
</EventClick>
</Button>

View file

@ -219,26 +219,28 @@
EndIf
EndIf
If CupOnArm = "true" Then
If CheckCupStateDoorCupClose = "" Then
Var buttonRemoveCup = "Enable"
EndIf
If CheckCupStateDoorCupClose = "done" Then
Var buttonRemoveCup = "Enable"
EndIf
Else
If buttonRemoveCup = "Enable" Then
Var buttonRemoveCup = "Invisible"
EndIf
EndIf
Var Timeout = Timeout + 1
TimerReset
</EventTimeout>
;<Image>
;<X> 0 </X>
;<Y> 0 </Y>
;<Filename> "ROOT/taobin_project/image/ad_medium_2.png" </Filename>
;</Image>
;<Video>
;<X> 0 </X>
;<Y> 0 </Y>
;<Width> 1080</Width>
;<Height> 380 </Height>
;<Loop> "true" </Loop>
;<Filename> video_menu_1 </Filename>
;</Video>
; under line
<Image>
<X> 0 </X>
@ -320,12 +322,8 @@
SAVELOG "Click rec"
Var NextPage = "-"
; zone promote
If SongkranEnable = 1 Then
Open "ROOT/taobin_project/xml/page_catalog_group_recommend3.xml"
Else
Open "ROOT/taobin_project/xml/page_catalog_group_recommend.xml"
EndIf
TRY "/mnt/sdcard/coffeevending/taobin_project/xml/event/script_common_for_open_promotion_xml.ev"
</EventClick>
</Button>

View file

@ -219,26 +219,28 @@
EndIf
EndIf
If CupOnArm = "true" Then
If CheckCupStateDoorCupClose = "" Then
Var buttonRemoveCup = "Enable"
EndIf
If CheckCupStateDoorCupClose = "done" Then
Var buttonRemoveCup = "Enable"
EndIf
Else
If buttonRemoveCup = "Enable" Then
Var buttonRemoveCup = "Invisible"
EndIf
EndIf
Var Timeout = Timeout + 1
TimerReset
</EventTimeout>
;<Image>
;<X> 0 </X>
;<Y> 0 </Y>
;<Filename> "ROOT/taobin_project/image/ad_medium_2.png" </Filename>
;</Image>
;<Video>
;<X> 0 </X>
;<Y> 0 </Y>
;<Width> 1080</Width>
;<Height> 380 </Height>
;<Loop> "true" </Loop>
;<Filename> video_menu_1 </Filename>
;</Video>
; under line
<Image>
<X> 0 </X>
@ -320,12 +322,8 @@
SAVELOG "Click rec"
Var NextPage = "-"
; zone promote
If SongkranEnable = 1 Then
Open "ROOT/taobin_project/xml/page_catalog_group_recommend3.xml"
Else
Open "ROOT/taobin_project/xml/page_catalog_group_recommend.xml"
EndIf
TRY "/mnt/sdcard/coffeevending/taobin_project/xml/event/script_common_for_open_promotion_xml.ev"
</EventClick>
</Button>

View file

@ -228,26 +228,28 @@
EndIf
EndIf
If CupOnArm = "true" Then
If CheckCupStateDoorCupClose = "" Then
Var buttonRemoveCup = "Enable"
EndIf
If CheckCupStateDoorCupClose = "done" Then
Var buttonRemoveCup = "Enable"
EndIf
Else
If buttonRemoveCup = "Enable" Then
Var buttonRemoveCup = "Invisible"
EndIf
EndIf
Var Timeout = Timeout + 1
TimerReset
</EventTimeout>
;<Image>
;<X> 0 </X>
;<Y> 0 </Y>
;<Filename> "ROOT/taobin_project/image/ad_medium_2.png" </Filename>
;</Image>
;<Video>
;<X> 0 </X>
;<Y> 0 </Y>
;<Width> 1080</Width>
;<Height> 380 </Height>
;<Loop> "true" </Loop>
;<Filename> video_menu_1 </Filename>
;</Video>
; under line
<Image>
<X> 0 </X>
@ -329,12 +331,8 @@
SAVELOG "Click rec"
Var NextPage = "-"
; zone promote
If SongkranEnable = 1 Then
Open "ROOT/taobin_project/xml/page_catalog_group_recommend3.xml"
Else
Open "ROOT/taobin_project/xml/page_catalog_group_recommend.xml"
EndIf
TRY "/mnt/sdcard/coffeevending/taobin_project/xml/event/script_common_for_open_promotion_xml.ev"
</EventClick>
</Button>

View file

@ -219,26 +219,28 @@
EndIf
EndIf
If CupOnArm = "true" Then
If CheckCupStateDoorCupClose = "" Then
Var buttonRemoveCup = "Enable"
EndIf
If CheckCupStateDoorCupClose = "done" Then
Var buttonRemoveCup = "Enable"
EndIf
Else
If buttonRemoveCup = "Enable" Then
Var buttonRemoveCup = "Invisible"
EndIf
EndIf
Var Timeout = Timeout + 1
TimerReset
</EventTimeout>
;<Image>
;<X> 0 </X>
;<Y> 0 </Y>
;<Filename> "ROOT/taobin_project/image/ad_medium_2.png" </Filename>
;</Image>
;<Video>
;<X> 0 </X>
;<Y> 0 </Y>
;<Width> 1080</Width>
;<Height> 380 </Height>
;<Loop> "true" </Loop>
;<Filename> video_menu_1 </Filename>
;</Video>
; under line
<Image>
<X> 0 </X>
@ -320,12 +322,8 @@
SAVELOG "Click rec"
Var NextPage = "-"
; zone promote
If SongkranEnable = 1 Then
Open "ROOT/taobin_project/xml/page_catalog_group_recommend3.xml"
Else
Open "ROOT/taobin_project/xml/page_catalog_group_recommend.xml"
EndIf
TRY "/mnt/sdcard/coffeevending/taobin_project/xml/event/script_common_for_open_promotion_xml.ev"
</EventClick>
</Button>

View file

@ -43,5 +43,7 @@
?>
<?hurr
#include=./event/dummy_layout_promotion.py
?>
</Popup>

View file

@ -217,26 +217,28 @@
EndIf
EndIf
If CupOnArm = "true" Then
If CheckCupStateDoorCupClose = "" Then
Var buttonRemoveCup = "Enable"
EndIf
If CheckCupStateDoorCupClose = "done" Then
Var buttonRemoveCup = "Enable"
EndIf
Else
If buttonRemoveCup = "Enable" Then
Var buttonRemoveCup = "Invisible"
EndIf
EndIf
Var Timeout = Timeout + 1
TimerReset
</EventTimeout>
;<Image>
;<X> 0 </X>
;<Y> 0 </Y>
;<Filename> "ROOT/taobin_project/image/ad_medium_2.png" </Filename>
;</Image>
;<Video>
;<X> 0 </X>
;<Y> 0 </Y>
;<Width> 1080</Width>
;<Height> 380 </Height>
;<Loop> "true" </Loop>
;<Filename> video_menu_1 </Filename>
;</Video>
; under line
<Image>
<X> 0 </X>
@ -318,12 +320,8 @@
SAVELOG "Click rec"
Var NextPage = "-"
; zone promote
If SongkranEnable = 1 Then
Open "ROOT/taobin_project/xml/page_catalog_group_recommend3.xml"
Else
Open "ROOT/taobin_project/xml/page_catalog_group_recommend.xml"
EndIf
TRY "/mnt/sdcard/coffeevending/taobin_project/xml/event/script_common_for_open_promotion_xml.ev"
</EventClick>
</Button>
@ -3287,15 +3285,15 @@ VOLCANO" </Value>
</Block>
; - - -
; ==================> Len = 16
; - - 12-03-03-0009
; - - 12-03-03-0032
<Block>
<MarginLeft> 33 </MarginLeft>
<MarginTop> 22 </MarginTop>
<Width> 225 </Width>
<Height> 296 </Height>
<State> Flag( 12-03-03-0009.Button,$Sum1203030009) </State>
<State> Flag( 12-03-03-0032.Button,$Sum1203030032) </State>
<Button>
<State> $Sum1203030009 </State>
<State> $Sum1203030032 </State>
<Filename> "ROOT/taobin_project/image/page_drink_n//bn_super_oreo_volcano.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_drink_press_n//bn_super_oreo_volcano.png" </FilenamePress>
<FilenameDisable> "ROOT/taobin_project/image/page_drink_disable_n2//bn_super_oreo_volcano.png" </FilenameDisable>
@ -3310,13 +3308,13 @@ VOLCANO" </Value>
Var OpenFromXML = CurrentXMLFileName2
Var PriceD1 = $-.Price
Var PriceD2 = $-.Price
Var PriceD3 = $12-03-03-0009.Price
Var PriceD3 = $12-03-03-0032.Price
Var PD_CODE1 = "##-##-##-####"
Var PD_CODE2 = "##-##-##-####"
Var PD_CODE3 = "12-03-03-0009"
Var PD_CODE3 = "12-03-03-0032"
Var PD_STAGE_1 = "Disable2"
Var PD_STAGE_2 = "Disable2"
Var PD_STAGE_3 = $12-03-03-0009.Button
Var PD_STAGE_3 = $12-03-03-0032.Button
Var SelectCountDrinkType = 0
Var DefaultDrinkType = 0
If PD_STAGE_1 = "Enable" Then
@ -3337,7 +3335,7 @@ VOLCANO" </Value>
If PD_STAGE_1 = "Enable" Then
Topping "Load" "-"
Else
Topping "Load" "12-03-03-0009"
Topping "Load" "12-03-03-0032"
EndIf
EndIf
Var menu_name_eng_hot = $##-##-##-####.NameE
@ -3350,10 +3348,10 @@ VOLCANO" </Value>
Var menu_name_thai_cold = $##-##-##-####.Name
Var menu_desc_thai_cold = $##-##-##-####.description
Var menu_name_eng_blender = $12-03-03-0009.NameE
Var menu_desc_eng_blender = $12-03-03-0009.descriptionE
Var menu_name_thai_blender = $12-03-03-0009.Name
Var menu_desc_thai_blender = $12-03-03-0009.description
Var menu_name_eng_blender = $12-03-03-0032.NameE
Var menu_desc_eng_blender = $12-03-03-0032.descriptionE
Var menu_name_thai_blender = $12-03-03-0032.Name
Var menu_desc_thai_blender = $12-03-03-0032.description
DEBUGVAR PD_STAGE_1
DEBUGVAR PD_STAGE_2
@ -3455,7 +3453,7 @@ VOLCANO" </Value>
<Y> 264 </Y>
<Filename> Var( DirImage2 + "blend.png" ) </Filename>
<FilenameDisable> Var( DirImage2 + "blend_db.png" ) </FilenameDisable>
<State> $12-03-03-0009.Button </State>
<State> $12-03-03-0032.Button </State>
</Image>
<Text>
<X> 180 </X>
@ -3465,8 +3463,8 @@ VOLCANO" </Value>
<Font> KanitRegularTTF </Font>
<Color> 0x6F5F51 </Color>
<ColorDisable> 0xEAE6E1 </ColorDisable>
<State> $12-03-03-0009.Button </State>
<Value> StringFmt( $12-03-03-0009.Price , DisplayFormat, PreScaleConvertShow) </Value>; test
<State> $12-03-03-0032.Button </State>
<Value> StringFmt( $12-03-03-0032.Price , DisplayFormat, PreScaleConvertShow) </Value>; test
</Text>
<Image>
<X> 81 </X>
@ -3491,10 +3489,10 @@ VOLCANO" </Value>
<Y> 117 </Y>
<State>
eval(
If $Sum1203030009 = "Disable" Then
If $Sum1203030032 = "Disable" Then
STRCONTAIN "ERR" $##-##-##-####.TAG tag1_is_disable
STRCONTAIN "ERR" $##-##-##-####.TAG tag2_is_disable
STRCONTAIN "ERR" $12-03-03-0009.TAG tag3_is_disable
STRCONTAIN "ERR" $12-03-03-0032.TAG tag3_is_disable
Var return = "Invisible"
If tag1_is_disable = "true" Then
Var return = "Enable"
@ -3530,7 +3528,7 @@ VOLCANO" </Value>
<Font> MITRegularTTF </Font>
<Color> 0x5A5A5A </Color>
<Mode> "disable-show" </Mode>
<State> $Sum1203030009 </State>
<State> $Sum1203030032 </State>
<Value> text_unavailable </Value>
<Align> center-vertical-horizontal </Align>
</Text>

View file

@ -215,26 +215,28 @@
EndIf
EndIf
If CupOnArm = "true" Then
If CheckCupStateDoorCupClose = "" Then
Var buttonRemoveCup = "Enable"
EndIf
If CheckCupStateDoorCupClose = "done" Then
Var buttonRemoveCup = "Enable"
EndIf
Else
If buttonRemoveCup = "Enable" Then
Var buttonRemoveCup = "Invisible"
EndIf
EndIf
Var Timeout = Timeout + 1
TimerReset
</EventTimeout>
;<Image>
;<X> 0 </X>
;<Y> 0 </Y>
;<Filename> "ROOT/taobin_project/image/ad_medium_2.png" </Filename>
;</Image>
;<Video>
;<X> 0 </X>
;<Y> 0 </Y>
;<Width> 1080</Width>
;<Height> 380 </Height>
;<Loop> "true" </Loop>
;<Filename> video_menu_1 </Filename>
;</Video>
; under line
<Image>
<X> 0 </X>
@ -316,12 +318,8 @@
SAVELOG "Click rec"
Var NextPage = "-"
; zone promote
If SongkranEnable = 1 Then
Open "ROOT/taobin_project/xml/page_catalog_group_recommend3.xml"
Else
Open "ROOT/taobin_project/xml/page_catalog_group_recommend.xml"
EndIf
TRY "/mnt/sdcard/coffeevending/taobin_project/xml/event/script_common_for_open_promotion_xml.ev"
</EventClick>
</Button>

View file

@ -218,26 +218,28 @@
EndIf
EndIf
If CupOnArm = "true" Then
If CheckCupStateDoorCupClose = "" Then
Var buttonRemoveCup = "Enable"
EndIf
If CheckCupStateDoorCupClose = "done" Then
Var buttonRemoveCup = "Enable"
EndIf
Else
If buttonRemoveCup = "Enable" Then
Var buttonRemoveCup = "Invisible"
EndIf
EndIf
Var Timeout = Timeout + 1
TimerReset
</EventTimeout>
;<Image>
;<X> 0 </X>
;<Y> 0 </Y>
;<Filename> "ROOT/taobin_project/image/ad_medium_2.png" </Filename>
;</Image>
;<Video>
;<X> 0 </X>
;<Y> 0 </Y>
;<Width> 1080</Width>
;<Height> 380 </Height>
;<Loop> "true" </Loop>
;<Filename> video_menu_1 </Filename>
;</Video>
; under line
<Image>
<X> 0 </X>
@ -319,12 +321,8 @@
SAVELOG "Click rec"
Var NextPage = "-"
; zone promote
If SongkranEnable = 1 Then
Open "ROOT/taobin_project/xml/page_catalog_group_recommend3.xml"
Else
Open "ROOT/taobin_project/xml/page_catalog_group_recommend.xml"
EndIf
TRY "/mnt/sdcard/coffeevending/taobin_project/xml/event/script_common_for_open_promotion_xml.ev"
</EventClick>
</Button>

View file

@ -70,6 +70,7 @@
<EventClick>
Machine RemoveCup
Machine DoorLidOpen
Var buttonRemoveCup = "Invisible"
</EventClick>
</Button>

View file

@ -236,26 +236,28 @@
EndIf
EndIf
If CupOnArm = "true" Then
If CheckCupStateDoorCupClose = "" Then
Var buttonRemoveCup = "Enable"
EndIf
If CheckCupStateDoorCupClose = "done" Then
Var buttonRemoveCup = "Enable"
EndIf
Else
If buttonRemoveCup = "Enable" Then
Var buttonRemoveCup = "Invisible"
EndIf
EndIf
Var Timeout = Timeout + 1
TimerReset
</EventTimeout>
;<Image>
;<X> 0 </X>
;<Y> 0 </Y>
;<Filename> "ROOT/taobin_project/image/ad_medium_2.png" </Filename>
;</Image>
;<Video>
;<X> 0 </X>
;<Y> 0 </Y>
;<Width> 1080</Width>
;<Height> 380 </Height>
;<Loop> "true" </Loop>
;<Filename> video_menu_1 </Filename>
;</Video>
; under line
<Image>
<X> 0 </X>
@ -337,12 +339,8 @@
SAVELOG "Click rec"
Var NextPage = "-"
; zone promote
If SongkranEnable = 1 Then
Open "ROOT/taobin_project/xml/page_catalog_group_recommend3.xml"
Else
Open "ROOT/taobin_project/xml/page_catalog_group_recommend.xml"
EndIf
TRY "/mnt/sdcard/coffeevending/taobin_project/xml/event/script_common_for_open_promotion_xml.ev"
</EventClick>
</Button>
@ -579,15 +577,15 @@
; menu_new_list 30
;TAGESP
; ==================> Len = 16
; - - 12-03-03-0009
; - - 12-03-03-0032
<Block>
<MarginLeft> 33 </MarginLeft>
<MarginTop> 22 </MarginTop>
<Width> 225 </Width>
<Height> 296 </Height>
<State> Flag( 12-03-03-0009.Button,Disable=Invisible,$Sum1203030009) </State>
<State> Flag( 12-03-03-0032.Button,Disable=Invisible,$Sum1203030032) </State>
<Button>
<State> $Sum1203030009 </State>
<State> $Sum1203030032 </State>
<Filename> "ROOT/taobin_project/image/page_drink_n//bn_super_oreo_volcano.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_drink_press_n//bn_super_oreo_volcano.png" </FilenamePress>
<FilenameDisable> "ROOT/taobin_project/image/page_drink_disable_n2//bn_super_oreo_volcano.png" </FilenameDisable>
@ -602,13 +600,13 @@
Var OpenFromXML = CurrentXMLFileName2
Var PriceD1 = $-.Price
Var PriceD2 = $-.Price
Var PriceD3 = $12-03-03-0009.Price
Var PriceD3 = $12-03-03-0032.Price
Var PD_CODE1 = "##-##-##-####"
Var PD_CODE2 = "##-##-##-####"
Var PD_CODE3 = "12-03-03-0009"
Var PD_CODE3 = "12-03-03-0032"
Var PD_STAGE_1 = "Disable2"
Var PD_STAGE_2 = "Disable2"
Var PD_STAGE_3 = $12-03-03-0009.Button
Var PD_STAGE_3 = $12-03-03-0032.Button
Var SelectCountDrinkType = 0
Var DefaultDrinkType = 0
If PD_STAGE_1 = "Enable" Then
@ -629,7 +627,7 @@
If PD_STAGE_1 = "Enable" Then
Topping "Load" "-"
Else
Topping "Load" "12-03-03-0009"
Topping "Load" "12-03-03-0032"
EndIf
EndIf
Var menu_name_eng_hot = $##-##-##-####.NameE
@ -642,10 +640,10 @@
Var menu_name_thai_cold = $##-##-##-####.Name
Var menu_desc_thai_cold = $##-##-##-####.description
Var menu_name_eng_blender = $12-03-03-0009.NameE
Var menu_desc_eng_blender = $12-03-03-0009.descriptionE
Var menu_name_thai_blender = $12-03-03-0009.Name
Var menu_desc_thai_blender = $12-03-03-0009.description
Var menu_name_eng_blender = $12-03-03-0032.NameE
Var menu_desc_eng_blender = $12-03-03-0032.descriptionE
Var menu_name_thai_blender = $12-03-03-0032.Name
Var menu_desc_thai_blender = $12-03-03-0032.description
DEBUGVAR PD_STAGE_1
DEBUGVAR PD_STAGE_2
@ -747,7 +745,7 @@ VOLCANO" </Value>
<Y> 264 </Y>
<Filename> Var( DirImage2 + "blend.png" ) </Filename>
<FilenameDisable> Var( DirImage2 + "blend_db.png" ) </FilenameDisable>
<State> $12-03-03-0009.Button </State>
<State> $12-03-03-0032.Button </State>
</Image>
<Text>
<X> 180 </X>
@ -757,8 +755,8 @@ VOLCANO" </Value>
<Font> KanitRegularTTF </Font>
<Color> 0x6F5F51 </Color>
<ColorDisable> 0xEAE6E1 </ColorDisable>
<State> $12-03-03-0009.Button </State>
<Value> StringFmt( $12-03-03-0009.Price , DisplayFormat, PreScaleConvertShow) </Value>; test
<State> $12-03-03-0032.Button </State>
<Value> StringFmt( $12-03-03-0032.Price , DisplayFormat, PreScaleConvertShow) </Value>; test
</Text>
<Image>
<X> 81 </X>
@ -783,10 +781,10 @@ VOLCANO" </Value>
<Y> 117 </Y>
<State>
eval(
If $Sum1203030009 = "Disable" Then
If $Sum1203030032 = "Disable" Then
STRCONTAIN "ERR" $##-##-##-####.TAG tag1_is_disable
STRCONTAIN "ERR" $##-##-##-####.TAG tag2_is_disable
STRCONTAIN "ERR" $12-03-03-0009.TAG tag3_is_disable
STRCONTAIN "ERR" $12-03-03-0032.TAG tag3_is_disable
Var return = "Invisible"
If tag1_is_disable = "true" Then
Var return = "Enable"
@ -822,7 +820,7 @@ VOLCANO" </Value>
<Font> MITRegularTTF </Font>
<Color> 0x5A5A5A </Color>
<Mode> "disable-show" </Mode>
<State> $Sum1203030009 </State>
<State> $Sum1203030032 </State>
<Value> text_unavailable </Value>
<Align> center-vertical-horizontal </Align>
</Text>
@ -7928,6 +7926,7 @@ LIMENADE SODA" </Value>
<EventClick>
Machine RemoveCup
Machine DoorLidOpen
Var buttonRemoveCup = "Invisible"
</EventClick>
</Button>

View file

@ -236,26 +236,28 @@
EndIf
EndIf
If CupOnArm = "true" Then
If CheckCupStateDoorCupClose = "" Then
Var buttonRemoveCup = "Enable"
EndIf
If CheckCupStateDoorCupClose = "done" Then
Var buttonRemoveCup = "Enable"
EndIf
Else
If buttonRemoveCup = "Enable" Then
Var buttonRemoveCup = "Invisible"
EndIf
EndIf
Var Timeout = Timeout + 1
TimerReset
</EventTimeout>
;<Image>
;<X> 0 </X>
;<Y> 0 </Y>
;<Filename> "ROOT/taobin_project/image/ad_medium_2.png" </Filename>
;</Image>
;<Video>
;<X> 0 </X>
;<Y> 0 </Y>
;<Width> 1080</Width>
;<Height> 380 </Height>
;<Loop> "true" </Loop>
;<Filename> video_menu_1 </Filename>
;</Video>
; under line
<Image>
<X> 0 </X>
@ -337,12 +339,8 @@
SAVELOG "Click rec"
Var NextPage = "-"
; zone promote
If SongkranEnable = 1 Then
Open "ROOT/taobin_project/xml/page_catalog_group_recommend3.xml"
Else
Open "ROOT/taobin_project/xml/page_catalog_group_recommend.xml"
EndIf
TRY "/mnt/sdcard/coffeevending/taobin_project/xml/event/script_common_for_open_promotion_xml.ev"
</EventClick>
</Button>
@ -1070,7 +1068,7 @@
<MarginTop> 22 </MarginTop>
<Width> 225 </Width>
<Height> 296 </Height>
<State> Flag( 12-03-03-0032.Button,Disable=Invisible,$Sum1203030032) </State>
<State> Flag( 12-03-03-0032.Button, ,$Sum1203030032) </State>
<Button>
<State> $Sum1203030032 </State>
<Filename> "ROOT/taobin_project/image/page_drink_n//bn_super_oreo_volcano.png" </Filename>
@ -8908,6 +8906,7 @@ LIMENADE SODA" </Value>
<EventClick>
Machine RemoveCup
Machine DoorLidOpen
Var buttonRemoveCup = "Invisible"
</EventClick>
</Button>

View file

@ -215,26 +215,28 @@
EndIf
EndIf
If CupOnArm = "true" Then
If CheckCupStateDoorCupClose = "" Then
Var buttonRemoveCup = "Enable"
EndIf
If CheckCupStateDoorCupClose = "done" Then
Var buttonRemoveCup = "Enable"
EndIf
Else
If buttonRemoveCup = "Enable" Then
Var buttonRemoveCup = "Invisible"
EndIf
EndIf
Var Timeout = Timeout + 1
TimerReset
</EventTimeout>
;<Image>
;<X> 0 </X>
;<Y> 0 </Y>
;<Filename> "ROOT/taobin_project/image/ad_medium_2.png" </Filename>
;</Image>
;<Video>
;<X> 0 </X>
;<Y> 0 </Y>
;<Width> 1080</Width>
;<Height> 380 </Height>
;<Loop> "true" </Loop>
;<Filename> video_menu_1 </Filename>
;</Video>
; under line
<Image>
<X> 0 </X>
@ -316,12 +318,8 @@
SAVELOG "Click rec"
Var NextPage = "-"
; zone promote
If SongkranEnable = 1 Then
Open "ROOT/taobin_project/xml/page_catalog_group_recommend3.xml"
Else
Open "ROOT/taobin_project/xml/page_catalog_group_recommend.xml"
EndIf
TRY "/mnt/sdcard/coffeevending/taobin_project/xml/event/script_common_for_open_promotion_xml.ev"
</EventClick>
</Button>

View file

@ -219,26 +219,28 @@
EndIf
EndIf
If CupOnArm = "true" Then
If CheckCupStateDoorCupClose = "" Then
Var buttonRemoveCup = "Enable"
EndIf
If CheckCupStateDoorCupClose = "done" Then
Var buttonRemoveCup = "Enable"
EndIf
Else
If buttonRemoveCup = "Enable" Then
Var buttonRemoveCup = "Invisible"
EndIf
EndIf
Var Timeout = Timeout + 1
TimerReset
</EventTimeout>
;<Image>
;<X> 0 </X>
;<Y> 0 </Y>
;<Filename> "ROOT/taobin_project/image/ad_medium_2.png" </Filename>
;</Image>
;<Video>
;<X> 0 </X>
;<Y> 0 </Y>
;<Width> 1080</Width>
;<Height> 380 </Height>
;<Loop> "true" </Loop>
;<Filename> video_menu_1 </Filename>
;</Video>
; under line
<Image>
<X> 0 </X>
@ -320,12 +322,8 @@
SAVELOG "Click rec"
Var NextPage = "-"
; zone promote
If SongkranEnable = 1 Then
Open "ROOT/taobin_project/xml/page_catalog_group_recommend3.xml"
Else
Open "ROOT/taobin_project/xml/page_catalog_group_recommend.xml"
EndIf
TRY "/mnt/sdcard/coffeevending/taobin_project/xml/event/script_common_for_open_promotion_xml.ev"
</EventClick>
</Button>

View file

@ -224,26 +224,28 @@
EndIf
EndIf
If CupOnArm = "true" Then
If CheckCupStateDoorCupClose = "" Then
Var buttonRemoveCup = "Enable"
EndIf
If CheckCupStateDoorCupClose = "done" Then
Var buttonRemoveCup = "Enable"
EndIf
Else
If buttonRemoveCup = "Enable" Then
Var buttonRemoveCup = "Invisible"
EndIf
EndIf
Var Timeout = Timeout + 1
TimerReset
</EventTimeout>
;<Image>
;<X> 0 </X>
;<Y> 0 </Y>
;<Filename> "ROOT/taobin_project/image/ad_medium_2.png" </Filename>
;</Image>
;<Video>
;<X> 0 </X>
;<Y> 0 </Y>
;<Width> 1080</Width>
;<Height> 380 </Height>
;<Loop> "true" </Loop>
;<Filename> video_menu_1 </Filename>
;</Video>
; under line
<Image>
<X> 0 </X>
@ -325,12 +327,8 @@
SAVELOG "Click rec"
Var NextPage = "-"
; zone promote
If SongkranEnable = 1 Then
Open "ROOT/taobin_project/xml/page_catalog_group_recommend3.xml"
Else
Open "ROOT/taobin_project/xml/page_catalog_group_recommend.xml"
EndIf
TRY "/mnt/sdcard/coffeevending/taobin_project/xml/event/script_common_for_open_promotion_xml.ev"
</EventClick>
</Button>

View file

@ -476,15 +476,19 @@
Play "/mnt/sdcard/coffeevending/taobin_project/sound_eng/Straw.mp3"
Else
Var PlaySoundLag = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/drinkfinish.mp3"
If SoundThaiIndex = 1 Then
Var PlaySoundLag = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/sublang/north/drinkfinish.wav"
EndIf
If SoundThaiIndex = 2 Then
Var PlaySoundLag = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/sublang/northeast/drinkfinish.wav"
EndIf
If SoundThaiIndex = 3 Then
Var PlaySoundLag = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/sublang/south/drinkfinish.wav"
; Play Sound #zone
If SoundBackToSchoolEnable = 1 Then
If SoundBackToSchoolType = 1 Then
Var RootPathSoundBackToSchool = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/boy/"
EndIf
If SoundBackToSchoolType = 2 Then
Var RootPathSoundBackToSchool = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/girl/"
EndIf
Var PlaySoundLag = RootPathSoundBackToSchool + "drinkfinish.wav"
EndIf
Play PlaySoundLag
EndIf
EndIf

View file

@ -16,7 +16,7 @@
</EventOpen>
<EventActionOk>
SAVELOG "EventActionOk"
SAVELOG "EventActionOk-facecompare"
Var FaceCompareStatus = "OK"
Var AdultFlag = 0
@ -50,7 +50,7 @@
<EventActionError>
Var Price5Active = 0
Var FaceCompareStatus = "Fail"
SAVELOG "EventActionError"
SAVELOG "EventActionError-facecompare"
Var load_gif_stage = "Invisible"
Var Timeout = 10
Var IDcardTextState = "Enable"

View file

@ -98,9 +98,6 @@
EndIf
EndIf
If IDCardStatus = "OK" Then
If IDCardReady = "OK" Then
If IDCardData = "ERROR" Then
@ -242,7 +239,7 @@
EndIf
EndIf
If IDCardState = "PRESENT" Then
If IDCardStatus = "ERROR" Then
Var load_gif_stage = "Invisible"
@ -308,6 +305,7 @@
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
SAVELOG "Liveness Result - Cancel"
Open "ROOT/taobin_project/xml/page_catalog2.xml"
</EventClick>
</Button>
@ -404,7 +402,10 @@
<EventLivenessResult>
DEBUGVAR LivenessResult
If LivenessResult = "pass" Then
SAVELOG "Liveness Result - pass"
Var strlog_liveness = "Liveness Result - pass " + FailTrickCount
SAVELOG strlog_liveness
Else
Var FailTrickCount = FailTrickCount + 1
Var strlog_liveness = "Liveness Result - fail " + FailTrickCount

View file

@ -12,6 +12,8 @@
Var IndoQR = 0
Var GetPayInfoFlag = 0
Var SessionID2 = ""
Var testservice = "kbank"
@ -133,27 +135,24 @@
Else
Var DirImage = "ROOT/taobin_project/image/page_payment"
Var PlaySoundLag = "ROOT/taobin_project/sound_thai/payment.mp3"
If SoundThaiIndex = 1 Then
Var PlaySoundLag = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/sublang/north/payment.wav"
EndIf
If SoundThaiIndex = 2 Then
Var PlaySoundLag = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/sublang/northeast/payment.wav"
EndIf
If SoundThaiIndex = 3 Then
Var PlaySoundLag = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/sublang/south/payment.wav"
; Play Sound #zone
If SoundBackToSchoolEnable = 1 Then
If SoundBackToSchoolType = 1 Then
Var RootPathSoundBackToSchool = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/boy/"
EndIf
If SoundBackToSchoolType = 2 Then
Var RootPathSoundBackToSchool = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/girl/"
EndIf
Var PlaySoundLag = RootPathSoundBackToSchool + "payment.wav"
EndIf
Var PlaySoundCodeLang = "ROOT/sounds/Code8digit.m4a"
EndIf
Var PromotionIDCurrentOrder = 0
If PromotionOreoVolcanoEnable = 1 Then
If PD_CODE3 = "12-03-03-0009" Then
Var PromotionIDCurrentOrder = 2
EndIf
EndIf
DEBUGVAR PromotionIDCurrentOrder
SAVELOG MachineStage
@ -250,9 +249,13 @@
If UserSelectProductCode = "12-05-02-0056" Then
Var PromotionIDCurrentOrder = 3
EndIf
If SystemDateMonthInt = 5 Then
Var PromotionIDCurrentOrder = 0
EndIf
EndIf
DEBUGVAR PromotionIDCurrentOrder
Var RemainAmountStr = ""
@ -292,9 +295,18 @@
EndIf
; Oreo free
If PromotionIDOreoBuyTwoSaveMore = 1 Then
Var PromotionIDOreoBuyTwoSaveMore = 0
Var PromotionIDCurrentOrder = 2
EndIf
If PromotionIDCurrentOrder = 2 Then
SAVELOG "Promotion: Oreo Get 1 Free 1"
EndIf
DEBUGVAR PromotionIDCurrentOrder
</EventOpen>
<Timeout> 900 </Timeout>

View file

@ -1004,7 +1004,23 @@
If show_eng = "true" Then
PlayLong "/mnt/sdcard/coffeevending/taobin_project/sound_eng/Please_scan_to_pay_via_mobile.mp3"
Else
PlayLong "/mnt/sdcard/coffeevending/taobin_project/sound_thai/Please_scan_to_pay_via_mobile.mp3"
Var PlaySoundLag = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/Please_scan_to_pay_via_mobile.mp3"
; Play Sound #zone
If SoundBackToSchoolEnable = 1 Then
If SoundBackToSchoolType = 1 Then
Var RootPathSoundBackToSchool = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/boy/"
EndIf
If SoundBackToSchoolType = 2 Then
Var RootPathSoundBackToSchool = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/girl/"
EndIf
Var PlaySoundLag = RootPathSoundBackToSchool + "Please_scan_to_pay_via_mobile.wav"
EndIf
Play PlaySoundLag
EndIf
EndIf
@ -1029,7 +1045,22 @@
If show_eng = "true" Then
PlayLong "/mnt/sdcard/coffeevending/taobin_project/sound_eng/Please_scan_to_pay_via_e-wallet.mp3"
Else
PlayLong "/mnt/sdcard/coffeevending/taobin_project/sound_thai/Please_scan_to_pay_via_e-wallet.mp3"
Var PlaySoundLag = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/Please_scan_to_pay_via_e-wallet.mp3"
; Play Sound #zone
If SoundBackToSchoolEnable = 1 Then
If SoundBackToSchoolType = 1 Then
Var RootPathSoundBackToSchool = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/boy/"
EndIf
If SoundBackToSchoolType = 2 Then
Var RootPathSoundBackToSchool = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/girl/"
EndIf
Var PlaySoundLag = RootPathSoundBackToSchool + "Please_scan_to_pay_via_e-wallet.wav"
EndIf
Play PlaySoundLag
EndIf
EndIf
@ -1057,7 +1088,21 @@
If show_eng = "true" Then
PlayLong "/mnt/sdcard/coffeevending/taobin_project/sound_eng/Please_scan_to_pay_via_e-wallet.mp3"
Else
PlayLong "/mnt/sdcard/coffeevending/taobin_project/sound_thai/Please_scan_to_pay_via_e-wallet.mp3"
Var PlaySoundLag = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/Please_scan_to_pay_via_e-wallet.mp3"
; Play Sound #zone
If SoundBackToSchoolEnable = 1 Then
If SoundBackToSchoolType = 1 Then
Var RootPathSoundBackToSchool = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/boy/"
EndIf
If SoundBackToSchoolType = 2 Then
Var RootPathSoundBackToSchool = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/girl/"
EndIf
Var PlaySoundLag = RootPathSoundBackToSchool + "Please_scan_to_pay_via_e-wallet.wav"
EndIf
Play PlaySoundLag
EndIf
EndIf
@ -1083,7 +1128,21 @@
If show_eng = "true" Then
PlayLong "/mnt/sdcard/coffeevending/taobin_project/sound_eng/Please_scan_to_pay_via_e-wallet.mp3"
Else
PlayLong "/mnt/sdcard/coffeevending/taobin_project/sound_thai/Please_scan_to_pay_via_e-wallet.mp3"
Var PlaySoundLag = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/Please_scan_to_pay_via_e-wallet.mp3"
; Play Sound #zone
If SoundBackToSchoolEnable = 1 Then
If SoundBackToSchoolType = 1 Then
Var RootPathSoundBackToSchool = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/boy/"
EndIf
If SoundBackToSchoolType = 2 Then
Var RootPathSoundBackToSchool = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/girl/"
EndIf
Var PlaySoundLag = RootPathSoundBackToSchool + "Please_scan_to_pay_via_e-wallet.wav"
EndIf
Play PlaySoundLag
EndIf
EndIf
@ -1109,7 +1168,21 @@
If show_eng = "true" Then
PlayLong "/mnt/sdcard/coffeevending/taobin_project/sound_eng/Please_scan_to_pay_via_e-wallet.mp3"
Else
PlayLong "/mnt/sdcard/coffeevending/taobin_project/sound_thai/Please_scan_to_pay_via_e-wallet.mp3"
Var PlaySoundLag = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/Please_scan_to_pay_via_e-wallet.mp3"
; Play Sound #zone
If SoundBackToSchoolEnable = 1 Then
If SoundBackToSchoolType = 1 Then
Var RootPathSoundBackToSchool = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/boy/"
EndIf
If SoundBackToSchoolType = 2 Then
Var RootPathSoundBackToSchool = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/girl/"
EndIf
Var PlaySoundLag = RootPathSoundBackToSchool + "Please_scan_to_pay_via_e-wallet.wav"
EndIf
Play PlaySoundLag
EndIf
EndIf
@ -1135,7 +1208,21 @@
If show_eng = "true" Then
PlayLong "/mnt/sdcard/coffeevending/taobin_project/sound_eng/Please_scan_to_pay_via_e-wallet.mp3"
Else
PlayLong "/mnt/sdcard/coffeevending/taobin_project/sound_thai/Please_scan_to_pay_via_e-wallet.mp3"
Var PlaySoundLag = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/Please_scan_to_pay_via_e-wallet.mp3"
; Play Sound #zone
If SoundBackToSchoolEnable = 1 Then
If SoundBackToSchoolType = 1 Then
Var RootPathSoundBackToSchool = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/boy/"
EndIf
If SoundBackToSchoolType = 2 Then
Var RootPathSoundBackToSchool = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/girl/"
EndIf
Var PlaySoundLag = RootPathSoundBackToSchool + "Please_scan_to_pay_via_e-wallet.wav"
EndIf
Play PlaySoundLag
EndIf
EndIf
@ -1166,7 +1253,21 @@
If show_eng = "true" Then
PlayLong "/mnt/sdcard/coffeevending/taobin_project/sound_eng/Please_scan_to_pay_via_e-wallet.mp3"
Else
PlayLong "/mnt/sdcard/coffeevending/taobin_project/sound_thai/Please_scan_to_pay_via_e-wallet.mp3"
Var PlaySoundLag = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/Please_scan_to_pay_via_e-wallet.mp3"
; Play Sound #zone
If SoundBackToSchoolEnable = 1 Then
If SoundBackToSchoolType = 1 Then
Var RootPathSoundBackToSchool = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/boy/"
EndIf
If SoundBackToSchoolType = 2 Then
Var RootPathSoundBackToSchool = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/girl/"
EndIf
Var PlaySoundLag = RootPathSoundBackToSchool + "Please_scan_to_pay_via_e-wallet.wav"
EndIf
Play PlaySoundLag
EndIf
EndIf
@ -1195,7 +1296,21 @@
If show_eng = "true" Then
PlayLong "/mnt/sdcard/coffeevending/taobin_project/sound_eng/Please_scan_to_pay_via_e-wallet.mp3"
Else
PlayLong "/mnt/sdcard/coffeevending/taobin_project/sound_thai/Please_scan_to_pay_via_e-wallet.mp3"
Var PlaySoundLag = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/Please_scan_to_pay_via_e-wallet.mp3"
; Play Sound #zone
If SoundBackToSchoolEnable = 1 Then
If SoundBackToSchoolType = 1 Then
Var RootPathSoundBackToSchool = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/boy/"
EndIf
If SoundBackToSchoolType = 2 Then
Var RootPathSoundBackToSchool = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/girl/"
EndIf
Var PlaySoundLag = RootPathSoundBackToSchool + "Please_scan_to_pay_via_e-wallet.wav"
EndIf
Play PlaySoundLag
EndIf
EndIf
@ -1224,7 +1339,21 @@
If show_eng = "true" Then
PlayLong "/mnt/sdcard/coffeevending/taobin_project/sound_eng/Please_scan_to_pay_via_e-wallet.mp3"
Else
PlayLong "/mnt/sdcard/coffeevending/taobin_project/sound_thai/Please_scan_to_pay_via_e-wallet.mp3"
Var PlaySoundLag = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/Please_scan_to_pay_via_e-wallet.mp3"
; Play Sound #zone
If SoundBackToSchoolEnable = 1 Then
If SoundBackToSchoolType = 1 Then
Var RootPathSoundBackToSchool = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/boy/"
EndIf
If SoundBackToSchoolType = 2 Then
Var RootPathSoundBackToSchool = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/girl/"
EndIf
Var PlaySoundLag = RootPathSoundBackToSchool + "Please_scan_to_pay_via_e-wallet.wav"
EndIf
Play PlaySoundLag
EndIf
EndIf

View file

@ -303,41 +303,24 @@
Var PromotionIDCurrentOrder = 0
If PromotionOreoVolcanoEnable = 1 Then
If PD_CODE3 = "12-03-03-0009" Then
Var PromotionIDCurrentOrder = 2
EndIf
EndIf
If PromotionOreoToppingFreeEnable = 1 Then
Var oreo_topping_wed_free = "Enable"
Var oreo_topping_wed_topping = "Invisible"
Else
Var oreo_topping_wed_free = "Invisible"
Var oreo_topping_wed_topping = "Enable"
EndIf
If ShowPromoitonOreo = 1 Then
Else
Var oreo_topping_wed_free = "Invisible"
Var oreo_topping_wed_topping = "Invisible"
EndIf
DEBUGVAR PromotionIDCurrentOrder
Var DiscountWithIdentifyState = "Enable"
;Var DiscountWithIdentifyState = "Invisible"
DEBUGVAR Price5Active
DEBUGVAR EnableLiveness
DEBUGVAR DiscountWithIdentifyState
Var ChildrenFree = 0
If BackToSchoolForFreeEnable = 1 Then
EndIf
If EnableLiveness = "true" Then
If CameraCount = 1 Then
; echo -n true > /mnt/sdcard/enable_discount_price5
@ -350,10 +333,6 @@
EndIf
EndIf
If Price5Active = 1 Then
EndIf
</EventOpen>
<Timeout> 1000 </Timeout>
@ -492,16 +471,18 @@
Else
Var PlaySoundLag = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/select_level.mp3"
If SoundThaiIndex = 1 Then
Var PlaySoundLag = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/north/select_level.wav"
; Play Sound #zone
If SoundBackToSchoolEnable = 1 Then
If SoundBackToSchoolType = 1 Then
Var RootPathSoundBackToSchool = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/boy/"
EndIf
If SoundBackToSchoolType = 2 Then
Var RootPathSoundBackToSchool = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/girl/"
EndIf
Var PlaySoundLag = RootPathSoundBackToSchool + "select_level.wav"
EndIf
If SoundThaiIndex = 2 Then
Var PlaySoundLag = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/northeast/select_level.wav"
EndIf
If SoundThaiIndex = 3 Then
Var PlaySoundLag = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/south/select_level.wav"
EndIf
Play PlaySoundLag
EndIf
EndIf
@ -3253,6 +3234,8 @@
;
Var SelectDrink = UserSelectProductCode
; Set drink
Topping "Select" UserSelectProductCode
@ -3431,6 +3414,8 @@
EndIf
;
Var PromotionIDCurrentOrder = 0
Var SelectDrink = UserSelectProductCode
@ -3665,6 +3650,9 @@
;
DEBUGVAR PromotionIDCurrentOrder
Var SelectDrink = UserSelectProductCode
Var Seeker.selected_a_drink = UserSelectProductCode
@ -3996,7 +3984,7 @@
EndIf
DEBUGVAR showOreoAddEnable
DEBUGVAR TOPPING_PRICE

View file

@ -108,8 +108,8 @@
Var RandomPromotionMyworld = 0
Var RandomSalePackage = 0
Var XMLPageVersion = "7.15"
Var XMLPageVersionInt = 715
Var XMLPageVersion = "7.17"
Var XMLPageVersionInt = 717
</EventOpen>
<Text>