merge tricer.ev
This commit is contained in:
commit
f174d7530b
211 changed files with 134123 additions and 236 deletions
1968
xml/dummy_layout_double_pro.inc
Normal file
1968
xml/dummy_layout_double_pro.inc
Normal file
File diff suppressed because it is too large
Load diff
3449
xml/dummy_layout_triple_pro.inc
Normal file
3449
xml/dummy_layout_triple_pro.inc
Normal file
File diff suppressed because it is too large
Load diff
12137
xml/event/double_promotion_lipit_and_free_energy_drink.xml
Normal file
12137
xml/event/double_promotion_lipit_and_free_energy_drink.xml
Normal file
File diff suppressed because it is too large
Load diff
12137
xml/event/double_promotion_lipit_and_monday_banana.xml
Normal file
12137
xml/event/double_promotion_lipit_and_monday_banana.xml
Normal file
File diff suppressed because it is too large
Load diff
1
xml/event/double_promotion_onclick1.inc
Normal file
1
xml/event/double_promotion_onclick1.inc
Normal file
|
|
@ -0,0 +1 @@
|
|||
Var BigButtonEnable = "Invisible"
|
||||
1
xml/event/double_promotion_onclick2.inc
Normal file
1
xml/event/double_promotion_onclick2.inc
Normal file
|
|
@ -0,0 +1 @@
|
|||
Var BigButtonEnable = "Invisible"
|
||||
1
xml/event/double_promotion_onclick3.inc
Normal file
1
xml/event/double_promotion_onclick3.inc
Normal file
|
|
@ -0,0 +1 @@
|
|||
Var BigButtonEnable = "Invisible"
|
||||
12137
xml/event/double_promotion_pepsi_second_cup_30_and_monday_banana.xml
Normal file
12137
xml/event/double_promotion_pepsi_second_cup_30_and_monday_banana.xml
Normal file
File diff suppressed because it is too large
Load diff
125
xml/event/double_promotion_template1.inc
Normal file
125
xml/event/double_promotion_template1.inc
Normal file
|
|
@ -0,0 +1,125 @@
|
|||
<Button>
|
||||
<X> 42 </X>
|
||||
<Y> 518 </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/page_catalog_group_pro_pepsi_second_cup_30.xml"
|
||||
|
||||
</EventOnClick>
|
||||
|
||||
|
||||
<Video>
|
||||
<X> 42 </X>
|
||||
<Y> 518 </Y>
|
||||
<Width> 484 </Width>
|
||||
<Height> 616 </Height>
|
||||
<Loop> "true" </Loop>
|
||||
<State>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = "Invisible"
|
||||
Else
|
||||
Var return = "Enable"
|
||||
EndIf
|
||||
)
|
||||
</State>
|
||||
<Filename> "ROOT/taobin_project/image/event/pepsi_second_cup_30/pro_pepsi_second_cup_30_th.mp4" </Filename>
|
||||
</Video>
|
||||
|
||||
<Video>
|
||||
<X> 42 </X>
|
||||
<Y> 518 </Y>
|
||||
<Width> 484 </Width>
|
||||
<Height> 616 </Height>
|
||||
<State>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = "Enable"
|
||||
Else
|
||||
Var return = "Invisible"
|
||||
EndIf
|
||||
)
|
||||
</State>
|
||||
<Loop> "true" </Loop>
|
||||
<Filename> "ROOT/taobin_project/image/event/pepsi_second_cup_30/pro_pepsi_second_cup_30_en.mp4" </Filename>
|
||||
</Video>
|
||||
|
||||
</Button>
|
||||
|
||||
<Button>
|
||||
<X> 559 </X>
|
||||
<Y> 519 </Y>
|
||||
|
||||
<State> BigButtonEnable </State>
|
||||
<Filename>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###second_normal_eng
|
||||
Else
|
||||
Var return = ###second_normal_thai
|
||||
EndIf
|
||||
)
|
||||
</Filename>
|
||||
<FilenamePress>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###second_normal_eng
|
||||
Else
|
||||
Var return = ###second_normal_thai
|
||||
EndIf
|
||||
)
|
||||
</FilenamePress>
|
||||
<FilenameDisable>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###second_normal_eng
|
||||
Else
|
||||
Var return = ###second_normal_thai
|
||||
EndIf
|
||||
)
|
||||
</FilenameDisable>
|
||||
<EventOnClick>
|
||||
|
||||
Open "ROOT/taobin_project/xml/page_catalog_group_pro_monday_banana.xml"
|
||||
|
||||
</EventOnClick>
|
||||
|
||||
</Button>
|
||||
|
||||
<EventUnitTest1>
|
||||
Var BigButtonEnable = "Enable"
|
||||
Refresh
|
||||
</EventUnitTest1>
|
||||
<EventUnitTest2>
|
||||
Var BigButtonEnable = "Invisible"
|
||||
Refresh
|
||||
</EventUnitTest2>
|
||||
125
xml/event/double_promotion_template2.inc
Normal file
125
xml/event/double_promotion_template2.inc
Normal file
|
|
@ -0,0 +1,125 @@
|
|||
<Button>
|
||||
<X> 42 </X>
|
||||
<Y> 518 </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/page_catalog_group_pro_lipit.xml"
|
||||
|
||||
</EventOnClick>
|
||||
|
||||
|
||||
<Video>
|
||||
<X> 42 </X>
|
||||
<Y> 518 </Y>
|
||||
<Width> 484 </Width>
|
||||
<Height> 616 </Height>
|
||||
<Loop> "true" </Loop>
|
||||
<State>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = "Invisible"
|
||||
Else
|
||||
Var return = "Enable"
|
||||
EndIf
|
||||
)
|
||||
</State>
|
||||
<Filename> "ROOT/taobin_project/image/event/lipit/pro_lipit_th.mp4" </Filename>
|
||||
</Video>
|
||||
|
||||
<Video>
|
||||
<X> 42 </X>
|
||||
<Y> 518 </Y>
|
||||
<Width> 484 </Width>
|
||||
<Height> 616 </Height>
|
||||
<State>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = "Enable"
|
||||
Else
|
||||
Var return = "Invisible"
|
||||
EndIf
|
||||
)
|
||||
</State>
|
||||
<Loop> "true" </Loop>
|
||||
<Filename> "ROOT/taobin_project/image/event/lipit/pro_lipit_en.mp4" </Filename>
|
||||
</Video>
|
||||
|
||||
</Button>
|
||||
|
||||
<Button>
|
||||
<X> 559 </X>
|
||||
<Y> 519 </Y>
|
||||
|
||||
<State> BigButtonEnable </State>
|
||||
<Filename>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###second_normal_eng
|
||||
Else
|
||||
Var return = ###second_normal_thai
|
||||
EndIf
|
||||
)
|
||||
</Filename>
|
||||
<FilenamePress>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###second_normal_eng
|
||||
Else
|
||||
Var return = ###second_normal_thai
|
||||
EndIf
|
||||
)
|
||||
</FilenamePress>
|
||||
<FilenameDisable>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###second_normal_eng
|
||||
Else
|
||||
Var return = ###second_normal_thai
|
||||
EndIf
|
||||
)
|
||||
</FilenameDisable>
|
||||
<EventOnClick>
|
||||
|
||||
Open "ROOT/taobin_project/xml/page_catalog_group_pro_monday_banana.xml"
|
||||
|
||||
</EventOnClick>
|
||||
|
||||
</Button>
|
||||
|
||||
<EventUnitTest1>
|
||||
Var BigButtonEnable = "Enable"
|
||||
Refresh
|
||||
</EventUnitTest1>
|
||||
<EventUnitTest2>
|
||||
Var BigButtonEnable = "Invisible"
|
||||
Refresh
|
||||
</EventUnitTest2>
|
||||
125
xml/event/double_promotion_template3.inc
Normal file
125
xml/event/double_promotion_template3.inc
Normal file
|
|
@ -0,0 +1,125 @@
|
|||
<Button>
|
||||
<X> 42 </X>
|
||||
<Y> 518 </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/page_catalog_group_pro_lipit.xml"
|
||||
|
||||
</EventOnClick>
|
||||
|
||||
|
||||
<Video>
|
||||
<X> 42 </X>
|
||||
<Y> 518 </Y>
|
||||
<Width> 484 </Width>
|
||||
<Height> 616 </Height>
|
||||
<Loop> "true" </Loop>
|
||||
<State>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = "Invisible"
|
||||
Else
|
||||
Var return = "Enable"
|
||||
EndIf
|
||||
)
|
||||
</State>
|
||||
<Filename> "ROOT/taobin_project/image/event/lipit/pro_lipit_th.mp4" </Filename>
|
||||
</Video>
|
||||
|
||||
<Video>
|
||||
<X> 42 </X>
|
||||
<Y> 518 </Y>
|
||||
<Width> 484 </Width>
|
||||
<Height> 616 </Height>
|
||||
<State>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = "Enable"
|
||||
Else
|
||||
Var return = "Invisible"
|
||||
EndIf
|
||||
)
|
||||
</State>
|
||||
<Loop> "true" </Loop>
|
||||
<Filename> "ROOT/taobin_project/image/event/lipit/pro_lipit_en.mp4" </Filename>
|
||||
</Video>
|
||||
|
||||
</Button>
|
||||
|
||||
<Button>
|
||||
<X> 559 </X>
|
||||
<Y> 519 </Y>
|
||||
|
||||
<State> BigButtonEnable </State>
|
||||
<Filename>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###second_normal_eng
|
||||
Else
|
||||
Var return = ###second_normal_thai
|
||||
EndIf
|
||||
)
|
||||
</Filename>
|
||||
<FilenamePress>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###second_normal_eng
|
||||
Else
|
||||
Var return = ###second_normal_thai
|
||||
EndIf
|
||||
)
|
||||
</FilenamePress>
|
||||
<FilenameDisable>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###second_normal_eng
|
||||
Else
|
||||
Var return = ###second_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>
|
||||
|
|
@ -4,45 +4,55 @@ else:
|
|||
|
||||
#print("params=" + param)
|
||||
#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()
|
||||
file_recommend = open(directory_to_process + "/page_catalog_group_recommend.xml", 'r')
|
||||
content_recommend = file_recommend.read()
|
||||
|
||||
file_recommend_double_pro = open(directory_to_process + "/page_catalog_group_recommend_double_pro.xml", "r")
|
||||
content_recommend_double_pro = file_recommend_double_pro.read()
|
||||
|
||||
file_recommend_triple_pro = open(directory_to_process + "/page_catalog_group_recommend_triple_pro.xml", "r")
|
||||
content_recommend_triple_pro = file_recommend_triple_pro.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_inc = open(directory_to_process + "/dummy_layout.inc", 'r')
|
||||
# file_inc_content = file_inc.read()
|
||||
|
||||
|
||||
file_xml.close()
|
||||
file_recommend.close()
|
||||
file_recommend_double_pro.close()
|
||||
if "template1" in param:
|
||||
|
||||
file_inc2 = open(directory_to_process + "/event/promotion_template1.inc", 'r')
|
||||
file_inc2_content = file_inc2.read()
|
||||
file_inc1 = open(directory_to_process + "/event/promotion_template1.inc", 'r')
|
||||
file_inc1_content = file_inc1.read()
|
||||
file_inc_img = open(directory_to_process + "../image/event/image_template1", 'r')
|
||||
file_inc2_img_content = file_inc_img.read()
|
||||
file_inc1_img_content = file_inc_img.read()
|
||||
|
||||
# replace key.
|
||||
|
||||
sp_key = file_inc2_img_content.split("\n")
|
||||
sp_key = file_inc1_img_content.split("\n")
|
||||
#print("sp_key = " + str(len( sp_key)))
|
||||
for sp_line in sp_key:
|
||||
sp_line = sp_line.strip()
|
||||
key_val = sp_line.split("=")
|
||||
if len( key_val) == 2:
|
||||
#print("k = " + key_val[0] + " val=" + key_val[1])
|
||||
file_inc2_content = file_inc2_content.replace( "###" + key_val[0], '"' + key_val[1].strip() + '"')
|
||||
file_inc1_content = file_inc1_content.replace( "###" + key_val[0], '"' + key_val[1].strip() + '"')
|
||||
|
||||
|
||||
file_inc_event_click = open(directory_to_process + "/event/promotion_onclick1.inc", 'r')
|
||||
file_inc_event_click_content = file_inc_event_click.read()
|
||||
|
||||
file_inc2_content = file_inc2_content.replace("###EventOnClick", file_inc_event_click_content)
|
||||
file_inc1_content = file_inc1_content.replace("###EventOnClick", file_inc_event_click_content)
|
||||
|
||||
|
||||
#print(file_inc2_content)
|
||||
|
||||
#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)
|
||||
file_inc = open(directory_to_process + "/dummy_layout.inc", 'r')
|
||||
file_inc_content = file_inc.read()
|
||||
|
||||
content_data_was_repack = content_recommend.replace(";dummy_layout.inc", file_inc_content)
|
||||
content_data = content_data_was_repack.replace(";BigLogoLayout", file_inc1_content)
|
||||
|
||||
begin_text = content_data.index(";TAGESP")
|
||||
end_text = content_data.index(";TAGESP", begin_text + 7)
|
||||
|
|
@ -93,7 +103,10 @@ else:
|
|||
#print(file_inc2_content)
|
||||
|
||||
#print( file_inc_content)
|
||||
content_data_was_repack = file_content_main.replace(";dummy_layout.inc", file_inc_content)
|
||||
file_inc = open(directory_to_process + "/dummy_layout.inc", 'r')
|
||||
file_inc_content = file_inc.read()
|
||||
|
||||
content_data_was_repack = content_recommend.replace(";dummy_layout.inc", file_inc_content)
|
||||
content_data = content_data_was_repack.replace(";BigLogoLayout", file_inc2_content)
|
||||
|
||||
begin_text = content_data.index(";TAGESP")
|
||||
|
|
@ -145,7 +158,10 @@ else:
|
|||
#print(file_inc3_content)
|
||||
|
||||
#print( file_inc_content)
|
||||
content_data_was_repack = file_content_main.replace(";dummy_layout.inc", file_inc_content)
|
||||
file_inc = open(directory_to_process + "/dummy_layout.inc", 'r')
|
||||
file_inc_content = file_inc.read()
|
||||
|
||||
content_data_was_repack = content_recommend.replace(";dummy_layout.inc", file_inc_content)
|
||||
content_data = content_data_was_repack.replace(";BigLogoLayout", file_inc3_content)
|
||||
|
||||
begin_text = content_data.index(";TAGESP")
|
||||
|
|
@ -168,3 +184,337 @@ else:
|
|||
file_xml3 = open(directory_to_process + file_xml3_out_content, 'w')
|
||||
file_xml3.write( content_data)
|
||||
file_xml3.close()
|
||||
|
||||
if "template4" in param:
|
||||
file_inc4 = open(directory_to_process + "/event/promotion_template4.inc", 'r')
|
||||
file_inc4_content = file_inc4.read()
|
||||
file_inc_img = open(directory_to_process + "../image/event/image_template4", 'r')
|
||||
file_inc4_img_content = file_inc_img.read()
|
||||
|
||||
# replace key.
|
||||
|
||||
sp_key = file_inc4_img_content.split("\n")
|
||||
#print("sp_key = " + str(len( sp_key)))
|
||||
for sp_line in sp_key:
|
||||
sp_line = sp_line.strip()
|
||||
key_val = sp_line.split("=")
|
||||
#print("Kenta420:", key_val)
|
||||
if len( key_val) == 2:
|
||||
#print("k = " + key_val[0] + " val=" + key_val[1])
|
||||
file_inc4_content = file_inc4_content.replace( "###" + key_val[0], '"' + key_val[1].strip() + '"')
|
||||
|
||||
|
||||
file_inc_event_click = open(directory_to_process + "/event/promotion_onclick4.inc", 'r')
|
||||
file_inc_event_click_content = file_inc_event_click.read()
|
||||
|
||||
file_inc4_content = file_inc4_content.replace("###EventOnClick", file_inc_event_click_content)
|
||||
|
||||
|
||||
#print(file_inc4_content)
|
||||
|
||||
#print( file_inc_content)
|
||||
file_inc = open(directory_to_process + "/dummy_layout.inc", 'r')
|
||||
file_inc_content = file_inc.read()
|
||||
|
||||
content_data_was_repack = content_recommend.replace(";dummy_layout.inc", file_inc_content)
|
||||
content_data = content_data_was_repack.replace(";BigLogoLayout", file_inc4_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]
|
||||
|
||||
tmp3 = content_data[ end_text:-1]
|
||||
#print("tmp1=" + tmp1)
|
||||
#print("tmp3=" + tmp3)
|
||||
|
||||
content_data = tmp1 + tmp3
|
||||
|
||||
file_xml4_out = open(directory_to_process + "/event/out_put_file4.txt", 'r')
|
||||
file_xml4_out_content = file_xml4_out.read()
|
||||
file_xml4_out_content = file_xml4_out_content.strip()
|
||||
file_xml4_out_content = file_xml4_out_content.replace("\r", "")
|
||||
file_xml4_out_content = file_xml4_out_content.replace("\n", "")
|
||||
|
||||
file_xml4 = open(directory_to_process + file_xml4_out_content, 'w')
|
||||
file_xml4.write( content_data)
|
||||
file_xml4.close()
|
||||
|
||||
if "double_template1" in param:
|
||||
file_inc_double1 = open(directory_to_process + "/event/double_promotion_template1.inc", 'r')
|
||||
file_inc_double1_content = file_inc_double1.read()
|
||||
file_inc_img = open(directory_to_process + "../image/event/image_double_template1", 'r')
|
||||
file_inc_double1_img_content = file_inc_img.read()
|
||||
|
||||
# replace key.
|
||||
|
||||
sp_key = file_inc_double1_img_content.split("\n")
|
||||
#print("sp_key = " + str(len( sp_key)))
|
||||
for sp_line in sp_key:
|
||||
sp_line = sp_line.strip()
|
||||
key_val = sp_line.split("=")
|
||||
#print("Kenta420:", key_val)
|
||||
if len( key_val) == 2:
|
||||
#print("k = " + key_val[0] + " val=" + key_val[1])
|
||||
file_inc_double1_content = file_inc_double1_content.replace( "###" + key_val[0], '"' + key_val[1].strip() + '"')
|
||||
|
||||
|
||||
file_inc_event_click = open(directory_to_process + "/event/double_promotion_onclick1.inc", 'r')
|
||||
file_inc_event_click_content = file_inc_event_click.read()
|
||||
|
||||
file_inc_double1_content = file_inc_double1_content.replace("###EventOnClick", file_inc_event_click_content)
|
||||
|
||||
|
||||
# print(file_inc_double1_content)
|
||||
|
||||
# print( file_inc_content)
|
||||
|
||||
file_inc = open(directory_to_process + "/dummy_layout_double_pro.inc", 'r')
|
||||
file_inc_content = file_inc.read()
|
||||
|
||||
content_data_was_repack = content_recommend_double_pro.replace(";dummy_layout.inc", file_inc_content)
|
||||
content_data = content_data_was_repack.replace(";BigLogoLayout", file_inc_double1_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]
|
||||
|
||||
tmp3 = content_data[ end_text:-1]
|
||||
#print("tmp1=" + tmp1)
|
||||
#print("tmp3=" + tmp3)
|
||||
|
||||
content_data = tmp1 + tmp3
|
||||
|
||||
file_xml_double1_out = open(directory_to_process + "/event/out_put_file_double_pro1.txt", 'r')
|
||||
file_xml_double1_out_content = file_xml_double1_out.read()
|
||||
file_xml_double1_out_content = file_xml_double1_out_content.strip()
|
||||
file_xml_double1_out_content = file_xml_double1_out_content.replace("\r", "")
|
||||
file_xml_double1_out_content = file_xml_double1_out_content.replace("\n", "")
|
||||
|
||||
file_xml_double1 = open(directory_to_process + file_xml_double1_out_content, 'w')
|
||||
file_xml_double1.write( content_data)
|
||||
file_xml_double1.close()
|
||||
|
||||
if "double_template2" in param:
|
||||
file_inc_double2 = open(directory_to_process + "/event/double_promotion_template2.inc", 'r')
|
||||
file_inc_double2_content = file_inc_double2.read()
|
||||
file_inc_img = open(directory_to_process + "../image/event/image_double_template2", 'r')
|
||||
file_inc_double2_img_content = file_inc_img.read()
|
||||
|
||||
# replace key.
|
||||
|
||||
sp_key = file_inc_double2_img_content.split("\n")
|
||||
#print("sp_key = " + str(len( sp_key)))
|
||||
for sp_line in sp_key:
|
||||
sp_line = sp_line.strip()
|
||||
key_val = sp_line.split("=")
|
||||
#print("Kenta420:", key_val)
|
||||
if len( key_val) == 2:
|
||||
#print("k = " + key_val[0] + " val=" + key_val[1])
|
||||
file_inc_double2_content = file_inc_double2_content.replace( "###" + key_val[0], '"' + key_val[1].strip() + '"')
|
||||
|
||||
|
||||
file_inc_event_click = open(directory_to_process + "/event/double_promotion_onclick2.inc", 'r')
|
||||
file_inc_event_click_content = file_inc_event_click.read()
|
||||
|
||||
file_inc_double2_content = file_inc_double2_content.replace("###EventOnClick", file_inc_event_click_content)
|
||||
|
||||
|
||||
# print(file_inc_double2_content)
|
||||
|
||||
# print( file_inc_content)
|
||||
|
||||
file_inc = open(directory_to_process + "/dummy_layout_double_pro.inc", 'r')
|
||||
file_inc_content = file_inc.read()
|
||||
|
||||
content_data_was_repack = content_recommend_double_pro.replace(";dummy_layout.inc", file_inc_content)
|
||||
content_data = content_data_was_repack.replace(";BigLogoLayout", file_inc_double2_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]
|
||||
|
||||
tmp3 = content_data[ end_text:-1]
|
||||
#print("tmp1=" + tmp1)
|
||||
#print("tmp3=" + tmp3)
|
||||
|
||||
content_data = tmp1 + tmp3
|
||||
|
||||
file_xml_double2_out = open(directory_to_process + "/event/out_put_file_double_pro2.txt", 'r')
|
||||
file_xml_double2_out_content = file_xml_double2_out.read()
|
||||
file_xml_double2_out_content = file_xml_double2_out_content.strip()
|
||||
file_xml_double2_out_content = file_xml_double2_out_content.replace("\r", "")
|
||||
file_xml_double2_out_content = file_xml_double2_out_content.replace("\n", "")
|
||||
|
||||
file_xml_double2 = open(directory_to_process + file_xml_double2_out_content, 'w')
|
||||
file_xml_double2.write( content_data)
|
||||
file_xml_double2.close()
|
||||
|
||||
if "double_template3" in param:
|
||||
file_inc_double3 = open(directory_to_process + "/event/double_promotion_template3.inc", 'r')
|
||||
file_inc_double3_content = file_inc_double3.read()
|
||||
file_inc_img = open(directory_to_process + "../image/event/image_double_template3", 'r')
|
||||
file_inc_double3_img_content = file_inc_img.read()
|
||||
|
||||
# replace key.
|
||||
|
||||
sp_key = file_inc_double3_img_content.split("\n")
|
||||
#print("sp_key = " + str(len( sp_key)))
|
||||
for sp_line in sp_key:
|
||||
sp_line = sp_line.strip()
|
||||
key_val = sp_line.split("=")
|
||||
#print("Kenta420:", key_val)
|
||||
if len( key_val) == 2:
|
||||
#print("k = " + key_val[0] + " val=" + key_val[1])
|
||||
file_inc_double3_content = file_inc_double3_content.replace( "###" + key_val[0], '"' + key_val[1].strip() + '"')
|
||||
|
||||
|
||||
file_inc_event_click = open(directory_to_process + "/event/double_promotion_onclick3.inc", 'r')
|
||||
file_inc_event_click_content = file_inc_event_click.read()
|
||||
|
||||
file_inc_double3_content = file_inc_double3_content.replace("###EventOnClick", file_inc_event_click_content)
|
||||
|
||||
|
||||
# print(file_inc_double3_content)
|
||||
|
||||
# print( file_inc_content)
|
||||
|
||||
file_inc = open(directory_to_process + "/dummy_layout_double_pro.inc", 'r')
|
||||
file_inc_content = file_inc.read()
|
||||
|
||||
content_data_was_repack = content_recommend_double_pro.replace(";dummy_layout.inc", file_inc_content)
|
||||
content_data = content_data_was_repack.replace(";BigLogoLayout", file_inc_double3_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]
|
||||
|
||||
tmp3 = content_data[ end_text:-1]
|
||||
#print("tmp1=" + tmp1)
|
||||
#print("tmp3=" + tmp3)
|
||||
|
||||
content_data = tmp1 + tmp3
|
||||
|
||||
file_xml_double3_out = open(directory_to_process + "/event/out_put_file_double_pro3.txt", 'r')
|
||||
file_xml_double3_out_content = file_xml_double3_out.read()
|
||||
file_xml_double3_out_content = file_xml_double3_out_content.strip()
|
||||
file_xml_double3_out_content = file_xml_double3_out_content.replace("\r", "")
|
||||
file_xml_double3_out_content = file_xml_double3_out_content.replace("\n", "")
|
||||
|
||||
file_xml_double3 = open(directory_to_process + file_xml_double3_out_content, 'w')
|
||||
file_xml_double3.write( content_data)
|
||||
file_xml_double3.close()
|
||||
|
||||
if "triple_template1" in param:
|
||||
file_inc_triple1 = open(directory_to_process + "/event/triple_promotion_template1.inc", 'r')
|
||||
file_inc_triple1_content = file_inc_triple1.read()
|
||||
file_inc_img = open(directory_to_process + "../image/event/image_triple_template1", 'r')
|
||||
file_inc_triple1_img_content = file_inc_img.read()
|
||||
|
||||
# replace key.
|
||||
|
||||
sp_key = file_inc_triple1_img_content.split("\n")
|
||||
#print("sp_key = " + str(len( sp_key)))
|
||||
for sp_line in sp_key:
|
||||
sp_line = sp_line.strip()
|
||||
key_val = sp_line.split("=")
|
||||
#print("Kenta420:", key_val)
|
||||
if len( key_val) == 2:
|
||||
#print("k = " + key_val[0] + " val=" + key_val[1])
|
||||
file_inc_triple1_content = file_inc_triple1_content.replace( "###" + key_val[0], '"' + key_val[1].strip() + '"')
|
||||
|
||||
|
||||
file_inc_event_click = open(directory_to_process + "/event/triple_promotion_onclick1.inc", 'r')
|
||||
file_inc_event_click_content = file_inc_event_click.read()
|
||||
|
||||
file_inc_triple1_content = file_inc_triple1_content.replace("###EventOnClick", file_inc_event_click_content)
|
||||
|
||||
|
||||
# print(file_inc_triple1_content)
|
||||
|
||||
# print( file_inc_content)
|
||||
|
||||
file_inc = open(directory_to_process + "/dummy_layout_triple_pro.inc", 'r')
|
||||
file_inc_content = file_inc.read()
|
||||
|
||||
content_data_was_repack = content_recommend_triple_pro.replace(";dummy_layout.inc", file_inc_content)
|
||||
content_data = content_data_was_repack.replace(";BigLogoLayout", file_inc_triple1_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]
|
||||
|
||||
tmp3 = content_data[ end_text:-1]
|
||||
#print("tmp1=" + tmp1)
|
||||
#print("tmp3=" + tmp3)
|
||||
|
||||
content_data = tmp1 + tmp3
|
||||
|
||||
file_xml_triple1_out = open(directory_to_process + "/event/out_put_file_triple_pro1.txt", 'r')
|
||||
file_xml_triple1_out_content = file_xml_triple1_out.read()
|
||||
file_xml_triple1_out_content = file_xml_triple1_out_content.strip()
|
||||
file_xml_triple1_out_content = file_xml_triple1_out_content.replace("\r", "")
|
||||
file_xml_triple1_out_content = file_xml_triple1_out_content.replace("\n", "")
|
||||
|
||||
file_xml_triple1 = open(directory_to_process + file_xml_triple1_out_content, 'w')
|
||||
file_xml_triple1.write( content_data)
|
||||
file_xml_triple1.close()
|
||||
if "triple_template2" in param:
|
||||
file_inc_triple2 = open(directory_to_process + "/event/triple_promotion_template2.inc", 'r')
|
||||
file_inc_triple2_content = file_inc_triple2.read()
|
||||
file_inc_img = open(directory_to_process + "../image/event/image_triple_template2", 'r')
|
||||
file_inc_triple2_img_content = file_inc_img.read()
|
||||
|
||||
# replace key.
|
||||
|
||||
sp_key = file_inc_triple2_img_content.split("\n")
|
||||
#print("sp_key = " + str(len( sp_key)))
|
||||
for sp_line in sp_key:
|
||||
sp_line = sp_line.strip()
|
||||
key_val = sp_line.split("=")
|
||||
#print("Kenta420:", key_val)
|
||||
if len( key_val) == 2:
|
||||
#print("k = " + key_val[0] + " val=" + key_val[1])
|
||||
file_inc_triple2_content = file_inc_triple2_content.replace( "###" + key_val[0], '"' + key_val[1].strip() + '"')
|
||||
|
||||
|
||||
file_inc_event_click = open(directory_to_process + "/event/triple_promotion_onclick1.inc", 'r')
|
||||
file_inc_event_click_content = file_inc_event_click.read()
|
||||
|
||||
file_inc_triple2_content = file_inc_triple2_content.replace("###EventOnClick", file_inc_event_click_content)
|
||||
|
||||
|
||||
# print(file_inc_triple2_content)
|
||||
|
||||
# print( file_inc_content)
|
||||
|
||||
file_inc = open(directory_to_process + "/dummy_layout_triple_pro.inc", 'r')
|
||||
file_inc_content = file_inc.read()
|
||||
|
||||
content_data_was_repack = content_recommend_triple_pro.replace(";dummy_layout.inc", file_inc_content)
|
||||
content_data = content_data_was_repack.replace(";BigLogoLayout", file_inc_triple2_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]
|
||||
|
||||
tmp3 = content_data[ end_text:-1]
|
||||
#print("tmp1=" + tmp1)
|
||||
#print("tmp3=" + tmp3)
|
||||
|
||||
content_data = tmp1 + tmp3
|
||||
|
||||
file_xml_triple2_out = open(directory_to_process + "/event/out_put_file_triple_pro2.txt", 'r')
|
||||
file_xml_triple2_out_content = file_xml_triple2_out.read()
|
||||
file_xml_triple2_out_content = file_xml_triple2_out_content.strip()
|
||||
file_xml_triple2_out_content = file_xml_triple2_out_content.replace("\r", "")
|
||||
file_xml_triple2_out_content = file_xml_triple2_out_content.replace("\n", "")
|
||||
|
||||
file_xml_triple2 = open(directory_to_process + file_xml_triple2_out_content, 'w')
|
||||
file_xml_triple2.write( content_data)
|
||||
file_xml_triple2.close()
|
||||
375
xml/event/lipit/page_collect_point_pro_lipit_2.xml
Normal file
375
xml/event/lipit/page_collect_point_pro_lipit_2.xml
Normal file
|
|
@ -0,0 +1,375 @@
|
|||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
<Background> "0xeae6e1" </Background>
|
||||
<Volume> SoundVolume </Volume>
|
||||
|
||||
<EventOpen>
|
||||
; On open
|
||||
|
||||
Var Timeout = 0
|
||||
SAVELOG UnitTestType
|
||||
|
||||
Var TaobinLevel = 0
|
||||
Var Point2X = 0
|
||||
|
||||
Var Seeker.TaobinErrorNetwork = 0
|
||||
|
||||
If show_eng = "true" Then
|
||||
Var DirImage = "ROOT/taobin_project/image/collectiing_en"
|
||||
|
||||
Var IMG_CNT = "ROOT/taobin_project/image/page_doing/img2_eng.png"
|
||||
Else
|
||||
Var DirImage = "ROOT/taobin_project/image/collectiing"
|
||||
|
||||
Var IMG_CNT = "ROOT/taobin_project/image/page_doing/img2.png"
|
||||
EndIf
|
||||
|
||||
Var Seeker.IsLineMember = 0
|
||||
|
||||
If PayOfflineMode = 1 Then
|
||||
Var Seeker.TaobinErrorNetwork = 1
|
||||
Var Seeker.PointTaobinStr = ParamCP
|
||||
Var TelephoneNumber = TelephoneNumberX
|
||||
Var Seeker.TNumberTaobinMember= TelephoneNumber
|
||||
Var CollectPointError = "collect"
|
||||
Open "ROOT/taobin_project/xml/event/lipit/page_collect_point_pro_lipit_error.xml"
|
||||
EndIf
|
||||
|
||||
</EventOpen>
|
||||
<Timeout> 1000 </Timeout>
|
||||
<EventTimeout>
|
||||
Var CountDownBrewing = BREW_CNT
|
||||
|
||||
Var ShowCountDownBrewing = CountDownBrewing
|
||||
|
||||
|
||||
Var Timeout = Timeout + 1
|
||||
If Timeout > 30 Then
|
||||
|
||||
|
||||
Var TaobinLevel = 0
|
||||
Var CoffeePoint = 1
|
||||
|
||||
Var Seeker.TaobinErrorNetwork = 1
|
||||
Var Seeker.PointTaobinStr = ParamCP
|
||||
|
||||
Var TelephoneNumber = TelephoneNumberX
|
||||
|
||||
Var Seeker.TNumberTaobinMember= TelephoneNumber
|
||||
Var CollectPointError = "collect"
|
||||
Open "ROOT/taobin_project/xml/event/bad_valentine/page_collect_point_pro_lipit_error.xml"
|
||||
|
||||
EndIf
|
||||
|
||||
TimerReset
|
||||
Refresh
|
||||
</EventTimeout>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<EventSecurity>
|
||||
Open "/media/bt/xml/security_alarm.xml"
|
||||
</EventSecurity>
|
||||
|
||||
<EventActionOk>
|
||||
If Ext1a = "" Then
|
||||
|
||||
Var Seeker.TaobinErrorNetwork = 1
|
||||
Var Seeker.PointTaobinStr = ParamCP
|
||||
Var TelephoneNumber = TelephoneNumberX
|
||||
Var Seeker.TNumberTaobinMember = TelephoneNumber
|
||||
Var CollectPointError = "collect"
|
||||
Open "ROOT/taobin_project/xml/event/bad_valentine/page_collect_point_pro_lipit_error.xml"
|
||||
|
||||
Else
|
||||
Var TaobinName = Ext1b
|
||||
Var TelephoneNumber = TelephoneNumberX
|
||||
Var TNumberTaobinMemberXXX = TelephoneNumber
|
||||
If TaobinName = "" Then
|
||||
Var Seeker.IsLineMember = 0
|
||||
Else
|
||||
If TaobinName = "-" Then
|
||||
Var Seeker.IsLineMember = 0
|
||||
Else
|
||||
Var Seeker.IsLineMember = 1
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
|
||||
If Seeker.IsLineMember = 0 Then
|
||||
SAVELOG "Not Line Member skip to normal collect point."
|
||||
If Seeker.CodeChannel = 1 Then
|
||||
If Seeker.CollectPointMain = 1 Then
|
||||
GETACCEXT Param1 23
|
||||
Open "ROOT/taobin_project/xml/page_collect_point_2.xml"
|
||||
Else
|
||||
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
|
||||
EndIf
|
||||
Else
|
||||
GETACCEXT Param1 23
|
||||
Open "ROOT/taobin_project/xml/page_collect_point_2.xml"
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
|
||||
Var Seeker.PointTaobinStr = ParamCP
|
||||
Var Seeker.TNumberTaobinMember = TelephoneNumberX
|
||||
|
||||
Var PointState[0] = 0
|
||||
Var PointState[1] = 0
|
||||
Var PointState[2] = 0
|
||||
Var PointState[3] = 0
|
||||
Var PointState[4] = 0
|
||||
Var PointState[5] = 0
|
||||
Var PointState[6] = 0
|
||||
Var PointState[7] = 0
|
||||
Var PointState[8] = 0
|
||||
Var PointState[9] = 0
|
||||
|
||||
DEBUGVAR Ext1a
|
||||
|
||||
SPLIT Ext1a "/" 1 PointState[0]
|
||||
SPLIT Ext1a "/" 2 PointState[1]
|
||||
SPLIT Ext1a "/" 3 PointState[2]
|
||||
SPLIT Ext1a "/" 4 PointState[3]
|
||||
SPLIT Ext1a "/" 5 PointState[4]
|
||||
SPLIT Ext1a "/" 6 PointState[5]
|
||||
SPLIT Ext1a "/" 7 PointState[6]
|
||||
SPLIT Ext1a "/" 8 PointState[7]
|
||||
SPLIT Ext1a "/" 9 PointState[8]
|
||||
SPLIT Ext1a "/" 10 PointState[9]
|
||||
|
||||
INT PointState[0]
|
||||
INT PointState[1]
|
||||
INT PointState[2]
|
||||
INT PointState[3]
|
||||
INT PointState[4]
|
||||
INT PointState[5]
|
||||
INT PointState[6]
|
||||
INT PointState[7]
|
||||
INT PointState[8]
|
||||
INT PointState[9]
|
||||
|
||||
DEBUGVAR PointState[0]
|
||||
DEBUGVAR PointState[1]
|
||||
DEBUGVAR PointState[2]
|
||||
DEBUGVAR PointState[3]
|
||||
DEBUGVAR PointState[4]
|
||||
DEBUGVAR PointState[5]
|
||||
DEBUGVAR PointState[6]
|
||||
DEBUGVAR PointState[7]
|
||||
DEBUGVAR PointState[8]
|
||||
DEBUGVAR PointState[9]
|
||||
|
||||
Var newPointIndex = ""
|
||||
|
||||
; Point 1
|
||||
If Seeker.selected_a_drink = "12-03-03-0046" Then
|
||||
If PointState[0] = 1 Then
|
||||
Var newPointIndex = ""
|
||||
Else
|
||||
Var newPointIndex = 0
|
||||
EndIf
|
||||
|
||||
Var PointState[0] = 1
|
||||
EndIf
|
||||
|
||||
|
||||
; Point 2
|
||||
If Seeker.selected_a_drink = "12-03-03-0047" Then
|
||||
If PointState[1] = 1 Then
|
||||
Var newPointIndex = ""
|
||||
Else
|
||||
Var newPointIndex = 1
|
||||
EndIf
|
||||
|
||||
Var PointState[1] = 1
|
||||
EndIf
|
||||
|
||||
|
||||
; Point 3
|
||||
If Seeker.selected_a_drink = "12-99-05-0063" Then
|
||||
If PointState[2] = 1 Then
|
||||
Var newPointIndex = ""
|
||||
Else
|
||||
Var newPointIndex = 2
|
||||
EndIf
|
||||
|
||||
Var PointState[2] = 1
|
||||
EndIf
|
||||
|
||||
; Point 4
|
||||
If Seeker.selected_a_drink = "12-03-02-0040" Then
|
||||
If PointState[3] = 1 Then
|
||||
Var newPointIndex = ""
|
||||
Else
|
||||
Var newPointIndex = 3
|
||||
EndIf
|
||||
|
||||
Var PointState[3] = 1
|
||||
EndIf
|
||||
|
||||
|
||||
; Point 5
|
||||
If Seeker.selected_a_drink = "12-05-03-0063" Then
|
||||
If PointState[4] = 1 Then
|
||||
Var newPointIndex = ""
|
||||
Else
|
||||
Var newPointIndex = 4
|
||||
EndIf
|
||||
Var PointState[4] = 1
|
||||
EndIf
|
||||
|
||||
|
||||
; Point 6
|
||||
If Seeker.selected_a_drink = "12-05-02-0080" Then
|
||||
If PointState[5] = 1 Then
|
||||
Var newPointIndex = ""
|
||||
Else
|
||||
Var newPointIndex = 5
|
||||
EndIf
|
||||
|
||||
Var PointState[5] = 1
|
||||
EndIf
|
||||
|
||||
|
||||
; Point 7
|
||||
If Seeker.selected_a_drink = "12-02-03-0053" Then
|
||||
If PointState[6] = 1 Then
|
||||
Var newPointIndex = ""
|
||||
Else
|
||||
Var newPointIndex = 6
|
||||
EndIf
|
||||
|
||||
Var PointState[6] = 1
|
||||
EndIf
|
||||
|
||||
|
||||
; Point 8
|
||||
If Seeker.selected_a_drink = "12-03-02-0041" Then
|
||||
If PointState[7] = 1 Then
|
||||
Var newPointIndex = ""
|
||||
Else
|
||||
Var newPointIndex = 7
|
||||
EndIf
|
||||
Var PointState[7] = 1
|
||||
EndIf
|
||||
|
||||
; Point 9
|
||||
If Seeker.selected_a_drink = "12-02-02-0056" Then
|
||||
If PointState[8] = 1 Then
|
||||
Var newPointIndex = ""
|
||||
Else
|
||||
Var newPointIndex = 8
|
||||
EndIf
|
||||
|
||||
Var PointState[8] = 1
|
||||
EndIf
|
||||
|
||||
; Point 10
|
||||
If Seeker.selected_a_drink = "12-05-03-0064" Then
|
||||
If PointState[9] = 1 Then
|
||||
Var newPointIndex = ""
|
||||
Else
|
||||
Var newPointIndex = 9
|
||||
EndIf
|
||||
|
||||
Var PointState[9] = 1
|
||||
EndIf
|
||||
|
||||
DEBUGVAR Seeker.selected_a_drink
|
||||
DEBUGVAR newPointIndex
|
||||
|
||||
DEBUGVAR Seeker.PointTaobinStr
|
||||
DEBUGVAR Seeker.TNumberTaobinMember
|
||||
|
||||
Open "ROOT/taobin_project/xml/event/lipit/page_collect_point_pro_lipit_3.xml"
|
||||
EndIf
|
||||
|
||||
</EventActionOk>
|
||||
|
||||
<EventActionError>
|
||||
|
||||
Var Seeker.TaobinErrorNetwork = 1
|
||||
|
||||
Var Seeker.PointTaobinStr = ParamCP
|
||||
Var TelephoneNumber = TelephoneNumberX
|
||||
Var Seeker.TNumberTaobinMember= TelephoneNumber
|
||||
Var CollectPointError = "collect"
|
||||
Open "ROOT/taobin_project/xml/event/bad_valentine/page_collect_point_pro_lipit_error.xml"
|
||||
|
||||
|
||||
</EventActionError>
|
||||
|
||||
<EventMachine>
|
||||
If MachineStage = "drink-success" Then
|
||||
Var MachineState_Result = 1
|
||||
EndIf
|
||||
|
||||
If MachineStage = "drink-failed" Then
|
||||
Var MachineState_Result = 2
|
||||
EndIf
|
||||
</EventMachine>
|
||||
|
||||
|
||||
|
||||
<Image>
|
||||
<X> 178 </X>
|
||||
<Y> 680 </Y>
|
||||
<Filename> Var( DirImage + "/text20.png" ) </Filename>
|
||||
</Image>
|
||||
|
||||
|
||||
;<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_0 </Filename>
|
||||
</Video>
|
||||
|
||||
<Text>
|
||||
<X> 0 </X>
|
||||
<Y> 873 </Y>
|
||||
<Width> 1080 </Width>
|
||||
<Align> Center </Align>
|
||||
<Size> 62 </Size>
|
||||
<Font> RobotoBlack </Font>
|
||||
<Color> 0x513C2F </Color>
|
||||
<Value> TelephoneNumber </Value>
|
||||
<Format> Telnum-mask-1 </Format>
|
||||
</Text>
|
||||
|
||||
|
||||
;
|
||||
<Image>
|
||||
<X> 751 </X>
|
||||
<Y> 413 </Y>
|
||||
<Filename> IMG_CNT </Filename>
|
||||
</Image>
|
||||
;
|
||||
<Text>
|
||||
<X> XPosiShowCountDownBrew </X>
|
||||
<Y> 470 </Y>
|
||||
<Align> End </Align>
|
||||
<Width> 153 </Width>
|
||||
<Size> 88 </Size>
|
||||
<Font> RobotoBold </Font>
|
||||
<Color> 0x513C2F </Color>
|
||||
<Value> ShowCountDownBrewing </Value>
|
||||
</Text>
|
||||
|
||||
|
||||
</Popup>
|
||||
|
||||
626
xml/event/lipit/page_collect_point_pro_lipit_3.xml
Normal file
626
xml/event/lipit/page_collect_point_pro_lipit_3.xml
Normal file
|
|
@ -0,0 +1,626 @@
|
|||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
<Background> "0xeae6e1" </Background>
|
||||
<Volume> SoundVolume </Volume>
|
||||
|
||||
<EventOpen>
|
||||
; On open
|
||||
|
||||
Var Timeout = 0
|
||||
Var BmiYear = "0/0/0/0/0/0/0/0/0/1"
|
||||
Var PointCrm = "pdpa1"
|
||||
Var GetScore = ""
|
||||
Var TelephoneNumber = TelephoneNumberX
|
||||
Var Seeker.TNumberTaobinMember = TelephoneNumber
|
||||
|
||||
Var PointMaskState = "Invisible"
|
||||
Var showRandomBtnState = "Invisible"
|
||||
|
||||
Var CoffeePointStr = CoffeePoint
|
||||
|
||||
DEBUGVAR TelephoneNumber
|
||||
DEBUGVAR TelephoneNumberX
|
||||
|
||||
If show_eng = "true" Then
|
||||
Var DirImage = "ROOT/taobin_project/image/event/lipit/display_point_en"
|
||||
Var IMG_CNT = "ROOT/taobin_project/image/page_doing/img2_eng.png"
|
||||
Else
|
||||
Var DirImage = "ROOT/taobin_project/image/event/lipit/display_point"
|
||||
Var IMG_CNT = "ROOT/taobin_project/image/page_doing/img2.png"
|
||||
EndIf
|
||||
|
||||
Var CheckCoupons = 0
|
||||
Var MakeDrinkState = 0
|
||||
|
||||
Var taobinImgPoint[0] = "/lipit_point.png"
|
||||
Var taobinImgPoint[1]= "/lipit_point.png"
|
||||
Var taobinImgPoint[2]= "/lipit_point.png"
|
||||
Var taobinImgPoint[3]= "/lipit_point.png"
|
||||
Var taobinImgPoint[4]= "/lipit_point.png"
|
||||
Var taobinImgPoint[5]= "/lipit_point.png"
|
||||
Var taobinImgPoint[6]= "/lipit_point.png"
|
||||
Var taobinImgPoint[7]= "/lipit_point.png"
|
||||
Var taobinImgPoint[8]= "/lipit_point.png"
|
||||
Var taobinImgPoint[9]= "/lipit_point.png"
|
||||
|
||||
Var PointCount = 0
|
||||
|
||||
If show_eng = "true" Then
|
||||
Var taobinTextPoint[0] = "SALTY CARAMEL"
|
||||
Var taobinTextPoint[1] = "ROSE HONEY PUDDING"
|
||||
Var taobinTextPoint[2] = "BOTANIC CITRUS"
|
||||
Var taobinTextPoint[3] = "CHOCO FONDANT"
|
||||
Var taobinTextPoint[4] = "BERRY JAM"
|
||||
Var taobinTextPoint[5] = "RASPBERRY"
|
||||
Var taobinTextPoint[6] = "LYCHEE ROSE"
|
||||
Var taobinTextPoint[7] = "SUM BALM\nSPF 15 PA++"
|
||||
Var taobinTextPoint[8] = "PEACH TEA"
|
||||
Var taobinTextPoint[9] = "PEACH SYRUP"
|
||||
Else
|
||||
Var taobinTextPoint[0] = "พี่นัททุบ เต่าก็ทุบ"
|
||||
Var taobinTextPoint[1] = "แก้วนี้ของพี่นัท"
|
||||
Var taobinTextPoint[2] = "นิสาอินเต่าบิน"
|
||||
Var taobinTextPoint[3] = "สะบัดหลอด"
|
||||
Var taobinTextPoint[4] = "โชว์แก้วอร่อย"
|
||||
Var taobinTextPoint[5] = "ไหนดื่มสิ"
|
||||
Var taobinTextPoint[6] = "เรื่องราวแก้วนี้"
|
||||
Var taobinTextPoint[7] = "เคาะค่ะ"
|
||||
Var taobinTextPoint[8] = "ถ้าพี่นัทเป๊ะ เต่าก็เป๊ะ"
|
||||
Var taobinTextPoint[9] = "เต่าบินเมคโอเวอร์ มั๊วะ!"
|
||||
EndIf
|
||||
|
||||
|
||||
|
||||
Var taobinTextColorPoint[0] = "0x584231"
|
||||
Var taobinTextColorPoint[1] = "0x584231"
|
||||
Var taobinTextColorPoint[2] = "0x584231"
|
||||
Var taobinTextColorPoint[3] = "0x584231"
|
||||
Var taobinTextColorPoint[4] = "0x584231"
|
||||
Var taobinTextColorPoint[5] = "0x584231"
|
||||
Var taobinTextColorPoint[6] = "0x584231"
|
||||
Var taobinTextColorPoint[7] = "0x584231"
|
||||
Var taobinTextColorPoint[8] = "0x584231"
|
||||
Var taobinTextColorPoint[9] = "0x584231"
|
||||
|
||||
DEBUGVAR PointState[0]
|
||||
DEBUGVAR PointState[1]
|
||||
DEBUGVAR PointState[2]
|
||||
DEBUGVAR PointState[3]
|
||||
DEBUGVAR PointState[4]
|
||||
DEBUGVAR PointState[5]
|
||||
DEBUGVAR PointState[6]
|
||||
DEBUGVAR PointState[7]
|
||||
DEBUGVAR PointState[8]
|
||||
DEBUGVAR PointState[9]
|
||||
|
||||
Var PointRootDir = "ROOT/taobin_project/image/event/lipit/display_point"
|
||||
|
||||
If PointState[0] = 1 Then
|
||||
Var PointCount = PointCount + 1
|
||||
Var taobinImgPoint[0] = "/lipit_point_active.png"
|
||||
EndIf
|
||||
If PointState[1] = 1 Then
|
||||
Var PointCount = PointCount + 1
|
||||
Var taobinImgPoint[1] = "/lipit_point_active.png"
|
||||
EndIf
|
||||
If PointState[2] = 1 Then
|
||||
Var PointCount = PointCount + 1
|
||||
Var taobinImgPoint[2] = "/lipit_point_active.png"
|
||||
EndIf
|
||||
If PointState[3] = 1 Then
|
||||
Var PointCount = PointCount + 1
|
||||
Var taobinImgPoint[3] = "/lipit_point_active.png"
|
||||
EndIf
|
||||
If PointState[4] = 1 Then
|
||||
Var PointCount = PointCount + 1
|
||||
Var taobinImgPoint[4] = "/lipit_point_active.png"
|
||||
EndIf
|
||||
If PointState[5] = 1 Then
|
||||
Var PointCount = PointCount + 1
|
||||
Var taobinImgPoint[5] = "/lipit_point_active.png"
|
||||
EndIf
|
||||
If PointState[6] = 1 Then
|
||||
Var PointCount = PointCount + 1
|
||||
Var taobinImgPoint[6] = "/lipit_point_active.png"
|
||||
EndIf
|
||||
If PointState[7] = 1 Then
|
||||
Var PointCount = PointCount + 1
|
||||
Var taobinImgPoint[7] = "/lipit_point_active.png"
|
||||
EndIf
|
||||
If PointState[8] = 1 Then
|
||||
Var PointCount = PointCount + 1
|
||||
Var taobinImgPoint[8] = "/lipit_point_active.png"
|
||||
EndIf
|
||||
If PointState[9] = 1 Then
|
||||
Var PointCount = PointCount + 1
|
||||
Var taobinImgPoint[9] = "/lipit_point_active.png"
|
||||
EndIf
|
||||
|
||||
If newPointIndex = "" Then
|
||||
; Nothing
|
||||
Else
|
||||
If newPointIndex >= 0 Then
|
||||
Var taobinImgPoint[newPointIndex] = "/lipit_point_new.png"
|
||||
;Var taobinTextColorPoint[newPointIndex] = "0xFFE400"
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
Var PointDiff = 10 - PointCount
|
||||
|
||||
If show_eng = "true" Then
|
||||
Var TaobinLevelDesc1 = "Unlock Lip-It with just " + PointDiff
|
||||
Var TaobinLevelDesc1 = TaobinLevelDesc1 + " more menus!"
|
||||
Var TaobinLevelDesc2 = "Collect all 10 delicious delights to unleash the ultimate flavor sensation!"
|
||||
|
||||
;Var MemberStatus_Y = 772
|
||||
;Var MemberName_Y = 795
|
||||
;Var MemeberPhone_Y = 845
|
||||
;Var MemberPoint_Y = 920
|
||||
|
||||
Var subTitle_Y = 839
|
||||
|
||||
;Var TaobinLevelDesc1_X = 236
|
||||
;Var TaobinLevelDesc1_Y = 990
|
||||
;Var TaobinLevelDesc2_X = 236
|
||||
;Var TaobinLevelDesc2_Y = 1020
|
||||
|
||||
Var text8_X = 224
|
||||
|
||||
Else
|
||||
Var TaobinLevelDesc1 = "เหลืออีก " + PointDiff
|
||||
Var TaobinLevelDesc1 = TaobinLevelDesc1 + " เมนูที่จะเปิดล็อค Lip it"
|
||||
Var TaobinLevelDesc2 = "สะสมให้ครบ 10 เมนูแสนอร่อยแล้วมาปลดล็อกความปังกัน!"
|
||||
|
||||
;Var MemberStatus_Y = 772
|
||||
;Var MemberName_Y = 795
|
||||
;Var MemeberPhone_Y = 845
|
||||
;Var MemberPoint_Y = 920
|
||||
|
||||
Var subTitle_Y = 853
|
||||
|
||||
;Var TaobinLevelDesc1_X = 236
|
||||
;Var TaobinLevelDesc1_Y = 990
|
||||
;Var TaobinLevelDesc2_X = 236
|
||||
;Var TaobinLevelDesc2_Y = 1020
|
||||
|
||||
Var text8_X = 346
|
||||
|
||||
EndIf
|
||||
|
||||
If PointCount = 10 Then
|
||||
Var showRandomBtnState = "Enable"
|
||||
EndIf
|
||||
|
||||
Var CurrentPointSlot = newPointIndex + 1
|
||||
|
||||
Var UpdatePoint = 0
|
||||
|
||||
</EventOpen>
|
||||
<Timeout> 1000 </Timeout>
|
||||
<EventTimeout>
|
||||
|
||||
Var CountDownBrewing = BREW_CNT
|
||||
|
||||
Var ShowCountDownBrewing = CountDownBrewing
|
||||
|
||||
|
||||
|
||||
Var Timeout = Timeout + 1
|
||||
If Timeout > 10 Then
|
||||
Var CurrentPointCheck = "check"
|
||||
Var val3 = "X"
|
||||
AddData 37 TelephoneNumber CurrentPointSlot CurrentPointCheck val3
|
||||
Var UpdatePoint = 1
|
||||
EndIf
|
||||
|
||||
|
||||
|
||||
TimerReset
|
||||
Refresh
|
||||
</EventTimeout>
|
||||
|
||||
|
||||
<EventActionError>
|
||||
|
||||
</EventActionError>
|
||||
|
||||
<EventActionOk>
|
||||
|
||||
If UpdatePoint = 1 Then
|
||||
If Seeker.CodeChannel = 1 Then
|
||||
If Seeker.CollectPointMain = 1 Then
|
||||
GETACCEXT Param1 23
|
||||
Open "ROOT/taobin_project/xml/page_collect_point_2.xml"
|
||||
Else
|
||||
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
|
||||
EndIf
|
||||
Else
|
||||
GETACCEXT Param1 23
|
||||
Open "ROOT/taobin_project/xml/page_collect_point_2.xml"
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
</EventActionOk>
|
||||
|
||||
<EventSecurity>
|
||||
Open "/media/bt/xml/security_alarm.xml"
|
||||
</EventSecurity>
|
||||
|
||||
|
||||
<EventMachine>
|
||||
If MachineStage = "drink-success" Then
|
||||
Var MachineState_Result = 1
|
||||
EndIf
|
||||
|
||||
If MachineStage = "drink-failed" Then
|
||||
Var MachineState_Result = 2
|
||||
EndIf
|
||||
</EventMachine>
|
||||
|
||||
<Video>
|
||||
<X> 0 </X>
|
||||
<Y> 0 </Y>
|
||||
<Width> 1080</Width>
|
||||
<Height> 380 </Height>
|
||||
<Loop> "true" </Loop>
|
||||
<Filename> video_menu_0 </Filename>
|
||||
</Video>
|
||||
|
||||
<Image>
|
||||
<X> 0 </X>
|
||||
<Y> 380 </Y>
|
||||
<Filename> "ROOT/taobin_project/image/display_point/alpha.png" </Filename>
|
||||
</Image>
|
||||
|
||||
|
||||
;
|
||||
|
||||
|
||||
|
||||
|
||||
<Image>
|
||||
<X> 158 </X>
|
||||
<Y> 665 </Y>
|
||||
<Filename> Var( PointRootDir + "/top_bg.png" )</Filename>
|
||||
</Image>
|
||||
|
||||
<Image>
|
||||
<X> 158 </X>
|
||||
<Y> 1085 </Y>
|
||||
<Filename> Var( PointRootDir + "/bottom_bg.png" )</Filename>
|
||||
</Image>
|
||||
|
||||
<Image>
|
||||
<X> 243 </X>
|
||||
<Y> 731 </Y>
|
||||
<Filename> Var( DirImage + "/member_text.png" )</Filename>
|
||||
</Image>
|
||||
|
||||
|
||||
<Image>
|
||||
<X> 243 </X>
|
||||
<Y> subTitle_Y </Y>
|
||||
<Filename> Var( DirImage + "/mission_text.png" )</Filename>
|
||||
</Image>
|
||||
|
||||
|
||||
|
||||
|
||||
<Image>
|
||||
<X> 625 </X>
|
||||
<Y> 732 </Y>
|
||||
<Filename> Var( PointRootDir + "/tao_makeup.png" )</Filename>
|
||||
</Image>
|
||||
;
|
||||
|
||||
|
||||
<Image>
|
||||
<X> 243 </X>
|
||||
<Y> 1147 </Y>
|
||||
<Filename> Var( PointRootDir + taobinImgPoint[0]) </Filename>
|
||||
</Image>
|
||||
|
||||
<Image>
|
||||
<X> 378 </X>
|
||||
<Y> 1147 </Y>
|
||||
<Filename> Var( PointRootDir + taobinImgPoint[1]) </Filename>
|
||||
</Image>
|
||||
|
||||
<Image>
|
||||
<X> 513 </X>
|
||||
<Y> 1147 </Y>
|
||||
<Filename> Var( PointRootDir + taobinImgPoint[2]) </Filename>
|
||||
</Image>
|
||||
|
||||
<Image>
|
||||
<X> 647 </X>
|
||||
<Y> 1147 </Y>
|
||||
<Filename> Var( PointRootDir + taobinImgPoint[3]) </Filename>
|
||||
</Image>
|
||||
|
||||
<Image>
|
||||
<X> 782 </X>
|
||||
<Y> 1147 </Y>
|
||||
<Filename> Var( PointRootDir + taobinImgPoint[4]) </Filename>
|
||||
</Image>
|
||||
|
||||
|
||||
<Image>
|
||||
<X> 243 </X>
|
||||
<Y> 1338 </Y>
|
||||
<Filename> Var( PointRootDir + taobinImgPoint[5]) </Filename>
|
||||
</Image>
|
||||
|
||||
<Image>
|
||||
<X> 378 </X>
|
||||
<Y> 1338 </Y>
|
||||
<Filename> Var( PointRootDir + taobinImgPoint[6]) </Filename>
|
||||
</Image>
|
||||
|
||||
<Image>
|
||||
<X> 513 </X>
|
||||
<Y> 1338 </Y>
|
||||
<Filename> Var( PointRootDir + taobinImgPoint[7]) </Filename>
|
||||
</Image>
|
||||
|
||||
<Image>
|
||||
<X> 647 </X>
|
||||
<Y> 1338 </Y>
|
||||
<Filename> Var( PointRootDir + taobinImgPoint[8]) </Filename>
|
||||
</Image>
|
||||
|
||||
<Image>
|
||||
<X> 782 </X>
|
||||
<Y> 1338 </Y>
|
||||
<Filename> Var( PointRootDir + taobinImgPoint[9]) </Filename>
|
||||
</Image>
|
||||
|
||||
|
||||
|
||||
<Text>
|
||||
<X> 243 </X>
|
||||
<Y> 764 </Y>
|
||||
<Size> 35 </Size>
|
||||
<Width> 1000 </Width>
|
||||
<Font> KanitRegularTTF </Font>
|
||||
<Color> 0x513C2F </Color>
|
||||
<Value> TaobinName </Value>
|
||||
</Text>
|
||||
|
||||
<Text>
|
||||
<X> 243 </X>
|
||||
<Y> 802 </Y>
|
||||
<Size> 20 </Size>
|
||||
<Width> 1000 </Width>
|
||||
<Font> KanitRegularTTF </Font>
|
||||
<Color> 0x746253 </Color>
|
||||
<Value> TNumberTaobinMemberXXX </Value>
|
||||
<Format> Telnum-mask-1 </Format>
|
||||
</Text>
|
||||
|
||||
; Header
|
||||
<Text>
|
||||
<X> 247 </X>
|
||||
<Y> 911 </Y>
|
||||
<Size> 48 </Size>
|
||||
<Width> 120 </Width>
|
||||
<Font> RobotoBold </Font>
|
||||
<Color> 0xDE794E </Color>
|
||||
<Value> PointCount </Value>
|
||||
</Text>
|
||||
|
||||
<Text>
|
||||
<X> 247 </X>
|
||||
<Y> 967 </Y>
|
||||
<Size> 25 </Size>
|
||||
<Width> 1000 </Width>
|
||||
<Font> KanitRegularTTF </Font>
|
||||
<Color> 0xDE794E </Color>
|
||||
<Value> TaobinLevelDesc1 </Value>
|
||||
</Text>
|
||||
|
||||
<Text>
|
||||
<X> 247 </X>
|
||||
<Y> 998 </Y>
|
||||
<Size> 20 </Size>
|
||||
<Width> 1000 </Width>
|
||||
<Font> KanitRegularTTF </Font>
|
||||
<Color> 0x746253 </Color>
|
||||
<Value> TaobinLevelDesc2 </Value>
|
||||
</Text>
|
||||
|
||||
<Image>
|
||||
<X> text8_X </X>
|
||||
<Y> 1610 </Y>
|
||||
<Filename> Var( DirImage + "/text8.png" )</Filename>
|
||||
</Image>
|
||||
|
||||
|
||||
<Text>
|
||||
<X> 216 </X>
|
||||
<Y> 1256 </Y>
|
||||
<Size> 12 </Size>
|
||||
<Width> 123 </Width>
|
||||
<Font> KanitRegularTTF </Font>
|
||||
<Color> taobinTextColorPoint[0] </Color>
|
||||
<Value> taobinTextPoint[0] </Value>
|
||||
<Align> center-vertical-horizontal </Align>
|
||||
</Text>
|
||||
|
||||
|
||||
<Text>
|
||||
<X> 352 </X>
|
||||
<Y> 1256 </Y>
|
||||
<Size> 12 </Size>
|
||||
<Width> 123 </Width>
|
||||
<Font> KanitRegularTTF </Font>
|
||||
<Color> taobinTextColorPoint[1] </Color>
|
||||
<Value> taobinTextPoint[1] </Value>
|
||||
<Align> center-vertical-horizontal </Align>
|
||||
</Text>
|
||||
|
||||
|
||||
<Text>
|
||||
<X> 488 </X>
|
||||
<Y> 1256 </Y>
|
||||
<Size> 12 </Size>
|
||||
<Width> 123 </Width>
|
||||
<Font> KanitRegularTTF </Font>
|
||||
<Color> taobinTextColorPoint[2] </Color>
|
||||
<Value> taobinTextPoint[2] </Value>
|
||||
<Align> center-vertical-horizontal </Align>
|
||||
</Text>
|
||||
|
||||
<Text>
|
||||
<X> 624 </X>
|
||||
<Y> 1256 </Y>
|
||||
<Size> 12 </Size>
|
||||
<Width> 123 </Width>
|
||||
<Font> KanitRegularTTF </Font>
|
||||
<Color> taobinTextColorPoint[3] </Color>
|
||||
<Value> taobinTextPoint[3] </Value>
|
||||
<Align> center-vertical-horizontal </Align>
|
||||
</Text>
|
||||
|
||||
|
||||
<Text>
|
||||
<X> 760 </X>
|
||||
<Y> 1256 </Y>
|
||||
<Size> 12 </Size>
|
||||
<Width> 123 </Width>
|
||||
<Font> KanitRegularTTF </Font>
|
||||
<Color> taobinTextColorPoint[4] </Color>
|
||||
<Value> taobinTextPoint[4] </Value>
|
||||
<Align> center-vertical-horizontal </Align>
|
||||
</Text>
|
||||
|
||||
|
||||
<Text>
|
||||
<X> 216 </X>
|
||||
<Y> 1451 </Y>
|
||||
<Size> 12 </Size>
|
||||
<Width> 123 </Width>
|
||||
<Font> KanitRegularTTF </Font>
|
||||
<Color> taobinTextColorPoint[5] </Color>
|
||||
<Value> taobinTextPoint[5] </Value>
|
||||
<Align> center-vertical-horizontal </Align>
|
||||
</Text>
|
||||
|
||||
|
||||
<Text>
|
||||
<X> 352 </X>
|
||||
<Y> 1451 </Y>
|
||||
<Size> 12 </Size>
|
||||
<Width> 123 </Width>
|
||||
<Font> KanitRegularTTF </Font>
|
||||
<Color> taobinTextColorPoint[6] </Color>
|
||||
<Value> taobinTextPoint[6] </Value>
|
||||
<Align> center-vertical-horizontal </Align>
|
||||
</Text>
|
||||
|
||||
<Text>
|
||||
<X> 488 </X>
|
||||
<Y> 1451 </Y>
|
||||
<Size> 12 </Size>
|
||||
<Width> 123 </Width>
|
||||
<Font> KanitRegularTTF </Font>
|
||||
<Color> taobinTextColorPoint[7] </Color>
|
||||
<Value> taobinTextPoint[7] </Value>
|
||||
<Align> center-vertical-horizontal </Align>
|
||||
</Text>
|
||||
|
||||
<Text>
|
||||
<X> 624 </X>
|
||||
<Y> 1451 </Y>
|
||||
<Size> 12 </Size>
|
||||
<Width> 123 </Width>
|
||||
<Font> KanitRegularTTF </Font>
|
||||
<Color> taobinTextColorPoint[8] </Color>
|
||||
<Value> taobinTextPoint[8] </Value>
|
||||
<Align> center-vertical-horizontal </Align>
|
||||
</Text>
|
||||
|
||||
<Text>
|
||||
<X> 760 </X>
|
||||
<Y> 1451 </Y>
|
||||
<Size> 12 </Size>
|
||||
<Width> 123 </Width>
|
||||
<Font> KanitRegularTTF </Font>
|
||||
<Color> taobinTextColorPoint[9] </Color>
|
||||
<Value> taobinTextPoint[9] </Value>
|
||||
<Align> center-vertical-horizontal </Align>
|
||||
</Text>
|
||||
|
||||
<Button>
|
||||
<X> 423 </X>
|
||||
<Y> 1660 </Y>
|
||||
<State> showRandomBtnState </State>
|
||||
<Filename> Var( PointRootDir + "/bn_random.png" )</Filename>
|
||||
<FilenamePress> Var( PointRootDir + "/bp_random.png" )</FilenamePress>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
; goto lid straw
|
||||
|
||||
If SELLONLINE = 1 Then
|
||||
Var CurrentPointCheck = ""
|
||||
Else
|
||||
Var CurrentPointCheck = "check"
|
||||
EndIf
|
||||
Var val3 = "X"
|
||||
AddData 37 TelephoneNumber CurrentPointSlot CurrentPointCheck val3
|
||||
|
||||
Open "ROOT/taobin_project/xml/event/lipit/page_lipit_random.xml"
|
||||
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
|
||||
|
||||
;
|
||||
<Image>
|
||||
<X> 751 </X>
|
||||
<Y> 413 </Y>
|
||||
<Filename> IMG_CNT </Filename>
|
||||
</Image>
|
||||
;
|
||||
<Text>
|
||||
<X> XPosiShowCountDownBrew </X>
|
||||
<Y> 470 </Y>
|
||||
<Align> End </Align>
|
||||
<Width> 153 </Width>
|
||||
<Size> 88 </Size>
|
||||
<Font> RobotoBold </Font
|
||||
<Color> 0x513C2F </Color>
|
||||
<Value> ShowCountDownBrewing </Value>
|
||||
</Text>
|
||||
|
||||
<EventUnitTest3>
|
||||
Var PointState[0] = 1
|
||||
Var PointState[1] = 1
|
||||
Var PointState[2] = 1
|
||||
Var PointState[3] = 1
|
||||
Var PointState[4] = 1
|
||||
Var PointState[5] = 1
|
||||
Var PointState[6] = 1
|
||||
Var PointState[7] = 1
|
||||
Var PointState[8] = 1
|
||||
Var PointState[9] = 1
|
||||
|
||||
Open "ROOT/taobin_project/xml/event/lipit/page_collect_point_pro_lipit_3.xml"
|
||||
</EventUnitTest3>
|
||||
|
||||
<EventUnitTest4>
|
||||
If show_eng = "true" Then
|
||||
Var show_eng = "false"
|
||||
Else
|
||||
Var show_eng = "true"
|
||||
EndIf
|
||||
Open "ROOT/taobin_project/xml/event/lipit/page_collect_point_pro_lipit_3.xml"
|
||||
</EventUnitTest4>
|
||||
|
||||
|
||||
</Popup>
|
||||
|
||||
270
xml/event/lipit/page_collect_point_pro_lipit_error.xml
Normal file
270
xml/event/lipit/page_collect_point_pro_lipit_error.xml
Normal file
|
|
@ -0,0 +1,270 @@
|
|||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
<Background> "0xeae6e1" </Background>
|
||||
<Volume> SoundVolume </Volume>
|
||||
|
||||
<EventOpen>
|
||||
; On open
|
||||
|
||||
|
||||
Var Timeout = 0
|
||||
SAVELOG show_eng
|
||||
|
||||
|
||||
DEBUGVAR CollectPointError
|
||||
|
||||
Var Show_Title = "Invisible"
|
||||
|
||||
If CollectPointError = "collect" Then
|
||||
|
||||
If show_eng = "true" Then
|
||||
Var DirImage = "ROOT/taobin_project/image/event/lipit/error_en"
|
||||
Var Detail_X = 127
|
||||
Var Detail_Y = 1553
|
||||
Var Detail2_X = 145
|
||||
Var Detail2_Y = 1637
|
||||
Else
|
||||
Var DirImage = "ROOT/taobin_project/image/event/lipit/error"
|
||||
Var Detail_X = 179
|
||||
Var Detail_Y = 1553
|
||||
Var Detail2_X = 131
|
||||
Var Detail2_Y = 1626
|
||||
EndIf
|
||||
|
||||
Var ImgError = DirImage + "/gift_box_locked.png"
|
||||
Var ImgError_X = 139
|
||||
Var ImgError_Y = 773
|
||||
|
||||
Var Show_Title = "Enable"
|
||||
|
||||
Var title_text_fail = DirImage + "/FAIL.png"
|
||||
Var text_fail = DirImage + "/collect_fail_text.png"
|
||||
Var text_fail2 = DirImage + "/collect_fail_description.png"
|
||||
|
||||
Var ConfirmBtn_X = 399
|
||||
Var ConfirmBtn_Y = 1771
|
||||
EndIf
|
||||
|
||||
If CollectPointError = "random" Then
|
||||
|
||||
If show_eng = "true" Then
|
||||
Var DirImage = "ROOT/taobin_project/image/event/lipit/error_en"
|
||||
Var Detail_X = 263
|
||||
Var Detail_Y = 1554
|
||||
Var Detail2_X = 117
|
||||
Var Detail2_Y = 1632
|
||||
Else
|
||||
Var DirImage = "ROOT/taobin_project/image/event/lipit/error"
|
||||
Var Detail_X = 86
|
||||
Var Detail_Y = 1513
|
||||
Var Detail2_X = 100
|
||||
Var Detail2_Y = 1667
|
||||
EndIf
|
||||
|
||||
Var ImgError = DirImage + "/gift_box_broken.png"
|
||||
Var ImgError_X = 0
|
||||
Var ImgError_Y = 637
|
||||
|
||||
Var text_fail = DirImage + "/send_reward_fail_text.png"
|
||||
Var text_fail2 = DirImage + "/send_reward_fail_description.png"
|
||||
|
||||
Var ConfirmBtn_X = 399
|
||||
Var ConfirmBtn_Y = 1771
|
||||
EndIf
|
||||
|
||||
Var newPointIndex = 0
|
||||
|
||||
; Point 1
|
||||
If Seeker.selected_a_drink = "12-03-03-0046" Then
|
||||
Var newPointIndex = 0
|
||||
EndIf
|
||||
|
||||
; Point 2
|
||||
If Seeker.selected_a_drink = "12-03-03-0047" Then
|
||||
Var newPointIndex = 1
|
||||
EndIf
|
||||
|
||||
; Point 3
|
||||
If Seeker.selected_a_drink = "12-99-05-0063" Then
|
||||
Var newPointIndex = 2
|
||||
EndIf
|
||||
|
||||
; Point 4
|
||||
If Seeker.selected_a_drink = "12-03-02-0040" Then
|
||||
Var newPointIndex = 3
|
||||
EndIf
|
||||
|
||||
; Point 5
|
||||
If Seeker.selected_a_drink = "12-05-03-0063" Then
|
||||
Var newPointIndex = 4
|
||||
EndIf
|
||||
|
||||
; Point 6
|
||||
If Seeker.selected_a_drink = "12-05-02-0080" Then
|
||||
Var newPointIndex = 5
|
||||
EndIf
|
||||
|
||||
; Point 7
|
||||
If Seeker.selected_a_drink = "12-02-03-0053" Then
|
||||
Var newPointIndex = 6
|
||||
EndIf
|
||||
|
||||
; Point 8
|
||||
If Seeker.selected_a_drink = "12-03-02-0041" Then
|
||||
Var newPointIndex = 7
|
||||
EndIf
|
||||
|
||||
; Point 9
|
||||
If Seeker.selected_a_drink = "12-02-02-0056" Then
|
||||
Var newPointIndex = 8
|
||||
EndIf
|
||||
|
||||
; Point 10
|
||||
If Seeker.selected_a_drink = "12-05-03-0064" Then
|
||||
Var newPointIndex = 9
|
||||
EndIf
|
||||
|
||||
DEBUGVAR ImgError
|
||||
DEBUGVAR ImgError_X
|
||||
DEBUGVAR ImgError_Y
|
||||
|
||||
Var CurrentPointSlot = newPointIndex + 1
|
||||
Var CurrentPointCheck = "check"
|
||||
Var val3 = "X"
|
||||
AddData 37 TelephoneNumber CurrentPointSlot CurrentPointCheck val3
|
||||
|
||||
</EventOpen>
|
||||
<Timeout> 1000 </Timeout>
|
||||
<EventTimeout>
|
||||
|
||||
Var CountDownBrewing = BREW_CNT
|
||||
|
||||
Var ShowCountDownBrewing = CountDownBrewing
|
||||
|
||||
Var Timeout = Timeout + 1
|
||||
If Timeout > 5 Then
|
||||
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
|
||||
EndIf
|
||||
|
||||
TimerReset
|
||||
Refresh
|
||||
</EventTimeout>
|
||||
|
||||
<EventMachine>
|
||||
If MachineStage = "drink-success" Then
|
||||
Var MachineState_Result = 1
|
||||
EndIf
|
||||
|
||||
If MachineStage = "drink-failed" Then
|
||||
Var MachineState_Result = 2
|
||||
EndIf
|
||||
</EventMachine>
|
||||
|
||||
|
||||
|
||||
<Image>
|
||||
<X> 0 </X>
|
||||
<Y> 380 </Y>
|
||||
<Filename> Var( DirImage + "/bg.png" ) </Filename>
|
||||
</Image>
|
||||
|
||||
<Image>
|
||||
<State> Show_Title </State>
|
||||
<X> 334 </X>
|
||||
<Y> 602 </Y>
|
||||
<Filename> title_text_fail </Filename>
|
||||
</Image>
|
||||
|
||||
<Image>
|
||||
<X> ImgError_X </X>
|
||||
<Y> ImgError_Y </Y>
|
||||
<Filename> ImgError </Filename>
|
||||
</Image>
|
||||
|
||||
<Image>
|
||||
<X> Detail_X </X>
|
||||
<Y> Detail_Y </Y>
|
||||
<Filename> text_fail </Filename>
|
||||
</Image>
|
||||
|
||||
<Image>
|
||||
<X> Detail2_X </X>
|
||||
<Y> Detail2_Y </Y>
|
||||
<Filename> text_fail2 </Filename>
|
||||
</Image>
|
||||
|
||||
|
||||
<Button>
|
||||
<X> ConfirmBtn_X </X>
|
||||
<Y> ConfirmBtn_Y </Y>
|
||||
<Filename> Var( DirImage + "/bn_confirm.png" ) </Filename>
|
||||
<FilenamePress> Var( DirImage + "/bp_confirm.png" )</FilenamePress>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
; goto lid straw
|
||||
|
||||
If PromotionIDCurrentOrder > 1 Then
|
||||
Open "ROOT/taobin_project/xml/page_display_Promo1Get1Free.xml"
|
||||
EndIf
|
||||
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
|
||||
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
|
||||
|
||||
<Video>
|
||||
<X> 0 </X>
|
||||
<Y> 0 </Y>
|
||||
<Width> 1080</Width>
|
||||
<Height> 380 </Height>
|
||||
<Loop> "true" </Loop>
|
||||
<Filename> video_menu_0 </Filename>
|
||||
</Video>
|
||||
|
||||
|
||||
;
|
||||
<Image>
|
||||
<X> 751 </X>
|
||||
<Y> 413 </Y>
|
||||
<Filename> IMG_CNT </Filename>
|
||||
</Image>
|
||||
;
|
||||
<Text>
|
||||
<X> XPosiShowCountDownBrew </X>
|
||||
<Y> 470 </Y>
|
||||
<Align> End </Align>
|
||||
<Width> 153 </Width>
|
||||
<Size> 88 </Size>
|
||||
<Font> RobotoBold </Font>
|
||||
<Color> 0x513C2F </Color>
|
||||
<Value> ShowCountDownBrewing </Value>
|
||||
</Text>
|
||||
|
||||
<EventSecurity>
|
||||
Open "/media/bt/xml/security_alarm.xml"
|
||||
</EventSecurity>
|
||||
|
||||
<EventUnitTest1>
|
||||
If show_eng = "true" Then
|
||||
Var show_eng = "false"
|
||||
Else
|
||||
Var show_eng = "true"
|
||||
EndIf
|
||||
Open "ROOT/taobin_project/xml/event/lipit/page_collect_point_pro_lipit_error.xml"
|
||||
</EventUnitTest1>
|
||||
|
||||
<EventUnitTest4>
|
||||
If CollectPointError = "collect" then
|
||||
Var CollectPointError = "random"
|
||||
Else
|
||||
Var CollectPointError = "collect"
|
||||
EndIf
|
||||
|
||||
Open "ROOT/taobin_project/xml/event/lipit/page_collect_point_pro_lipit_error.xml"
|
||||
</EventUnitTest4>
|
||||
|
||||
</Page>
|
||||
229
xml/event/lipit/page_lipit_random.xml
Normal file
229
xml/event/lipit/page_lipit_random.xml
Normal file
|
|
@ -0,0 +1,229 @@
|
|||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
<Volume> SoundVolume </Volume>
|
||||
;<Background> "0xeae6e1" </Background>
|
||||
|
||||
<EventOpen>
|
||||
Var Timeout = 0
|
||||
|
||||
Var DirImage = "ROOT/taobin_project/image/event/lipit/random"
|
||||
|
||||
|
||||
Var rewardList[0] = "lip_mask_stick"
|
||||
Var rewardList[1] = "lip_mask_stick"
|
||||
Var rewardList[2] = "lip_mask_stick"
|
||||
Var rewardList[3] = "lip_mask_stick"
|
||||
Var rewardList[4] = "lip_mask_stick"
|
||||
Var rewardList[5] = "lip_mask_stick"
|
||||
Var rewardList[6] = "lip_mask_stick"
|
||||
Var rewardList[7] = "lip_mask_stick"
|
||||
|
||||
Var rewardList[8] = "tint_me_healthy_balm"
|
||||
Var rewardList[9] = "tint_me_healthy_balm"
|
||||
Var rewardList[10] = "tint_me_healthy_balm"
|
||||
Var rewardList[11] = "tint_me_healthy_balm"
|
||||
Var rewardList[12] = "tint_me_healthy_balm"
|
||||
Var rewardList[13] = "tint_me_healthy_balm"
|
||||
Var rewardList[14] = "tint_me_healthy_balm"
|
||||
Var rewardList[15] = "tint_me_healthy_balm"
|
||||
|
||||
Var rewardList[16] = "happy_lip_set"
|
||||
Var rewardList[17] = "happy_lip_set"
|
||||
Var rewardList[18] = "happy_lip_set"
|
||||
Var rewardList[19] = "happy_lip_set"
|
||||
|
||||
|
||||
Var random_state = "Enable"
|
||||
Var show_result_state = "Invisible"
|
||||
|
||||
If show_eng = "true" Then
|
||||
Var line_text_x = 341
|
||||
Var line_text_img = DirImage + "/line_text_en.png"
|
||||
Else
|
||||
Var line_text_x = 310
|
||||
Var line_text_img = DirImage + "/line_text_th.png"
|
||||
EndIf
|
||||
|
||||
|
||||
</EventOpen>
|
||||
|
||||
<Timeout> 1000 </Timeout>
|
||||
<EventTimeout>
|
||||
DEBUGVAR Timeout
|
||||
|
||||
Var CountDownBrewing = BREW_CNT
|
||||
|
||||
Var ShowCountDownBrewing = CountDownBrewing
|
||||
|
||||
If random_state = "Enable" Then
|
||||
If Timeout > 15 Then
|
||||
SAVELOG "Timeout 15 second auto random for you"
|
||||
Function 2
|
||||
EndIf
|
||||
Else
|
||||
If Timeout > 5 Then
|
||||
If Seeker.CodeChannel = 1 Then
|
||||
If Seeker.CollectPointMain = 1 Then
|
||||
GETACCEXT Param1 23
|
||||
Open "ROOT/taobin_project/xml/page_collect_point_2.xml"
|
||||
Else
|
||||
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
|
||||
EndIf
|
||||
Else
|
||||
GETACCEXT Param1 23
|
||||
Open "ROOT/taobin_project/xml/page_collect_point_2.xml"
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
|
||||
|
||||
Var Timeout = Timeout + 1
|
||||
|
||||
TimerReset
|
||||
Refresh
|
||||
</EventTimeout>
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/inc/video.inc"
|
||||
|
||||
|
||||
; Background
|
||||
<Image>
|
||||
<X> 0 </X>
|
||||
<Y> 380 </Y>
|
||||
<Filename> Var( DirImage + "/random_bg.png") </Filename>
|
||||
</Image>
|
||||
|
||||
; random state
|
||||
<Image>
|
||||
<State> random_state </State>
|
||||
<X> 272 </X>
|
||||
<Y> 1078 </Y>
|
||||
<Filename> Var( DirImage + "/random_text.png") </Filename>
|
||||
</Image>
|
||||
|
||||
<Button>
|
||||
<X> 337 </X>
|
||||
<Y> 709 </Y>
|
||||
<State> random_state </State>
|
||||
<Filename> Var( DirImage + "/gift_box.png") </Filename>
|
||||
<FilenamePress> Var( DirImage + "/gift_box.png") </FilenamePress>
|
||||
<EventClick>
|
||||
Function 2
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
<Button>
|
||||
<X> 115 </X>
|
||||
<Y> 1311 </Y>
|
||||
<State> random_state </State>
|
||||
<Filename> Var( DirImage + "/gift_box.png") </Filename>
|
||||
<FilenamePress> Var( DirImage + "/gift_box.png") </FilenamePress>
|
||||
<EventClick>
|
||||
Function 2
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
<Button>
|
||||
<X> 588 </X>
|
||||
<Y> 1311 </Y>
|
||||
<State> random_state </State>
|
||||
<Filename> Var( DirImage + "/gift_box.png") </Filename>
|
||||
<FilenamePress> Var( DirImage + "/gift_box.png") </FilenamePress>
|
||||
<EventClick>
|
||||
Function 2
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
; show result
|
||||
<Image>
|
||||
<X> 64 </X>
|
||||
<Y> 450 </Y>
|
||||
<State> show_result_state </State>
|
||||
<Filename> rewardImage </Filename>
|
||||
</Image>
|
||||
|
||||
<Image>
|
||||
<X> line_text_x </X>
|
||||
<Y> 1798 </Y>
|
||||
<State> show_result_state </State>
|
||||
<Filename> line_text_img </Filename>
|
||||
</Image>
|
||||
|
||||
|
||||
<Function2>
|
||||
; Random coupon
|
||||
Var randResultInt = 0
|
||||
Random2 0 19 randResultInt
|
||||
|
||||
Var CodeType = ""
|
||||
Var var2 = "X"
|
||||
Var var3 = "X"
|
||||
|
||||
Var randResultStr = rewardList[randResultInt]
|
||||
If randResultStr = "lip_mask_stick" Then
|
||||
Var rewardImage = DirImage + "/reward_lip_mask_stick.png"
|
||||
Var CodeType = "126"
|
||||
EndIf
|
||||
|
||||
if randResultStr = "tint_me_healthy_balm" Then
|
||||
Var rewardImage = DirImage + "/reward_tint_me_healthy_blam.png"
|
||||
Var CodeType = "127"
|
||||
EndIf
|
||||
|
||||
If randResultStr = "happy_lip_set" Then
|
||||
Var rewardImage = DirImage + "/reward_happy_lip_set.png"
|
||||
Var CodeType = "128"
|
||||
EndIf
|
||||
|
||||
|
||||
DEBUGVAR randResultInt
|
||||
DEBUGVAR randResultStr
|
||||
DEBUGVAR CodeType
|
||||
DEBUGVAR rewardImage
|
||||
|
||||
Var show_result_state = "Enable"
|
||||
Var random_state = "Invisible"
|
||||
Var Timeout = 0
|
||||
Refresh
|
||||
|
||||
AddData 38 TelephoneNumber CodeType var2 var3
|
||||
</Function2>
|
||||
|
||||
|
||||
;
|
||||
<Image>
|
||||
<X> 751 </X>
|
||||
<Y> 413 </Y>
|
||||
<Filename> IMG_CNT </Filename>
|
||||
</Image>
|
||||
;
|
||||
<Text>
|
||||
<X> XPosiShowCountDownBrew </X>
|
||||
<Y> 470 </Y>
|
||||
<Align> End </Align>
|
||||
<Width> 153 </Width>
|
||||
<Size> 88 </Size>
|
||||
<Font> RobotoBold </Font>
|
||||
<Color> 0x513C2F </Color>
|
||||
<Value> ShowCountDownBrewing </Value>
|
||||
</Text>
|
||||
|
||||
<EventUnitTest1>
|
||||
OpenInst 2 "ROOT/taobin_project/xml/page_lid_straw.xml"
|
||||
</EventUnitTest1>
|
||||
|
||||
<EventUnitTest2>
|
||||
Var show_eng = "false"
|
||||
Open "ROOT/taobin_project/xml/event/lipit/page_lipiy_random.xml"
|
||||
</EventUnitTest2>
|
||||
|
||||
<EventUnitTest3>
|
||||
Var show_eng = "true"
|
||||
Open "ROOT/taobin_project/xml/event/lipit/page_lipiy_random.xml"
|
||||
</EventUnitTest3>
|
||||
|
||||
</Popup>
|
||||
|
|
@ -1 +1 @@
|
|||
/event/promotion_peach.xml
|
||||
/event/promotion_lipit.xml
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
/event/promotion_bad_valentine.xml
|
||||
/event/promotion_monday_banana.xml
|
||||
1
xml/event/out_put_file4.txt
Normal file
1
xml/event/out_put_file4.txt
Normal file
|
|
@ -0,0 +1 @@
|
|||
/event/promotion_powerup_free_1.xml
|
||||
1
xml/event/out_put_file_double_pro1.txt
Normal file
1
xml/event/out_put_file_double_pro1.txt
Normal file
|
|
@ -0,0 +1 @@
|
|||
/event/double_promotion_pepsi_second_cup_30_and_monday_banana.xml
|
||||
1
xml/event/out_put_file_double_pro2.txt
Normal file
1
xml/event/out_put_file_double_pro2.txt
Normal file
|
|
@ -0,0 +1 @@
|
|||
/event/double_promotion_lipit_and_monday_banana.xml
|
||||
1
xml/event/out_put_file_double_pro3.txt
Normal file
1
xml/event/out_put_file_double_pro3.txt
Normal file
|
|
@ -0,0 +1 @@
|
|||
/event/double_promotion_lipit_and_free_energy_drink.xml
|
||||
1
xml/event/out_put_file_triple_pro1.txt
Normal file
1
xml/event/out_put_file_triple_pro1.txt
Normal file
|
|
@ -0,0 +1 @@
|
|||
/event/triple_promotion_pepsi_second_cup_30_and_monday_banana_and_free_energy_drink.xml
|
||||
1
xml/event/out_put_file_triple_pro2.txt
Normal file
1
xml/event/out_put_file_triple_pro2.txt
Normal file
|
|
@ -0,0 +1 @@
|
|||
/event/triple_promotion_lipit_and_monday_banana_and_free_energy_drink.xml
|
||||
23
xml/event/powerup_free_1/page_powerup_bridge.xml
Normal file
23
xml/event/powerup_free_1/page_powerup_bridge.xml
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
<Volume> SoundVolume </Volume>
|
||||
;<Background> "0xeae6e1" </Background>
|
||||
|
||||
<EventOpen>
|
||||
Open "ROOT/taobin_project/xml/event/powerup_free_1/page_powerup_catalog.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>
|
||||
741
xml/event/powerup_free_1/page_powerup_catalog.xml
Normal file
741
xml/event/powerup_free_1/page_powerup_catalog.xml
Normal file
|
|
@ -0,0 +1,741 @@
|
|||
|
||||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
;<Background> "0xeae6e1" </Background>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventOpen>
|
||||
; On open
|
||||
Var NextPage = "-"
|
||||
|
||||
DEBUGVAR ICE_PROCESS_STATUS
|
||||
DEBUGVAR ICE_PROCESS_TXT
|
||||
|
||||
|
||||
If show_eng = "true" Then
|
||||
Var showthaiText = "Invisible"
|
||||
Var showengText = "Enable"
|
||||
Var DirImage = "ROOT/taobin_project/image/page3_en"
|
||||
Var show_btp = "ROOT/taobin_project/image/page2/bn_thai_lang_press_2.png"
|
||||
Var show_btn = "ROOT/taobin_project/image/page2/bn_thai_lang_2.png"
|
||||
|
||||
Var ice_tab_text = "Ice will be ready at "
|
||||
Var text_unavailable = "UNAVAILABLE###size=16"
|
||||
|
||||
|
||||
Else
|
||||
Var showengText = "Invisible"
|
||||
Var showthaiText = "Enable"
|
||||
|
||||
Var DirImage = "ROOT/taobin_project/image/page3"
|
||||
Var show_btp = "ROOT/taobin_project/image/page2/bn_eng_lang_2.png"
|
||||
Var show_btn = "ROOT/taobin_project/image/page2/bn_eng_lang_2.png"
|
||||
|
||||
Var ice_tab_text = "น้ำแข็งจะพร้อมเวลา "
|
||||
Var text_unavailable = "หมด###size=32"
|
||||
EndIf
|
||||
|
||||
If ICE_PROCESS_STATUS = 2 Then
|
||||
Var ice_tab_process_show = "Enable"
|
||||
Var ice_show_open = ice_tab_text + ICE_PROCESS_TXT
|
||||
Else
|
||||
Var ice_tab_process_show = "Invisible"
|
||||
EndIf
|
||||
|
||||
|
||||
; SpiralOnline
|
||||
|
||||
Var MenuVSelected2 = "Invisible"
|
||||
|
||||
Var Menu1Selected2 = "Invisible"
|
||||
Var Menu2Selected2 = "Invisible"
|
||||
Var Menu3Selected2 = "Invisible"
|
||||
Var Menu4Selected2 = "Invisible"
|
||||
|
||||
Var Menu6Selected2 = "Invisible"
|
||||
Var Menu7Selected2 = "Invisible"
|
||||
Var MenuVSelected2 = "Invisible"
|
||||
Var Menu11Selected2 = "Invisible"
|
||||
|
||||
Var Menu21Selected2 = "Invisible"
|
||||
|
||||
Var MenuVSelected2 = "Invisible"
|
||||
If SpiralOnline = "true" Then
|
||||
If Seeker = "curr" Then
|
||||
Var MenuVSelected2 = "Enable"
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
; init default
|
||||
Var Menu1Selected = "Enable"
|
||||
Var Menu2Selected = "Enable"
|
||||
Var Menu3Selected = "Enable"
|
||||
Var Menu4Selected = "Enable"
|
||||
; 5 fruit
|
||||
Var Menu5Selected = "Invisible"
|
||||
Var Menu6Selected = "Enable"
|
||||
Var Menu7Selected = "Enable"
|
||||
; 8 cocktail
|
||||
Var Menu8Selected = "Invisible"
|
||||
|
||||
If CocktailShow = "true" Then
|
||||
Var Menu7Selected = "Invisible"
|
||||
Var Menu8Selected = "Enable"
|
||||
EndIf
|
||||
|
||||
|
||||
If AppFastEnable = "true" Then
|
||||
Var Menu11Selected = "Enable"
|
||||
Var Menu21Selected = "Invisible"
|
||||
Var Menu7Selected = "Invisible"
|
||||
Else
|
||||
If MenuKidEnable = "true" Then
|
||||
Var Menu11Selected = "Invisible"
|
||||
Var Menu21Selected = "Enable"
|
||||
Var Menu7Selected = "Invisible"
|
||||
Else
|
||||
Var Menu11Selected = "Invisible"
|
||||
Var Menu21Selected = "Invisible"
|
||||
Var Menu7Selected = "Enable"
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If CocktailShow = "true" Then
|
||||
Var Menu7Selected = "Invisible"
|
||||
EndIf
|
||||
|
||||
If RecipeTag1 = "HealthTurnOn" Then
|
||||
Var Menu22Selected = "Enable"
|
||||
Else
|
||||
Var Menu22Selected = "Invisible"
|
||||
EndIf
|
||||
;
|
||||
|
||||
|
||||
|
||||
|
||||
; soda and other
|
||||
Var Menu6Selected = "Enable"
|
||||
|
||||
SAVELOG PreviseXMLFileName2
|
||||
|
||||
Var Timeout = 0
|
||||
|
||||
|
||||
|
||||
If show_eng = "true" Then
|
||||
Var DirImage2 = "ROOT/taobin_project/image/drink_option_en/"
|
||||
Var DirImageAlter = "ROOT/taobin_project/image/page3_2_en/"
|
||||
|
||||
Else
|
||||
Var DirImage2 = "ROOT/taobin_project/image/drink_option/"
|
||||
Var DirImageAlter = "ROOT/taobin_project/image/page3_2/"
|
||||
EndIf
|
||||
|
||||
</EventOpen>
|
||||
|
||||
|
||||
|
||||
; notice enable heathy menu
|
||||
|
||||
<Image>
|
||||
<X> 0 </X>
|
||||
<Y> 380 </Y>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1540 </Height>
|
||||
<Color> "0xeae6e1" </Color>
|
||||
</Image>
|
||||
|
||||
|
||||
|
||||
<Timeout> 1000 </Timeout>
|
||||
<EventTimeout>
|
||||
;DEBUGVAR ICE_PROCESS_STATUS
|
||||
|
||||
If ICE_PROCESS_STATUS = 2 Then
|
||||
Var ice_tab_process_show = "Enable"
|
||||
Var ice_show_open = ice_tab_text + ICE_PROCESS_TXT
|
||||
Else
|
||||
Var ice_tab_process_show = "Invisible"
|
||||
EndIf
|
||||
|
||||
|
||||
If NextPage = "-" Then
|
||||
|
||||
Else
|
||||
If CupOnArm = "true" Then
|
||||
If Timeout > 9 Then
|
||||
SAVELOG "COA9"
|
||||
Open NextPage
|
||||
EndIf
|
||||
Else
|
||||
If Timeout > 30 Then
|
||||
SAVELOG "COA30"
|
||||
Open NextPage
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If Timeout > 60 Then
|
||||
SAVELOG "Timeout"
|
||||
If Seeker = "next" Then
|
||||
Open "ROOT/taobin_project/xml/page_brewing3Conti.xml"
|
||||
Else
|
||||
SAVELOG "Back"
|
||||
Open "ROOT/taobin_project/xml/page_back_to_main.xml"
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If BrewCommand = "RefreshAll" Then
|
||||
Var BrewCommand = "-"
|
||||
Open CurrentXMLFileName2
|
||||
EndIf
|
||||
|
||||
If Seeker = "curr" Then
|
||||
If DoorCupPosition = "bottom" Then
|
||||
; It normal
|
||||
Var EmergencyStop = "false"
|
||||
Else
|
||||
Var EmergencyStop = "true"
|
||||
|
||||
;Open "ROOT/taobin_project/xml/page_back_to_error.xml"
|
||||
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If IgnoreNetCore = "true" Then
|
||||
|
||||
Else
|
||||
;stop_now
|
||||
|
||||
EndIf
|
||||
|
||||
|
||||
; zone cup on arm
|
||||
If CupOnArm = "true" Then
|
||||
|
||||
If CheckCupStateDoorCupClose = "" Then
|
||||
If buttonRemoveCup = "Enable" Then
|
||||
|
||||
Else
|
||||
Refresh
|
||||
EndIf
|
||||
|
||||
Var buttonRemoveCup = "Enable"
|
||||
|
||||
EndIf
|
||||
|
||||
If CheckCupStateDoorCupClose = "done" Then
|
||||
If buttonRemoveCup = "Enable" Then
|
||||
|
||||
Else
|
||||
Refresh
|
||||
EndIf
|
||||
|
||||
Var buttonRemoveCup = "Enable"
|
||||
|
||||
EndIf
|
||||
Else
|
||||
If buttonRemoveCup = "Enable" Then
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
Refresh
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
|
||||
Var Timeout = Timeout + 1
|
||||
TimerReset
|
||||
</EventTimeout>
|
||||
|
||||
|
||||
; under line
|
||||
<Image>
|
||||
<X> 0 </X>
|
||||
<Y> 494 </Y>
|
||||
<Filename> "ROOT/taobin_project/image/page3/tab_line_bottom.png" </Filename>
|
||||
</Image>
|
||||
|
||||
|
||||
; under line
|
||||
<Image>
|
||||
<X> 0 </X>
|
||||
<Y> 358 </Y>
|
||||
<Filename> "ROOT/taobin_project/image/page3/bg1.png" </Filename>
|
||||
</Image>
|
||||
|
||||
|
||||
; back
|
||||
<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>
|
||||
Var FromPowerUpPro = 0
|
||||
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_catalog2.xml"
|
||||
EndIf
|
||||
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
<Button>
|
||||
<X> 1000 </X>
|
||||
<Y> 381 </Y>
|
||||
<Filename> show_btn </Filename>
|
||||
<FilenamePress> show_btp </FilenamePress>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
; eng
|
||||
If show_eng = "true" Then
|
||||
Var show_eng = "false"
|
||||
Var text_unavailable = "หมด###size=32"
|
||||
Else
|
||||
Var show_eng = "true"
|
||||
Var text_unavailable = "UNAVAILABLE###size=16"
|
||||
EndIf
|
||||
|
||||
|
||||
Open CurrentXMLFileName2
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
;
|
||||
<ListView1>
|
||||
<Width> 1080 </Width>
|
||||
<Height> "auto" </Height>
|
||||
<X> 0 </X>
|
||||
<Y> 395 </Y>
|
||||
<Row2>
|
||||
<State>"Enable"</State>
|
||||
<Width> 896 </Width>
|
||||
<Height> 102 </Height>
|
||||
<Button>
|
||||
<Layout> "linear" </Layout>
|
||||
<State> Menu1Selected </State>
|
||||
<Filename> Var( DirImageAlter + "/bn_recommend2.png" )</Filename>
|
||||
<FilenamePress> Var( DirImageAlter + "/bp_recommend2.png") </FilenamePress>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
SAVELOG "Click rec"
|
||||
Var NextPage = "-"
|
||||
|
||||
|
||||
Open "ROOT/taobin_project/xml/page_catalog2.xml"
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
|
||||
<Button>
|
||||
<Layout> "linear" </Layout>
|
||||
<State> Menu2Selected </State>
|
||||
<Filename> Var( DirImageAlter + "/bn_coffee2.png") </Filename>
|
||||
<FilenamePress> Var( DirImageAlter + "/bp_coffee2.png") </FilenamePress>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
Var NextPage = "-"
|
||||
Open "ROOT/taobin_project/xml/page_catalog_group_coffee.xml"
|
||||
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
<Button>
|
||||
<Layout> "linear" </Layout>
|
||||
<State> Menu3Selected </State>
|
||||
<Filename> Var( DirImageAlter + "/bn_tea2.png") </Filename>
|
||||
<FilenamePress> Var( DirImageAlter + "/bp_tea2.png") </FilenamePress>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
Var NextPage = "-"
|
||||
If new_layout = "true" Then
|
||||
Open "ROOT/taobin_project/xml/page_catalog_group_tea.xml"
|
||||
Else
|
||||
Open "ROOT/taobin_project/xml/page_catalog_choose_drink3.xml"
|
||||
EndIf
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
|
||||
<Button>
|
||||
<Layout> "linear" </Layout>
|
||||
<State> Menu4Selected </State>
|
||||
<Filename> Var( DirImageAlter + "/bn_cho_ca2.png") </Filename>
|
||||
<FilenamePress> Var( DirImageAlter + "/bp_cho_ca2.png") </FilenamePress>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
Var NextPage = "-"
|
||||
If new_layout = "true" Then
|
||||
Open "ROOT/taobin_project/xml/page_catalog_group_milk.xml"
|
||||
Else
|
||||
Open "ROOT/taobin_project/xml/page_catalog_choose_drink4.xml"
|
||||
|
||||
EndIf
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
|
||||
<Button>
|
||||
<Layout> "linear" </Layout>
|
||||
<State> Menu7Selected </State>
|
||||
<Filename> Var( DirImageAlter + "/bn_protein2.png") </Filename>
|
||||
<FilenamePress> Var( DirImageAlter + "/bp_protein2.png") </FilenamePress>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
Var NextPage = "-"
|
||||
If new_layout = "true" Then
|
||||
Open "ROOT/taobin_project/xml/page_catalog_group_whey.xml"
|
||||
Else
|
||||
Open "ROOT/taobin_project/xml/page_catalog_choose_drink7.xml"
|
||||
EndIf
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
<Button>
|
||||
<Layout> "linear" </Layout>
|
||||
<State> Menu11Selected </State>
|
||||
<Filename> Var( DirImageAlter + "/bn_appfast2.png") </Filename>
|
||||
<FilenamePress> Var( DirImageAlter + "/bp_appfast2.png") </FilenamePress>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
Var NextPage = "-"
|
||||
If new_layout = "true" Then
|
||||
Open "ROOT/taobin_project/xml/page_catalog_group_appfast.xml"
|
||||
Else
|
||||
Open "ROOT/taobin_project/xml/page_catalog_choose_drink11.xml"
|
||||
EndIf
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
|
||||
|
||||
<Button>
|
||||
<Layout> "linear" </Layout>
|
||||
<State> Menu21Selected </State>
|
||||
<Filename> Var( DirImageAlter + "/bn_forkid2.png") </Filename>
|
||||
<FilenamePress> Var( DirImageAlter + "/bp_forkid2.png") </FilenamePress>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
Var NextPage = "-"
|
||||
Open "ROOT/taobin_project/xml/page_catalog_group_forkid.xml"
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
|
||||
<Button>
|
||||
<Layout> "linear" </Layout>
|
||||
<State> Menu22Selected </State>
|
||||
<Filename> Var( DirImageAlter + "/bn_health.png") </Filename>
|
||||
<FilenamePress> Var( DirImageAlter + "/bp_health.png") </FilenamePress>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
Var NextPage = "-"
|
||||
Open "ROOT/taobin_project/xml/page_catalog_group_health.xml"
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
<Button>
|
||||
<Layout> "linear" </Layout>
|
||||
<State> Menu8Selected </State>
|
||||
<Filename> Var( DirImageAlter + "/bn_cocktail.png") </Filename>
|
||||
<FilenamePress> Var( DirImageAlter + "/bp_cocktail.png") </FilenamePress>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
Var NextPage = "-"
|
||||
Open "ROOT/taobin_project/xml/page_catalog_group_cocktail.xml"
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
<Button>
|
||||
<Layout> "linear" </Layout>
|
||||
<State> Menu6Selected </State>
|
||||
<Filename> Var( DirImageAlter + "/bn_sodada2.png") </Filename>
|
||||
<FilenamePress> Var( DirImageAlter + "/bp_sodada2.png") </FilenamePress>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
Var NextPage = "-"
|
||||
If new_layout = "true" Then
|
||||
Open "ROOT/taobin_project/xml/page_catalog_group_other.xml"
|
||||
Else
|
||||
Open "ROOT/taobin_project/xml/page_catalog_choose_drink6.xml"
|
||||
EndIf
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
<Button>
|
||||
<Layout> "linear" </Layout>
|
||||
<State> MenuVSelected2 </State>
|
||||
<Filename> Var( DirImageAlter + "/bn_vending2.png") </Filename>
|
||||
<FilenamePress> Var( DirImageAlter + "/bp_vending2.png") </FilenamePress>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
Var NextPage = "-"
|
||||
Open "ROOT/taobin_project/spiral/xml/page_catalog_vending_machine.xml"
|
||||
</EventClick>
|
||||
</Button>
|
||||
</Row2>
|
||||
</ListView1>
|
||||
|
||||
<EventWebApp>
|
||||
|
||||
DEBUGVAR web_ready
|
||||
If web_ready = "true" Then
|
||||
If web_ref = QRCODE99x Then
|
||||
|
||||
Var web_readyOK = web_ready
|
||||
Var web_telnumOK = web_telnum
|
||||
|
||||
Var web_app_prepar = "true"
|
||||
|
||||
; Handle penetrator
|
||||
|
||||
If Only18 = "true" Then
|
||||
|
||||
Open "ROOT/taobin_project/xml/page_identity18_verification.xml"
|
||||
Else
|
||||
|
||||
Open "/mnt/sdcard/coffeevending/taobin_project/xml/page_payment.xml"
|
||||
EndIf
|
||||
|
||||
; Open "/mnt/sdcard/coffeevending/taobin_project/xml/page_payment.xml"
|
||||
|
||||
EndIf
|
||||
Else
|
||||
EndIf
|
||||
|
||||
</EventWebApp>
|
||||
|
||||
; welcome
|
||||
<Image>
|
||||
<X> 99 </X>
|
||||
<Y> 500 </Y>
|
||||
<Filename> "ROOT/taobin_project/image/event/powerup_free_1/text1.png" </Filename>
|
||||
</Image>
|
||||
|
||||
<FrameScroll>
|
||||
<Max> 16 </Max>
|
||||
<X> 99 </X>
|
||||
<Y> 697 </Y>
|
||||
<Width> 1080 </Width>
|
||||
<ScrollHeight> "auto" </ScrollHeight>
|
||||
<Scroll> "Vertical" </Scroll>
|
||||
<Column> 2 </Column>
|
||||
<Script>
|
||||
Var block_index_override = 0
|
||||
Var block_index_move = 0
|
||||
</Script>
|
||||
; - - -
|
||||
;
|
||||
; - 12-05-02-0034 12-05-03-0034
|
||||
<Block>
|
||||
<MarginLeft> 33 </MarginLeft>
|
||||
<MarginTop> 22 </MarginTop>
|
||||
<Width> 410 </Width>
|
||||
<Height> 540 </Height>
|
||||
<State> Flag( 12-05-02-0034.Button,$Sum1205020034) </State>
|
||||
<Button>
|
||||
<State> $Sum1205020034 </State>
|
||||
<Filename> "ROOT/taobin_project/image/event/powerup_free_1//bn_iced_energy_drink.png" </Filename>
|
||||
<FilenamePress> "ROOT/taobin_project/image/event/powerup_free_1//bp_iced_energy_drink.png" </FilenamePress>
|
||||
<FilenameDisable> "ROOT/taobin_project/image/event/powerup_free_1//bd_iced_energy_drink.png" </FilenameDisable>
|
||||
<OverlayImage> xmlpro( 12-05-03-0034, "ROOT/taobin_project/image/menu_overlay_set/button_overlay_%s_posi1.png") </OverlayImage>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventOnClick>
|
||||
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 = 1
|
||||
Var OriginalPriceD2 = $12-05-02-0034.Price
|
||||
|
||||
Var PriceD3 = $-.Price
|
||||
Var PD_CODE1 = "##-##-##-####"
|
||||
Var PD_CODE2 = "12-05-02-0034"
|
||||
Var PD_CODE3 = "##-##-##-####"
|
||||
Var PD_STAGE_1 = "Disable2"
|
||||
Var PD_STAGE_2 = $12-05-02-0034.Button
|
||||
Var PD_STAGE_3 = "Disable2"
|
||||
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" "-"
|
||||
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 = $##-##-##-####.NameE
|
||||
Var menu_desc_eng_blender = $##-##-##-####.descriptionE
|
||||
Var menu_name_thai_blender = $##-##-##-####.Name
|
||||
Var menu_desc_thai_blender = $##-##-##-####.description
|
||||
|
||||
DEBUGVAR PD_STAGE_1
|
||||
DEBUGVAR PD_STAGE_2
|
||||
DEBUGVAR PD_STAGE_3
|
||||
Var SelectDrinkType = 0
|
||||
|
||||
Var FromPowerUpPro = 1
|
||||
|
||||
|
||||
Open "ROOT/taobin_project/xml/page_topping_select5.xml"
|
||||
|
||||
</EventOnClick>
|
||||
</Button>
|
||||
</Block>
|
||||
|
||||
|
||||
|
||||
; - - -
|
||||
; ==================> Len = 17
|
||||
; - 12-05-02-0035 12-05-03-0035
|
||||
<Block>
|
||||
<MarginLeft> 33 </MarginLeft>
|
||||
<MarginTop> 22 </MarginTop>
|
||||
<Width> 410 </Width>
|
||||
<Height> 540 </Height>
|
||||
<State> Flag( 12-05-02-0035.Button,$Sum1205020035) </State>
|
||||
<Button>
|
||||
<State> $Sum1205020035 </State>
|
||||
<Filename> "ROOT/taobin_project/image/event/powerup_free_1//bn_iced_energy_drink_soda.png" </Filename>
|
||||
<FilenamePress> "ROOT/taobin_project/image/event/powerup_free_1//bp_iced_energy_drink_soda.png" </FilenamePress>
|
||||
<FilenameDisable> "ROOT/taobin_project/image/event/powerup_free_1//bd_iced_energy_drink_soda.png" </FilenameDisable>
|
||||
<OverlayImage> xmlpro( 12-05-03-0035, "ROOT/taobin_project/image/menu_overlay_set/button_overlay_%s_posi1.png") </OverlayImage>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventOnClick>
|
||||
Var NameDrink = "TAO POWER DRINK SODA"
|
||||
Var NameDrinkTH = "เต่าทรงพลังโซดา"
|
||||
Var DrinkDescriptionTH = "เครื่องดื่มเต่าทรงพลัง โซดา (มีคาเฟอีน)"
|
||||
Var DrinkDescription = "Medicine drink, Soda & Ice"
|
||||
Var PictureDrink = "ROOT/taobin_project/image/page_drink_picture2_n/" + "bn_iced_energy_drink_soda.png"
|
||||
Var OpenFromXML = CurrentXMLFileName2
|
||||
Var PriceD1 = $-.Price
|
||||
Var PriceD2 = 1
|
||||
Var OriginalPriceD2 = $12-05-02-0035.Price
|
||||
|
||||
Var PriceD3 = $-.Price
|
||||
Var PD_CODE1 = "##-##-##-####"
|
||||
Var PD_CODE2 = "12-05-02-0035"
|
||||
Var PD_CODE3 = "##-##-##-####"
|
||||
Var PD_STAGE_1 = "Disable2"
|
||||
Var PD_STAGE_2 = $12-05-02-0035.Button
|
||||
Var PD_STAGE_3 = "Disable2"
|
||||
Var OverlayMenuFilter !assigned xmlpro( 12-05-03-0035, "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-0035"
|
||||
Else
|
||||
If PD_STAGE_1 = "Enable" Then
|
||||
Topping "Load" "-"
|
||||
Else
|
||||
Topping "Load" "-"
|
||||
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-0035.NameE
|
||||
Var menu_desc_eng_cold = $12-05-02-0035.descriptionE
|
||||
Var menu_name_thai_cold = $12-05-02-0035.Name
|
||||
Var menu_desc_thai_cold = $12-05-02-0035.description
|
||||
|
||||
Var menu_name_eng_blender = $##-##-##-####.NameE
|
||||
Var menu_desc_eng_blender = $##-##-##-####.descriptionE
|
||||
Var menu_name_thai_blender = $##-##-##-####.Name
|
||||
Var menu_desc_thai_blender = $##-##-##-####.description
|
||||
|
||||
DEBUGVAR PD_STAGE_1
|
||||
DEBUGVAR PD_STAGE_2
|
||||
DEBUGVAR PD_STAGE_3
|
||||
Var SelectDrinkType = 0
|
||||
|
||||
Var FromPowerUpPro = 1
|
||||
|
||||
|
||||
Open "ROOT/taobin_project/xml/page_topping_select5.xml"
|
||||
|
||||
</EventOnClick>
|
||||
</Button>
|
||||
|
||||
</Block>
|
||||
</FrameScroll>
|
||||
; Cart
|
||||
<Button>
|
||||
<X> 915 </X>
|
||||
<Y> 1769 </Y>
|
||||
<State> showCart </State>
|
||||
<Filename> cart_image_bn </Filename>
|
||||
<FilenamePress> cart_image_bp </FilenamePress>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
Open "ROOT/taobin_project/xml/page_payment_multi.xml"
|
||||
</EventClick>
|
||||
</Button>
|
||||
</Popup>
|
||||
188
xml/event/powerup_free_1/page_powerup_consent.xml
Normal file
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_catalog2.xml"
|
||||
EndIf
|
||||
</EventOnClick>
|
||||
</Button>
|
||||
|
||||
</Popup>
|
||||
535
xml/event/powerup_free_1/page_powerup_identity.xml
Normal file
535
xml/event/powerup_free_1/page_powerup_identity.xml
Normal file
|
|
@ -0,0 +1,535 @@
|
|||
<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
|
||||
|
||||
; Reset
|
||||
Var IDNum = ""
|
||||
|
||||
</EventOpen>
|
||||
|
||||
<EventActionOk>
|
||||
|
||||
DEBUGVAR Ext1a
|
||||
DEBUGVAR Ext1b
|
||||
DEBUGVAR Ext1c
|
||||
|
||||
; example
|
||||
|
||||
If StepGetServer = 1 Then
|
||||
|
||||
If Ext1a = "ok" Then
|
||||
If LegitAge = "true" Then
|
||||
Open "ROOT/taobin_project/xml/page_payment.xml"
|
||||
Else
|
||||
Var load_gif_stage = "Invisible"
|
||||
Var FailState = "Enable"
|
||||
EndIf
|
||||
Else
|
||||
; Error
|
||||
Var load_gif_stage = "Invisible"
|
||||
Var FullQuotaState = "Enable"
|
||||
EndIf
|
||||
|
||||
EndIf
|
||||
|
||||
Refresh
|
||||
|
||||
; 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"
|
||||
Refresh
|
||||
|
||||
</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"
|
||||
DEBUGVAR IDNum
|
||||
GETACCEXT IDNum 33
|
||||
Var StepGetServer = 1
|
||||
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
|
||||
DEBUGVAR IDNum
|
||||
DEBUGVAR LegitAge
|
||||
|
||||
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>
|
||||
|
||||
|
||||
; 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 Param1 = ""
|
||||
Var Param2 = ""
|
||||
Var Param3 = ""
|
||||
Var TestIDNum = "1104500029416"
|
||||
Var DefaultTel = "0899999999"
|
||||
|
||||
AddData 44 DefaultTel TestIDNum Param1 Param2
|
||||
</EventUnitTest3>
|
||||
|
||||
<EventUnitTest4>
|
||||
GETACCEXT TestIDNum 33
|
||||
</EventUnitTest4>
|
||||
|
||||
</Popup>
|
||||
|
||||
11402
xml/event/promotion_lipit.xml
Normal file
11402
xml/event/promotion_lipit.xml
Normal file
File diff suppressed because it is too large
Load diff
11366
xml/event/promotion_monday_banana.xml
Normal file
11366
xml/event/promotion_monday_banana.xml
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -1 +1 @@
|
|||
Var BigButtonEnable = "Invisible"
|
||||
Open "ROOT/taobin_project/xml/event/page_catalog_group_pro_monday_banana.xml"
|
||||
|
|
|
|||
1
xml/event/promotion_onclick4.inc
Normal file
1
xml/event/promotion_onclick4.inc
Normal file
|
|
@ -0,0 +1 @@
|
|||
Var BigButtonEnable = "Invisible"
|
||||
|
|
@ -11313,7 +11313,7 @@ LIMENADE SODA" </Value>
|
|||
|
||||
<Button>
|
||||
<X> 42 </X>
|
||||
<Y> 520 </Y>
|
||||
<Y> 518 </Y>
|
||||
|
||||
<State> BigButtonEnable </State>
|
||||
<Filename>
|
||||
|
|
@ -11352,7 +11352,7 @@ LIMENADE SODA" </Value>
|
|||
|
||||
<Video>
|
||||
<X> 42 </X>
|
||||
<Y> 520 </Y>
|
||||
<Y> 518 </Y>
|
||||
<Width> 484 </Width>
|
||||
<Height> 616 </Height>
|
||||
<Loop> "true" </Loop>
|
||||
|
|
@ -11370,7 +11370,7 @@ LIMENADE SODA" </Value>
|
|||
|
||||
<Video>
|
||||
<X> 42 </X>
|
||||
<Y> 520 </Y>
|
||||
<Y> 518 </Y>
|
||||
<Width> 484 </Width>
|
||||
<Height> 616 </Height>
|
||||
<State>
|
||||
|
|
|
|||
11373
xml/event/promotion_powerup_free_1.xml
Normal file
11373
xml/event/promotion_powerup_free_1.xml
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
<Button>
|
||||
<X> 42 </X>
|
||||
<Y> 520 </Y>
|
||||
<Y> 518 </Y>
|
||||
|
||||
<State> BigButtonEnable </State>
|
||||
<Filename>
|
||||
|
|
@ -33,14 +33,14 @@
|
|||
</FilenameDisable>
|
||||
<EventOnClick>
|
||||
|
||||
Open "ROOT/taobin_project/xml/page_catalog_group_pro_peach.xml"
|
||||
Open "ROOT/taobin_project/xml/page_catalog_group_pro_lipit.xml"
|
||||
|
||||
</EventOnClick>
|
||||
|
||||
|
||||
<Video>
|
||||
<X> 42 </X>
|
||||
<Y> 520 </Y>
|
||||
<Y> 518 </Y>
|
||||
<Width> 484 </Width>
|
||||
<Height> 616 </Height>
|
||||
<Loop> "true" </Loop>
|
||||
|
|
@ -53,12 +53,12 @@
|
|||
EndIf
|
||||
)
|
||||
</State>
|
||||
<Filename> "ROOT/taobin_project/image/event/pro_peach_th.mp4" </Filename>
|
||||
<Filename> "ROOT/taobin_project/image/event/lipit/pro_lipit_th.mp4" </Filename>
|
||||
</Video>
|
||||
|
||||
<Video>
|
||||
<X> 42 </X>
|
||||
<Y> 520 </Y>
|
||||
<Y> 518 </Y>
|
||||
<Width> 484 </Width>
|
||||
<Height> 616 </Height>
|
||||
<State>
|
||||
|
|
@ -71,7 +71,7 @@
|
|||
)
|
||||
</State>
|
||||
<Loop> "true" </Loop>
|
||||
<Filename> "ROOT/taobin_project/image/event/pro_peach_en.mp4" </Filename>
|
||||
<Filename> "ROOT/taobin_project/image/event/lipit/pro_lipit_en.mp4" </Filename>
|
||||
</Video>
|
||||
|
||||
</Button>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
<Button>
|
||||
<X> 42 </X>
|
||||
<Y> 520 </Y>
|
||||
<Y> 518 </Y>
|
||||
|
||||
<State> BigButtonEnable </State>
|
||||
<Filename>
|
||||
|
|
@ -33,47 +33,10 @@
|
|||
</FilenameDisable>
|
||||
<EventOnClick>
|
||||
|
||||
Open "ROOT/taobin_project/xml/page_catalog_group_pro_bad_valentine.xml"
|
||||
###EventOnClick
|
||||
|
||||
</EventOnClick>
|
||||
|
||||
|
||||
<Video>
|
||||
<X> 42 </X>
|
||||
<Y> 520 </Y>
|
||||
<Width> 484 </Width>
|
||||
<Height> 616 </Height>
|
||||
<Loop> "true" </Loop>
|
||||
<State>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = "Invisible"
|
||||
Else
|
||||
Var return = "Enable"
|
||||
EndIf
|
||||
)
|
||||
</State>
|
||||
<Filename> "ROOT/taobin_project/image/event/bad_valentine/bad_valentine_th.mp4" </Filename>
|
||||
</Video>
|
||||
|
||||
<Video>
|
||||
<X> 42 </X>
|
||||
<Y> 520 </Y>
|
||||
<Width> 484 </Width>
|
||||
<Height> 616 </Height>
|
||||
<State>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = "Enable"
|
||||
Else
|
||||
Var return = "Invisible"
|
||||
EndIf
|
||||
)
|
||||
</State>
|
||||
<Loop> "true" </Loop>
|
||||
<Filename> "ROOT/taobin_project/image/event/bad_valentine/bad_valentine_en.mp4" </Filename>
|
||||
</Video>
|
||||
|
||||
</Button>
|
||||
|
||||
<EventUnitTest1>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
<Button>
|
||||
<X> 42 </X>
|
||||
<Y> 520 </Y>
|
||||
<Y> 518 </Y>
|
||||
|
||||
<State> BigButtonEnable </State>
|
||||
<Filename>
|
||||
|
|
@ -40,7 +40,7 @@
|
|||
|
||||
<Video>
|
||||
<X> 42 </X>
|
||||
<Y> 520 </Y>
|
||||
<Y> 518 </Y>
|
||||
<Width> 484 </Width>
|
||||
<Height> 616 </Height>
|
||||
<Loop> "true" </Loop>
|
||||
|
|
@ -58,7 +58,7 @@
|
|||
|
||||
<Video>
|
||||
<X> 42 </X>
|
||||
<Y> 520 </Y>
|
||||
<Y> 518 </Y>
|
||||
<Width> 484 </Width>
|
||||
<Height> 616 </Height>
|
||||
<State>
|
||||
|
|
|
|||
48
xml/event/promotion_template4.inc
Normal file
48
xml/event/promotion_template4.inc
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
<Button>
|
||||
<X> 42 </X>
|
||||
<Y> 518 </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>
|
||||
|
|
@ -1,53 +1,151 @@
|
|||
DEBUGVAR NetworkStatus
|
||||
DEBUGVAR SELLONLINE
|
||||
DEBUGVAR PayOfflineMode
|
||||
DEBUGVAR CocktailShow
|
||||
DEBUGVAR OpenFromPageBoard
|
||||
|
||||
DEBUGVAR LipitPro
|
||||
DEBUGVAR MondayBananaPro
|
||||
DEBUGVAR PepsiSecondCup30Enable
|
||||
DEBUGVAR FreeEnergyDrink
|
||||
DEBUGVAR EnergyDrinkEnable
|
||||
|
||||
If CocktailShow = "true" Then
|
||||
|
||||
If OpenFromPageBoard = 1 Then
|
||||
OpenInst 2 "ROOT/taobin_project/xml/page_catalog_group_recommend.xml"
|
||||
|
||||
Else
|
||||
Open "ROOT/taobin_project/xml/page_catalog_group_recommend.xml"
|
||||
EndIf
|
||||
|
||||
Else
|
||||
; check profile to enable free energy drink promotion
|
||||
STRCONTAIN "ProEnergyDrinkFreePerCardID" XMLProfile EnableFreeEnergyDrink
|
||||
|
||||
DEBUGVAR FreeEnergyDrink
|
||||
|
||||
;Var EnableFreeEnergyDrink = "true"
|
||||
DEBUGVAR EnableFreeEnergyDrink
|
||||
; zone promote
|
||||
If OpenFromPageBoard = 1 Then
|
||||
DEBUGVAR FreeEnergyDrink
|
||||
DEBUGVAR BigButtonEnable
|
||||
|
||||
If PepsiSecondCup30Enable = 1 Then
|
||||
If LipitPro = 1 Then
|
||||
Var BigButtonEnable = "Enable"
|
||||
OpenInst 2 "ROOT/taobin_project/xml/event/promotion_pepsi_second_cup_30.xml"
|
||||
Var OpenFromPageBoard = 0
|
||||
|
||||
Else
|
||||
If ProBadValentineEnable = 1 Then
|
||||
Var BigButtonEnable = "Enable"
|
||||
OpenInst 2 "ROOT/taobin_project/xml/event/promotion_bad_valentine.xml"
|
||||
Var OpenFromPageBoard = 0
|
||||
|
||||
|
||||
If MondayBananaPro = 1 Then
|
||||
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/page_catalog_group_recommend.xml"
|
||||
|
||||
If EnableFreeEnergyDrink = "true" Then
|
||||
If FreeEnergyDrink = 1 Then
|
||||
Var FreePowerup = "Enable"
|
||||
OpenInst 2 "ROOT/taobin_project/xml/event/double_promotion_lipit_and_free_energy_drink.xml"
|
||||
Var OpenFromPageBoard = 0
|
||||
Else
|
||||
OpenInst 2 "ROOT/taobin_project/xml/event/promotion_lipit.xml"
|
||||
Var OpenFromPageBoard = 0
|
||||
EndIf
|
||||
Else
|
||||
OpenInst 2 "ROOT/taobin_project/xml/event/promotion_lipit.xml"
|
||||
Var OpenFromPageBoard = 0
|
||||
EndIf
|
||||
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.xml"
|
||||
Var OpenFromPageBoard = 0
|
||||
Else
|
||||
OpenInst 2 "ROOT/taobin_project/xml/event/promotion_pepsi_second_cup_30.xml"
|
||||
Var OpenFromPageBoard = 0
|
||||
EndIf
|
||||
Else
|
||||
|
||||
If EnableFreeEnergyDrink = "true" Then
|
||||
If FreeEnergyDrink = 1 Then
|
||||
Var FreePowerup = "Enable"
|
||||
OpenInst 2 "ROOT/taobin_project/xml/event/promotion_powerup_free_1.xml"
|
||||
Var OpenFromPageBoard = 0
|
||||
Else
|
||||
OpenInst 2 "ROOT/taobin_project/xml/page_catalog_group_recommend.xml"
|
||||
Var OpenFromPageBoard = 0
|
||||
EndIf
|
||||
Else
|
||||
OpenInst 2 "ROOT/taobin_project/xml/page_catalog_group_recommend.xml"
|
||||
Var OpenFromPageBoard = 0
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
Else
|
||||
If PepsiSecondCup30Enable = 1 Then
|
||||
If LipitPro = 1 Then
|
||||
Var BigButtonEnable = "Enable"
|
||||
Open "ROOT/taobin_project/xml/event/promotion_pepsi_second_cup_30.xml"
|
||||
|
||||
Else
|
||||
If ProBadValentineEnable = 1 Then
|
||||
Var BigButtonEnable = "Enable"
|
||||
Open "ROOT/taobin_project/xml/event/promotion_bad_valentine.xml"
|
||||
If MondayBananaPro = 1 Then
|
||||
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/page_catalog_group_recommend.xml"
|
||||
If EnableFreeEnergyDrink = "true" Then
|
||||
If FreeEnergyDrink = 1 Then
|
||||
Var FreePowerup = "Enable"
|
||||
Open "ROOT/taobin_project/xml/event/double_promotion_lipit_and_free_energy_drink.xml"
|
||||
Else
|
||||
Open "ROOT/taobin_project/xml/event/promotion_lipit.xml"
|
||||
EndIf
|
||||
Else
|
||||
Open "ROOT/taobin_project/xml/event/promotion_lipit.xml"
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
EndIf
|
||||
|
||||
|
||||
Else
|
||||
If PepsiSecondCup30Enable = 1 Then
|
||||
Var BigButtonEnable = "Enable"
|
||||
If MondayBananaPro = 1 Then
|
||||
If EnableFreeEnergyDrink = "true" Then
|
||||
If FreeEnergyDrink = 1 Then
|
||||
Var FreePowerup = "Enable"
|
||||
Open "ROOT/taobin_project/xml/event/triple_promotion_pepsi_second_cup_30_and_monday_banana_and_free_energy_drink.xml"
|
||||
Else
|
||||
Open "ROOT/taobin_project/xml/event/double_promotion_pepsi_second_cup_30_and_monday_banana.xml"
|
||||
EndIf
|
||||
Else
|
||||
Open "ROOT/taobin_project/xml/event/double_promotion_pepsi_second_cup_30_and_monday_banana.xml"
|
||||
EndIf
|
||||
Else
|
||||
Open "ROOT/taobin_project/xml/event/promotion_pepsi_second_cup_30.xml"
|
||||
EndIf
|
||||
Else
|
||||
If EnableFreeEnergyDrink = "true" Then
|
||||
If FreeEnergyDrink = 1 Then
|
||||
Var FreePowerup = "Enable"
|
||||
Open "ROOT/taobin_project/xml/event/promotion_powerup_free_1.xml"
|
||||
Else
|
||||
Open "ROOT/taobin_project/xml/page_catalog_group_recommend.xml"
|
||||
EndIf
|
||||
Else
|
||||
Open "ROOT/taobin_project/xml/page_catalog_group_recommend.xml"
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
Var OpenFromPageBoard = 0
|
||||
|
|
|
|||
|
|
@ -69,10 +69,24 @@ Var PepsiSecondCup30Enable = 0
|
|||
Var PepsiSecondCup30DiscountEnable = 0
|
||||
Var FromPepsiSecondCup30 = 0
|
||||
|
||||
; Enable Lipit Promotion, 18 Mar - 12 Apr
|
||||
Var LipitPro = 0
|
||||
Var FromLipitPro = 0
|
||||
|
||||
; Enable Monday Banana Promotion, every Monday start 11 Mar - 19 Apr
|
||||
Var MondayBananaPro = 0
|
||||
Var FromMondayBananaPro = 0
|
||||
|
||||
; Enable Free Energy Drink, 18 Mar - 30 Apr
|
||||
Var FreeEnergyDrink = 0
|
||||
Var FromPowerUpPro = 0
|
||||
Var FreePowerup = "Invisible"
|
||||
|
||||
Var NewCollectPoint = 1
|
||||
|
||||
Var NewFlowPaymentCode = 0
|
||||
|
||||
|
||||
If SystemDateMonthInt = 10 Then
|
||||
|
||||
|
||||
|
|
@ -150,6 +164,55 @@ If SystemDateMonthInt = 3 Then
|
|||
EndIf
|
||||
EndIf
|
||||
|
||||
If SystemDateDayInt = 11 Then
|
||||
Var MondayBananaPro = 1
|
||||
EndIf
|
||||
|
||||
If SystemDateDayInt = 18 Then
|
||||
Var MondayBananaPro = 1
|
||||
EndIf
|
||||
|
||||
If SystemDateDayInt = 25 Then
|
||||
Var MondayBananaPro = 1
|
||||
EndIf
|
||||
|
||||
If SystemDateDayInt >= 13 Then
|
||||
Var FreeEnergyDrink = 1
|
||||
EndIf
|
||||
|
||||
If SystemDateDayInt >= 18 Then
|
||||
Var LipitPro = 1
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If SystemDateMonthInt = 4 Then
|
||||
|
||||
Var FreeEnergyDrink = 1
|
||||
|
||||
If SystemDateDayInt = 1 Then
|
||||
Var MondayBananaPro = 1
|
||||
EndIf
|
||||
|
||||
If SystemDateDayInt = 8 Then
|
||||
Var MondayBananaPro = 1
|
||||
EndIf
|
||||
|
||||
If SystemDateDayInt = 15 Then
|
||||
Var MondayBananaPro = 1
|
||||
EndIf
|
||||
|
||||
If SystemDateDayInt = 22 Then
|
||||
Var MondayBananaPro = 1
|
||||
EndIf
|
||||
|
||||
If SystemDateDayInt = 29 Then
|
||||
Var MondayBananaPro = 1
|
||||
EndIf
|
||||
|
||||
If SystemDateDayInt <= 12 Then
|
||||
Var LipitPro = 1
|
||||
EndIf
|
||||
|
||||
EndIf
|
||||
|
||||
|
||||
|
|
@ -181,16 +244,27 @@ If BoxID = 201316 Then
|
|||
EndIf
|
||||
|
||||
If BoxID = 105005 Then
|
||||
Var ProBadValentineEnable = 0
|
||||
Var PepsiSecondCup30Enable = 1
|
||||
Var PepsiSecondCup30DiscountEnable = 1
|
||||
Var NewFlowPaymentCode = 1
|
||||
|
||||
Var LipitPro = 0
|
||||
Var MondayBananaPro = 1
|
||||
Var FreeEnergyDrink = 0
|
||||
EndIf
|
||||
|
||||
If BoxID = 172644 Then
|
||||
Var ProPeachEnable = 1
|
||||
EndIf
|
||||
|
||||
If BoxID = 176757 Then
|
||||
Var ProBadValentineEnable = 0
|
||||
Var PepsiSecondCup30Enable = 0
|
||||
Var MondayBananaPro = 1
|
||||
Var LipitPro = 1
|
||||
Var FreeEnergyDrink = 1
|
||||
EndIf
|
||||
|
||||
|
||||
|
||||
If BoxID = 174758 Then
|
||||
|
|
@ -243,12 +317,31 @@ If InternationalEnable = 1 Then
|
|||
Var RerunProEnable = 0
|
||||
Var ProPeachEnable = 0
|
||||
Var ProBadValentineEnable = 0
|
||||
Var FreeEnergyDrink = 0
|
||||
EndIf
|
||||
|
||||
If XMLProfile = "taobin_notopup" Then
|
||||
Var MilkChoiceVeganEnable = 0
|
||||
Var GameEnableFromTrickerEv = 0
|
||||
Var TamatianEnable = 0
|
||||
Var MayDayRunEnable = 0
|
||||
Var MomDayEnable = 0
|
||||
Var PepsiProEnable = 0
|
||||
Var PepsiPromoteVideo = 0
|
||||
Var PepsiProCodeEnable = 0
|
||||
Var MysteryProEnable = 0
|
||||
Var PepweenEnable = 0
|
||||
Var RerunProEnable = 0
|
||||
Var ProPeachEnable = 0
|
||||
Var ProBadValentineEnable = 0
|
||||
Var FreeEnergyDrink = 0
|
||||
EndIf
|
||||
|
||||
If BananaSyrupEnable = "true" Then
|
||||
|
||||
Else
|
||||
Var ProBadValentineEnable = 0
|
||||
Var MondayBananaPro = 0
|
||||
EndIf
|
||||
|
||||
|
||||
|
|
@ -258,5 +351,11 @@ Else
|
|||
Var ProPeachEnable = 0
|
||||
EndIf
|
||||
|
||||
If EnergyDrinkEnable = "true" Then
|
||||
|
||||
Else
|
||||
Var FreeEnergyDrink = 0
|
||||
EndIf
|
||||
|
||||
|
||||
DEBUGVAR FreePowerup
|
||||
File diff suppressed because it is too large
Load diff
1
xml/event/triple_promotion_onclick1.inc
Normal file
1
xml/event/triple_promotion_onclick1.inc
Normal file
|
|
@ -0,0 +1 @@
|
|||
Var BigButtonEnable = "Invisible"
|
||||
1
xml/event/triple_promotion_onclick2.inc
Normal file
1
xml/event/triple_promotion_onclick2.inc
Normal file
|
|
@ -0,0 +1 @@
|
|||
Var BigButtonEnable = "Invisible"
|
||||
File diff suppressed because it is too large
Load diff
163
xml/event/triple_promotion_template1.inc
Normal file
163
xml/event/triple_promotion_template1.inc
Normal file
|
|
@ -0,0 +1,163 @@
|
|||
<Button>
|
||||
<X> 42 </X>
|
||||
<Y> 518 </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/page_catalog_group_pro_pepsi_second_cup_30.xml"
|
||||
|
||||
</EventOnClick>
|
||||
|
||||
|
||||
<Video>
|
||||
<X> 42 </X>
|
||||
<Y> 518 </Y>
|
||||
<Width> 484 </Width>
|
||||
<Height> 616 </Height>
|
||||
<Loop> "true" </Loop>
|
||||
<State>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = "Invisible"
|
||||
Else
|
||||
Var return = "Enable"
|
||||
EndIf
|
||||
)
|
||||
</State>
|
||||
<Filename> "ROOT/taobin_project/image/event/pepsi_second_cup_30/pro_pepsi_second_cup_30_th.mp4" </Filename>
|
||||
</Video>
|
||||
|
||||
<Video>
|
||||
<X> 42 </X>
|
||||
<Y> 518 </Y>
|
||||
<Width> 484 </Width>
|
||||
<Height> 616 </Height>
|
||||
<State>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = "Enable"
|
||||
Else
|
||||
Var return = "Invisible"
|
||||
EndIf
|
||||
)
|
||||
</State>
|
||||
<Loop> "true" </Loop>
|
||||
<Filename> "ROOT/taobin_project/image/event/pepsi_second_cup_30/pro_pepsi_second_cup_30_en.mp4" </Filename>
|
||||
</Video>
|
||||
|
||||
</Button>
|
||||
|
||||
<Button>
|
||||
<X> 559 </X>
|
||||
<Y> 519 </Y>
|
||||
|
||||
<State> BigButtonEnable </State>
|
||||
<Filename>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###second_normal_eng
|
||||
Else
|
||||
Var return = ###second_normal_thai
|
||||
EndIf
|
||||
)
|
||||
</Filename>
|
||||
<FilenamePress>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###second_normal_eng
|
||||
Else
|
||||
Var return = ###second_normal_thai
|
||||
EndIf
|
||||
)
|
||||
</FilenamePress>
|
||||
<FilenameDisable>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###second_normal_eng
|
||||
Else
|
||||
Var return = ###second_normal_thai
|
||||
EndIf
|
||||
)
|
||||
</FilenameDisable>
|
||||
<EventOnClick>
|
||||
|
||||
Open "ROOT/taobin_project/xml/page_catalog_group_pro_monday_banana.xml"
|
||||
|
||||
</EventOnClick>
|
||||
|
||||
<Button>
|
||||
<X> 42 </X>
|
||||
<Y> 1153 </Y>
|
||||
|
||||
<State> BigButtonEnable </State>
|
||||
<Filename>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###third_normal_eng
|
||||
Else
|
||||
Var return = ###third_normal_thai
|
||||
EndIf
|
||||
)
|
||||
</Filename>
|
||||
<FilenamePress>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###third_normal_eng
|
||||
Else
|
||||
Var return = ###third_normal_thai
|
||||
EndIf
|
||||
)
|
||||
</FilenamePress>
|
||||
<FilenameDisable>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###third_normal_eng
|
||||
Else
|
||||
Var return = ###third_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>
|
||||
163
xml/event/triple_promotion_template2.inc
Normal file
163
xml/event/triple_promotion_template2.inc
Normal file
|
|
@ -0,0 +1,163 @@
|
|||
<Button>
|
||||
<X> 42 </X>
|
||||
<Y> 518 </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/page_catalog_group_pro_lipit.xml"
|
||||
|
||||
</EventOnClick>
|
||||
|
||||
|
||||
<Video>
|
||||
<X> 42 </X>
|
||||
<Y> 518 </Y>
|
||||
<Width> 484 </Width>
|
||||
<Height> 616 </Height>
|
||||
<Loop> "true" </Loop>
|
||||
<State>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = "Invisible"
|
||||
Else
|
||||
Var return = "Enable"
|
||||
EndIf
|
||||
)
|
||||
</State>
|
||||
<Filename> "ROOT/taobin_project/image/event/lipit/pro_lipit_th.mp4" </Filename>
|
||||
</Video>
|
||||
|
||||
<Video>
|
||||
<X> 42 </X>
|
||||
<Y> 518 </Y>
|
||||
<Width> 484 </Width>
|
||||
<Height> 616 </Height>
|
||||
<State>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = "Enable"
|
||||
Else
|
||||
Var return = "Invisible"
|
||||
EndIf
|
||||
)
|
||||
</State>
|
||||
<Loop> "true" </Loop>
|
||||
<Filename> "ROOT/taobin_project/image/event/lipit/pro_lipit_en.mp4" </Filename>
|
||||
</Video>
|
||||
|
||||
</Button>
|
||||
|
||||
<Button>
|
||||
<X> 559 </X>
|
||||
<Y> 519 </Y>
|
||||
|
||||
<State> BigButtonEnable </State>
|
||||
<Filename>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###second_normal_eng
|
||||
Else
|
||||
Var return = ###second_normal_thai
|
||||
EndIf
|
||||
)
|
||||
</Filename>
|
||||
<FilenamePress>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###second_normal_eng
|
||||
Else
|
||||
Var return = ###second_normal_thai
|
||||
EndIf
|
||||
)
|
||||
</FilenamePress>
|
||||
<FilenameDisable>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###second_normal_eng
|
||||
Else
|
||||
Var return = ###second_normal_thai
|
||||
EndIf
|
||||
)
|
||||
</FilenameDisable>
|
||||
<EventOnClick>
|
||||
|
||||
Open "ROOT/taobin_project/xml/page_catalog_group_pro_monday_banana.xml"
|
||||
|
||||
</EventOnClick>
|
||||
|
||||
<Button>
|
||||
<X> 42 </X>
|
||||
<Y> 1153 </Y>
|
||||
|
||||
<State> BigButtonEnable </State>
|
||||
<Filename>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###third_normal_eng
|
||||
Else
|
||||
Var return = ###third_normal_thai
|
||||
EndIf
|
||||
)
|
||||
</Filename>
|
||||
<FilenamePress>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###third_normal_eng
|
||||
Else
|
||||
Var return = ###third_normal_thai
|
||||
EndIf
|
||||
)
|
||||
</FilenamePress>
|
||||
<FilenameDisable>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###third_normal_eng
|
||||
Else
|
||||
Var return = ###third_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>
|
||||
|
|
@ -1,3 +1,45 @@
|
|||
def GetPrice_Old(price_list, product_code_1, product_code_2, product_code_3):
|
||||
if product_code_1 in price_list:
|
||||
return price_list[product_code_1]
|
||||
elif product_code_2 in price_list:
|
||||
return price_list[product_code_2]
|
||||
elif product_code_3 in price_list:
|
||||
return price_list[product_code_3]
|
||||
else:
|
||||
return '"-"'
|
||||
|
||||
def GetPrice(price_list, product_code):
|
||||
if product_code in price_list:
|
||||
return price_list[product_code]
|
||||
else:
|
||||
return '"-"'
|
||||
|
||||
def GetOriginalPrice_Old(original_price_list, product_code_1, product_code_2, product_code_3):
|
||||
if product_code_1 in original_price_list:
|
||||
return original_price_list[product_code_1]
|
||||
elif product_code_2 in original_price_list:
|
||||
return original_price_list[product_code_2]
|
||||
elif product_code_3 in original_price_list:
|
||||
return original_price_list[product_code_3]
|
||||
else:
|
||||
return '"-"'
|
||||
|
||||
def GetOriginalPrice(original_price_list, product_code):
|
||||
if product_code in original_price_list:
|
||||
return original_price_list[product_code]
|
||||
else:
|
||||
return '"-"'
|
||||
|
||||
def GetTricker(tricker_list, product_code_1, product_code_2, product_code_3):
|
||||
if product_code_1 in tricker_list:
|
||||
return tricker_list[product_code_1]
|
||||
elif product_code_2 in tricker_list:
|
||||
return tricker_list[product_code_2]
|
||||
elif product_code_3 in tricker_list:
|
||||
return tricker_list[product_code_3]
|
||||
else:
|
||||
return ""
|
||||
|
||||
if "v2" in param:
|
||||
print("Version 1 ignore ")
|
||||
else:
|
||||
|
|
@ -7,6 +49,16 @@
|
|||
touch_less_gen = True
|
||||
else:
|
||||
touch_less_gen = False
|
||||
|
||||
if current_file_name == "page_catalog_group_recommend_double_pro.skt":
|
||||
double_pro_gen = True
|
||||
else:
|
||||
double_pro_gen = False
|
||||
|
||||
if current_file_name == "page_catalog_group_recommend_triple_pro.skt":
|
||||
triple_pro_gen = True
|
||||
else:
|
||||
triple_pro_gen = False
|
||||
|
||||
if current_file_name == "page_catalog_group_pro_15THB.skt":
|
||||
fixed_price = 15
|
||||
|
|
@ -14,92 +66,57 @@
|
|||
fixed_price = 0
|
||||
|
||||
if current_file_name == "page_catalog_group_pro_rerun.skt":
|
||||
def GetPrice(product_code_1, product_code_2, product_code_3):
|
||||
prices = {
|
||||
"12-02-02-0043": 15,
|
||||
"12-99-05-0057": 15,
|
||||
"12-99-05-0059": 15,
|
||||
"12-02-02-0044": 20,
|
||||
"12-99-03-0046": 20,
|
||||
"12-99-02-0050": 20,
|
||||
"12-99-02-0011": 25,
|
||||
"12-99-02-0015": 25,
|
||||
"12-99-02-0003": 30,
|
||||
"12-99-02-0001": 30,
|
||||
"12-03-02-0036": 30,
|
||||
"12-03-03-0035": 35,
|
||||
"12-99-03-0066": 30
|
||||
rerun_prices = {
|
||||
"12-02-02-0043": 15,
|
||||
"12-99-05-0057": 15,
|
||||
"12-99-05-0059": 15,
|
||||
"12-02-02-0044": 20,
|
||||
"12-99-03-0046": 20,
|
||||
"12-99-02-0050": 20,
|
||||
"12-99-02-0011": 25,
|
||||
"12-99-02-0015": 25,
|
||||
"12-99-02-0003": 30,
|
||||
"12-99-02-0001": 30,
|
||||
"12-03-02-0036": 30,
|
||||
"12-03-03-0035": 35,
|
||||
"12-99-03-0066": 30
|
||||
}
|
||||
|
||||
rerun_original_prices = {
|
||||
"12-02-02-0043": 35,
|
||||
"12-99-05-0057": 20,
|
||||
"12-99-05-0059": 20,
|
||||
"12-02-02-0044": 25,
|
||||
"12-99-03-0046": 25,
|
||||
"12-99-02-0050": 25,
|
||||
"12-99-02-0011": 30,
|
||||
"12-99-02-0015": 30,
|
||||
"12-99-02-0003": 35,
|
||||
"12-99-02-0001": 35,
|
||||
"12-03-02-0036": 40,
|
||||
"12-03-03-0035": 45,
|
||||
"12-99-03-0066": 60
|
||||
}
|
||||
|
||||
rerun_trickers = {
|
||||
"12-02-02-0043": "PMD20",
|
||||
"12-99-05-0057": "PMD05",
|
||||
"12-99-05-0059": "PMD05",
|
||||
"12-02-02-0044": "PMD05",
|
||||
"12-99-03-0046": "PMD05",
|
||||
"12-99-02-0011": "PMD05",
|
||||
"12-99-02-0015": "PMD05",
|
||||
"12-99-02-0003": "PMD05",
|
||||
"12-99-02-0001": "PMD05",
|
||||
"12-03-02-0036": "PMD10",
|
||||
"12-03-03-0035": "PMD10",
|
||||
"12-99-03-0066": "PMD30"
|
||||
}
|
||||
|
||||
|
||||
|
||||
if product_code_1 in prices:
|
||||
return prices[product_code_1]
|
||||
elif product_code_2 in prices:
|
||||
return prices[product_code_2]
|
||||
elif product_code_3 in prices:
|
||||
return prices[product_code_3]
|
||||
else:
|
||||
return ""
|
||||
|
||||
def GetOriginalPrice(product_code_1, product_code_2, product_code_3):
|
||||
original_prices = {
|
||||
"12-02-02-0043": 35,
|
||||
"12-99-05-0057": 20,
|
||||
"12-99-05-0059": 20,
|
||||
"12-02-02-0044": 25,
|
||||
"12-99-03-0046": 25,
|
||||
"12-99-02-0050": 25,
|
||||
"12-99-02-0011": 30,
|
||||
"12-99-02-0015": 30,
|
||||
"12-99-02-0003": 35,
|
||||
"12-99-02-0001": 35,
|
||||
"12-03-02-0036": 40,
|
||||
"12-03-03-0035": 45,
|
||||
"12-99-03-0066": 60
|
||||
}
|
||||
|
||||
if product_code_1 in original_prices:
|
||||
return original_prices[product_code_1]
|
||||
elif product_code_2 in original_prices:
|
||||
return original_prices[product_code_2]
|
||||
elif product_code_3 in original_prices:
|
||||
return original_prices[product_code_3]
|
||||
else:
|
||||
return ""
|
||||
|
||||
def GetTricker(product_code_1, product_code_2, product_code_3):
|
||||
trickers = {
|
||||
"12-02-02-0043": "PMD20",
|
||||
"12-99-05-0057": "PMD05",
|
||||
"12-99-05-0059": "PMD05",
|
||||
"12-02-02-0044": "PMD05",
|
||||
"12-99-03-0046": "PMD05",
|
||||
"12-99-02-0011": "PMD05",
|
||||
"12-99-02-0015": "PMD05",
|
||||
"12-99-02-0003": "PMD05",
|
||||
"12-99-02-0001": "PMD05",
|
||||
"12-03-02-0036": "PMD10",
|
||||
"12-03-03-0035": "PMD10",
|
||||
"12-99-03-0066": "PMD30"
|
||||
}
|
||||
|
||||
if product_code_1 in trickers:
|
||||
return trickers[product_code_1]
|
||||
elif product_code_2 in trickers:
|
||||
return trickers[product_code_2]
|
||||
elif product_code_3 in trickers:
|
||||
return trickers[product_code_3]
|
||||
else:
|
||||
return ""
|
||||
get_price = GetPrice
|
||||
get_original_price = GetOriginalPrice
|
||||
get_tricker = GetTricker
|
||||
rerun_fix_price = True
|
||||
else:
|
||||
get_price = None
|
||||
get_original_price = None
|
||||
get_tricker = None
|
||||
rerun_prices = {}
|
||||
rerun_original_prices = {}
|
||||
rerun_trickers = {}
|
||||
rerun_fix_price = False
|
||||
|
||||
if current_file_name == "page_catalog_group_pro_mymint.skt":
|
||||
|
|
@ -119,10 +136,38 @@
|
|||
else:
|
||||
from_pepsi_second_cup_30 = False
|
||||
|
||||
if current_file_name == "page_catalog_group_pro_lipit.skt":
|
||||
from_lipit_pro = True
|
||||
else:
|
||||
from_lipit_pro = False
|
||||
|
||||
if current_file_name == "page_catalog_group_pro_monday_banana.skt":
|
||||
monday_banana_prices = {
|
||||
"12-03-02-0024": 30,
|
||||
"12-03-03-0024": 35,
|
||||
"12-03-03-0029": 40,
|
||||
"12-03-02-0023": 25,
|
||||
"12-03-03-0023": 30
|
||||
}
|
||||
|
||||
monday_banana_original_prices = {
|
||||
"12-03-02-0024": 40,
|
||||
"12-03-03-0024": 45,
|
||||
"12-03-03-0029": 50,
|
||||
"12-03-02-0023": 35,
|
||||
"12-03-03-0023": 40
|
||||
}
|
||||
|
||||
monday_banana_fix_price = True
|
||||
else:
|
||||
monday_banana_prices = {}
|
||||
monday_banana_original_prices = {}
|
||||
monday_banana_fix_price = False
|
||||
|
||||
#print ("######################################################################################################")
|
||||
idx_of_eng = 2
|
||||
out_xml('<FrameScroll> \r\n')
|
||||
if touch_less_gen == True:
|
||||
if touch_less_gen == True or double_pro_gen or triple_pro_gen:
|
||||
out_xml('<Max> 16 </Max>\r\n')
|
||||
out_xml('<X> 10 </X>\r\n')
|
||||
out_xml('<Y> 497 </Y>\r\n')
|
||||
|
|
@ -135,8 +180,13 @@
|
|||
if "all" in verbose:
|
||||
print("current_file_name " + current_file_name)
|
||||
|
||||
|
||||
if touch_less_gen == False:
|
||||
if triple_pro_gen == True:
|
||||
out_xml('\t Var block_index_override = 0\r\n')
|
||||
out_xml('\t Var block_index_move = 0\r\n')
|
||||
elif double_pro_gen == True:
|
||||
out_xml('\t Var block_index_override = 0\r\n')
|
||||
out_xml('\t Var block_index_move = 0\r\n')
|
||||
elif touch_less_gen == False:
|
||||
|
||||
out_xml('\t Var block_index_override = 0\r\n')
|
||||
out_xml('\t Var block_index_move = 0\r\n')
|
||||
|
|
@ -195,6 +245,9 @@
|
|||
out_xml('\t</QRCode>\r\n')
|
||||
out_xml('</Block>\r\n')
|
||||
out_xml(';dummy_layout.inc\r\n')
|
||||
|
||||
if double_pro_gen == True or triple_pro_gen:
|
||||
out_xml(';dummy_layout.inc\r\n')
|
||||
|
||||
|
||||
out_xml('; menu_new_list '+ str(len(menu_new_list))+'\r\n')
|
||||
|
|
@ -233,7 +286,7 @@
|
|||
str_con_var += spl[6] + '-'
|
||||
|
||||
str_con_var = str_con_var.replace("-", "")
|
||||
if touch_less_gen == True:
|
||||
if touch_less_gen == True or double_pro_gen == True or triple_pro_gen == True:
|
||||
str_con += "Disable=Invisible,"
|
||||
|
||||
str_con += "$Sum" + str_con_var
|
||||
|
|
@ -302,10 +355,18 @@
|
|||
out_xml( '\t\tVar OpenFromXML = CurrentXMLFileName2\r\n')
|
||||
|
||||
if rerun_fix_price:
|
||||
out_xml( '\t\tVar PriceD1 = ' + str(get_price(pd_code_1, pd_code_2, pd_code_3)) + '\r\n')
|
||||
out_xml( '\t\tVar PriceD2 = ' + str(get_price(pd_code_1, pd_code_2, pd_code_3)) + '\r\n')
|
||||
out_xml( '\t\tVar PriceD3 = ' + str(get_price(pd_code_1, pd_code_2, pd_code_3)) + '\r\n')
|
||||
out_xml( '\t\tVar OldPrice = ' + str(get_original_price(pd_code_1, pd_code_2, pd_code_3)) + '\r\n')
|
||||
out_xml( '\t\tVar PriceD1 = ' + str(GetPrice_Old(rerun_prices, pd_code_1, pd_code_2, pd_code_3)) + '\r\n')
|
||||
out_xml( '\t\tVar PriceD2 = ' + str(GetPrice_Old(rerun_prices, pd_code_1, pd_code_2, pd_code_3)) + '\r\n')
|
||||
out_xml( '\t\tVar PriceD3 = ' + str(GetPrice_Old(rerun_prices, pd_code_1, pd_code_2, pd_code_3)) + '\r\n')
|
||||
out_xml( '\t\tVar OldPrice = ' + str(GetOriginalPrice_Old(rerun_original_prices, pd_code_1, pd_code_2, pd_code_3)) + '\r\n')
|
||||
elif monday_banana_fix_price:
|
||||
out_xml( '\t\tVar PriceD1 = ' + str(GetPrice(monday_banana_prices, pd_code_1)) + '\r\n')
|
||||
out_xml( '\t\tVar PriceD2 = ' + str(GetPrice(monday_banana_prices, pd_code_2)) + '\r\n')
|
||||
out_xml( '\t\tVar PriceD3 = ' + str(GetPrice(monday_banana_prices, pd_code_3)) + '\r\n')
|
||||
out_xml( '\t\tVar OriginalPriceD1 = ' + str(GetOriginalPrice(monday_banana_original_prices, pd_code_1)) + '\r\n')
|
||||
out_xml( '\t\tVar OriginalPriceD2 = ' + str(GetOriginalPrice(monday_banana_original_prices, pd_code_2)) + '\r\n')
|
||||
out_xml( '\t\tVar OriginalPriceD3 = ' + str(GetOriginalPrice(monday_banana_original_prices, pd_code_3)) + '\r\n')
|
||||
|
||||
else:
|
||||
out_xml( '\t\tVar PriceD1 = $' + spl[4] + '.Price\r\n')
|
||||
out_xml( '\t\tVar PriceD2 = $' + spl[5] + '.Price\r\n')
|
||||
|
|
@ -392,7 +453,10 @@
|
|||
|
||||
if rerun_fix_price:
|
||||
out_xml( '\t\tVar FromRerunPro = 1 \r\n')
|
||||
out_xml( '\t\tVar RerunProCode = "' + get_tricker(pd_code_1, pd_code_2, pd_code_3) + '"\r\n')
|
||||
out_xml( '\t\tVar RerunProCode = "' + GetTricker(rerun_trickers, pd_code_1, pd_code_2, pd_code_3) + '"\r\n')
|
||||
|
||||
if monday_banana_fix_price:
|
||||
out_xml( '\t\tVar FromMondayBananaPro = 1 \r\n')
|
||||
|
||||
if from_my_mint_promotion:
|
||||
out_xml( '\t\tVar FromMyMintPro = 1 \r\n')
|
||||
|
|
@ -403,6 +467,9 @@
|
|||
if from_pepsi_second_cup_30:
|
||||
out_xml( '\t\tVar FromPepsiSecondCup30 = 1 \r\n')
|
||||
|
||||
if from_lipit_pro:
|
||||
out_xml( '\t\tVar FromLipitPro = 1 \r\n')
|
||||
|
||||
|
||||
out_xml( '\t\t\r\n')
|
||||
out_xml( '\t\t\r\n')
|
||||
|
|
@ -529,14 +596,18 @@
|
|||
if fixed_price > 0:
|
||||
out_xml( '\t<Value> StringFmt( 15 , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
|
||||
elif rerun_fix_price:
|
||||
out_xml( '\t<Value> StringFmt( ' + str(get_price(pd_code_1, pd_code_2, pd_code_3)) + ' , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
|
||||
out_xml( '\t<Value> StringFmt( ' + str(GetPrice_Old(rerun_prices, pd_code_1, pd_code_2, pd_code_3)) + ' , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
|
||||
elif monday_banana_fix_price:
|
||||
out_xml( '\t<Value> StringFmt( ' + str(GetPrice(monday_banana_prices, spl[4])) + ' , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
|
||||
else:
|
||||
out_xml( '\t<Value> StringFmt( $' + spl[4] + '.Price , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
|
||||
else:
|
||||
if fixed_price > 0:
|
||||
out_xml( '\t<Value> "฿15" </Value>\r\n')
|
||||
elif rerun_fix_price:
|
||||
out_xml( '\t<Value> "฿' + str(get_price(pd_code_1, pd_code_2, pd_code_3)) + '" </Value>\r\n')
|
||||
out_xml( '\t<Value> "฿' + str(GetPrice_Old(rerun_prices, pd_code_1, pd_code_2, pd_code_3)) + '" </Value>\r\n')
|
||||
elif monday_banana_fix_price:
|
||||
out_xml( '\t<Value> "฿' + str(GetPrice(monday_banana_prices, spl[4])) + '" </Value>\r\n')
|
||||
else:
|
||||
out_xml( '\t<Value> Var( "฿" + $' + spl[4] + '.Price ) </Value>\r\n')
|
||||
out_xml( '\t</Text>\r\n')
|
||||
|
|
@ -584,14 +655,18 @@
|
|||
if fixed_price > 0:
|
||||
out_xml( '\t<Value> StringFmt( 15 , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
|
||||
elif rerun_fix_price:
|
||||
out_xml( '\t<Value> StringFmt( ' + str(get_price(pd_code_1, pd_code_2, pd_code_3)) + ' , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
|
||||
out_xml( '\t<Value> StringFmt( ' + str(GetPrice_Old(rerun_prices, pd_code_1, pd_code_2, pd_code_3)) + ' , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
|
||||
elif monday_banana_fix_price:
|
||||
out_xml( '\t<Value> StringFmt( ' + str(GetPrice(monday_banana_prices, spl[5])) + ' , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
|
||||
else:
|
||||
out_xml( '\t<Value> StringFmt( $' + spl[5] + '.Price , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
|
||||
else:
|
||||
if fixed_price > 0:
|
||||
out_xml( '\t<Value> "฿15" </Value>\r\n')
|
||||
elif rerun_fix_price:
|
||||
out_xml( '\t<Value> "฿' + str(get_price(pd_code_1, pd_code_2, pd_code_3)) + '" </Value>\r\n')
|
||||
out_xml( '\t<Value> "฿' + str(GetPrice_Old(rerun_prices, pd_code_1, pd_code_2, pd_code_3)) + '" </Value>\r\n')
|
||||
elif monday_banana_fix_price:
|
||||
out_xml( '\t<Value> "฿' + str(GetPrice(monday_banana_prices, spl[5])) + '" </Value>\r\n')
|
||||
else:
|
||||
out_xml( '\t<Value> Var( "฿" + $' + spl[5] + '.Price ) </Value>\r\n')
|
||||
out_xml( '\t</Text>\r\n')
|
||||
|
|
@ -641,14 +716,18 @@
|
|||
if fixed_price > 0:
|
||||
out_xml( '\t<Value> StringFmt( 15 , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
|
||||
elif rerun_fix_price:
|
||||
out_xml( '\t<Value> StringFmt( ' + str(get_price(pd_code_1, pd_code_2, pd_code_3)) + ' , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
|
||||
out_xml( '\t<Value> StringFmt( ' + str(GetPrice_Old(rerun_prices, pd_code_1, pd_code_2, pd_code_3)) + ' , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
|
||||
elif monday_banana_fix_price:
|
||||
out_xml( '\t<Value> StringFmt( ' + str(GetPrice(monday_banana_prices, spl[6])) + ' , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
|
||||
else:
|
||||
out_xml( '\t<Value> StringFmt( $' + spl[6] + '.Price , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
|
||||
else:
|
||||
if fixed_price > 0:
|
||||
out_xml( '\t<Value> "฿15" </Value>\r\n')
|
||||
elif rerun_fix_price:
|
||||
out_xml( '\t<Value> "฿' + str(get_price(pd_code_1, pd_code_2, pd_code_3)) + '" </Value>\r\n')
|
||||
out_xml( '\t<Value> "฿' + str(GetPrice_Old(rerun_prices, pd_code_1, pd_code_2, pd_code_3)) + '" </Value>\r\n')
|
||||
elif monday_banana_fix_price:
|
||||
out_xml( '\t<Value> "฿' + str(GetPrice(monday_banana_prices, spl[6])) + '" </Value>\r\n')
|
||||
else:
|
||||
out_xml( '\t<Value> Var( "฿" + $' + spl[6] + '.Price ) </Value>\r\n')
|
||||
out_xml( '\t</Text>\r\n')
|
||||
|
|
@ -780,7 +859,7 @@
|
|||
str_con_var += spl[10] + '-'
|
||||
|
||||
str_con_var = str_con_var.replace("-", "")
|
||||
if touch_less_gen == True:
|
||||
if touch_less_gen == True or double_pro_gen == True or triple_pro_gen == True:
|
||||
str_con += "Disable=Invisible,"
|
||||
|
||||
str_con += "$Sum" + str_con_var
|
||||
|
|
@ -927,6 +1006,9 @@
|
|||
if from_pepsi_second_cup_30:
|
||||
out_xml( '\t\tVar FromPepsiSecondCup30 = 1 \r\n')
|
||||
|
||||
if from_lipit_pro:
|
||||
out_xml( '\t\tVar FromLipitPro = 1 \r\n')
|
||||
|
||||
out_xml( '\t\t\r\n')
|
||||
out_xml( '\t\t\r\n')
|
||||
if "inter" in param:
|
||||
|
|
|
|||
|
|
@ -188,6 +188,7 @@
|
|||
STRCONTAIN "1211" MaterialAvailable BananaSyrupEnable
|
||||
|
||||
STRCONTAIN "1215" MaterialAvailable SugarZeroCalEnable
|
||||
STRCONTAIN "1206" MaterialAvailable EnergyDrinkEnable
|
||||
|
||||
;Var AppFastEnable = "false"
|
||||
If AppFastEnable = "true" Then
|
||||
|
|
|
|||
|
|
@ -229,6 +229,20 @@
|
|||
EndIf
|
||||
EndIf
|
||||
|
||||
DEBUGVAR Seeker.CodeChannel
|
||||
DEBUGVAR Seeker.CollectPointMain
|
||||
DEBUGVAR LipitPro
|
||||
DEBUGVAR FromLipitPro
|
||||
If LipitPro = 1 Then
|
||||
If FromLipitPro = 1 Then
|
||||
If Seeker.CodeChannel = 1 Then
|
||||
If Seeker.CollectPointMain = 0 Then
|
||||
Var AddData = 0
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If GetFreeFromError = 1 Then
|
||||
;Var GetFreeFromError = 0
|
||||
Var TelephoneNumberProblem = TelephoneNumberGOTFree
|
||||
|
|
|
|||
|
|
@ -140,6 +140,17 @@
|
|||
EndIf
|
||||
EndIf
|
||||
|
||||
If LipitPro = 1 Then
|
||||
If FromLipitPro = 1 Then
|
||||
If Seeker.CodeChannel = 1 Then
|
||||
If Seeker.CollectPointMain = 1 Then
|
||||
Else
|
||||
Var AddData = 0
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If LedLidBlink = "true" Then
|
||||
Var LedLidBlink = "no"
|
||||
LED LedDoorLid Blink 255 255 255 255
|
||||
|
|
|
|||
46
xml/page_catalog_group_pro_lipit.skt
Normal file
46
xml/page_catalog_group_pro_lipit.skt
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
<?hurr
|
||||
#include=menu_head.py
|
||||
?>
|
||||
|
||||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
;<Background> "0xeae6e1" </Background>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventOpen>
|
||||
; On open
|
||||
<?hurr
|
||||
#include=menu_catalog_default_init.py
|
||||
?>
|
||||
|
||||
|
||||
|
||||
Var Timeout = 0
|
||||
Var FromLipitPro = 0
|
||||
|
||||
|
||||
<?hurr
|
||||
#include=menu_catalog_new_menu.py
|
||||
?>
|
||||
|
||||
</EventOpen>
|
||||
|
||||
|
||||
<?hurr
|
||||
#include=menu_catalog_new.py
|
||||
?>
|
||||
|
||||
|
||||
|
||||
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen_v2.py
|
||||
?>
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen.py
|
||||
?>
|
||||
|
||||
|
||||
|
||||
</Popup>
|
||||
3088
xml/page_catalog_group_pro_lipit.xml
Normal file
3088
xml/page_catalog_group_pro_lipit.xml
Normal file
File diff suppressed because it is too large
Load diff
46
xml/page_catalog_group_pro_monday_banana.skt
Normal file
46
xml/page_catalog_group_pro_monday_banana.skt
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
<?hurr
|
||||
#include=menu_head.py
|
||||
?>
|
||||
|
||||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
;<Background> "0xeae6e1" </Background>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventOpen>
|
||||
; On open
|
||||
<?hurr
|
||||
#include=menu_catalog_default_init.py
|
||||
?>
|
||||
|
||||
|
||||
|
||||
Var Timeout = 0
|
||||
Var FromMondayBananaPro = 0
|
||||
|
||||
|
||||
<?hurr
|
||||
#include=menu_catalog_new_menu.py
|
||||
?>
|
||||
|
||||
</EventOpen>
|
||||
|
||||
|
||||
<?hurr
|
||||
#include=menu_catalog_new.py
|
||||
?>
|
||||
|
||||
|
||||
|
||||
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen_v2.py
|
||||
?>
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen.py
|
||||
?>
|
||||
|
||||
|
||||
|
||||
</Popup>
|
||||
1332
xml/page_catalog_group_pro_monday_banana.xml
Normal file
1332
xml/page_catalog_group_pro_monday_banana.xml
Normal file
File diff suppressed because it is too large
Load diff
83
xml/page_catalog_group_recommend_double_pro.skt
Normal file
83
xml/page_catalog_group_recommend_double_pro.skt
Normal file
|
|
@ -0,0 +1,83 @@
|
|||
<?hurr
|
||||
#include=menu_head.py
|
||||
?>
|
||||
|
||||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
;<Background> "0xeae6e1" </Background>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventOpen>
|
||||
; On open
|
||||
<?hurr
|
||||
#include=menu_catalog_default_init.xml
|
||||
?>
|
||||
|
||||
Var Menu1Selected = "PressForever"
|
||||
|
||||
Var OreoBigButtonEnable = "Enable"
|
||||
|
||||
If $12-01-01-0001.Button = "Invisible" Then
|
||||
Var esp102101001Enable = "Invisible"
|
||||
Var esp122101001Enable = "Enable"
|
||||
|
||||
Else
|
||||
Var esp102101001Enable = "Enable"
|
||||
Var esp122101001Enable = "Invisible"
|
||||
|
||||
EndIf
|
||||
|
||||
SAVELOG PreviseXMLFileName2
|
||||
|
||||
Var Timeout = 0
|
||||
|
||||
If show_eng = "true" Then
|
||||
|
||||
Var text_unavailable = "UNAVAILABLE###size=16"
|
||||
Else
|
||||
Var text_unavailable = "หมด###size=32"
|
||||
|
||||
EndIf
|
||||
|
||||
<?hurr
|
||||
#include=menu_catalog_new_menu.xml
|
||||
?>
|
||||
|
||||
</EventOpen>
|
||||
|
||||
|
||||
<?hurr
|
||||
#include=menu_catalog_new.py
|
||||
?>
|
||||
|
||||
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen_v2.py
|
||||
?>
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen.py
|
||||
?>
|
||||
|
||||
<Button>
|
||||
<X> 780 </X>
|
||||
<Y> 500 </Y>
|
||||
<State> buttonRemoveCup </State>
|
||||
;<Color> "0x00BDFF" </Color>
|
||||
<Interval> 500 </Interval>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bn_remove_cup.png" </Filename>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bp_remove_cup.png" </Filename>
|
||||
<EventClick>
|
||||
Machine RemoveCup
|
||||
Machine DoorLidOpen
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
|
||||
|
||||
;BigLogoLayout
|
||||
|
||||
</Popup>
|
||||
|
||||
|
||||
10303
xml/page_catalog_group_recommend_double_pro.xml
Normal file
10303
xml/page_catalog_group_recommend_double_pro.xml
Normal file
File diff suppressed because it is too large
Load diff
83
xml/page_catalog_group_recommend_triple_pro.skt
Normal file
83
xml/page_catalog_group_recommend_triple_pro.skt
Normal file
|
|
@ -0,0 +1,83 @@
|
|||
<?hurr
|
||||
#include=menu_head.py
|
||||
?>
|
||||
|
||||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
;<Background> "0xeae6e1" </Background>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventOpen>
|
||||
; On open
|
||||
<?hurr
|
||||
#include=menu_catalog_default_init.xml
|
||||
?>
|
||||
|
||||
Var Menu1Selected = "PressForever"
|
||||
|
||||
Var OreoBigButtonEnable = "Enable"
|
||||
|
||||
If $12-01-01-0001.Button = "Invisible" Then
|
||||
Var esp102101001Enable = "Invisible"
|
||||
Var esp122101001Enable = "Enable"
|
||||
|
||||
Else
|
||||
Var esp102101001Enable = "Enable"
|
||||
Var esp122101001Enable = "Invisible"
|
||||
|
||||
EndIf
|
||||
|
||||
SAVELOG PreviseXMLFileName2
|
||||
|
||||
Var Timeout = 0
|
||||
|
||||
If show_eng = "true" Then
|
||||
|
||||
Var text_unavailable = "UNAVAILABLE###size=16"
|
||||
Else
|
||||
Var text_unavailable = "หมด###size=32"
|
||||
|
||||
EndIf
|
||||
|
||||
<?hurr
|
||||
#include=menu_catalog_new_menu.xml
|
||||
?>
|
||||
|
||||
</EventOpen>
|
||||
|
||||
|
||||
<?hurr
|
||||
#include=menu_catalog_new.py
|
||||
?>
|
||||
|
||||
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen_v2.py
|
||||
?>
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen.py
|
||||
?>
|
||||
|
||||
<Button>
|
||||
<X> 780 </X>
|
||||
<Y> 500 </Y>
|
||||
<State> buttonRemoveCup </State>
|
||||
;<Color> "0x00BDFF" </Color>
|
||||
<Interval> 500 </Interval>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bn_remove_cup.png" </Filename>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bp_remove_cup.png" </Filename>
|
||||
<EventClick>
|
||||
Machine RemoveCup
|
||||
Machine DoorLidOpen
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
|
||||
|
||||
;BigLogoLayout
|
||||
|
||||
</Popup>
|
||||
|
||||
|
||||
10303
xml/page_catalog_group_recommend_triple_pro.xml
Normal file
10303
xml/page_catalog_group_recommend_triple_pro.xml
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -91,6 +91,16 @@
|
|||
INT CoffeePointRank
|
||||
Var CoffeePointRankTmp = CoffeePointRank
|
||||
|
||||
Var Ext1a = ""
|
||||
Var Ext1b = ""
|
||||
Var Ext1c = ""
|
||||
Var Ext1d = ""
|
||||
Var Ext1e = ""
|
||||
Var Ext1f = ""
|
||||
Var Ext1g = ""
|
||||
Var Ext1h = ""
|
||||
Var Ext1i = ""
|
||||
Var Ext1j = ""
|
||||
|
||||
GETACCEXT TelephoneNumber 15
|
||||
|
||||
|
|
|
|||
|
|
@ -112,6 +112,8 @@
|
|||
|
||||
DEBUGVAR ProBadValentineEnable
|
||||
DEBUGVAR FromBadValentinePro
|
||||
DEBUGVAR LipitPro
|
||||
DEBUGVAR FromLipitPro
|
||||
|
||||
If Seeker.TNumberTaobinCredit = "" Then
|
||||
|
||||
|
|
@ -170,6 +172,20 @@
|
|||
EndIf
|
||||
EndIf
|
||||
|
||||
If LipitPro = 1 Then
|
||||
If FromLipitPro = 1 Then
|
||||
If Seeker.CodeChannel = 1 Then
|
||||
If Seeker.CollectPointPromotion = 1 Then
|
||||
GETACCEXT TelephoneNumber 32
|
||||
Open "ROOT/taobin_project/xml/event/lipit/page_collect_point_pro_lipit_2.xml"
|
||||
EndIf
|
||||
Else
|
||||
GETACCEXT TelephoneNumber 32
|
||||
Open "ROOT/taobin_project/xml/event/lipit/page_collect_point_pro_lipit_2.xml"
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
GETACCEXT Param1 23
|
||||
Open "ROOT/taobin_project/xml/page_collect_point_2.xml"
|
||||
|
||||
|
|
@ -201,6 +217,8 @@
|
|||
|
||||
DEBUGVAR MyMintEnable
|
||||
DEBUGVAR FromMyMintPro
|
||||
DEBUGVAR LipitPro
|
||||
DEBUGVAR FromLipitPro
|
||||
If MyMintEnable = 1 Then
|
||||
If FromMyMintPro = 1 Then
|
||||
GETACCEXT TelephoneNumber 32
|
||||
|
|
@ -215,6 +233,20 @@
|
|||
EndIf
|
||||
EndIf
|
||||
|
||||
If LipitPro = 1 Then
|
||||
If FromLipitPro = 1 Then
|
||||
If Seeker.CodeChannel = 1 Then
|
||||
If Seeker.CollectPointPromotion = 1 Then
|
||||
GETACCEXT TelephoneNumber 32
|
||||
Open "ROOT/taobin_project/xml/event/lipit/page_collect_point_pro_lipit_2.xml"
|
||||
EndIf
|
||||
Else
|
||||
GETACCEXT Param1 23
|
||||
Open "ROOT/taobin_project/xml/page_collect_point_2.xml"
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If PepweenCollectPoint = 0 Then
|
||||
GETACCEXT TelephoneNumber 31
|
||||
Open "ROOT/taobin_project/xml/event/pepween/page_collect_point_pro_pepween_2.xml"
|
||||
|
|
@ -705,6 +737,17 @@
|
|||
EndIf
|
||||
EndIf
|
||||
|
||||
If LipitPro = 1 Then
|
||||
If FromLipitPro = 1 Then
|
||||
If Seeker.CodeChannel = 1 Then
|
||||
If Seeker.CollectPointPromotion = 1 Then
|
||||
GETACCEXT TelephoneNumber 32
|
||||
Open "ROOT/taobin_project/xml/event/lipit/page_collect_point_pro_lipit_2.xml"
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If PepweenCollectPoint = 0 Then
|
||||
GETACCEXT TelephoneNumber 31
|
||||
Open "ROOT/taobin_project/xml/event/pepween/page_collect_point_pro_pepween_2.xml"
|
||||
|
|
|
|||
|
|
@ -85,6 +85,22 @@
|
|||
DEBUGVAR PromoPriceDrink
|
||||
EndIf
|
||||
|
||||
If FromMondayBananaPro = 1 Then
|
||||
Var PromoPriceDrink = PriceDrink
|
||||
Var PriceDrink = OriginalPrice
|
||||
|
||||
DEBUGVAR PriceDrink
|
||||
DEBUGVAR PromoPriceDrink
|
||||
EndIf
|
||||
|
||||
If FromPowerUpPro = 1 Then
|
||||
Var PromoPriceDrink = PriceDrink
|
||||
Var PriceDrink = OriginalPrice
|
||||
|
||||
DEBUGVAR PriceDrink
|
||||
DEBUGVAR PromoPriceDrink
|
||||
EndIf
|
||||
|
||||
;Var AdultFlag = 1
|
||||
|
||||
|
||||
|
|
@ -294,6 +310,17 @@
|
|||
Var RerunProCode = ""
|
||||
EndIf
|
||||
|
||||
If FromMondayBananaPro = 1 Then
|
||||
Var PriceDiff = PriceDrink - PromoPriceDrink
|
||||
Var Seeker.VendingCode = "PMD10"
|
||||
Var Seeker.IntVendingCampaign = PriceDiff
|
||||
Var Seeker.FreeVendingCampaign = 0
|
||||
Var Seeker.CodeChannel = 1
|
||||
Var Seeker.CodeNumber = IDNum
|
||||
Var Seeker.VendingCampaignRI3 = PriceDiff
|
||||
Var Seeker.CampaignPPrice = PromoPriceDrink
|
||||
EndIf
|
||||
|
||||
If NightTime = 1 Then
|
||||
If SelectDrink = "12-99-03-0066" Then
|
||||
Var PriceDrink = 60
|
||||
|
|
@ -317,6 +344,34 @@
|
|||
Var Seeker.CampaignPPrice = PriceDrink - PriceDiff
|
||||
EndIf
|
||||
|
||||
If FromPowerUpPro = 1 Then
|
||||
|
||||
If FreeEnergyDrink = 1 Then
|
||||
If SelectDrink = "12-05-02-0035" Then
|
||||
Var PriceDiff = PriceDrink - PromoPriceDrink
|
||||
Var Seeker.VendingCode = "FIX1"
|
||||
Var Seeker.IntVendingCampaign = PriceDiff
|
||||
Var Seeker.FreeVendingCampaign = 0
|
||||
Var Seeker.CodeChannel = 1
|
||||
Var Seeker.CodeNumber = IDNum
|
||||
Var Seeker.VendingCampaignRI3 = PriceDiff
|
||||
Var Seeker.CampaignPPrice = 1
|
||||
Else
|
||||
If SelectDrink = "12-05-02-0034" Then
|
||||
Var PriceDiff = PriceDrink - PromoPriceDrink
|
||||
Var Seeker.VendingCode = "FIX1"
|
||||
Var Seeker.IntVendingCampaign = PriceDiff
|
||||
Var Seeker.FreeVendingCampaign = 0
|
||||
Var Seeker.CodeChannel = 1
|
||||
Var Seeker.CodeNumber = IDNum
|
||||
Var Seeker.VendingCampaignRI3 = PriceDiff
|
||||
Var Seeker.CampaignPPrice = 1
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
EndIf
|
||||
|
||||
If ChildrenFree = 1 Then
|
||||
|
||||
Var RemainAmountStr = "Free###size=150"
|
||||
|
|
|
|||
|
|
@ -16,6 +16,8 @@
|
|||
|
||||
Var GetPayInfoFlag = 0
|
||||
Var Seeker.CodeChannel = 0
|
||||
Var Seeker.CollectPointMain = 0
|
||||
Var Seeker.CollectPointPromotion = 0
|
||||
|
||||
;Var VendingQRCode = "ERROR"
|
||||
;VendingQR ON
|
||||
|
|
@ -193,14 +195,19 @@
|
|||
If Seeker.VendingCode = "C00" Then
|
||||
|
||||
Else
|
||||
|
||||
Var VendingCreditRemain = ""
|
||||
Var IntVendingCampaign1 = VendingCampaign1
|
||||
INT IntVendingCampaign1
|
||||
|
||||
If IntVendingCampaign1 > 0 Then
|
||||
Var VendingCreditRemain = VendingCampaign1
|
||||
EndIf
|
||||
If VendingCampaign1 = "" Then
|
||||
Var IntVendingCampaign1 = -1
|
||||
Else
|
||||
Var IntVendingCampaign1 = VendingCampaign1
|
||||
INT IntVendingCampaign1
|
||||
|
||||
If IntVendingCampaign1 > 0 Then
|
||||
Var VendingCreditRemain = VendingCampaign1
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
@ -209,10 +216,36 @@
|
|||
|
||||
Var VendingREFID = SessionID
|
||||
|
||||
|
||||
DEBUGVAR IntVendingCampaign1
|
||||
DEBUGVAR PayAmount
|
||||
DEBUGVAR Seeker.IntVendingCampaign
|
||||
|
||||
If Seeker.IntVendingCampaign > 0 Then
|
||||
Var QRChannel = 0
|
||||
|
||||
If Seeker.IntVendingCampaign >= PayAmount Then
|
||||
|
||||
If IntVendingCampaign1 >= 0 Then
|
||||
If Seeker.VendingCode = "FFR50" Then
|
||||
Var Seeker.CollectPointMain = 0
|
||||
Var Seeker.CollectPointPromotion = 0
|
||||
Else
|
||||
Var Seeker.CollectPointMain = 1
|
||||
Var Seeker.CollectPointPromotion = 1
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If Seeker.VendingCode = "MKF" Then
|
||||
Var Seeker.CollectPointMain = 0
|
||||
Var Seeker.CollectPointPromotion = 1
|
||||
EndIf
|
||||
|
||||
If Seeker.VendingCode = "AFR" Then
|
||||
Var Seeker.CollectPointMain = 0
|
||||
Var Seeker.CollectPointPromotion = 1
|
||||
EndIf
|
||||
|
||||
;Open "ROOT/taobin_project/xml/page_payment_cash.xml"
|
||||
Var Seeker.VendingCampaign = PayAmount
|
||||
Var Seeker.FreeVendingCampaign = 1
|
||||
|
|
@ -243,6 +276,9 @@
|
|||
EndIf
|
||||
Open "ROOT/taobin_project/xml/page_thankyou.xml"
|
||||
EndIf
|
||||
Else
|
||||
Var Seeker.CollectPointMain = 1
|
||||
Var Seeker.CollectPointPromotion = 1
|
||||
EndIf
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -54,7 +54,11 @@
|
|||
Var StepGetPoint = 1
|
||||
;GETACCEXT TelephoneNumber 14
|
||||
; goto lid straw
|
||||
Open "ROOT/taobin_project/xml/page_collect_point_3.xml"
|
||||
If NewCollectPoint = 1 Then
|
||||
Open "ROOT/taobin_project/xml/page_collect_point_3_28.xml"
|
||||
Else
|
||||
Open "ROOT/taobin_project/xml/page_collect_point_3.xml"
|
||||
EndIf
|
||||
|
||||
EndIf
|
||||
|
||||
|
|
@ -121,7 +125,11 @@
|
|||
|
||||
If UnitTestType = "1" Then
|
||||
Var CoffeePoint = 10
|
||||
Open "ROOT/taobin_project/xml/page_collect_point_3.xml"
|
||||
If NewCollectPoint = 1 Then
|
||||
Open "ROOT/taobin_project/xml/page_collect_point_3_28.xml"
|
||||
Else
|
||||
Open "ROOT/taobin_project/xml/page_collect_point_3.xml"
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
Var Seeker.FromConsent = 1
|
||||
|
|
@ -129,7 +137,11 @@
|
|||
Var StepGetPoint = 1
|
||||
;GETACCEXT TelephoneNumber 14
|
||||
; goto lid straw
|
||||
Open "ROOT/taobin_project/xml/page_collect_point_3.xml"
|
||||
If NewCollectPoint = 1 Then
|
||||
Open "ROOT/taobin_project/xml/page_collect_point_3_28.xml"
|
||||
Else
|
||||
Open "ROOT/taobin_project/xml/page_collect_point_3.xml"
|
||||
EndIf
|
||||
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
@ -279,8 +277,27 @@
|
|||
SAVELOG BrewTime
|
||||
Var ShowCountDownBrewing = CountDownBrewing
|
||||
|
||||
If FreeEnergyDrink = 1 Then
|
||||
If FromPowerUpPro = 1 Then
|
||||
; AddData
|
||||
|
||||
; +1 in quota in this id card
|
||||
Var Param1 = ""
|
||||
Var Param2 = ""
|
||||
Var Param3 = ""
|
||||
Var TelephoneNumber = "0899999999"
|
||||
|
||||
AddData 44 TelephoneNumber IDNum Param1 Param2
|
||||
; clear id
|
||||
Var IDNum = ""
|
||||
Var FromPowerUpPro = 0
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
|
||||
If RoadShow = "true" Then
|
||||
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
|
||||
|
||||
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
|
||||
Else
|
||||
|
||||
Var Seeker.OrderChanel = Seeker.OrderChanel + ":"
|
||||
|
|
|
|||
|
|
@ -63,6 +63,12 @@
|
|||
EndIf
|
||||
EndIf
|
||||
|
||||
If FromPowerUpPro = 1 Then
|
||||
If FreePowerup = "Enable" Then
|
||||
Open "ROOT/taobin_project/xml/page_topping_select7.xml"
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
|
||||
If BoxID = 200001 Then
|
||||
;Open "ROOT/taobin_project/xml/page_topping_select8.xml"
|
||||
|
|
|
|||
|
|
@ -899,7 +899,7 @@
|
|||
;Open PreviseXMLFileName2
|
||||
DEBUGVAR OpenFromXML
|
||||
|
||||
|
||||
Var FromPowerUpPro = 0
|
||||
|
||||
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert2.xml"
|
||||
|
||||
|
|
@ -6154,6 +6154,8 @@
|
|||
AddData Cid TelNumPromotion IDNum PointCrm GetScore
|
||||
EndIf
|
||||
|
||||
Var FromPowerUpPro = 0
|
||||
|
||||
If Seeker = "next" Then
|
||||
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_blank.xml"
|
||||
Open "ROOT/taobin_project/xml/page_brewing3Conti.xml"
|
||||
|
|
@ -7371,7 +7373,354 @@
|
|||
|
||||
; zone
|
||||
|
||||
; free energy drink
|
||||
<Button>
|
||||
<X> 673 </X>
|
||||
<Y> 1785 </Y>
|
||||
<State> eval(
|
||||
If FromPowerUpPro = 1 Then
|
||||
Var return = FreePowerup;
|
||||
Else
|
||||
Var return = "Invisible"
|
||||
EndIf
|
||||
) </State>
|
||||
<Filename> Var( DirImage + "/bn_powerup1baht.png" ) </Filename>
|
||||
<FilenamePress> Var( DirImage + "/bp_powerup1baht.png" )</FilenamePress>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
|
||||
;Var Seeker = "curr"
|
||||
|
||||
|
||||
Var StatementCheckMenu = "ProductCodeCheck=" + UserSelectProductCode
|
||||
|
||||
__CMD "statement" 0 StatementCheckMenu "-"
|
||||
|
||||
|
||||
DEBUGVAR PriceDrinkTmp
|
||||
|
||||
;Var Seeker.PriceDrink = PriceDrinkTmp
|
||||
|
||||
Var PriceDrink = PriceDrinkTmp
|
||||
|
||||
SAVELOG "USER press next ( topping ) - new"
|
||||
|
||||
If SugarState1 = "PressForever" Then
|
||||
If ShiftSugarStep = 1 Then
|
||||
Var topping1 = toppingID1index1
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If SugarState2 = "PressForever" Then
|
||||
If ShiftSugarStep = 1 Then
|
||||
Var topping1 = toppingID1index2
|
||||
EndIf
|
||||
If ShiftSugarStep = 2 Then
|
||||
Var topping1 = toppingID1index1
|
||||
EndIf
|
||||
|
||||
EndIf
|
||||
|
||||
If SugarState3 = "PressForever" Then
|
||||
If ShiftSugarStep = 1 Then
|
||||
Var topping1 = toppingID1index3
|
||||
EndIf
|
||||
If ShiftSugarStep = 2 Then
|
||||
Var topping1 = toppingID1index2
|
||||
EndIf
|
||||
If ShiftSugarStep = 3 Then
|
||||
Var topping1 = toppingID1index1
|
||||
EndIf
|
||||
|
||||
EndIf
|
||||
|
||||
If SugarState3 = "PressForever" Then
|
||||
If ShiftSugarStep = 1 Then
|
||||
Var topping1 = toppingID1index3
|
||||
EndIf
|
||||
If ShiftSugarStep = 2 Then
|
||||
Var topping1 = toppingID1index2
|
||||
EndIf
|
||||
If ShiftSugarStep = 3 Then
|
||||
Var topping1 = toppingID1index1
|
||||
EndIf
|
||||
|
||||
EndIf
|
||||
|
||||
If SugarState4 = "PressForever" Then
|
||||
If ShiftSugarStep = 1 Then
|
||||
Var topping1 = toppingID1index4
|
||||
EndIf
|
||||
If ShiftSugarStep = 2 Then
|
||||
Var topping1 = toppingID1index3
|
||||
EndIf
|
||||
If ShiftSugarStep = 3 Then
|
||||
Var topping1 = toppingID1index2
|
||||
EndIf
|
||||
|
||||
EndIf
|
||||
|
||||
If SugarState5 = "PressForever" Then
|
||||
If ShiftSugarStep = 1 Then
|
||||
Var topping1 = toppingID1index5
|
||||
EndIf
|
||||
If ShiftSugarStep = 2 Then
|
||||
Var topping1 = toppingID1index4
|
||||
EndIf
|
||||
If ShiftSugarStep = 3 Then
|
||||
Var topping1 = toppingID1index3
|
||||
EndIf
|
||||
|
||||
EndIf
|
||||
|
||||
If showCustomCoffee = "Enable" Then
|
||||
If showCoffeeWater = "Enable" Then
|
||||
If CustomCoffeeWaterState[0] = "PressForever" Then
|
||||
Var topping7 = toppingID7index1
|
||||
EndIf
|
||||
If CustomCoffeeWaterState[1] = "PressForever" Then
|
||||
Var topping7 = toppingID7index2
|
||||
EndIf
|
||||
If CustomCoffeeWaterState[2] = "PressForever" Then
|
||||
Var topping7 = toppingID7index3
|
||||
EndIf
|
||||
If CustomCoffeeWaterState[3] = "PressForever" Then
|
||||
Var topping7 = toppingID7index4
|
||||
EndIf
|
||||
If CustomCoffeeWaterState[4] = "PressForever" Then
|
||||
Var topping7 = toppingID7index5
|
||||
EndIf
|
||||
Else
|
||||
Var topping7 = 0
|
||||
EndIf
|
||||
|
||||
If showCoffeeQuantity = "Enable" Then
|
||||
If CustomCoffeeQuantityState[0] = "PressForever" Then
|
||||
Var topping2 = toppingID2index1
|
||||
EndIf
|
||||
If CustomCoffeeQuantityState[1] = "PressForever" Then
|
||||
Var topping2 = toppingID2index2
|
||||
EndIf
|
||||
If CustomCoffeeQuantityState[2] = "PressForever" Then
|
||||
Var topping2 = toppingID2index3
|
||||
EndIf
|
||||
Else
|
||||
If toppingID2index3 = "" Then
|
||||
Else
|
||||
Var topping2 = 0
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If showCoffeeLevel = "Enable" Then
|
||||
If CustomCoffeeLevelState[0] = "PressForever" Then
|
||||
Var topping9 = toppingID9index1
|
||||
EndIf
|
||||
If CustomCoffeeLevelState[1] = "PressForever" Then
|
||||
Var topping9 = toppingID9index2
|
||||
EndIf
|
||||
If CustomCoffeeLevelState[2] = "PressForever" Then
|
||||
Var topping9 = toppingID9index3
|
||||
EndIf
|
||||
If CustomCoffeeLevelState[3] = "PressForever" Then
|
||||
Var topping9 = toppingID9index4
|
||||
EndIf
|
||||
Else
|
||||
Var topping9 = 0
|
||||
EndIf
|
||||
|
||||
If showCoffeeTamping = "Enable" Then
|
||||
If CustomCoffeeTampingState[0] = "PressForever" Then
|
||||
Var topping8 = toppingID8index1
|
||||
EndIf
|
||||
If CustomCoffeeTampingState[1] = "PressForever" Then
|
||||
Var topping8 = toppingID8index2
|
||||
EndIf
|
||||
If CustomCoffeeTampingState[2] = "PressForever" Then
|
||||
Var topping8 = toppingID8index3
|
||||
EndIf
|
||||
Else
|
||||
Var topping8 = 0
|
||||
EndIf
|
||||
Else
|
||||
If toppingID2index3 = "" Then
|
||||
Else
|
||||
Var topping2 = 0
|
||||
EndIf
|
||||
Var topping7 = 0
|
||||
Var topping8 = 0
|
||||
Var topping9 = 0
|
||||
Var topping10 = 0
|
||||
EndIf
|
||||
|
||||
|
||||
Var Seeker.topping1 = topping1
|
||||
Var Seeker.topping2 = topping2
|
||||
Var Seeker.topping3 = topping3
|
||||
Var Seeker.topping6 = topping6
|
||||
Var Seeker.topping7 = topping7
|
||||
Var Seeker.topping8 = topping8
|
||||
Var Seeker.topping9 = topping9
|
||||
Var Seeker.topping10 = topping10
|
||||
|
||||
Var Seeker.get_a_straw = StrawState
|
||||
Var Seeker.get_a_lid = LidState
|
||||
|
||||
|
||||
DEBUGVAR Seeker.topping1
|
||||
DEBUGVAR Seeker.topping2
|
||||
DEBUGVAR Seeker.topping3
|
||||
DEBUGVAR Seeker.topping6
|
||||
DEBUGVAR Seeker.topping7
|
||||
DEBUGVAR Seeker.topping8
|
||||
DEBUGVAR Seeker.topping9
|
||||
DEBUGVAR Seeker.topping10
|
||||
DEBUGVAR Seeker.get_a_straw
|
||||
DEBUGVAR Seeker.get_a_lid
|
||||
|
||||
DEBUGVAR LidState
|
||||
DEBUGVAR StrawState
|
||||
DEBUGVAR UserSelectProductCode
|
||||
|
||||
|
||||
If StrawState = "Press" Then
|
||||
Machine StrawOrder
|
||||
Var LedLidBlink = "true"
|
||||
EndIf
|
||||
|
||||
If LidState = "Press" Then
|
||||
Machine LidOrder
|
||||
Var LedLidBlink = "true"
|
||||
Var bg_lidProblem_ST = "Enable"
|
||||
Else
|
||||
If LidState = "Disable" Then
|
||||
Var bg_lidProblem_ST = "Disable"
|
||||
Else
|
||||
Var bg_lidProblem_ST = "Invisible"
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If SelectDrinkType = 0 Then
|
||||
|
||||
Else
|
||||
Var StrawState = "Enable"
|
||||
Var LidState = "Enable"
|
||||
EndIf
|
||||
;
|
||||
|
||||
|
||||
DEBUGVAR PromotionIDCurrentOrder
|
||||
|
||||
|
||||
Var SelectDrink = UserSelectProductCode
|
||||
|
||||
Var Seeker.selected_a_drink = UserSelectProductCode
|
||||
DEBUGVAR Seeker.selected_a_drink
|
||||
|
||||
; Set drink
|
||||
|
||||
If Seeker = "curr" Then
|
||||
Topping "Select" UserSelectProductCode
|
||||
|
||||
; Set option toppinng and pack
|
||||
Topping "Select1-ID" topping1
|
||||
Topping "Select2-ID" topping2
|
||||
Topping "Select3-ID" topping3
|
||||
Topping "Select6-ID" topping6
|
||||
Topping "Select7-ID" topping7
|
||||
Topping "Select8-ID" topping8
|
||||
Topping "Select9-ID" topping9
|
||||
Topping "Select10-ID" topping10
|
||||
|
||||
; Pack
|
||||
Topping "Pack" ExtendDataCurr
|
||||
|
||||
Else
|
||||
Topping "SetNextOrder" UserSelectProductCode
|
||||
|
||||
|
||||
Topping "__select" UserSelectProductCode
|
||||
; Set option toppinng and pack
|
||||
Topping "__select1-id" topping1
|
||||
Topping "__select2-id" topping2
|
||||
Topping "__select3-id" topping3
|
||||
Topping "__select6-id" topping6
|
||||
Topping "__select7-id" topping7
|
||||
Topping "__select8-id" topping8
|
||||
Topping "__select9-id" topping9
|
||||
Topping "__select10-id" topping10
|
||||
; Pack
|
||||
Topping "__pack" ExtendDataNext
|
||||
|
||||
Var NextUserSelectDrinkFromPaid = UserSelectProductCode
|
||||
Var NextUserSelecttopping1Paid = topping1
|
||||
Var NextUserSelecttopping2Paid = topping2
|
||||
Var NextUserSelecttopping3Paid = topping3
|
||||
Var NextUserSelecttopping6Paid = topping6
|
||||
Var NextUserSelecttopping7Paid = topping7
|
||||
Var NextUserSelecttopping8Paid = topping8
|
||||
Var NextUserSelecttopping9Paid = topping9
|
||||
Var NextUserSelecttopping10Paid = topping10
|
||||
|
||||
|
||||
|
||||
EndIf
|
||||
DEBUGVAR Seeker
|
||||
DEBUGVAR Seeker.ExtendData
|
||||
|
||||
Var Seeker.PictureDrink = PictureDrink
|
||||
Var Seeker.showname = showname
|
||||
|
||||
DEBUGVAR MenuCautionImageStage0
|
||||
DEBUGVAR CustomerFilterEnable
|
||||
DEBUGVAR CustomerFilterType
|
||||
|
||||
|
||||
GetLongTimeInMinute LastTimeClickOrder
|
||||
|
||||
If CART_COUNT = 0 Then
|
||||
If UserSelectProductCode = "-" Then
|
||||
|
||||
Else
|
||||
|
||||
|
||||
If SelectDrinkType = 1 Then
|
||||
; Move to MenuReady
|
||||
;OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_blank.xml"
|
||||
;Open "ROOT/taobin_project/xml/page_payment.xml"
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If SelectDrinkType = 0 Then
|
||||
Var high_light_drink_type = "Enable"
|
||||
EndIf
|
||||
Else
|
||||
|
||||
If CART1_STATUS = "EMPTY" Then
|
||||
Cart "AddMenuID" 1
|
||||
Else
|
||||
If CART2_STATUS = "EMPTY" Then
|
||||
Cart "AddMenuID" 2
|
||||
Else
|
||||
If CART3_STATUS = "EMPTY" Then
|
||||
Cart "AddMenuID" 3
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
Var CartUpdate = "true"
|
||||
Var ButtonNext = "true"
|
||||
|
||||
EndIf
|
||||
|
||||
Var LastTimeClickOrder = 0
|
||||
|
||||
|
||||
; policy
|
||||
Open "ROOT/taobin_project/xml/event/powerup_free_1/page_powerup_consent.xml"
|
||||
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
<Image>
|
||||
<X> 0 </X>
|
||||
|
|
|
|||
|
|
@ -438,6 +438,7 @@
|
|||
|
||||
DEBUGVAR MenuReady
|
||||
DEBUGVAR CupRemain
|
||||
DEBUGVAR FreePowerup
|
||||
|
||||
If SelectDrinkType = 1 Then
|
||||
|
||||
|
|
@ -762,6 +763,13 @@
|
|||
|
||||
Open "/mnt/sdcard/coffeevending/taobin_project/xml/page_catalog2.xml"
|
||||
EndIf
|
||||
|
||||
If FreeEnergyDrink = 1 Then
|
||||
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert2.xml"
|
||||
|
||||
Open "/mnt/sdcard/coffeevending/taobin_project/xml/page_catalog2.xml"
|
||||
|
||||
EndIf
|
||||
|
||||
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert2.xml"
|
||||
|
||||
|
|
@ -5803,6 +5811,348 @@
|
|||
</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>
|
||||
|
||||
;Var Seeker = "curr"
|
||||
|
||||
|
||||
Var StatementCheckMenu = "ProductCodeCheck=" + UserSelectProductCode
|
||||
|
||||
__CMD "statement" 0 StatementCheckMenu "-"
|
||||
|
||||
|
||||
DEBUGVAR PriceDrinkTmp
|
||||
|
||||
;Var Seeker.PriceDrink = PriceDrinkTmp
|
||||
|
||||
Var PriceDrink = PriceDrinkTmp
|
||||
|
||||
SAVELOG "USER press next ( topping ) - new"
|
||||
|
||||
If SugarState1 = "PressForever" Then
|
||||
If ShiftSugarStep = 1 Then
|
||||
Var topping1 = toppingID1index1
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If SugarState2 = "PressForever" Then
|
||||
If ShiftSugarStep = 1 Then
|
||||
Var topping1 = toppingID1index2
|
||||
EndIf
|
||||
If ShiftSugarStep = 2 Then
|
||||
Var topping1 = toppingID1index1
|
||||
EndIf
|
||||
|
||||
EndIf
|
||||
|
||||
If SugarState3 = "PressForever" Then
|
||||
If ShiftSugarStep = 1 Then
|
||||
Var topping1 = toppingID1index3
|
||||
EndIf
|
||||
If ShiftSugarStep = 2 Then
|
||||
Var topping1 = toppingID1index2
|
||||
EndIf
|
||||
If ShiftSugarStep = 3 Then
|
||||
Var topping1 = toppingID1index1
|
||||
EndIf
|
||||
|
||||
EndIf
|
||||
|
||||
If SugarState3 = "PressForever" Then
|
||||
If ShiftSugarStep = 1 Then
|
||||
Var topping1 = toppingID1index3
|
||||
EndIf
|
||||
If ShiftSugarStep = 2 Then
|
||||
Var topping1 = toppingID1index2
|
||||
EndIf
|
||||
If ShiftSugarStep = 3 Then
|
||||
Var topping1 = toppingID1index1
|
||||
EndIf
|
||||
|
||||
EndIf
|
||||
|
||||
If SugarState4 = "PressForever" Then
|
||||
If ShiftSugarStep = 1 Then
|
||||
Var topping1 = toppingID1index4
|
||||
EndIf
|
||||
If ShiftSugarStep = 2 Then
|
||||
Var topping1 = toppingID1index3
|
||||
EndIf
|
||||
If ShiftSugarStep = 3 Then
|
||||
Var topping1 = toppingID1index2
|
||||
EndIf
|
||||
|
||||
EndIf
|
||||
|
||||
If SugarState5 = "PressForever" Then
|
||||
If ShiftSugarStep = 1 Then
|
||||
Var topping1 = toppingID1index5
|
||||
EndIf
|
||||
If ShiftSugarStep = 2 Then
|
||||
Var topping1 = toppingID1index4
|
||||
EndIf
|
||||
If ShiftSugarStep = 3 Then
|
||||
Var topping1 = toppingID1index3
|
||||
EndIf
|
||||
|
||||
EndIf
|
||||
|
||||
If showCustomCoffee = "Enable" Then
|
||||
If showCoffeeWater = "Enable" Then
|
||||
If CustomCoffeeWaterState[0] = "PressForever" Then
|
||||
Var topping7 = toppingID7index1
|
||||
EndIf
|
||||
If CustomCoffeeWaterState[1] = "PressForever" Then
|
||||
Var topping7 = toppingID7index2
|
||||
EndIf
|
||||
If CustomCoffeeWaterState[2] = "PressForever" Then
|
||||
Var topping7 = toppingID7index3
|
||||
EndIf
|
||||
If CustomCoffeeWaterState[3] = "PressForever" Then
|
||||
Var topping7 = toppingID7index4
|
||||
EndIf
|
||||
If CustomCoffeeWaterState[4] = "PressForever" Then
|
||||
Var topping7 = toppingID7index5
|
||||
EndIf
|
||||
Else
|
||||
Var topping7 = 0
|
||||
EndIf
|
||||
|
||||
If showCoffeeQuantity = "Enable" Then
|
||||
If CustomCoffeeQuantityState[0] = "PressForever" Then
|
||||
Var topping2 = toppingID2index1
|
||||
EndIf
|
||||
If CustomCoffeeQuantityState[1] = "PressForever" Then
|
||||
Var topping2 = toppingID2index2
|
||||
EndIf
|
||||
If CustomCoffeeQuantityState[2] = "PressForever" Then
|
||||
Var topping2 = toppingID2index3
|
||||
EndIf
|
||||
Else
|
||||
If toppingID2index3 = "" Then
|
||||
Else
|
||||
Var topping2 = 0
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If showCoffeeLevel = "Enable" Then
|
||||
If CustomCoffeeLevelState[0] = "PressForever" Then
|
||||
Var topping9 = toppingID9index1
|
||||
EndIf
|
||||
If CustomCoffeeLevelState[1] = "PressForever" Then
|
||||
Var topping9 = toppingID9index2
|
||||
EndIf
|
||||
If CustomCoffeeLevelState[2] = "PressForever" Then
|
||||
Var topping9 = toppingID9index3
|
||||
EndIf
|
||||
If CustomCoffeeLevelState[3] = "PressForever" Then
|
||||
Var topping9 = toppingID9index4
|
||||
EndIf
|
||||
Else
|
||||
Var topping9 = 0
|
||||
EndIf
|
||||
|
||||
If showCoffeeTamping = "Enable" Then
|
||||
If CustomCoffeeTampingState[0] = "PressForever" Then
|
||||
Var topping8 = toppingID8index1
|
||||
EndIf
|
||||
If CustomCoffeeTampingState[1] = "PressForever" Then
|
||||
Var topping8 = toppingID8index2
|
||||
EndIf
|
||||
If CustomCoffeeTampingState[2] = "PressForever" Then
|
||||
Var topping8 = toppingID8index3
|
||||
EndIf
|
||||
Else
|
||||
Var topping8 = 0
|
||||
EndIf
|
||||
Else
|
||||
If toppingID2index3 = "" Then
|
||||
Else
|
||||
Var topping2 = 0
|
||||
EndIf
|
||||
Var topping7 = 0
|
||||
Var topping8 = 0
|
||||
Var topping9 = 0
|
||||
Var topping10 = 0
|
||||
EndIf
|
||||
|
||||
|
||||
Var Seeker.topping1 = topping1
|
||||
Var Seeker.topping2 = topping2
|
||||
Var Seeker.topping3 = topping3
|
||||
Var Seeker.topping6 = topping6
|
||||
Var Seeker.topping7 = topping7
|
||||
Var Seeker.topping8 = topping8
|
||||
Var Seeker.topping9 = topping9
|
||||
Var Seeker.topping10 = topping10
|
||||
|
||||
Var Seeker.get_a_straw = StrawState
|
||||
Var Seeker.get_a_lid = LidState
|
||||
|
||||
|
||||
DEBUGVAR Seeker.topping1
|
||||
DEBUGVAR Seeker.topping2
|
||||
DEBUGVAR Seeker.topping3
|
||||
DEBUGVAR Seeker.topping6
|
||||
DEBUGVAR Seeker.topping7
|
||||
DEBUGVAR Seeker.topping8
|
||||
DEBUGVAR Seeker.topping9
|
||||
DEBUGVAR Seeker.topping10
|
||||
DEBUGVAR Seeker.get_a_straw
|
||||
DEBUGVAR Seeker.get_a_lid
|
||||
|
||||
DEBUGVAR LidState
|
||||
DEBUGVAR StrawState
|
||||
DEBUGVAR UserSelectProductCode
|
||||
|
||||
|
||||
If StrawState = "Press" Then
|
||||
Machine StrawOrder
|
||||
Var LedLidBlink = "true"
|
||||
EndIf
|
||||
|
||||
If LidState = "Press" Then
|
||||
Machine LidOrder
|
||||
Var LedLidBlink = "true"
|
||||
Var bg_lidProblem_ST = "Enable"
|
||||
Else
|
||||
If LidState = "Disable" Then
|
||||
Var bg_lidProblem_ST = "Disable"
|
||||
Else
|
||||
Var bg_lidProblem_ST = "Invisible"
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If SelectDrinkType = 0 Then
|
||||
|
||||
Else
|
||||
Var StrawState = "Enable"
|
||||
Var LidState = "Enable"
|
||||
EndIf
|
||||
;
|
||||
|
||||
|
||||
DEBUGVAR PromotionIDCurrentOrder
|
||||
|
||||
|
||||
Var SelectDrink = UserSelectProductCode
|
||||
|
||||
Var Seeker.selected_a_drink = UserSelectProductCode
|
||||
DEBUGVAR Seeker.selected_a_drink
|
||||
|
||||
; Set drink
|
||||
|
||||
If Seeker = "curr" Then
|
||||
Topping "Select" UserSelectProductCode
|
||||
|
||||
; Set option toppinng and pack
|
||||
Topping "Select1-ID" topping1
|
||||
Topping "Select2-ID" topping2
|
||||
Topping "Select3-ID" topping3
|
||||
Topping "Select6-ID" topping6
|
||||
Topping "Select7-ID" topping7
|
||||
Topping "Select8-ID" topping8
|
||||
Topping "Select9-ID" topping9
|
||||
Topping "Select10-ID" topping10
|
||||
|
||||
; Pack
|
||||
Topping "Pack" ExtendDataCurr
|
||||
|
||||
Else
|
||||
Topping "SetNextOrder" UserSelectProductCode
|
||||
|
||||
|
||||
Topping "__select" UserSelectProductCode
|
||||
; Set option toppinng and pack
|
||||
Topping "__select1-id" topping1
|
||||
Topping "__select2-id" topping2
|
||||
Topping "__select3-id" topping3
|
||||
Topping "__select6-id" topping6
|
||||
Topping "__select7-id" topping7
|
||||
Topping "__select8-id" topping8
|
||||
Topping "__select9-id" topping9
|
||||
Topping "__select10-id" topping10
|
||||
; Pack
|
||||
Topping "__pack" ExtendDataNext
|
||||
|
||||
Var NextUserSelectDrinkFromPaid = UserSelectProductCode
|
||||
Var NextUserSelecttopping1Paid = topping1
|
||||
Var NextUserSelecttopping2Paid = topping2
|
||||
Var NextUserSelecttopping3Paid = topping3
|
||||
Var NextUserSelecttopping6Paid = topping6
|
||||
Var NextUserSelecttopping7Paid = topping7
|
||||
Var NextUserSelecttopping8Paid = topping8
|
||||
Var NextUserSelecttopping9Paid = topping9
|
||||
Var NextUserSelecttopping10Paid = topping10
|
||||
|
||||
|
||||
|
||||
EndIf
|
||||
DEBUGVAR Seeker
|
||||
DEBUGVAR Seeker.ExtendData
|
||||
|
||||
Var Seeker.PictureDrink = PictureDrink
|
||||
Var Seeker.showname = showname
|
||||
|
||||
DEBUGVAR MenuCautionImageStage0
|
||||
DEBUGVAR CustomerFilterEnable
|
||||
DEBUGVAR CustomerFilterType
|
||||
|
||||
|
||||
GetLongTimeInMinute LastTimeClickOrder
|
||||
|
||||
If CART_COUNT = 0 Then
|
||||
If UserSelectProductCode = "-" Then
|
||||
|
||||
Else
|
||||
|
||||
|
||||
If SelectDrinkType = 1 Then
|
||||
; Move to MenuReady
|
||||
;OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_blank.xml"
|
||||
;Open "ROOT/taobin_project/xml/page_payment.xml"
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If SelectDrinkType = 0 Then
|
||||
Var high_light_drink_type = "Enable"
|
||||
EndIf
|
||||
Else
|
||||
|
||||
If CART1_STATUS = "EMPTY" Then
|
||||
Cart "AddMenuID" 1
|
||||
Else
|
||||
If CART2_STATUS = "EMPTY" Then
|
||||
Cart "AddMenuID" 2
|
||||
Else
|
||||
If CART3_STATUS = "EMPTY" Then
|
||||
Cart "AddMenuID" 3
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
Var CartUpdate = "true"
|
||||
Var ButtonNext = "true"
|
||||
|
||||
EndIf
|
||||
|
||||
Var LastTimeClickOrder = 0
|
||||
|
||||
|
||||
; policy
|
||||
Open "ROOT/taobin_project/xml/event/powerup_free_1/page_powerup_consent.xml"
|
||||
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
|
||||
<Image>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue