merge tricer.ev

This commit is contained in:
wanlop run 2024-03-11 14:38:41 +07:00
commit f174d7530b
211 changed files with 134123 additions and 236 deletions

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

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

View file

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

View file

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

File diff suppressed because it is too large Load diff

View 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>

View 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>

View 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>

View file

@ -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()

View 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>

View 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>

View 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>

View 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>

View file

@ -1 +1 @@
/event/promotion_peach.xml
/event/promotion_lipit.xml

View file

@ -1 +1 @@
/event/promotion_bad_valentine.xml
/event/promotion_monday_banana.xml

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View 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>

View 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>

View file

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

View 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

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -1 +1 @@
Var BigButtonEnable = "Invisible"
Open "ROOT/taobin_project/xml/event/page_catalog_group_pro_monday_banana.xml"

View file

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

View file

@ -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>

File diff suppressed because it is too large Load diff

View file

@ -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>

View file

@ -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>

View file

@ -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>

View 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>

View file

@ -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

View file

@ -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

View file

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

View file

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

View 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>

View 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>