Thai Inter [Myanmar]
This commit is contained in:
parent
c608e96c6c
commit
42d290ace0
7752 changed files with 393859 additions and 2 deletions
1508
inter/tha/xml/dummy_layout.inc
Normal file
1508
inter/tha/xml/dummy_layout.inc
Normal file
File diff suppressed because it is too large
Load diff
0
inter/tha/xml/dummy_layout.py
Normal file
0
inter/tha/xml/dummy_layout.py
Normal file
166
inter/tha/xml/event/dummy_layout_promotion.py
Normal file
166
inter/tha/xml/event/dummy_layout_promotion.py
Normal file
|
|
@ -0,0 +1,166 @@
|
|||
|
||||
if False:
|
||||
print("params=" + param)
|
||||
print( "dir= " + directory_to_process + "/page_catalog_group_recommend.lxml");
|
||||
file_xml = open(directory_to_process + "/page_catalog_group_recommend.lxml", 'r')
|
||||
file_content_main = file_xml.read()
|
||||
#print(file_xml.read())
|
||||
# ; include-file=dummy_layout.inc
|
||||
file_inc = open(directory_to_process + "/dummy_layout.inc", 'r')
|
||||
file_inc_content = file_inc.read()
|
||||
|
||||
|
||||
file_xml.close()
|
||||
|
||||
|
||||
file_inc2 = open(directory_to_process + "/event/promotion_template1.inc", 'r')
|
||||
file_inc2_content = file_inc2.read()
|
||||
file_inc_img = open(directory_to_process + "/../image/event/image_template1", 'r')
|
||||
file_inc2_img_content = file_inc_img.read()
|
||||
|
||||
# replace key.
|
||||
|
||||
sp_key = file_inc2_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_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)
|
||||
|
||||
|
||||
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)
|
||||
|
||||
begin_text = content_data.index(";TAGESP")
|
||||
end_text = content_data.index(";TAGESP", begin_text + 7)
|
||||
print("TAGESP sub text = " + str(begin_text) + " end = " + str(end_text))
|
||||
tmp1 = content_data[: begin_text - 7]
|
||||
|
||||
tmp2 = content_data[ end_text:-1]
|
||||
#print("tmp1=" + tmp1)
|
||||
#print("tmp2=" + tmp2)
|
||||
|
||||
content_data = tmp1 + tmp2
|
||||
|
||||
file_xml3_out = open(directory_to_process + "/event/out_put_file1.txt", 'r')
|
||||
file_xml3_out_content = file_xml3_out.read()
|
||||
file_xml3_out_content = file_xml3_out_content.strip()
|
||||
file_xml3_out_content = file_xml3_out_content.replace("\r", "")
|
||||
file_xml3_out_content = file_xml3_out_content.replace("\n", "")
|
||||
|
||||
file_xml3 = open(directory_to_process + file_xml3_out_content, 'w')
|
||||
file_xml3.write( content_data)
|
||||
file_xml3.close()
|
||||
|
||||
|
||||
file_inc2 = open(directory_to_process + "/event/promotion_template2.inc", 'r')
|
||||
file_inc2_content = file_inc2.read()
|
||||
file_inc_img = open(directory_to_process + "/../image/event/image_template2", 'r')
|
||||
file_inc2_img_content = file_inc_img.read()
|
||||
|
||||
# replace key.
|
||||
|
||||
sp_key = file_inc2_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_inc_event_click = open(directory_to_process + "/event/promotion_onclick2.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)
|
||||
|
||||
|
||||
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)
|
||||
|
||||
begin_text = content_data.index(";TAGESP")
|
||||
end_text = content_data.index(";TAGESP", begin_text + 7)
|
||||
#print("sub text = " + str(begin_text) + " end = " + str(end_text))
|
||||
tmp1 = content_data[: begin_text - 7]
|
||||
|
||||
tmp2 = content_data[ end_text:-1]
|
||||
#print("tmp1=" + tmp1)
|
||||
#print("tmp2=" + tmp2)
|
||||
|
||||
content_data = tmp1 + tmp2
|
||||
|
||||
file_xml3_out = open(directory_to_process + "/event/out_put_file2.txt", 'r')
|
||||
file_xml3_out_content = file_xml3_out.read()
|
||||
file_xml3_out_content = file_xml3_out_content.strip()
|
||||
file_xml3_out_content = file_xml3_out_content.replace("\r", "")
|
||||
file_xml3_out_content = file_xml3_out_content.replace("\n", "")
|
||||
|
||||
file_xml3 = open(directory_to_process + file_xml3_out_content, 'w')
|
||||
file_xml3.write( content_data)
|
||||
file_xml3.close()
|
||||
|
||||
file_inc3 = open(directory_to_process + "/event/promotion_template3.inc", 'r')
|
||||
file_inc3_content = file_inc3.read()
|
||||
file_inc_img = open(directory_to_process + "/../image/event/image_template3", 'r')
|
||||
file_inc3_img_content = file_inc_img.read()
|
||||
|
||||
# replace key.
|
||||
|
||||
sp_key = file_inc3_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_inc3_content = file_inc3_content.replace( "###" + key_val[0], '"' + key_val[1].strip() + '"')
|
||||
|
||||
|
||||
file_inc_event_click = open(directory_to_process + "/event/promotion_onclick3.inc", 'r')
|
||||
file_inc_event_click_content = file_inc_event_click.read()
|
||||
|
||||
file_inc3_content = file_inc3_content.replace("###EventOnClick", file_inc_event_click_content)
|
||||
|
||||
|
||||
print(file_inc3_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_inc3_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_xml3_out = open(directory_to_process + "/event/out_put_file3.txt", 'r')
|
||||
file_xml3_out_content = file_xml3_out.read()
|
||||
file_xml3_out_content = file_xml3_out_content.strip()
|
||||
file_xml3_out_content = file_xml3_out_content.replace("\r", "")
|
||||
file_xml3_out_content = file_xml3_out_content.replace("\n", "")
|
||||
|
||||
file_xml3 = open(directory_to_process + file_xml3_out_content, 'w')
|
||||
file_xml3.write( content_data)
|
||||
file_xml3.close()
|
||||
1
inter/tha/xml/event/out_put_file1.txt
Normal file
1
inter/tha/xml/event/out_put_file1.txt
Normal file
|
|
@ -0,0 +1 @@
|
|||
/event/promotion_winter_warmers.lxml
|
||||
1
inter/tha/xml/event/out_put_file2.txt
Normal file
1
inter/tha/xml/event/out_put_file2.txt
Normal file
|
|
@ -0,0 +1 @@
|
|||
/event/promotion_anniversary_1st.lxml
|
||||
1
inter/tha/xml/event/out_put_file3.txt
Normal file
1
inter/tha/xml/event/out_put_file3.txt
Normal file
|
|
@ -0,0 +1 @@
|
|||
/event/promotion_3.xml
|
||||
12288
inter/tha/xml/event/promotion_2.xml
Normal file
12288
inter/tha/xml/event/promotion_2.xml
Normal file
File diff suppressed because it is too large
Load diff
12865
inter/tha/xml/event/promotion_3.xml
Normal file
12865
inter/tha/xml/event/promotion_3.xml
Normal file
File diff suppressed because it is too large
Load diff
12166
inter/tha/xml/event/promotion_anniversary_1st.lxml
Normal file
12166
inter/tha/xml/event/promotion_anniversary_1st.lxml
Normal file
File diff suppressed because it is too large
Load diff
48
inter/tha/xml/event/promotion_config.json
Normal file
48
inter/tha/xml/event/promotion_config.json
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
{
|
||||
"recommendPath": "/sdcard/coffeevending/taobin_project/xml/page_catalog_group_recommend.xml",
|
||||
"dummyLayoutPath": "/sdcard/coffeevending/taobin_project/xml/dummy_layout.inc",
|
||||
"trickerYamlPath": "/sdcard/coffeevending/taobin_project/xml/event/tricker.yaml",
|
||||
"outDir": "/sdcard/coffeevending/taobin_project/xml/event/",
|
||||
"templates": [
|
||||
{
|
||||
"name": "promotion_pepsi",
|
||||
"path": "/sdcard/coffeevending/taobin_project/xml/event/promotion_template1.inc",
|
||||
"onclickFile": "/sdcard/coffeevending/taobin_project/xml/event/promotion_onclick1.inc",
|
||||
"imagesTemplate": {
|
||||
"normal_eng": "ROOT/taobin_project/image/event/welcomedrink_en.png",
|
||||
"normal_thai": "ROOT/taobin_project/image/event/welcomedrink.png",
|
||||
"press_eng": "ROOT/taobin_project/image/event/welcomedrink_en.png",
|
||||
"press_thai": "ROOT/taobin_project/image/event/welcomedrink.png",
|
||||
"disable_eng": "ROOT/taobin_project/image/event/welcomedrink_en.png",
|
||||
"disable_thai": "ROOT/taobin_project/image/event/welcomedrink.png"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "promotion_pepsi_end",
|
||||
"path": "/sdcard/coffeevending/taobin_project/xml/event/promotion_template2.inc",
|
||||
"onclickFile": "/sdcard/coffeevending/taobin_project/xml/event/promotion_onclick2.inc",
|
||||
"imagesTemplate": {
|
||||
"normal_eng": "ROOT/taobin_project/image/event/bn_pepsi_buy2_save_move_end_en.png",
|
||||
"normal_thai": "ROOT/taobin_project/image/event/bn_pepsi_buy2_save_move_end_th.png",
|
||||
"press_eng": "ROOT/taobin_project/image/event/bn_pepsi_buy2_save_move_end_en.png",
|
||||
"press_thai": "ROOT/taobin_project/image/event/bn_pepsi_buy2_save_move_end_th.png",
|
||||
"disable_eng": "ROOT/taobin_project/image/event/bn_pepsi_buy2_save_move_end_en.png",
|
||||
"disable_thai": "ROOT/taobin_project/image/event/bn_pepsi_buy2_save_move_end_th.png"
|
||||
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "promotion_mystery_cup_35",
|
||||
"path": "/sdcard/coffeevending/taobin_project/xml/event/promotion_template3.inc",
|
||||
"onclickFile": "/sdcard/coffeevending/taobin_project/xml/event/promotion_onclick3.inc",
|
||||
"imagesTemplate": {
|
||||
"normal_eng": "ROOT/taobin_project/image/event/pro_mystery_cup_en.png",
|
||||
"normal_thai": "ROOT/taobin_project/image/event/pro_mystery_cup_th.png",
|
||||
"press_eng": "ROOT/taobin_project/image/event/pro_mystery_cup_en.png",
|
||||
"press_thai": "ROOT/taobin_project/image/event/pro_mystery_cup_th.png",
|
||||
"disable_eng": "ROOT/taobin_project/image/event/pro_mystery_cup_en.png",
|
||||
"disable_thai": "ROOT/taobin_project/image/event/pro_mystery_cup_th.png"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
1
inter/tha/xml/event/promotion_onclick1.inc
Normal file
1
inter/tha/xml/event/promotion_onclick1.inc
Normal file
|
|
@ -0,0 +1 @@
|
|||
Open "ROOT/taobin_project/inter/aus/xml/page_catalog_group_winter_warmers_ignore.lxml"
|
||||
1
inter/tha/xml/event/promotion_onclick2.inc
Normal file
1
inter/tha/xml/event/promotion_onclick2.inc
Normal file
|
|
@ -0,0 +1 @@
|
|||
; Do nothing
|
||||
320
inter/tha/xml/event/promotion_onclick3.inc
Normal file
320
inter/tha/xml/event/promotion_onclick3.inc
Normal file
|
|
@ -0,0 +1,320 @@
|
|||
Var BigButtonEnable = "Invisible"
|
||||
|
||||
DEBUGVAR BigButtonEnable
|
||||
DEBUGVAR OreoGuarantee
|
||||
|
||||
; Enable all 4 buttons
|
||||
Var SubRandMilkButtonEnable = "Enable"
|
||||
DEBUGVAR SubRandMilkButtonEnable
|
||||
|
||||
Var SubRandTeaButtonEnable = "Enable"
|
||||
DEBUGVAR SubRandTeaButtonEnable
|
||||
|
||||
Var SubRandCoffButtonEnable = "Enable"
|
||||
DEBUGVAR SubRandCoffButtonEnable
|
||||
|
||||
Var SubRandAllButtonEnable = "Enable"
|
||||
DEBUGVAR SubRandAllButtonEnable
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
; For real, yeah for real
|
||||
; All random cup
|
||||
|
||||
Var IndexOfAllRandom = 0
|
||||
Var IndexOfMilk = 0
|
||||
Var IndexOfTea = 0
|
||||
Var IndexOfCoffee = 0
|
||||
|
||||
Var IndexOfRateupOreoAll = 0
|
||||
Var IndexOfRateupOreoMilk = 0
|
||||
Var IndexOfRateupOreoTea = 0
|
||||
Var IndexOfRateupOreoCoffee = 0
|
||||
|
||||
; Oreo smoothie volcano
|
||||
If $12-99-03-0020.Button = "Enable" Then
|
||||
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0020"
|
||||
Var ListOfMilk[IndexOfMilk] = "12-99-03-0020"
|
||||
|
||||
Var ListOfOreoAll[IndexOfRateupOreoAll] = "12-99-03-0020"
|
||||
Var ListOfOreoMilk[IndexOfRateupOreoMilk] = "12-99-03-0020"
|
||||
|
||||
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||
Var IndexOfMilk = IndexOfMilk + 1
|
||||
|
||||
Var IndexOfRateupOreoAll = IndexOfRateupOreoAll + 1
|
||||
Var IndexOfRateupOreoMilk = IndexOfRateupOreoMilk + 1
|
||||
EndIf
|
||||
|
||||
; Pink milk oreo volcano
|
||||
If $12-99-03-0021.Button = "Enable" Then
|
||||
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0021"
|
||||
Var ListOfMilk[IndexOfMilk] = "12-99-03-0021"
|
||||
|
||||
Var ListOfOreoAll[IndexOfRateupOreoAll] = "12-99-03-0021"
|
||||
Var ListOfOreoMilk[IndexOfRateupOreoMilk] = "12-99-03-0021"
|
||||
|
||||
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||
Var IndexOfMilk = IndexOfMilk + 1
|
||||
|
||||
Var IndexOfRateupOreoAll = IndexOfRateupOreoAll + 1
|
||||
Var IndexOfRateupOreoMilk = IndexOfRateupOreoMilk + 1
|
||||
EndIf
|
||||
|
||||
; Choco oreo volcano
|
||||
If $12-99-03-0022.Button = "Enable" Then
|
||||
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0022"
|
||||
Var ListOfMilk[IndexOfMilk] = "12-99-03-0022"
|
||||
|
||||
Var ListOfOreoAll[IndexOfRateupOreoAll] = "12-99-03-0022"
|
||||
Var ListOfOreoMilk[IndexOfRateupOreoMilk] = "12-99-03-0022"
|
||||
|
||||
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||
Var IndexOfMilk = IndexOfMilk + 1
|
||||
|
||||
Var IndexOfRateupOreoAll = IndexOfRateupOreoAll + 1
|
||||
Var IndexOfRateupOreoMilk = IndexOfRateupOreoMilk + 1
|
||||
EndIf
|
||||
|
||||
; Caramel milk oreo volcano
|
||||
If $12-99-03-0023.Button = "Enable" Then
|
||||
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0023"
|
||||
Var ListOfMilk[IndexOfMilk] = "12-99-03-0023"
|
||||
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||
Var IndexOfMilk = IndexOfMilk + 1
|
||||
|
||||
Var ListOfOreoAll[IndexOfRateupOreoAll] = "12-99-03-0023"
|
||||
Var ListOfOreoMilk[IndexOfRateupOreoMilk] = "12-99-03-0023"
|
||||
Var IndexOfRateupOreoAll = IndexOfRateupOreoAll + 1
|
||||
Var IndexOfRateupOreoMilk = IndexOfRateupOreoMilk + 1
|
||||
EndIf
|
||||
|
||||
; Thai milk tea oreo smoothie
|
||||
If $12-99-03-0024.Button = "Enable" Then
|
||||
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0024"
|
||||
Var ListOfTea[IndexOfTea] = "12-99-03-0024"
|
||||
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||
Var IndexOfTea = IndexOfTea + 1
|
||||
|
||||
Var ListOfOreoAll[IndexOfRateupOreoAll] = "12-99-03-0024"
|
||||
Var ListOfOreoTea[IndexOfRateupOreoTea] = "12-99-03-0024"
|
||||
Var IndexOfRateupOreoAll = IndexOfRateupOreoAll + 1
|
||||
Var IndexOfRateupOreoTea = IndexOfRateupOreoTea + 1
|
||||
EndIf
|
||||
|
||||
; Cafe late oreo smoothie
|
||||
If $12-99-03-0025.Button = "Enable" Then
|
||||
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0025"
|
||||
Var ListOfCoffee[IndexOfCoffee] = "12-99-03-0025"
|
||||
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||
Var IndexOfCoffee = IndexOfCoffee + 1
|
||||
|
||||
Var ListOfOreoAll[IndexOfRateupOreoAll] = "12-99-03-0025"
|
||||
Var ListOfOreoCoffee[IndexOfRateupOreoCoffee] = "12-99-03-0025"
|
||||
Var IndexOfRateupOreoAll = IndexOfRateupOreoAll + 1
|
||||
Var IndexOfRateupOreoCoffee = IndexOfRateupOreoCoffee + 1
|
||||
EndIf
|
||||
|
||||
; Strawberry milk oreo volcano
|
||||
If $12-99-03-0026.Button = "Enable" Then
|
||||
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0026"
|
||||
Var ListOfMilk[IndexOfMilk] = "12-99-03-0026"
|
||||
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||
Var IndexOfMilk = IndexOfMilk + 1
|
||||
|
||||
Var ListOfOreoAll[IndexOfRateupOreoAll] = "12-99-03-0026"
|
||||
Var ListOfOreoMilk[IndexOfRateupOreoMilk] = "12-99-03-0026"
|
||||
Var IndexOfRateupOreoAll = IndexOfRateupOreoAll + 1
|
||||
Var IndexOfRateupOreoMilk = IndexOfRateupOreoMilk + 1
|
||||
EndIf
|
||||
|
||||
; Melon milk oreo volcano
|
||||
If $12-99-03-0027.Button = "Enable" Then
|
||||
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0027"
|
||||
Var ListOfMilk[IndexOfMilk] = "12-99-03-0027"
|
||||
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||
Var IndexOfMilk = IndexOfMilk + 1
|
||||
|
||||
Var ListOfOreoAll[IndexOfRateupOreoAll] = "12-99-03-0027"
|
||||
Var ListOfOreoMilk[IndexOfRateupOreoMilk] = "12-99-03-0027"
|
||||
Var IndexOfRateupOreoAll = IndexOfRateupOreoAll + 1
|
||||
Var IndexOfRateupOreoMilk = IndexOfRateupOreoMilk + 1
|
||||
EndIf
|
||||
|
||||
; Bana^2 milk oreo volcano
|
||||
If $12-99-03-0028.Button = "Enable" Then
|
||||
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0028"
|
||||
Var ListOfMilk[IndexOfMilk] = "12-99-03-0028"
|
||||
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||
Var IndexOfMilk = IndexOfMilk + 1
|
||||
|
||||
Var ListOfOreoAll[IndexOfRateupOreoAll] = "12-99-03-0028"
|
||||
Var ListOfOreoMilk[IndexOfRateupOreoMilk] = "12-99-03-0028"
|
||||
Var IndexOfRateupOreoAll = IndexOfRateupOreoAll + 1
|
||||
Var IndexOfRateupOreoMilk = IndexOfRateupOreoMilk + 1
|
||||
EndIf
|
||||
|
||||
; Hojicha oreo volcano
|
||||
If $12-99-03-0028.Button = "Enable" Then
|
||||
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0029"
|
||||
Var ListOfTea[IndexOfTea] = "12-99-03-0029"
|
||||
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||
Var IndexOfTea = IndexOfTea + 1
|
||||
|
||||
Var ListOfOreoAll[IndexOfRateupOreoAll] = "12-99-03-0029"
|
||||
Var ListOfOreoTea[IndexOfRateupOreoTea] = "12-99-03-0029"
|
||||
Var IndexOfRateupOreoAll = IndexOfRateupOreoAll + 1
|
||||
Var IndexOfRateupOreoMilk = IndexOfRateupOreoMilk + 1
|
||||
EndIf
|
||||
|
||||
; Thai milk tea smoothie
|
||||
If $12-99-03-0030.Button = "Enable" Then
|
||||
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0030"
|
||||
Var ListOfTea[IndexOfTea] = "12-99-03-0030"
|
||||
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||
Var IndexOfTea = IndexOfTea + 1
|
||||
EndIf
|
||||
|
||||
; Melon milk smoothie
|
||||
If $12-99-03-0031.Button = "Enable" Then
|
||||
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0031"
|
||||
Var ListOfMilk[IndexOfMilk] = "12-99-03-0031"
|
||||
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||
Var IndexOfMilk = IndexOfMilk + 1
|
||||
EndIf
|
||||
|
||||
; Taiwanese tea smoothie
|
||||
If $12-99-03-0032.Button = "Enable" Then
|
||||
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0032"
|
||||
Var ListOfTea[IndexOfTea] = "12-99-03-0032"
|
||||
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||
Var IndexOfTea = IndexOfTea + 1
|
||||
EndIf
|
||||
|
||||
; THAI MILK TEA OREO SMOOTHIE
|
||||
If $12-99-03-0040.Button = "Enable" Then
|
||||
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0040"
|
||||
Var ListOfTea[IndexOfTea] = "12-99-03-0040"
|
||||
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||
Var IndexOfTea = IndexOfTea + 1
|
||||
|
||||
Var ListOfOreoAll[IndexOfRateupOreoAll] = "12-99-03-0040"
|
||||
Var ListOfOreoTea[IndexOfRateupOreoTea] = "12-99-03-0040"
|
||||
Var IndexOfRateupOreoAll = IndexOfRateupOreoAll + 1
|
||||
Var IndexOfRateupOreoTea = IndexOfRateupOreoTea + 1
|
||||
EndIf
|
||||
|
||||
; THAI MILK TEA SMOOTHIE
|
||||
If $12-99-03-0041.Button = "Enable" Then
|
||||
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0041"
|
||||
Var ListOfTea[IndexOfTea] = "12-99-03-0041"
|
||||
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||
Var IndexOfTea = IndexOfTea + 1
|
||||
EndIf
|
||||
|
||||
|
||||
; Tokyo bana^2 milk smoothie
|
||||
If $12-99-03-0033.Button = "Enable" Then
|
||||
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0033"
|
||||
Var ListOfMilk[IndexOfMilk] = "12-99-03-0033"
|
||||
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||
Var IndexOfMilk = IndexOfMilk + 1
|
||||
EndIf
|
||||
|
||||
; Hojicha smoothie
|
||||
If $12-99-03-0034.Button = "Enable" Then
|
||||
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0034"
|
||||
Var ListOfTea[IndexOfTea] = "12-99-03-0034"
|
||||
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||
Var IndexOfTea = IndexOfTea + 1
|
||||
EndIf
|
||||
|
||||
; Cocoa bana^2 smoothie
|
||||
If $12-99-03-0035.Button = "Enable" Then
|
||||
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0035"
|
||||
Var ListOfMilk[IndexOfMilk] = "12-99-03-0035"
|
||||
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||
Var IndexOfMilk = IndexOfMilk + 1
|
||||
EndIf
|
||||
|
||||
; Taiwanese tea cafe latte smoothie
|
||||
If $12-99-03-0036.Button = "Enable" Then
|
||||
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0036"
|
||||
Var ListOfCoffee[IndexOfCoffee] = "12-99-03-0036"
|
||||
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||
Var IndexOfCoffee = IndexOfCoffee + 1
|
||||
EndIf
|
||||
|
||||
; Melon cafe latte smoothie
|
||||
If $12-99-03-0037.Button = "Enable" Then
|
||||
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0037"
|
||||
Var ListOfCoffee[IndexOfCoffee] = "12-99-03-0037"
|
||||
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||
Var IndexOfCoffee = IndexOfCoffee + 1
|
||||
EndIf
|
||||
|
||||
; Taiwanese tea cafe latte smoothie v2
|
||||
If $12-99-03-0038.Button = "Enable" Then
|
||||
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0038"
|
||||
Var ListOfCoffee[IndexOfCoffee] = "12-99-03-0038"
|
||||
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||
Var IndexOfCoffee = IndexOfCoffee + 1
|
||||
EndIf
|
||||
|
||||
; Melon cafe latte smoothie v2
|
||||
If $12-99-03-0039.Button = "Enable" Then
|
||||
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0039"
|
||||
Var ListOfCoffee[IndexOfCoffee] = "12-99-03-0039"
|
||||
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||
Var IndexOfCoffee = IndexOfCoffee + 1
|
||||
EndIf
|
||||
|
||||
|
||||
DEBUGVAR IndexOfAllRandom
|
||||
DEBUGVAR IndexOfCoffee
|
||||
DEBUGVAR IndexOfMilk
|
||||
DEBUGVAR IndexOfTea
|
||||
|
||||
DEBUGVAR IndexOfRateupOreoAll
|
||||
DEBUGVAR IndexOfRateupOreoCoffee
|
||||
DEBUGVAR IndexOfRateupOreoMilk
|
||||
DEBUGVAR IndexOfRateupOreoTea
|
||||
|
||||
If IndexOfAllRandom = 0 Then
|
||||
Var SubRandAllButtonEnable = "Disable"
|
||||
EndIf
|
||||
|
||||
If IndexOfCoffee = 0 Then
|
||||
Var SubRandCoffButtonEnable = "Disable"
|
||||
EndIf
|
||||
If IndexOfMilk = 0 Then
|
||||
Var SubRandMilkButtonEnable = "Disable"
|
||||
EndIf
|
||||
If IndexOfTea = 0 Then
|
||||
Var SubRandTeaButtonEnable = "Disable"
|
||||
EndIf
|
||||
|
||||
|
||||
If IndexOfRateupOreoAll = 0 Then
|
||||
Var SubRandAllButtonEnable = "Disable"
|
||||
EndIf
|
||||
|
||||
If IndexOfRateupOreoCoffee = 0 Then
|
||||
Var SubRandCoffButtonEnable = "Disable"
|
||||
EndIf
|
||||
If IndexOfRateupOreoMilk = 0 Then
|
||||
Var SubRandMilkButtonEnable = "Disable"
|
||||
EndIf
|
||||
If IndexOfRateupOreoTea = 0 Then
|
||||
Var SubRandTeaButtonEnable = "Disable"
|
||||
EndIf
|
||||
|
||||
|
||||
|
||||
|
||||
Var ResultRandomIndex = 0
|
||||
|
||||
|
||||
Refresh
|
||||
12372
inter/tha/xml/event/promotion_pepsi_099.lxml
Normal file
12372
inter/tha/xml/event/promotion_pepsi_099.lxml
Normal file
File diff suppressed because it is too large
Load diff
48
inter/tha/xml/event/promotion_template1.inc
Normal file
48
inter/tha/xml/event/promotion_template1.inc
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
|
||||
<Button>
|
||||
<X> 42 </X>
|
||||
<Y> 520 </Y>
|
||||
|
||||
<State> BigButtonEnable </State>
|
||||
<Filename>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###normal_eng
|
||||
Else
|
||||
Var return = ###normal_thai
|
||||
EndIf
|
||||
)
|
||||
</Filename>
|
||||
<FilenamePress>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###press_eng
|
||||
Else
|
||||
Var return = ###press_thai
|
||||
EndIf
|
||||
)
|
||||
</FilenamePress>
|
||||
<FilenameDisable>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = ###disable_eng
|
||||
Else
|
||||
Var return = ###disable_thai
|
||||
EndIf
|
||||
)
|
||||
</FilenameDisable>
|
||||
<EventOnClick>
|
||||
|
||||
###EventOnClick
|
||||
|
||||
</EventOnClick>
|
||||
</Button>
|
||||
|
||||
<EventUnitTest1>
|
||||
Var BigButtonEnable = "Enable"
|
||||
Refresh
|
||||
</EventUnitTest1>
|
||||
<EventUnitTest2>
|
||||
Var BigButtonEnable = "Invisible"
|
||||
Refresh
|
||||
</EventUnitTest2>
|
||||
23
inter/tha/xml/event/promotion_template2.inc
Normal file
23
inter/tha/xml/event/promotion_template2.inc
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
|
||||
<Button>
|
||||
<X> 42 </X>
|
||||
<Y> 520 </Y>
|
||||
<State> BigButtonEnable </State>
|
||||
<Filename> ###normal_eng </Filename>
|
||||
<FilenamePress> ###press_eng </FilenamePress>
|
||||
<FilenameDisable> ###disable_eng </FilenameDisable>
|
||||
<EventOnClick>
|
||||
|
||||
###EventOnClick
|
||||
|
||||
</EventOnClick>
|
||||
</Button>
|
||||
|
||||
<EventUnitTest1>
|
||||
Var BigButtonEnable = "Enable"
|
||||
Refresh
|
||||
</EventUnitTest1>
|
||||
<EventUnitTest2>
|
||||
Var BigButtonEnable = "Invisible"
|
||||
Refresh
|
||||
</EventUnitTest2>
|
||||
305
inter/tha/xml/event/promotion_template3.inc
Normal file
305
inter/tha/xml/event/promotion_template3.inc
Normal file
|
|
@ -0,0 +1,305 @@
|
|||
;
|
||||
;
|
||||
;
|
||||
|
||||
; Sub-button for 4 random menu
|
||||
|
||||
;
|
||||
;
|
||||
;
|
||||
|
||||
<Button>
|
||||
<X> 43 </X>
|
||||
<Y> 519 </Y>
|
||||
<State> SubRandMilkButtonEnable </State>
|
||||
<Filename>
|
||||
eval(
|
||||
Var return = "ROOT/taobin_project/image/event/bn_random_milk.png"
|
||||
)
|
||||
</Filename>
|
||||
<FilenamePress>
|
||||
eval(
|
||||
Var return = "ROOT/taobin_project/image/event/bn_random_milk.png"
|
||||
)
|
||||
</FilenamePress>
|
||||
<FilenameDisable>
|
||||
eval(
|
||||
Var return = "ROOT/taobin_project/image/event/bd_random_milk.png"
|
||||
)
|
||||
</FilenameDisable>
|
||||
<EventClick>
|
||||
Var OreoGuarantee = OreoGuarantee + 1
|
||||
Var ResultRandomIndex = 0
|
||||
DEBUGVAR OreoGuarantee
|
||||
If OreoGuarantee > 4 Then
|
||||
Var IndexOfMilk = IndexOfMilk - 1
|
||||
Random2 0 IndexOfMilk ResultRandomIndex
|
||||
Var ProductCodeRandom = ListOfMilk[ResultRandomIndex]
|
||||
DEBUGVAR ListOfMilk[ResultRandomIndex]
|
||||
|
||||
Var OreoGuarantee = 0
|
||||
Else
|
||||
Var IndexOfRateupOreoMilk = IndexOfRateupOreoMilk - 1
|
||||
Random2 0 IndexOfRateupOreoMilk ResultRandomIndex
|
||||
Var ProductCodeRandom = ListOfOreoMilk[ResultRandomIndex]
|
||||
DEBUGVAR ListOfOreoMilk[ResultRandomIndex]
|
||||
EndIf
|
||||
|
||||
DEBUGVAR ResultRandomIndex
|
||||
|
||||
Topping "Load" ProductCodeRandom
|
||||
Var OpenFromXML = CurrentXMLFileName2
|
||||
Open "ROOT/taobin_project/xml/page_topping_select_35.xml"
|
||||
</EventClick>
|
||||
</Button>
|
||||
<Text>
|
||||
<X> 91</X>
|
||||
<Y> 635 </Y>
|
||||
<Size> 32 </Size>
|
||||
<Width>128</Width>
|
||||
<Height>64</Height>
|
||||
<Font> MITRegularTTF </Font>
|
||||
<Color> 0x5A5A5A </Color>
|
||||
<Mode> "disable-show" </Mode>
|
||||
<State> SubRandMilkButtonEnable </State>
|
||||
<Value> text_unavailable </Value>
|
||||
<Align> center-vertical-horizontal </Align>
|
||||
</Text>
|
||||
|
||||
<Button>
|
||||
<X> 301 </X>
|
||||
<Y> 519 </Y>
|
||||
<State> SubRandTeaButtonEnable </State>
|
||||
<Filename>
|
||||
eval(
|
||||
Var return = "ROOT/taobin_project/image/event/bn_random_tea.png"
|
||||
)
|
||||
</Filename>
|
||||
<FilenamePress>
|
||||
eval(
|
||||
Var return = "ROOT/taobin_project/image/event/bn_random_tea.png"
|
||||
)
|
||||
</FilenamePress>
|
||||
<FilenameDisable>
|
||||
eval(
|
||||
Var return = "ROOT/taobin_project/image/event/bd_random_tea.png"
|
||||
)
|
||||
</FilenameDisable>
|
||||
<EventClick>
|
||||
Var OreoGuarantee = OreoGuarantee + 1
|
||||
Var ResultRandomIndex = 0
|
||||
DEBUGVAR OreoGuarantee
|
||||
DEBUGVAR IndexOfTea
|
||||
DEBUGVAR IndexOfRateupOreoTea
|
||||
If OreoGuarantee > 4 Then
|
||||
|
||||
Var IndexOfTea = IndexOfTea - 1
|
||||
Random2 0 IndexOfTea ResultRandomIndex
|
||||
Var ProductCodeRandom = ListOfTea[ResultRandomIndex]
|
||||
DEBUGVAR ListOfTea[ResultRandomIndex]
|
||||
|
||||
Var OreoGuarantee = 0
|
||||
Else
|
||||
|
||||
Var IndexOfRateupOreoTea = IndexOfRateupOreoTea - 1
|
||||
Random2 0 IndexOfRateupOreoTea ResultRandomIndex
|
||||
Var ProductCodeRandom = ListOfOreoTea[ResultRandomIndex]
|
||||
DEBUGVAR ListOfOreoTea[ResultRandomIndex]
|
||||
|
||||
EndIf
|
||||
|
||||
DEBUGVAR ResultRandomIndex
|
||||
|
||||
Topping "Load" ProductCodeRandom
|
||||
Var OpenFromXML = CurrentXMLFileName2
|
||||
Open "ROOT/taobin_project/xml/page_topping_select_35.xml"
|
||||
</EventClick>
|
||||
</Button>
|
||||
<Text>
|
||||
<X> 349 </X>
|
||||
<Y> 635 </Y>
|
||||
<Size> 32 </Size>
|
||||
<Width>128</Width>
|
||||
<Height>64</Height>
|
||||
<Font> MITRegularTTF </Font>
|
||||
<Color> 0x5A5A5A </Color>
|
||||
<Mode> "disable-show" </Mode>
|
||||
<State> SubRandTeaButtonEnable </State>
|
||||
<Value> text_unavailable </Value>
|
||||
<Align> center-vertical-horizontal </Align>
|
||||
</Text>
|
||||
|
||||
|
||||
<Button>
|
||||
<X> 43 </X>
|
||||
<Y> 837 </Y>
|
||||
<State> SubRandCoffButtonEnable </State>
|
||||
<Filename>
|
||||
eval(
|
||||
Var return = "ROOT/taobin_project/image/event/bn_random_coffee.png"
|
||||
)
|
||||
</Filename>
|
||||
<FilenamePress>
|
||||
eval(
|
||||
Var return = "ROOT/taobin_project/image/event/bn_random_coffee.png"
|
||||
)
|
||||
</FilenamePress>
|
||||
<FilenameDisable>
|
||||
eval(
|
||||
Var return = "ROOT/taobin_project/image/event/bd_random_coffee.png"
|
||||
)
|
||||
</FilenameDisable>
|
||||
<EventClick>
|
||||
Var OreoGuarantee = OreoGuarantee + 1
|
||||
Var ResultRandomIndex = 0
|
||||
DEBUGVAR OreoGuarantee
|
||||
DEBUGVAR IndexOfCoffee
|
||||
DEBUGVAR IndexOfRateupOreoCoffee
|
||||
If OreoGuarantee > 4 Then
|
||||
|
||||
Var IndexOfCoffee = IndexOfCoffee - 1
|
||||
Random2 0 IndexOfCoffee ResultRandomIndex
|
||||
Var ProductCodeRandom = ListOfCoffee[ResultRandomIndex]
|
||||
DEBUGVAR ListOfCoffee[ResultRandomIndex]
|
||||
|
||||
Var OreoGuarantee = 0
|
||||
|
||||
Else
|
||||
|
||||
Var IndexOfRateupOreoCoffee = IndexOfRateupOreoCoffee - 1
|
||||
Random2 0 IndexOfRateupOreoCoffee ResultRandomIndex
|
||||
Var ProductCodeRandom = ListOfOreoCoffee[ResultRandomIndex]
|
||||
DEBUGVAR ListOfOreoCoffee[ResultRandomIndex]
|
||||
|
||||
EndIf
|
||||
DEBUGVAR ResultRandomIndex
|
||||
|
||||
Topping "Load" ProductCodeRandom
|
||||
Var OpenFromXML = CurrentXMLFileName2
|
||||
Open "ROOT/taobin_project/xml/page_topping_select_35.xml"
|
||||
</EventClick>
|
||||
</Button>
|
||||
<Text>
|
||||
<X> 91</X>
|
||||
<Y> 953 </Y>
|
||||
<Size> 32 </Size>
|
||||
<Width>128</Width>
|
||||
<Height>64</Height>
|
||||
<Font> MITRegularTTF </Font>
|
||||
<Color> 0x5A5A5A </Color>
|
||||
<Mode> "disable-show" </Mode>
|
||||
<State> SubRandCoffButtonEnable </State>
|
||||
<Value> text_unavailable </Value>
|
||||
<Align> center-vertical-horizontal </Align>
|
||||
</Text>
|
||||
|
||||
<Button>
|
||||
<X> 301 </X>
|
||||
<Y> 837 </Y>
|
||||
<State> SubRandAllButtonEnable </State>
|
||||
<Filename>
|
||||
eval(
|
||||
Var return = "ROOT/taobin_project/image/event/bn_random_all.png"
|
||||
)
|
||||
</Filename>
|
||||
<FilenamePress>
|
||||
eval(
|
||||
Var return = "ROOT/taobin_project/image/event/bn_random_all.png"
|
||||
)
|
||||
</FilenamePress>
|
||||
<FilenameDisable>
|
||||
eval(
|
||||
Var return = "ROOT/taobin_project/image/event/bd_random_all.png"
|
||||
)
|
||||
</FilenameDisable>
|
||||
<EventClick>
|
||||
Var OreoGuarantee = OreoGuarantee + 1
|
||||
Var ResultRandomIndex = 0
|
||||
DEBUGVAR OreoGuarantee
|
||||
If OreoGuarantee > 4 Then
|
||||
Var IndexOfAllRandom = IndexOfAllRandom - 1
|
||||
Random2 0 IndexOfAllRandom ResultRandomIndex
|
||||
Var ProductCodeRandom = ListOfAllRandom[ResultRandomIndex]
|
||||
DEBUGVAR ListOfAllRandom[ResultRandomIndex]
|
||||
Var OreoGuarantee = 0
|
||||
Else
|
||||
Var IndexOfRateupOreoAll = IndexOfRateupOreoAll - 1
|
||||
Random2 0 IndexOfRateupOreoAll ResultRandomIndex
|
||||
Var ProductCodeRandom = ListOfOreoAll[ResultRandomIndex]
|
||||
DEBUGVAR ListOfOreoAll[ResultRandomIndex]
|
||||
|
||||
EndIf
|
||||
DEBUGVAR ResultRandomIndex
|
||||
|
||||
Topping "Load" ProductCodeRandom
|
||||
Var OpenFromXML = CurrentXMLFileName2
|
||||
Open "ROOT/taobin_project/xml/page_topping_select_35.xml"
|
||||
</EventClick>
|
||||
</Button>
|
||||
<Text>
|
||||
<X> 349</X>
|
||||
<Y> 953 </Y>
|
||||
<Size> 32 </Size>
|
||||
<Width>128</Width>
|
||||
<Height>64</Height>
|
||||
<Font> MITRegularTTF </Font>
|
||||
<Color> 0x5A5A5A </Color>
|
||||
<Mode> "disable-show" </Mode>
|
||||
<State> SubRandAllButtonEnable </State>
|
||||
<Value> text_unavailable </Value>
|
||||
<Align> center-vertical-horizontal </Align>
|
||||
</Text>
|
||||
|
||||
;
|
||||
;
|
||||
;
|
||||
;
|
||||
; Big button for mys event
|
||||
;
|
||||
;
|
||||
;
|
||||
|
||||
<Button>
|
||||
<X> 42 </X>
|
||||
<Y> 518 </Y>
|
||||
<State> BigButtonEnable </State>
|
||||
<Filename>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = "ROOT/taobin_project/image/event/pro_mystery_cup_en.png"
|
||||
Else
|
||||
Var return = "ROOT/taobin_project/image/event/pro_mystery_cup_th.png"
|
||||
EndIf
|
||||
)
|
||||
</Filename>
|
||||
<FilenamePress>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = "ROOT/taobin_project/image/event/pro_mystery_cup_en.png"
|
||||
Else
|
||||
Var return = "ROOT/taobin_project/image/event/pro_mystery_cup_th.png"
|
||||
EndIf
|
||||
)
|
||||
</FilenamePress>
|
||||
<FilenameDisable>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = "ROOT/taobin_project/image/event/pro_mystery_cup_en.png"
|
||||
Else
|
||||
Var return = "ROOT/taobin_project/image/event/pro_mystery_cup_th.png"
|
||||
EndIf
|
||||
)
|
||||
</FilenameDisable>
|
||||
<EventOnClick>
|
||||
###EventOnClick
|
||||
</EventOnClick>
|
||||
</Button>
|
||||
|
||||
<EventUnitTest1>
|
||||
Var BigButtonEnable = "Enable"
|
||||
Refresh
|
||||
</EventUnitTest1>
|
||||
<EventUnitTest2>
|
||||
Var BigButtonEnable = "Invisible"
|
||||
Refresh
|
||||
</EventUnitTest2>
|
||||
12166
inter/tha/xml/event/promotion_westfield.lxml
Normal file
12166
inter/tha/xml/event/promotion_westfield.lxml
Normal file
File diff suppressed because it is too large
Load diff
12166
inter/tha/xml/event/promotion_winter_warmers.lxml
Normal file
12166
inter/tha/xml/event/promotion_winter_warmers.lxml
Normal file
File diff suppressed because it is too large
Load diff
27
inter/tha/xml/event/script_common_for_open_promotion_xml.ev
Normal file
27
inter/tha/xml/event/script_common_for_open_promotion_xml.ev
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
; thailand
|
||||
|
||||
|
||||
; zone promote
|
||||
Var BigButtonEnable = "Enable"
|
||||
|
||||
Var RecommendPage = "ROOT/taobin_project/inter/tha/xml/page_catalog_group_recommend.lxml"
|
||||
|
||||
If WinterWarmersCatalogFlag = 1 Then
|
||||
Var RecommendPage = "ROOT/taobin_project/inter/tha/xml/event/promotion_winter_warmers.lxml"
|
||||
EndIf
|
||||
|
||||
If WestfieldCatalogFlag = 1 Then
|
||||
Var RecommendPage = "ROOT/taobin_project/inter/tha/xml/event/promotion_westfield.lxml"
|
||||
EndIf
|
||||
|
||||
If AnniverseryPro = 1 Then
|
||||
Var RecommendPage = "ROOT/taobin_project/inter/tha/xml/event/promotion_anniversary_1st.lxml"
|
||||
EndIf
|
||||
|
||||
If OpenFromPageBoard = 1 Then
|
||||
OpenInst 2 RecommendPage
|
||||
Else
|
||||
Open RecommendPage
|
||||
EndIf
|
||||
|
||||
Var OpenFromPageBoard = 0
|
||||
37
inter/tha/xml/event/tricker.ev
Normal file
37
inter/tha/xml/event/tricker.ev
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
; thailand
|
||||
|
||||
|
||||
;DEBUGVAR SystemDateMonthInt
|
||||
;DEBUGVAR SystemDateDayInt
|
||||
|
||||
; Reset flag away.
|
||||
|
||||
; Enable app game
|
||||
Var GameEnableFromTrickerEv = 1
|
||||
|
||||
Var NewCollectPointFlag = 1
|
||||
|
||||
Var WinterWarmersCatalogFlag = 0
|
||||
|
||||
Var WestfieldCatalogFlag = 0
|
||||
|
||||
; 2 - 29 Sep
|
||||
Var AnniverseryPro = 0
|
||||
|
||||
If SystemDateMonthInt = 10 Then
|
||||
If SystemDateDayInt >= 2 Then
|
||||
If SystemDateDayInt <= 29 then
|
||||
Var AnniverseryPro = 1
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
Var XMLLiveInfoEnable = 1
|
||||
|
||||
If BoxID = 200027 Then
|
||||
Var AnniverseryPro = 1
|
||||
EndIf
|
||||
|
||||
|
||||
DEBUGVAR Propepsi99Enable
|
||||
DEBUGVAR DisplayFormatFull
|
||||
132
inter/tha/xml/menu_catalog_default_init.lxml
Normal file
132
inter/tha/xml/menu_catalog_default_init.lxml
Normal file
|
|
@ -0,0 +1,132 @@
|
|||
Var NextPage = "-"
|
||||
|
||||
DEBUGVAR ICE_PROCESS_STATUS
|
||||
DEBUGVAR ICE_PROCESS_TXT
|
||||
|
||||
|
||||
DEBUGVAR LanguageShow
|
||||
DEBUGVAR CountryName
|
||||
|
||||
If LanguageShow = "ENG" Then
|
||||
Var DirImage2 = "ROOT/taobin_project/image/drink_option_en/"
|
||||
Var DirImageAlter = "ROOT/taobin_project/image/page3_2_en/"
|
||||
Var DirImage = "ROOT/taobin_project/image/page3_en"
|
||||
Var ice_tab_text = "Ice will be ready at "
|
||||
|
||||
EndIf
|
||||
If LanguageShow = "THAI" Then
|
||||
Var DirImage2 = "ROOT/taobin_project/image/drink_option/"
|
||||
Var DirImageAlter = "ROOT/taobin_project/image/page3_2/"
|
||||
Var ice_tab_text = "น้ำแข็งจะพร้อมเวลา "
|
||||
Var DirImage = "ROOT/taobin_project/image/page3"
|
||||
EndIf
|
||||
If LanguageShow = "MYANMAR" Then
|
||||
Var DirImage2 = "ROOT/taobin_project/image/drink_option_mmr/"
|
||||
Var DirImageAlter = "ROOT/taobin_project/image/page3_2_mmr/"
|
||||
Var ice_tab_text = "ရေခဲပြင်မှာ ထားမယ်။ "
|
||||
EndIf
|
||||
|
||||
;inter-image
|
||||
If CountryName = "Malaysia" Then
|
||||
Var DirImage2 = "ROOT/taobin_project/image/drink_option_myr/"
|
||||
Var DirImageAlter = "ROOT/taobin_project/image/page3_2_en/"
|
||||
Var DirImage = "ROOT/taobin_project/image/page3_en"
|
||||
Var ice_tab_text = "Ice will be ready at "
|
||||
EndIf
|
||||
|
||||
|
||||
;inter-image
|
||||
If CountryName = "Australia" Then
|
||||
Var DirImage2 = "ROOT/taobin_project/image/drink_option_aus/"
|
||||
Var DirImageAlter = "ROOT/taobin_project/image/page3_2_en/"
|
||||
Var DirImage = "ROOT/taobin_project/image/page3_en"
|
||||
Var ice_tab_text = "Ice will be ready at "
|
||||
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"
|
||||
;pepsi & 7up
|
||||
Var Menu61Selected = "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
|
||||
|
||||
If WinterWarmersCatalogFlag = 1 Then
|
||||
Var MenuWinterWarmersCatalogState = "Enable"
|
||||
Else
|
||||
Var MenuWinterWarmersCatalogState = "Invisible"
|
||||
EndIf
|
||||
DEBUGVAR WinterWarmersCatalogFlag
|
||||
DEBUGVAR MenuWinterWarmersCatalogState
|
||||
;
|
||||
|
||||
12
inter/tha/xml/menu_catalog_default_init.py
Normal file
12
inter/tha/xml/menu_catalog_default_init.py
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
if "v2" in param:
|
||||
print("new menu_catalog_default_init catalog ============================> inter.")
|
||||
f = open( directory_to_process + "/menu_catalog_default_init.lxml", "r")
|
||||
#print(f.read())
|
||||
out_xml(f.read())
|
||||
f.close()
|
||||
else:
|
||||
print("new menu_catalog_default_init catalog enable.")
|
||||
f = open( directory_to_process + "/menu_catalog_default_init.xml", "r")
|
||||
#print(f.read())
|
||||
out_xml(f.read())
|
||||
f.close()
|
||||
106
inter/tha/xml/menu_catalog_default_init.xml
Normal file
106
inter/tha/xml/menu_catalog_default_init.xml
Normal file
|
|
@ -0,0 +1,106 @@
|
|||
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
|
||||
;
|
||||
|
||||
|
||||
548
inter/tha/xml/menu_catalog_new.lxml
Normal file
548
inter/tha/xml/menu_catalog_new.lxml
Normal file
|
|
@ -0,0 +1,548 @@
|
|||
|
||||
; 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
|
||||
If NETCORE_LOST_CNT > 120 Then
|
||||
Var stop_now = "true"
|
||||
Var MachineErrorDetailAll = "???"
|
||||
SAVELOG "NETCORE_LOST_CNT"
|
||||
|
||||
Open "ROOT/taobin_project/xml/page_back_to_error.xml"
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
Var Timeout = Timeout + 1
|
||||
TimerReset
|
||||
</EventTimeout>
|
||||
|
||||
<EventLanguageOnChange>
|
||||
DEBUGVAR LanguageShow
|
||||
If LanguageShow = "ENG" Then
|
||||
Var DirImage2 = "ROOT/taobin_project/image/drink_option_en/"
|
||||
Var DirImageAlter = "ROOT/taobin_project/image/page3_2_en/"
|
||||
|
||||
EndIf
|
||||
If LanguageShow = "THAI" Then
|
||||
Var DirImage2 = "ROOT/taobin_project/image/drink_option/"
|
||||
Var DirImageAlter = "ROOT/taobin_project/image/page3_2/"
|
||||
EndIf
|
||||
If LanguageShow = "MYANMAR" Then
|
||||
Var show_eng = "true"
|
||||
DEBUGVAR show_eng
|
||||
Var DirImage2 = "ROOT/taobin_project/image/drink_option_mmr/"
|
||||
Var DirImageAlter = "ROOT/taobin_project/image/page3_2_mmr/"
|
||||
EndIf
|
||||
;inter-image
|
||||
If CountryName = "Malaysia" Then
|
||||
Var DirImage2 = "ROOT/taobin_project/image/drink_option_myr/"
|
||||
Var DirImageAlter = "ROOT/taobin_project/image/page3_2_en/"
|
||||
Var DirImage = "ROOT/taobin_project/image/page3_en"
|
||||
Var ice_tab_text = "Ice will be ready at "
|
||||
EndIf
|
||||
;inter-image
|
||||
If CountryName = "australia" Then
|
||||
Var DirImage2 = "ROOT/taobin_project/image/drink_option_aus/"
|
||||
Var DirImageAlter = "ROOT/taobin_project/image/page3_2_en/"
|
||||
Var DirImageAlterMilk = "ROOT/taobin_project/inter/aus/image/page3_2_en/"
|
||||
Var DirImage = "ROOT/taobin_project/image/page3_en"
|
||||
Var ice_tab_text = "Ice will be ready at "
|
||||
EndIf
|
||||
|
||||
SAVELOG "EventLanguageOnChange menu -list"
|
||||
|
||||
RefreshAll
|
||||
|
||||
Var LanguageButtonEnable = "Enable"
|
||||
|
||||
Var ButtonLanguageCurrentXPosition = 1005
|
||||
Var ButtonLanguageCurrentYPosition = 458 - 38
|
||||
|
||||
Var ButtonLanguageListXPosition = 970
|
||||
Var ButtonLanguageListYPosition = 450 - 38
|
||||
OpenInst 3 "ROOT/taobin_project/inter/tha/xml/topview2.xml"
|
||||
|
||||
|
||||
</EventLanguageOnChange>
|
||||
|
||||
|
||||
; 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>
|
||||
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.lxml"
|
||||
EndIf
|
||||
Else
|
||||
Open "ROOT/taobin_project/xml/page_catalog.lxml"
|
||||
EndIf
|
||||
|
||||
</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 = "-"
|
||||
|
||||
Var OpenFileXML = CountryRootPath + "xml/event/script_common_for_open_promotion_xml.ev"
|
||||
TRY OpenFileXML
|
||||
</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.lxml"
|
||||
|
||||
Var OpenFileXML = CountryRootPath + "xml/page_catalog_group_coffee.lxml"
|
||||
|
||||
DEBUGVAR CountryRootPath
|
||||
DEBUGVAR OpenFileXML
|
||||
|
||||
If CountryName = "Thailand" Then
|
||||
If InternationalEnable = 1 Then
|
||||
Open OpenFileXML
|
||||
Else
|
||||
Open "ROOT/taobin_project/xml/page_catalog_group_coffee.lxml"
|
||||
EndIf
|
||||
Else
|
||||
Open OpenFileXML
|
||||
EndIf
|
||||
|
||||
</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 = "-"
|
||||
|
||||
;Open "ROOT/taobin_project/xml/page_catalog_group_tea.lxml"
|
||||
|
||||
Var OpenFileXML = CountryRootPath + "xml/page_catalog_group_tea.lxml"
|
||||
|
||||
DEBUGVAR CountryRootPath
|
||||
DEBUGVAR OpenFileXML
|
||||
|
||||
If CountryName = "Thailand" Then
|
||||
If InternationalEnable = 1 Then
|
||||
Open OpenFileXML
|
||||
Else
|
||||
Open "ROOT/taobin_project/xml/page_catalog_group_tea.lxml"
|
||||
EndIf
|
||||
Else
|
||||
Open OpenFileXML
|
||||
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 = "-"
|
||||
|
||||
;Open "ROOT/taobin_project/xml/page_catalog_group_milk.lxml"
|
||||
|
||||
Var OpenFileXML = CountryRootPath + "xml/page_catalog_group_milk.lxml"
|
||||
|
||||
DEBUGVAR CountryRootPath
|
||||
DEBUGVAR OpenFileXML
|
||||
|
||||
If CountryName = "Thailand" Then
|
||||
If InternationalEnable = 1 Then
|
||||
Open OpenFileXML
|
||||
Else
|
||||
Open "ROOT/taobin_project/xml/page_catalog_group_milk.lxml"
|
||||
EndIf
|
||||
Else
|
||||
Open OpenFileXML
|
||||
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 = "-"
|
||||
;Open "ROOT/taobin_project/xml/page_catalog_group_whey.lxml"
|
||||
|
||||
Var OpenFileXML = CountryRootPath + "xml/page_catalog_group_whey.lxml"
|
||||
|
||||
DEBUGVAR CountryRootPath
|
||||
DEBUGVAR OpenFileXML
|
||||
|
||||
If CountryName = "Thailand" Then
|
||||
If InternationalEnable = 1 Then
|
||||
Open OpenFileXML
|
||||
Else
|
||||
Open "ROOT/taobin_project/xml/page_catalog_group_whey.lxml"
|
||||
EndIf
|
||||
Else
|
||||
Open OpenFileXML
|
||||
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 = "-"
|
||||
;Open "ROOT/taobin_project/xml/page_catalog_group_appfast.lxml"
|
||||
|
||||
Var OpenFileXML = CountryRootPath + "xml/page_catalog_group_appfast.lxml"
|
||||
|
||||
DEBUGVAR CountryRootPath
|
||||
DEBUGVAR OpenFileXML
|
||||
|
||||
If CountryName = "Thailand" Then
|
||||
If InternationalEnable = 1 Then
|
||||
Open OpenFileXML
|
||||
Else
|
||||
Open "ROOT/taobin_project/xml/page_catalog_group_appfast.lxml"
|
||||
EndIf
|
||||
Else
|
||||
Open OpenFileXML
|
||||
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.lxml"
|
||||
|
||||
Var OpenFileXML = CountryRootPath + "xml/page_catalog_group_forkid.lxml"
|
||||
|
||||
DEBUGVAR CountryRootPath
|
||||
DEBUGVAR OpenFileXML
|
||||
|
||||
If CountryName = "Thailand" Then
|
||||
If InternationalEnable = 1 Then
|
||||
Open OpenFileXML
|
||||
Else
|
||||
Open "ROOT/taobin_project/xml/page_catalog_group_forkid.lxml"
|
||||
EndIf
|
||||
Else
|
||||
Open OpenFileXML
|
||||
EndIf
|
||||
|
||||
</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.lxml"
|
||||
|
||||
Var OpenFileXML = CountryRootPath + "xml/page_catalog_group_health.lxml"
|
||||
|
||||
DEBUGVAR CountryRootPath
|
||||
DEBUGVAR OpenFileXML
|
||||
|
||||
If CountryName = "Thailand" Then
|
||||
If InternationalEnable = 1 Then
|
||||
Open OpenFileXML
|
||||
Else
|
||||
Open "ROOT/taobin_project/xml/page_catalog_group_health.lxml"
|
||||
EndIf
|
||||
Else
|
||||
Open OpenFileXML
|
||||
EndIf
|
||||
</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.lxml"
|
||||
Var OpenFileXML = CountryRootPath + "xml/page_catalog_group_cocktail.lxml"
|
||||
|
||||
DEBUGVAR CountryRootPath
|
||||
DEBUGVAR OpenFileXML
|
||||
|
||||
If CountryName = "Thailand" Then
|
||||
If InternationalEnable = 1 Then
|
||||
Open OpenFileXML
|
||||
Else
|
||||
Open "ROOT/taobin_project/xml/page_catalog_group_cocktail.lxml"
|
||||
EndIf
|
||||
Else
|
||||
Open OpenFileXML
|
||||
EndIf
|
||||
</EventClick>
|
||||
</Button>
|
||||
<Button>
|
||||
<Layout> "linear" </Layout>
|
||||
<State> Menu61Selected </State>
|
||||
<Filename> Var( DirImageAlter + "/bn_Pepsi_7up.png") </Filename>
|
||||
<FilenamePress> Var( DirImageAlter + "/bp_Pepsi_7up.png") </FilenamePress>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
Var NextPage = "-"
|
||||
Var OpenFileXML = CountryRootPath + "xml/page_catalog_group_pepsi_7up.lxml"
|
||||
|
||||
DEBUGVAR CountryRootPath
|
||||
DEBUGVAR OpenFileXML
|
||||
|
||||
If CountryName = "Thailand" Then
|
||||
If InternationalEnable = 1 Then
|
||||
Open OpenFileXML
|
||||
Else
|
||||
Open "ROOT/taobin_project/xml/page_catalog_group_pepsi_7up.lxml"
|
||||
EndIf
|
||||
Else
|
||||
Open OpenFileXML
|
||||
EndIf
|
||||
</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 = "-"
|
||||
;Open "ROOT/taobin_project/xml/page_catalog_group_other.lxml"
|
||||
Var OpenFileXML = CountryRootPath + "xml/page_catalog_group_other.lxml"
|
||||
|
||||
DEBUGVAR CountryRootPath
|
||||
DEBUGVAR OpenFileXML
|
||||
|
||||
If CountryName = "Thailand" Then
|
||||
If InternationalEnable = 1 Then
|
||||
Open OpenFileXML
|
||||
Else
|
||||
Open "ROOT/taobin_project/xml/page_catalog_group_other.lxml"
|
||||
EndIf
|
||||
Else
|
||||
Open OpenFileXML
|
||||
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>
|
||||
|
||||
<Button>
|
||||
<Layout> "linear" </Layout>
|
||||
<State> MenuWinterWarmersCatalogState </State>
|
||||
<Filename> "ROOT/taobin_project/inter/tha/image/page3_2_en/bn_winter_warmers.png" </Filename>
|
||||
<FilenamePress> "ROOT/taobin_project/inter/tha/image/page3_2_en/bp_winter_warmers.png" </FilenamePress>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
Var NextPage = "-"
|
||||
Var OpenFileXML = CountryRootPath + "xml/page_catalog_group_winter_warmers_ignore.lxml"
|
||||
Open OpenFileXML
|
||||
</EventClick>
|
||||
</Button>
|
||||
</Row2>
|
||||
</ListView1>
|
||||
|
||||
|
||||
<Text>
|
||||
<X> 940 </X>
|
||||
<Y> 462 </Y>
|
||||
<Size> 22 </Size>
|
||||
<Width> 170 </Width>
|
||||
<Height> 30 </Height>
|
||||
<Font> KanitMediumTTF </Font>
|
||||
<Color> 0x6F5F51 </Color>
|
||||
<Value> PriceUnitText </Value>
|
||||
</Text>
|
||||
|
||||
<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"
|
||||
Open "/mnt/sdcard/coffeevending/taobin_project/xml/page_payment.xml"
|
||||
|
||||
EndIf
|
||||
Else
|
||||
EndIf
|
||||
|
||||
</EventWebApp>
|
||||
|
||||
22
inter/tha/xml/menu_catalog_new.py
Normal file
22
inter/tha/xml/menu_catalog_new.py
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
|
||||
print("directory_to_process =" + directory_to_process)
|
||||
if param == "old":
|
||||
print("old layout catalog enable.")
|
||||
f = open( directory_to_process + "/menu_catalog.xml", "r")
|
||||
#print(f.read())
|
||||
out_xml(f.read())
|
||||
f.close()
|
||||
else:
|
||||
if "v2" in param:
|
||||
print("new layout catalog ============================> inter.")
|
||||
f = open( directory_to_process + "/menu_catalog_new.lxml", "r")
|
||||
#print(f.read())
|
||||
out_xml(f.read())
|
||||
f.close()
|
||||
else:
|
||||
print("new layout catalog enable.")
|
||||
f = open( directory_to_process + "/menu_catalog_new.xml", "r")
|
||||
#print(f.read())
|
||||
out_xml(f.read())
|
||||
f.close()
|
||||
|
||||
9
inter/tha/xml/menu_catalog_new_menu.lxml
Normal file
9
inter/tha/xml/menu_catalog_new_menu.lxml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
|
||||
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
|
||||
12
inter/tha/xml/menu_catalog_new_menu.py
Normal file
12
inter/tha/xml/menu_catalog_new_menu.py
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
if "v2" in param:
|
||||
print("new menu_catalog_new_menu catalog ============================> inter.")
|
||||
f = open( directory_to_process + "/menu_catalog_new_menu.lxml", "r")
|
||||
#print(f.read())
|
||||
out_xml(f.read())
|
||||
f.close()
|
||||
else:
|
||||
print("new menu_catalog_new_menu catalog enable.")
|
||||
f = open( directory_to_process + "/menu_catalog_new_menu.xml", "r")
|
||||
#print(f.read())
|
||||
out_xml(f.read())
|
||||
f.close()
|
||||
9
inter/tha/xml/menu_catalog_new_menu.xml
Normal file
9
inter/tha/xml/menu_catalog_new_menu.xml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
|
||||
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
|
||||
149
inter/tha/xml/menu_gen.py
Normal file
149
inter/tha/xml/menu_gen.py
Normal file
|
|
@ -0,0 +1,149 @@
|
|||
|
||||
out_xml('<FrameScroll> \r\n')
|
||||
out_xml('<X> 10 </X>\r\n')
|
||||
out_xml('<Y> 497 </Y>\r\n')
|
||||
out_xml('<Width> 1080 </Width>\r\n')
|
||||
out_xml('<ScrollHeight> "auto" </ScrollHeight>\r\n')
|
||||
out_xml('<Scroll> "Vertical" </Scroll>\r\n')
|
||||
out_xml('<Column> 4 </Column>\r\n')
|
||||
|
||||
for i in range( menu_count):
|
||||
i_str = str(i + 1)
|
||||
out_xml( '\t; button i='+ i_str + ' ' + product_code[i]+ ' \r\n')
|
||||
|
||||
out_xml( '<Block>\r\n')
|
||||
out_xml('\t<MarginLeft> 33 </MarginLeft>\r\n')
|
||||
out_xml('\t<MarginTop> 22 </MarginTop>\r\n')
|
||||
out_xml('\t<Width> 225 </Width>\r\n')
|
||||
out_xml('\t<Height> 296 </Height>\r\n')
|
||||
out_xml( '\t<State> $' + product_code[i] + '.Button </State> \r\n')
|
||||
|
||||
out_xml( '\t<Button>\r\n')
|
||||
out_xml( '\t<State> $' + product_code[i] + '.Button </State> \r\n')
|
||||
out_xml( '\t<Filename> Var( "' + default_dir + '" + $'+ product_code[i] +'.image ) </Filename>\r\n')
|
||||
out_xml( '\t<FilenamePress> Var( "' + default_dir_press + '" + $'+ product_code[i] +'.image ) " </FilenamePress>\r\n')
|
||||
out_xml( '\t<FilenameDisable> Var( "' + default_dir_disable + '" + $'+ product_code[i] +'.image ) " </FilenameDisable>\r\n')
|
||||
out_xml( '\t<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>\r\n')
|
||||
out_xml( '\t<Volume> SoundVolume </Volume>\r\n')
|
||||
out_xml( '\t<EventOnClick> \r\n')
|
||||
|
||||
out_xml( '\t\tVar SelectDrink = $'+ product_code[i] +'.Self\r\n')
|
||||
out_xml( '\t\tVar NameDrink = $' + product_code[i] + '.NameE\r\n')
|
||||
out_xml( '\t\tVar NameDrinkTH = $' + product_code[i] + '.Name\r\n')
|
||||
out_xml( '\t\tVar DrinkDescriptionTH = $' + product_code[i] + '.description\r\n')
|
||||
out_xml( '\t\tVar DrinkDescription = $' + product_code[i] + '.descriptionE\r\n')
|
||||
out_xml( '\t\tVar PriceDrink = $' + product_code[i] + '.Price\r\n')
|
||||
out_xml( '\t\tVar PictureDrink = "' + default_dir2 + '" + $'+ product_code[i] +'.image\r\n')
|
||||
out_xml( '\t\tTopping "Load" SelectDrink\r\n')
|
||||
out_xml( '\t\tSAVELOG NameDrink\r\n')
|
||||
out_xml( '\t\tVar PriceShowValue = charOfBaht + PriceDrink\r\n')
|
||||
#out_xml( '\t\tVar PriceShowValue = "Free"\r\n')
|
||||
|
||||
out_xml( '\t\tVar OpenFromXML = CurrentXMLFileName2\r\n')
|
||||
out_xml( '\t\tSTRCONTAIN "Smoothie" $' + product_code[i] + '.Button IsSmoRet\r\n')
|
||||
|
||||
out_xml( '\t\tOpen "ROOT/taobin_project/xml/page_topping_select.xml"\r\n')
|
||||
|
||||
|
||||
out_xml( '\t</EventOnClick>\r\n')
|
||||
out_xml( '\t</Button>\r\n')
|
||||
|
||||
out_xml( '\t<Text>\r\n')
|
||||
out_xml( '\t<X> 182 </X>\r\n')
|
||||
out_xml( '\t<Y> 12 </Y>\r\n')
|
||||
out_xml( '\t<State> ShowPrice </State>\r\n')
|
||||
out_xml( '\t<Align> "Hurr" </Align>\r\n')
|
||||
out_xml( '\t<Width>150</Width>\r\n')
|
||||
out_xml( '\t<Size> 27 </Size>\r\n')
|
||||
out_xml( '\t<Font> KanitTTF </Font>\r\n')
|
||||
out_xml( '\t<Color> 0xB78F24 </Color>\r\n')
|
||||
out_xml( '\t<Value> $' + product_code[i] + '.Price </Value>\r\n')
|
||||
#out_xml( '\t<Value> eval( STRCONTAIN "Smoothie" $' + product_code[i] + '.Button SmoRet \n If SmoRet = "true" Then\n Var return = "Enable"\n Else\n Var return = "Invisible"\n EndIf\n) </Value> \r\n')
|
||||
out_xml( '\t</Text>\r\n')
|
||||
|
||||
out_xml( '\t<Text>\r\n')
|
||||
out_xml( '\t<X> 164 </X>\r\n')
|
||||
out_xml( '\t<Y> 12 </Y>\r\n')
|
||||
out_xml( '\t<State> ShowPrice </State>\r\n')
|
||||
out_xml( '\t<Width>20</Width>\r\n')
|
||||
out_xml( '\t<Size> 27 </Size>\r\n')
|
||||
out_xml( '\t<Font> KanitTTF </Font>\r\n')
|
||||
out_xml( '\t<Color> 0xB78F24 </Color>\r\n')
|
||||
out_xml( '\t<Value> "฿"" </Value>\r\n')
|
||||
out_xml( '\t</Text>\r\n')
|
||||
|
||||
out_xml( '\t<Text>\r\n')
|
||||
out_xml( '\t<X> 16 </X>\r\n')
|
||||
out_xml( '\t<Y> 190 </Y>\r\n')
|
||||
out_xml( '\t<Size> 24 </Size>\r\n')
|
||||
out_xml( '\t<Width>220</Width>\r\n')
|
||||
out_xml( '\t<Mode> "multi2" </Mode>\r\n')
|
||||
out_xml( '\t<Font> KanitMediumTTF </Font>\r\n')
|
||||
out_xml( '\t<Color> 0x322B26 </Color>\r\n')
|
||||
out_xml( '\t<State> showthaiText </State>\r\n')
|
||||
out_xml( '\t<Value> $' + product_code[i] + '.Name </Value>\r\n')
|
||||
out_xml( '\t</Text>\r\n')
|
||||
|
||||
out_xml( '\t<Text>\r\n')
|
||||
out_xml( '\t<X> 16 </X>\r\n')
|
||||
out_xml( '\t<Y> 246 </Y>\r\n')
|
||||
out_xml( '\t<Size> 14 </Size>\r\n')
|
||||
out_xml( '\t<Width>220</Width>\r\n')
|
||||
out_xml( '\t<Font> KanitMediumTTF </Font>\r\n')
|
||||
out_xml( '\t<Color> 0x6F5F51 </Color>\r\n')
|
||||
out_xml( '\t<State> showthaiText </State>\r\n')
|
||||
out_xml( '\t<Value> $' + product_code[i] + '.description </Value>\r\n')
|
||||
out_xml( '\t</Text>\r\n')
|
||||
|
||||
|
||||
out_xml( '\t<Text>\r\n')
|
||||
out_xml( '\t<X> 16 </X>\r\n')
|
||||
out_xml( '\t<Y> 190 </Y>\r\n')
|
||||
out_xml( '\t<Size> 22 </Size>\r\n')
|
||||
out_xml( '\t<Width>220</Width>\r\n')
|
||||
out_xml( '\t<Mode> "multi2" </Mode>\r\n')
|
||||
out_xml( '\t<Font> KanitMediumTTF </Font>\r\n')
|
||||
out_xml( '\t<Color> 0x322B26 </Color>\r\n')
|
||||
out_xml( '\t<State> showengText </State>\r\n')
|
||||
out_xml( '\t<Value> $' + product_code[i] + '.NameE </Value>\r\n')
|
||||
out_xml( '\t</Text>\r\n')
|
||||
|
||||
out_xml( '\t<Text>\r\n')
|
||||
out_xml( '\t<X> 16 </X>\r\n')
|
||||
out_xml( '\t<Y> 246 </Y>\r\n')
|
||||
out_xml( '\t<Size> 14 </Size>\r\n')
|
||||
out_xml( '\t<Width>220</Width>\r\n')
|
||||
out_xml( '\t<Font> KanitMediumTTF </Font>\r\n')
|
||||
out_xml( '\t<Color> 0x6F5F51 </Color>\r\n')
|
||||
out_xml( '\t<State> showengText </State>\r\n')
|
||||
out_xml( '\t<Value> $' + product_code[i] + '.descriptionE </Value>\r\n')
|
||||
out_xml( '\t</Text>\r\n')
|
||||
|
||||
out_xml( '\t<Image>\r\n')
|
||||
out_xml( '\t<X> 2 </X>\r\n')
|
||||
out_xml( '\t<Y> 2 </Y>\r\n')
|
||||
out_xml( '\t<State> eval( STRCONTAIN "Smoothie" $' + product_code[i] + '.Button SmoRet \n If SmoRet = "true" Then\n Var return = "Enable"\n Else\n Var return = "Invisible"\n EndIf\n) </State> \r\n')
|
||||
out_xml( '\t<Filename> "ROOT/taobin_project/image/topping2/blender_icon.png" </Filename>\r\n')
|
||||
out_xml( '\t</Image>\r\n')
|
||||
|
||||
out_xml( '</Block>\r\n')
|
||||
|
||||
|
||||
out_xml('</FrameScroll>\r\n')
|
||||
|
||||
|
||||
out_xml('; Cart\r\n')
|
||||
out_xml('<Button>\r\n')
|
||||
out_xml('<X> 915 </X>\r\n')
|
||||
out_xml('<Y> 1769 </Y>\r\n')
|
||||
out_xml('<State> showCart </State>\r\n')
|
||||
out_xml('<Filename> cart_image_bn </Filename>\r\n')
|
||||
out_xml('<FilenamePress> cart_image_bp </FilenamePress>\r\n')
|
||||
out_xml('<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>\r\n')
|
||||
out_xml('<Volume> SoundVolume </Volume>\r\n')
|
||||
out_xml('<EventClick> \r\n')
|
||||
out_xml('\tOpen "ROOT/taobin_project/xml/page_payment_multi.xml"\r\n')
|
||||
out_xml('</EventClick>\r\n')
|
||||
out_xml('</Button>\r\n')
|
||||
|
||||
|
||||
118
inter/tha/xml/menu_gen_alter.py
Normal file
118
inter/tha/xml/menu_gen_alter.py
Normal file
|
|
@ -0,0 +1,118 @@
|
|||
|
||||
out_xml('<FrameScroll> \r\n')
|
||||
out_xml('<X> 10 </X>\r\n')
|
||||
out_xml('<Y> 497 </Y>\r\n')
|
||||
out_xml('<Width> 1080 </Width>\r\n')
|
||||
out_xml('<ScrollHeight> "auto" </ScrollHeight>\r\n')
|
||||
out_xml('<Scroll> "Vertical" </Scroll>\r\n')
|
||||
out_xml('<Column> 4 </Column>\r\n')
|
||||
|
||||
for i in range( menu_count):
|
||||
i_str = str(i + 1)
|
||||
out_xml( '\t; button i='+ i_str + ' ' + product_code[i]+ ' \r\n')
|
||||
|
||||
out_xml( '<Block>\r\n')
|
||||
out_xml('\t<MarginLeft> 33 </MarginLeft>\r\n')
|
||||
out_xml('\t<MarginTop> 22 </MarginTop>\r\n')
|
||||
out_xml('\t<Width> 225 </Width>\r\n')
|
||||
out_xml('\t<Height> 296 </Height>\r\n')
|
||||
out_xml( '\t<State> $' + product_code[i] + '.Button </State> \r\n')
|
||||
|
||||
out_xml( '\t<Button>\r\n')
|
||||
out_xml( '\t<Filename> Var( "' + default_dir + '" + $'+ product_code[i] +'.image ) </Filename>\r\n')
|
||||
out_xml( '\t<FilenamePress> Var( "' + default_dir_press + '" + $'+ product_code[i] +'.image ) " </FilenamePress>\r\n')
|
||||
out_xml( '\t<FilenameDisable> Var( "' + default_dir_disable + '" + $'+ product_code[i] +'.image ) " </FilenameDisable>\r\n')
|
||||
out_xml( '\t<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>\r\n')
|
||||
out_xml( '\t<Volume> SoundVolume </Volume>\r\n')
|
||||
out_xml( '\t<EventOnClick> \r\n')
|
||||
|
||||
out_xml( '\t\tVar SelectDrink = "'+ product_code[i] +'"\r\n')
|
||||
out_xml( '\t\tVar NameDrink = $' + product_code[i] + '.NameE\r\n')
|
||||
out_xml( '\t\tVar NameDrinkTH = $' + product_code[i] + '.Name\r\n')
|
||||
out_xml( '\t\tVar DrinkDescriptionTH = $' + product_code[i] + '.description\r\n')
|
||||
out_xml( '\t\tVar DrinkDescription = $' + product_code[i] + '.descriptionE\r\n')
|
||||
out_xml( '\t\tVar PriceDrink = $' + product_code[i] + '.Price\r\n')
|
||||
out_xml( '\t\tVar PictureDrink = "' + default_dir2 + '" + $'+ product_code[i] +'.image\r\n')
|
||||
out_xml( '\t\tTopping "Load" SelectDrink\r\n')
|
||||
out_xml( '\t\tSAVELOG NameDrink\r\n')
|
||||
out_xml( '\t\tVar PriceShowValue = charOfBaht + PriceDrink\r\n')
|
||||
#out_xml( '\t\tVar PriceShowValue = "Free"\r\n')
|
||||
out_xml( '\t\tOpen "ROOT/taobin_project/xml/page_topping_alter.xml"\r\n')
|
||||
|
||||
out_xml( '\t</EventOnClick>\r\n')
|
||||
out_xml( '\t</Button>\r\n')
|
||||
|
||||
out_xml( '\t<Text>\r\n')
|
||||
out_xml( '\t<X> 182 </X>\r\n')
|
||||
out_xml( '\t<Y> 12 </Y>\r\n')
|
||||
out_xml( '\t<State> ShowPrice </State>\r\n')
|
||||
out_xml( '\t<Align> "Hurr" </Align>\r\n')
|
||||
out_xml( '\t<Width>150</Width>\r\n')
|
||||
out_xml( '\t<Size> 27 </Size>\r\n')
|
||||
out_xml( '\t<Font> KanitTTF </Font>\r\n')
|
||||
out_xml( '\t<Color> 0xB78F24 </Color>\r\n')
|
||||
out_xml( '\t<Value> $' + product_code[i] + '.Price </Value>\r\n')
|
||||
out_xml( '\t</Text>\r\n')
|
||||
|
||||
out_xml( '\t<Text>\r\n')
|
||||
out_xml( '\t<X> 164 </X>\r\n')
|
||||
out_xml( '\t<Y> 12 </Y>\r\n')
|
||||
out_xml( '\t<State> ShowPrice </State>\r\n')
|
||||
out_xml( '\t<Width>20</Width>\r\n')
|
||||
out_xml( '\t<Size> 27 </Size>\r\n')
|
||||
out_xml( '\t<Font> KanitTTF </Font>\r\n')
|
||||
out_xml( '\t<Color> 0xB78F24 </Color>\r\n')
|
||||
out_xml( '\t<Value> "฿"" </Value>\r\n')
|
||||
out_xml( '\t</Text>\r\n')
|
||||
|
||||
out_xml( '\t<Text>\r\n')
|
||||
out_xml( '\t<X> 16 </X>\r\n')
|
||||
out_xml( '\t<Y> 190 </Y>\r\n')
|
||||
out_xml( '\t<Size> 24 </Size>\r\n')
|
||||
out_xml( '\t<Width>220</Width>\r\n')
|
||||
out_xml( '\t<Mode> "multi2" </Mode>\r\n')
|
||||
out_xml( '\t<Font> KanitMediumTTF </Font>\r\n')
|
||||
out_xml( '\t<Color> 0x322B26 </Color>\r\n')
|
||||
out_xml( '\t<State> showthaiText </State>\r\n')
|
||||
out_xml( '\t<Value> $' + product_code[i] + '.Name </Value>\r\n')
|
||||
out_xml( '\t</Text>\r\n')
|
||||
|
||||
out_xml( '\t<Text>\r\n')
|
||||
out_xml( '\t<X> 16 </X>\r\n')
|
||||
out_xml( '\t<Y> 246 </Y>\r\n')
|
||||
out_xml( '\t<Size> 14 </Size>\r\n')
|
||||
out_xml( '\t<Width>220</Width>\r\n')
|
||||
out_xml( '\t<Font> KanitMediumTTF </Font>\r\n')
|
||||
out_xml( '\t<Color> 0x6F5F51 </Color>\r\n')
|
||||
out_xml( '\t<State> showthaiText </State>\r\n')
|
||||
out_xml( '\t<Value> $' + product_code[i] + '.description </Value>\r\n')
|
||||
out_xml( '\t</Text>\r\n')
|
||||
|
||||
|
||||
out_xml( '\t<Text>\r\n')
|
||||
out_xml( '\t<X> 16 </X>\r\n')
|
||||
out_xml( '\t<Y> 190 </Y>\r\n')
|
||||
out_xml( '\t<Size> 22 </Size>\r\n')
|
||||
out_xml( '\t<Width>220</Width>\r\n')
|
||||
out_xml( '\t<Mode> "multi2" </Mode>\r\n')
|
||||
out_xml( '\t<Font> KanitMediumTTF </Font>\r\n')
|
||||
out_xml( '\t<Color> 0x322B26 </Color>\r\n')
|
||||
out_xml( '\t<State> showengText </State>\r\n')
|
||||
out_xml( '\t<Value> $' + product_code[i] + '.NameE </Value>\r\n')
|
||||
out_xml( '\t</Text>\r\n')
|
||||
|
||||
out_xml( '\t<Text>\r\n')
|
||||
out_xml( '\t<X> 16 </X>\r\n')
|
||||
out_xml( '\t<Y> 246 </Y>\r\n')
|
||||
out_xml( '\t<Size> 14 </Size>\r\n')
|
||||
out_xml( '\t<Width>220</Width>\r\n')
|
||||
out_xml( '\t<Font> KanitMediumTTF </Font>\r\n')
|
||||
out_xml( '\t<Color> 0x6F5F51 </Color>\r\n')
|
||||
out_xml( '\t<State> showengText </State>\r\n')
|
||||
out_xml( '\t<Value> $' + product_code[i] + '.descriptionE </Value>\r\n')
|
||||
out_xml( '\t</Text>\r\n')
|
||||
|
||||
out_xml( '</Block>\r\n')
|
||||
|
||||
|
||||
out_xml('</FrameScroll>\r\n')
|
||||
132
inter/tha/xml/menu_gen_org.py
Normal file
132
inter/tha/xml/menu_gen_org.py
Normal file
|
|
@ -0,0 +1,132 @@
|
|||
if menu_count >= 16:
|
||||
scroll_height = 1670
|
||||
else:
|
||||
scroll_height = 1400
|
||||
|
||||
out_xml('<FrameScroll> \r\n')
|
||||
out_xml('<X> 0 </X>\r\n')
|
||||
out_xml('<Y> 497 </Y>\r\n')
|
||||
out_xml('<Width> 1080 </Width>\r\n')
|
||||
out_xml('<Height> 1500 </Height>\r\n')
|
||||
out_xml('<ScrollHeight> ' + str(scroll_height) + ' </ScrollHeight>\r\n')
|
||||
out_xml('<Scroll> "Vertical" </Scroll>\r\n')
|
||||
|
||||
for i in range( menu_count):
|
||||
i_str = str(i + 1)
|
||||
out_xml( '\t; button i='+ i_str + ' ' + product_code[i]+ ' \r\n')
|
||||
|
||||
|
||||
out_xml( '\t<Button>\r\n')
|
||||
out_xml( '\t<X> ' + str(x_button[i]) + ' </X> \r\n')
|
||||
out_xml( '\t<Y> ' + str(y_button[i]) + ' </Y> \r\n')
|
||||
|
||||
out_xml( '\t<State> $' + product_code[i] + '.Button </State> \r\n')
|
||||
out_xml( '\t<Filename> Var( "' + default_dir + '" + $'+ product_code[i] +'.image ) </Filename>\r\n')
|
||||
out_xml( '\t<FilenamePress> Var( "' + default_dir_press + '" + $'+ product_code[i] +'.image ) " </FilenamePress>\r\n')
|
||||
out_xml( '\t<FilenameDisable> Var( "' + default_dir_disable + '" + $'+ product_code[i] +'.image ) " </FilenameDisable>\r\n')
|
||||
out_xml( '\t<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>\r\n')
|
||||
out_xml( '\t<Volume> SoundVolume </Volume>\r\n')
|
||||
out_xml( '\t<EventOnClick> \r\n')
|
||||
|
||||
out_xml( '\t\tVar SelectDrink = "'+ product_code[i] +'"\r\n')
|
||||
out_xml( '\t\tVar NameDrink = $' + product_code[i] + '.NameE\r\n')
|
||||
out_xml( '\t\tVar NameDrinkTH = $' + product_code[i] + '.Name\r\n')
|
||||
out_xml( '\t\tVar DrinkDescriptionTH = $' + product_code[i] + '.description\r\n')
|
||||
out_xml( '\t\tVar DrinkDescription = $' + product_code[i] + '.descriptionE\r\n')
|
||||
out_xml( '\t\tVar PriceDrink = $' + product_code[i] + '.Price\r\n')
|
||||
out_xml( '\t\tVar PictureDrink = "' + default_dir2 + '" + $'+ product_code[i] +'.image\r\n')
|
||||
out_xml( '\t\tTopping "Load" SelectDrink\r\n')
|
||||
#out_xml( '\t\tSAVELOG NameDrink\r\n')
|
||||
out_xml( '\t\tVar PriceShowValue = charOfBaht + PriceDrink\r\n')
|
||||
#out_xml( '\t\tVar PriceShowValue = "Free"\r\n')
|
||||
out_xml( '\t\tOpen "ROOT/taobin_project/xml/page_topping_alter.xml"\r\n')
|
||||
|
||||
out_xml( '\t</EventOnClick>\r\n')
|
||||
out_xml( '\t</Button>\r\n')
|
||||
|
||||
for i in range( menu_count):
|
||||
if RoadShow :
|
||||
out_xml( '\t<Text>\r\n')
|
||||
out_xml( '\t<X> ' + str(x_button[i] + 164) + ' </X>\r\n')
|
||||
out_xml( '\t<Y> ' + str(y_button[i] + 12) + ' </Y>\r\n')
|
||||
out_xml( '\t<Width>200</Width>\r\n')
|
||||
out_xml( '\t<Size> 27 </Size>\r\n')
|
||||
out_xml( '\t<Font> KanitTTF </Font>\r\n')
|
||||
out_xml( '\t<Color> 0xB78F24 </Color>\r\n')
|
||||
out_xml( '\t<Value> "Free!" </Value>\r\n')
|
||||
out_xml( '\t</Text>\r\n')
|
||||
out_xml( '\t<Text>\r\n')
|
||||
else:
|
||||
out_xml( '\t<Text>\r\n')
|
||||
out_xml( '\t<X> ' + str(x_button[i] + 182) + ' </X>\r\n')
|
||||
out_xml( '\t<Y> ' + str(y_button[i] + 12) + ' </Y>\r\n')
|
||||
out_xml( '\t<State> ShowPrice </State>\r\n')
|
||||
out_xml( '\t<Align> "Hurr" </Align>\r\n')
|
||||
out_xml( '\t<Width>150</Width>\r\n')
|
||||
out_xml( '\t<Size> 27 </Size>\r\n')
|
||||
out_xml( '\t<Font> KanitTTF </Font>\r\n')
|
||||
out_xml( '\t<Color> 0xB78F24 </Color>\r\n')
|
||||
out_xml( '\t<Value> $' + product_code[i] + '.Price </Value>\r\n')
|
||||
out_xml( '\t</Text>\r\n')
|
||||
|
||||
out_xml( '\t<Text>\r\n')
|
||||
out_xml( '\t<X> ' + str(x_button[i] + 164) + ' </X>\r\n')
|
||||
out_xml( '\t<Y> ' + str(y_button[i] + 12) + ' </Y>\r\n')
|
||||
out_xml( '\t<State> ShowPrice </State>\r\n')
|
||||
out_xml( '\t<Width>20</Width>\r\n')
|
||||
out_xml( '\t<Size> 27 </Size>\r\n')
|
||||
out_xml( '\t<Font> KanitTTF </Font>\r\n')
|
||||
out_xml( '\t<Color> 0xB78F24 </Color>\r\n')
|
||||
out_xml( '\t<Value> "฿"" </Value>\r\n')
|
||||
out_xml( '\t</Text>\r\n')
|
||||
|
||||
out_xml( '\t<Text>\r\n')
|
||||
out_xml( '\t<X> ' + str(x_button[i] + 16) + ' </X>\r\n')
|
||||
out_xml( '\t<Y> ' + str(y_button[i] + 190) + ' </Y>\r\n')
|
||||
out_xml( '\t<Size> 24 </Size>\r\n')
|
||||
out_xml( '\t<Width>220</Width>\r\n')
|
||||
out_xml( '\t<Mode> "multi2" </Mode>\r\n')
|
||||
out_xml( '\t<Font> KanitMediumTTF </Font>\r\n')
|
||||
out_xml( '\t<Color> 0x322B26 </Color>\r\n')
|
||||
out_xml( '\t<State> showthaiText </State>\r\n')
|
||||
out_xml( '\t<Value> $' + product_code[i] + '.Name </Value>\r\n')
|
||||
out_xml( '\t</Text>\r\n')
|
||||
|
||||
out_xml( '\t<Text>\r\n')
|
||||
out_xml( '\t<X> ' + str(x_button[i] + 16) + ' </X>\r\n')
|
||||
out_xml( '\t<Y> ' + str(y_button[i] + 246) + ' </Y>\r\n')
|
||||
out_xml( '\t<Size> 14 </Size>\r\n')
|
||||
out_xml( '\t<Width>220</Width>\r\n')
|
||||
out_xml( '\t<Font> KanitMediumTTF </Font>\r\n')
|
||||
out_xml( '\t<Color> 0x6F5F51 </Color>\r\n')
|
||||
out_xml( '\t<State> showthaiText </State>\r\n')
|
||||
out_xml( '\t<Value> $' + product_code[i] + '.description </Value>\r\n')
|
||||
out_xml( '\t</Text>\r\n')
|
||||
|
||||
|
||||
out_xml( '\t<Text>\r\n')
|
||||
out_xml( '\t<X> ' + str(x_button[i] + 16) + ' </X>\r\n')
|
||||
out_xml( '\t<Y> ' + str(y_button[i] + 190) + ' </Y>\r\n')
|
||||
out_xml( '\t<Size> 22 </Size>\r\n')
|
||||
out_xml( '\t<Width>220</Width>\r\n')
|
||||
out_xml( '\t<Mode> "multi2" </Mode>\r\n')
|
||||
out_xml( '\t<Font> KanitMediumTTF </Font>\r\n')
|
||||
out_xml( '\t<Color> 0x322B26 </Color>\r\n')
|
||||
out_xml( '\t<State> showengText </State>\r\n')
|
||||
out_xml( '\t<Value> $' + product_code[i] + '.NameE </Value>\r\n')
|
||||
out_xml( '\t</Text>\r\n')
|
||||
|
||||
out_xml( '\t<Text>\r\n')
|
||||
out_xml( '\t<X> ' + str(x_button[i] + 16) + ' </X>\r\n')
|
||||
out_xml( '\t<Y> ' + str(y_button[i] + 246) + ' </Y>\r\n')
|
||||
out_xml( '\t<Size> 14 </Size>\r\n')
|
||||
out_xml( '\t<Width>220</Width>\r\n')
|
||||
out_xml( '\t<Font> KanitMediumTTF </Font>\r\n')
|
||||
out_xml( '\t<Color> 0x6F5F51 </Color>\r\n')
|
||||
out_xml( '\t<State> showengText </State>\r\n')
|
||||
out_xml( '\t<Value> $' + product_code[i] + '.descriptionE </Value>\r\n')
|
||||
out_xml( '\t</Text>\r\n')
|
||||
|
||||
|
||||
|
||||
out_xml('</FrameScroll>\r\n')
|
||||
106
inter/tha/xml/menu_head.py
Normal file
106
inter/tha/xml/menu_head.py
Normal file
|
|
@ -0,0 +1,106 @@
|
|||
|
||||
RoadShow = False
|
||||
|
||||
default_dir = 'ROOT/taobin_project/image/page_drink/'
|
||||
default_dir2 = 'ROOT/taobin_project/image/page_drink_select/'
|
||||
default_dir_press = 'ROOT/taobin_project/image/page_drink_press/'
|
||||
default_dir_disable = 'ROOT/taobin_project/image/page_drink_disable/'
|
||||
|
||||
new_default_dir = 'ROOT/taobin_project/inter/tha/image/page_drink_n/'
|
||||
new_default_dir2 = 'ROOT/taobin_project/inter/tha/image/page_drink_picture2_n/'
|
||||
new_default_dir_press = 'ROOT/taobin_project/inter/tha/image/page_drink_press_n/'
|
||||
new_default_dir_disable = 'ROOT/taobin_project/inter/tha/image/page_drink_disable_n2/'
|
||||
|
||||
menu_count = 0
|
||||
|
||||
x1 = 44
|
||||
x2 = 301
|
||||
x3 = 558
|
||||
x4 = 815
|
||||
|
||||
ystep = 899 - 571
|
||||
y1 = 20
|
||||
y2 = y1 + ystep*1
|
||||
y3 = y1 + ystep*2
|
||||
y4 = y1 + ystep*3
|
||||
y5 = y1 + ystep*4
|
||||
y6 = y1 + ystep*5
|
||||
y7 = y1 + ystep*6
|
||||
|
||||
|
||||
|
||||
x_button = [
|
||||
x1,
|
||||
x2,
|
||||
x3,
|
||||
x4,
|
||||
|
||||
x1,
|
||||
x2,
|
||||
x3,
|
||||
x4,
|
||||
|
||||
x1,
|
||||
x2,
|
||||
x3,
|
||||
x4,
|
||||
|
||||
x1,
|
||||
x2,
|
||||
x3,
|
||||
x4,
|
||||
|
||||
x1,
|
||||
x2,
|
||||
x3,
|
||||
x4,
|
||||
|
||||
x1,
|
||||
x2,
|
||||
x3,
|
||||
x4,
|
||||
|
||||
x1,
|
||||
x2,
|
||||
x3,
|
||||
x4
|
||||
|
||||
]
|
||||
y_button = [
|
||||
y1,
|
||||
y1,
|
||||
y1,
|
||||
y1,
|
||||
|
||||
y2,
|
||||
y2,
|
||||
y2,
|
||||
y2,
|
||||
|
||||
y3,
|
||||
y3,
|
||||
y3,
|
||||
y3,
|
||||
|
||||
y4,
|
||||
y4,
|
||||
y4,
|
||||
y4,
|
||||
|
||||
y5,
|
||||
y5,
|
||||
y5,
|
||||
y5,
|
||||
|
||||
y6,
|
||||
y6,
|
||||
y6,
|
||||
y6,
|
||||
|
||||
y7,
|
||||
y7,
|
||||
y7,
|
||||
y7
|
||||
|
||||
]
|
||||
|
||||
1033
inter/tha/xml/menu_new_layout_gen.py
Normal file
1033
inter/tha/xml/menu_new_layout_gen.py
Normal file
File diff suppressed because it is too large
Load diff
1014
inter/tha/xml/menu_new_layout_gen_v1.py
Normal file
1014
inter/tha/xml/menu_new_layout_gen_v1.py
Normal file
File diff suppressed because it is too large
Load diff
619
inter/tha/xml/menu_new_layout_gen_v2.py
Normal file
619
inter/tha/xml/menu_new_layout_gen_v2.py
Normal file
|
|
@ -0,0 +1,619 @@
|
|||
if "v2" in param:
|
||||
def GenMenuProductCodeBlock( str_hot_product_code, str_cold_product_code, str_blend_product_code):
|
||||
print(" size " + str( len(spl)) + " img=" + spl[ idx_img][1] )
|
||||
out_xml( '\t; ==================> Len = ' + str(len(spl)) + '\r\n')
|
||||
menu_img = spl[ idx_img][1]
|
||||
out_xml( '\t; '+ str_hot_product_code + ' ' + str_cold_product_code + ' ' + str_blend_product_code+ ' \r\n')
|
||||
|
||||
out_xml( '<Block>\r\n')
|
||||
out_xml('\t<MarginLeft> 33 </MarginLeft>\r\n')
|
||||
out_xml('\t<MarginTop> 22 </MarginTop>\r\n')
|
||||
out_xml('\t<Width> 225 </Width>\r\n')
|
||||
out_xml('\t<Height> 296 </Height>\r\n')
|
||||
str_con = ""
|
||||
str_con_var = ""
|
||||
#print("#########################################################################################################################")
|
||||
#print( str( spl))
|
||||
#print("#########################################################################################################################")
|
||||
if str_hot_product_code != '-':
|
||||
str_con += str_hot_product_code + '.Button,'
|
||||
|
||||
if str_cold_product_code != '-':
|
||||
str_con += str_cold_product_code + '.Button,'
|
||||
|
||||
if str_blend_product_code != '-':
|
||||
str_con += str_blend_product_code + '.Button,'
|
||||
|
||||
if str_hot_product_code != '-':
|
||||
str_con_var += str_hot_product_code + '-'
|
||||
|
||||
if str_cold_product_code != '-':
|
||||
str_con_var += str_cold_product_code + '-'
|
||||
|
||||
if str_blend_product_code != '-':
|
||||
str_con_var += str_blend_product_code + '-'
|
||||
|
||||
str_con_var = str_con_var.replace("-", "")
|
||||
if touch_less_gen == True:
|
||||
str_con += "Disable=Invisible,"
|
||||
|
||||
str_con += "$Sum" + str_con_var
|
||||
|
||||
out_xml( '\t<State> Flag( '+ str_con + ') </State> \r\n')
|
||||
|
||||
pd_code_1 = str_hot_product_code
|
||||
pd_stage1 = '$' + str_hot_product_code + '.Button'
|
||||
if str_hot_product_code == "-" or len(str_hot_product_code) == 0 :
|
||||
pd_code_1 = pd_code_available
|
||||
pd_stage1 = '"Disable2"'
|
||||
|
||||
pd_code_2 = str_cold_product_code
|
||||
pd_stage2 = '$' + str_cold_product_code + '.Button'
|
||||
if str_cold_product_code == "-" or len(str_cold_product_code) == 0:
|
||||
pd_code_2 = pd_code_available
|
||||
pd_stage2 = '"Disable2"'
|
||||
|
||||
pd_code_3 = str_blend_product_code
|
||||
pd_stage3 = '$' + str_blend_product_code + '.Button'
|
||||
if str_blend_product_code == "-" or len(str_blend_product_code) == 0:
|
||||
pd_code_3 = pd_code_available
|
||||
pd_stage3 = '"Disable2"'
|
||||
|
||||
|
||||
|
||||
|
||||
out_xml( '\t<Button>\r\n')
|
||||
out_xml( '\t<State> $Sum' + str_con_var +' </State> \r\n')
|
||||
out_xml( '\t<Filename> "' + new_default_dir + '/'+ menu_img +'" </Filename>\r\n')
|
||||
out_xml( '\t<FilenamePress> "' + new_default_dir_press + '/'+ menu_img +'" </FilenamePress>\r\n')
|
||||
out_xml( '\t<FilenameDisable> "' + new_default_dir_disable + '/'+ menu_img +'" </FilenameDisable>\r\n')
|
||||
out_xml( '\t<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>\r\n')
|
||||
out_xml( '\t<Volume> SoundVolume </Volume>\r\n')
|
||||
out_xml( '\t<EventOnClick> \r\n')
|
||||
|
||||
# Default
|
||||
#out_xml( '\t\tVar NameDrink = "' + spl[ idx_of_eng_des].replace("\\n", " ") + '"\r\n')
|
||||
#out_xml( '\t\tVar NameDrinkTH = "' + spl[ idx_of_eng].replace("\\n", " ") + '"\r\n')
|
||||
#out_xml( '\t\tVar DrinkDescriptionTH = "' + spl[ idx_of_thai].replace("\\n", " ") + '"\r\n')
|
||||
#out_xml( '\t\tVar DrinkDescription = "' + spl[ idx_of_thai_des].replace("\\n", " ") + '"\r\n')
|
||||
out_xml( '\t\tVar PictureDrink = "' + new_default_dir2 + '" + \"' + menu_img + '\"\r\n')
|
||||
|
||||
out_xml( '\t\tVar OpenFromXML = CurrentXMLFileName2\r\n')
|
||||
|
||||
out_xml( '\t\tVar PriceD1 = $' + str_hot_product_code + '.Price\r\n')
|
||||
out_xml( '\t\tVar PriceD2 = $' + str_cold_product_code + '.Price\r\n')
|
||||
out_xml( '\t\tVar PriceD3 = $' + str_blend_product_code + '.Price\r\n')
|
||||
|
||||
out_xml( '\t\tVar PD_CODE1 = "' + pd_code_1 + '"\r\n')
|
||||
out_xml( '\t\tVar PD_CODE2 = "' + pd_code_2 + '"\r\n')
|
||||
out_xml( '\t\tVar PD_CODE3 = "' + pd_code_3 + '"\r\n')
|
||||
|
||||
out_xml( '\t\t; begin lang \r\n')
|
||||
for x in range( max_can_have_lang):
|
||||
if x < len( spl[ idx_name]):
|
||||
out_xml( '\t\tVar aliasName['+ str(x) +'] = "'+ spl[ idx_name][ x + 1]+'"\r\n')
|
||||
out_xml( '\t\tVar aliasDesc['+ str(x) +'] = "'+ spl[ idx_desc][ x + 1]+'"\r\n')
|
||||
|
||||
|
||||
for x in range( max_can_have_lang):
|
||||
out_xml( '\t\tVar NameLang[0]['+ str(x) +'] = "'+ get_name_lang( pd_code_1 , x)+'"\r\n')
|
||||
for x in range( max_can_have_lang):
|
||||
out_xml( '\t\tVar DescLang[0]['+ str(x) +'] = "'+ get_desc_lang( pd_code_1 , x)+'"\r\n')
|
||||
|
||||
|
||||
for x in range( max_can_have_lang):
|
||||
out_xml( '\t\tVar NameLang[1]['+ str(x) +'] = "'+ get_name_lang( pd_code_2 , x)+'"\r\n')
|
||||
for x in range( max_can_have_lang):
|
||||
out_xml( '\t\tVar DescLang[1]['+ str(x) +'] = "'+ get_desc_lang( pd_code_2 , x)+'"\r\n')
|
||||
|
||||
for x in range( max_can_have_lang):
|
||||
out_xml( '\t\tVar NameLang[2]['+ str(x) +'] = "'+ get_name_lang( pd_code_3 , x)+'"\r\n')
|
||||
for x in range( max_can_have_lang):
|
||||
out_xml( '\t\tVar DescLang[2]['+ str(x) +'] = "'+ get_desc_lang( pd_code_3 , x)+'"\r\n')
|
||||
|
||||
|
||||
|
||||
out_xml( '\t\t; end lang \r\n')
|
||||
|
||||
out_xml( '\t\tVar PD_STAGE_1 = ' + pd_stage1 + '\r\n')
|
||||
out_xml( '\t\tVar PD_STAGE_2 = ' + pd_stage2 + '\r\n')
|
||||
out_xml( '\t\tVar PD_STAGE_3 = ' + pd_stage3 + '\r\n')
|
||||
|
||||
|
||||
out_xml( '\t\tVar SelectCountDrinkType = 0\r\n')
|
||||
out_xml( '\t\tVar DefaultDrinkType = 0\r\n')
|
||||
|
||||
out_xml( '\t\tIf PD_STAGE_1 = "Enable" Then\r\n')
|
||||
out_xml( '\t\t\tVar SelectCountDrinkType = SelectCountDrinkType + 1\r\n')
|
||||
out_xml( '\t\t\tVar DefaultDrinkType = 1\r\n')
|
||||
out_xml( '\t\tEndIf\r\n')
|
||||
|
||||
|
||||
out_xml( '\t\tIf PD_STAGE_2 = "Enable" Then\r\n')
|
||||
out_xml( '\t\t\tVar SelectCountDrinkType = SelectCountDrinkType + 1\r\n')
|
||||
out_xml( '\t\t\tVar DefaultDrinkType = 2\r\n')
|
||||
out_xml( '\t\tEndIf\r\n')
|
||||
|
||||
|
||||
out_xml( '\t\tIf PD_STAGE_3 = "Enable" Then\r\n')
|
||||
out_xml( '\t\t\tVar SelectCountDrinkType = SelectCountDrinkType + 1\r\n')
|
||||
out_xml( '\t\t\tVar DefaultDrinkType = 3\r\n')
|
||||
out_xml( '\t\tEndIf\r\n')
|
||||
|
||||
|
||||
|
||||
out_xml( '\t\tIf PD_STAGE_2 = "Enable" Then\r\n')
|
||||
#out_xml( '\t\t\tVar PD_STAGE_2 = "Enable"\r\n')
|
||||
out_xml( '\t\t\tTopping "Load" "'+ str_cold_product_code +'"\r\n')
|
||||
out_xml( '\t\tElse\r\n')
|
||||
out_xml( '\t\t\tIf PD_STAGE_1 = "Enable" Then\r\n')
|
||||
#out_xml( '\t\t\t\tVar PD_STAGE_1 = "Enable"\r\n')
|
||||
out_xml( '\t\t\tTopping "Load" "'+ str_hot_product_code +'"\r\n')
|
||||
out_xml( '\t\t\tElse\r\n')
|
||||
#out_xml( '\t\t\t\tVar PD_STAGE_3 = "Enable"\r\n')
|
||||
out_xml( '\t\t\tTopping "Load" "'+ str_blend_product_code +'"\r\n')
|
||||
out_xml( '\t\t\tEndIf\r\n')
|
||||
out_xml( '\t\tEndIf\r\n')
|
||||
|
||||
|
||||
|
||||
#out_xml( '\t\tVar menu_name_eng_hot = $' + pd_code_1 + '.NameE\r\n')
|
||||
#out_xml( '\t\tVar menu_desc_eng_hot = $' + pd_code_1 + '.descriptionE\r\n')
|
||||
#out_xml( '\t\tVar menu_name_thai_hot = $' + pd_code_1 + '.Name\r\n')
|
||||
#out_xml( '\t\tVar menu_desc_thai_hot = $' + pd_code_1 + '.description\r\n')
|
||||
#out_xml( '\t\t\r\n')
|
||||
#out_xml( '\t\tVar menu_name_eng_cold = $' + pd_code_2 + '.NameE\r\n')
|
||||
#out_xml( '\t\tVar menu_desc_eng_cold = $' + pd_code_2 + '.descriptionE\r\n')
|
||||
#out_xml( '\t\tVar menu_name_thai_cold = $' + pd_code_2 + '.Name\r\n')
|
||||
#out_xml( '\t\tVar menu_desc_thai_cold = $' + pd_code_2 + '.description\r\n')
|
||||
#out_xml( '\t\t\r\n')
|
||||
#out_xml( '\t\tVar menu_name_eng_blender = $' + pd_code_3 + '.NameE\r\n')
|
||||
#out_xml( '\t\tVar menu_desc_eng_blender = $' + pd_code_3 + '.descriptionE\r\n')
|
||||
#out_xml( '\t\tVar menu_name_thai_blender = $' + pd_code_3 + '.Name\r\n')
|
||||
#out_xml( '\t\tVar menu_desc_thai_blender = $' + pd_code_3 + '.description\r\n')
|
||||
|
||||
|
||||
|
||||
|
||||
out_xml( '\t\t\r\n')
|
||||
out_xml( '\t\tDEBUGVAR PD_STAGE_1\r\n')
|
||||
out_xml( '\t\tDEBUGVAR PD_STAGE_2\r\n')
|
||||
out_xml( '\t\tDEBUGVAR PD_STAGE_3\r\n')
|
||||
out_xml( '\t\tVar SelectDrinkType = 0\r\n')
|
||||
|
||||
|
||||
out_xml( '\t\t\r\n')
|
||||
out_xml( '\t\t\r\n')
|
||||
out_xml( '\t\tOpen "ROOT/taobin_project/xml/page_topping_select6.lxml"\r\n')
|
||||
out_xml( '\t\t\r\n')
|
||||
|
||||
|
||||
|
||||
out_xml( '\t</EventOnClick>\r\n')
|
||||
out_xml( '\t</Button>\r\n')
|
||||
|
||||
|
||||
|
||||
out_xml( '\t<Text>\r\n')
|
||||
out_xml( '\t<X> 16 </X>\r\n')
|
||||
out_xml( '\t<Y> 164 </Y>\r\n')
|
||||
out_xml( '\t<Size> 22 </Size>\r\n')
|
||||
out_xml( '\t<Width>222</Width>\r\n')
|
||||
out_xml( '\t<Mode> "multi2" </Mode>\r\n')
|
||||
out_xml( '\t<Font> KanitMediumTTF </Font>\r\n')
|
||||
out_xml( '\t<Color> 0x322B26 </Color>\r\n')
|
||||
|
||||
out_xml( '\t<LanguageGroup>\r\n')
|
||||
out_xml( '\t\t<LanguageSlot1>' + spl[ idx_name][ idx_lang_eng] + '</LanguageSlot1>\r\n')
|
||||
out_xml( '\t\t<LanguageSlot2>' + spl[ idx_name][ idx_lang_thai] + '</LanguageSlot2>\r\n')
|
||||
out_xml( '\t\t<LanguageSlot3>' + spl[ idx_name][ idx_lang_eng] + '</LanguageSlot3>\r\n')
|
||||
out_xml( '\t\t<LanguageSlot4>' + spl[ idx_name][ idx_lang_thai] + '</LanguageSlot4>\r\n')
|
||||
out_xml( '\t\t<LanguageSlot5>' + spl[ idx_name][ idx_lang_malay] + '</LanguageSlot5>\r\n')
|
||||
out_xml( '\t\t<LanguageSlot6>' + spl[ idx_name][ idx_lang_myanmar] + '</LanguageSlot6>\r\n')
|
||||
out_xml( '\t</LanguageGroup>\r\n')
|
||||
|
||||
out_xml( '\t</Text>\r\n')
|
||||
|
||||
out_xml( '\t<Text>\r\n')
|
||||
out_xml( '\t<X> 16 </X>\r\n')
|
||||
out_xml( '\t<Y> 220 </Y>\r\n')
|
||||
out_xml( '\t<Size> 14 </Size>\r\n')
|
||||
out_xml( '\t<Width>222</Width>\r\n')
|
||||
out_xml( '\t<Font> KanitMediumTTF </Font>\r\n')
|
||||
out_xml( '\t<Color> 0x6F5F51 </Color>\r\n')
|
||||
#out_xml( '\t<State> showthaiText </State>\r\n')
|
||||
out_xml( '\t<LanguageGroup>\r\n')
|
||||
out_xml( '\t\t<LanguageSlot1>' + spl[ idx_desc][ idx_lang_eng] + '</LanguageSlot1>\r\n')
|
||||
out_xml( '\t\t<LanguageSlot2>' + spl[ idx_desc][ idx_lang_thai] + '</LanguageSlot2>\r\n')
|
||||
out_xml( '\t\t<LanguageSlot3>' + spl[ idx_desc][ idx_lang_eng] + '</LanguageSlot3>\r\n')
|
||||
out_xml( '\t\t<LanguageSlot4>' + spl[ idx_desc][ idx_lang_thai] + '</LanguageSlot4>\r\n')
|
||||
out_xml( '\t\t<LanguageSlot5>' + spl[ idx_desc][ idx_lang_malay] + '</LanguageSlot5>\r\n')
|
||||
out_xml( '\t\t<LanguageSlot6>' + spl[ idx_desc][ idx_lang_myanmar] + '</LanguageSlot6>\r\n')
|
||||
out_xml( '\t</LanguageGroup>\r\n')
|
||||
|
||||
out_xml( '\t</Text>\r\n')
|
||||
|
||||
|
||||
|
||||
out_xml( '\t<Image>\r\n')
|
||||
out_xml( '\t<X> 16 </X>\r\n')
|
||||
out_xml( '\t<Y> 264 </Y>\r\n')
|
||||
out_xml( '\t<Filename> Var( DirImage2 + "option_deactive.png" ) </Filename>\r\n')
|
||||
out_xml( '\t</Image>\r\n')
|
||||
|
||||
ice_tab_hot_show = True
|
||||
shw = "$" + str_hot_product_code + ".Button"
|
||||
if str_hot_product_code == "-" :
|
||||
shw = '"Invisible"'
|
||||
ice_tab_hot_show = False
|
||||
|
||||
if len(str_hot_product_code) == 0 :
|
||||
shw = '"Invisible"'
|
||||
ice_tab_hot_show = False
|
||||
|
||||
out_xml( '\t<Image>\r\n')
|
||||
out_xml( '\t<X> 16 </X>\r\n')
|
||||
out_xml( '\t<Y> 264 </Y>\r\n')
|
||||
out_xml( '\t<State> ' + shw + ' </State>\r\n')
|
||||
out_xml( '\t<Filename> Var( DirImage2 + "hot.png" ) </Filename>\r\n')
|
||||
out_xml( '\t<FilenameDisable> Var( DirImage2 + "hot_db.png" ) </FilenameDisable>\r\n')
|
||||
out_xml( '\t</Image>\r\n')
|
||||
|
||||
out_xml( '\t<Text>\r\n')
|
||||
out_xml( '\t<X> TextPriceMenuHotX </X>\r\n')
|
||||
out_xml( '\t<Y> TextPriceMenuY </Y>\r\n')
|
||||
out_xml( '\t<Size> TextPriceMenuSize </Size>\r\n')
|
||||
out_xml( '\t<Width>220</Width>\r\n')
|
||||
out_xml( '\t<Font> KanitMediumTTF </Font>\r\n')
|
||||
|
||||
|
||||
out_xml( '\t<Color> 0x6F5F51 </Color>\r\n')
|
||||
out_xml( '\t<ColorDisable> 0xEAE6E1 </ColorDisable>\r\n')
|
||||
out_xml( '\t<State> ' + shw + ' </State>\r\n')
|
||||
|
||||
#out_xml( '\t<Value> Var( "฿" + $' + spl[ idx_hot_product_code] + '.Price ) </Value>\r\n')
|
||||
|
||||
if "inter" in param:
|
||||
if "free" in param:
|
||||
out_xml( '\t<Value> "Free" </Value>\r\n')
|
||||
else:
|
||||
out_xml( '\t<Value> StringFmt( $' + str_hot_product_code + '.Price , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
|
||||
else:
|
||||
out_xml( '\t<Value> Var( "฿" + $' + str_hot_product_code + '.Price ) </Value>\r\n')
|
||||
out_xml( '\t</Text>\r\n')
|
||||
|
||||
ice_tab_ice_show = True
|
||||
|
||||
shw = "$" + str_cold_product_code + ".Button"
|
||||
if str_cold_product_code == "-" :
|
||||
shw = '"Invisible"'
|
||||
ice_tab_ice_show = False
|
||||
|
||||
if len(str_cold_product_code) == 0 :
|
||||
shw = '"Invisible"'
|
||||
ice_tab_ice_show = False
|
||||
|
||||
out_xml( '\t<Image>\r\n')
|
||||
out_xml( '\t<X> 81 </X>\r\n')
|
||||
out_xml( '\t<Y> 264 </Y>\r\n')
|
||||
if pd_code_2 == "51-05-02-0016":
|
||||
out_xml( '\t<Filename> Var( DirImage2 + "normal.png" ) </Filename>\r\n')
|
||||
out_xml( '\t<FilenameDisable> Var( DirImage2 + "cold_db.png" ) </FilenameDisable>\r\n')
|
||||
else:
|
||||
out_xml( '\t<Filename> Var( DirImage2 + "cold.png" ) </Filename>\r\n')
|
||||
out_xml( '\t<FilenameDisable> Var( DirImage2 + "cold_db.png" ) </FilenameDisable>\r\n')
|
||||
out_xml( '\t<State> ' + shw + ' </State>\r\n')
|
||||
out_xml( '\t</Image>\r\n')
|
||||
out_xml( '\t<Text>\r\n')
|
||||
out_xml( '\t<X> 123 </X>\r\n')
|
||||
out_xml( '\t<Y> TextPriceMenuY </Y>\r\n')
|
||||
out_xml( '\t<Size> TextPriceMenuSize </Size>\r\n')
|
||||
out_xml( '\t<Width>220</Width>\r\n')
|
||||
out_xml( '\t<Font> KanitMediumTTF </Font>\r\n')
|
||||
|
||||
out_xml( '\t<Color> 0x6F5F51 </Color>\r\n')
|
||||
out_xml( '\t<ColorDisable> 0xEAE6E1 </ColorDisable>\r\n')
|
||||
out_xml( '\t<State> ' + shw + ' </State>\r\n')
|
||||
if "inter" in param:
|
||||
if "free" in param:
|
||||
out_xml( '\t<Value> "Free" </Value>\r\n')
|
||||
else:
|
||||
out_xml( '\t<Value> StringFmt( $' + str_cold_product_code + '.Price , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
|
||||
else:
|
||||
out_xml( '\t<Value> Var( "฿" + $' + str_cold_product_code + '.Price ) </Value>\r\n')
|
||||
out_xml( '\t</Text>\r\n')
|
||||
|
||||
ice_tab_blend_show = True
|
||||
|
||||
shw = "$" + str_blend_product_code + ".Button"
|
||||
if str_blend_product_code == "-" :
|
||||
shw = '"Invisible"'
|
||||
ice_tab_blend_show = False
|
||||
|
||||
if len(str_blend_product_code) == 0 :
|
||||
shw = '"Invisible"'
|
||||
ice_tab_blend_show = False
|
||||
|
||||
out_xml( '\t<Image>\r\n')
|
||||
out_xml( '\t<X> 146 </X>\r\n')
|
||||
out_xml( '\t<Y> 264 </Y>\r\n')
|
||||
out_xml( '\t<Filename> Var( DirImage2 + "blend.png" ) </Filename>\r\n')
|
||||
out_xml( '\t<FilenameDisable> Var( DirImage2 + "blend_db.png" ) </FilenameDisable>\r\n')
|
||||
out_xml( '\t<State> ' + shw + ' </State>\r\n')
|
||||
out_xml( '\t</Image>\r\n')
|
||||
|
||||
out_xml( '\t<Text>\r\n')
|
||||
out_xml( '\t<X> TextPriceMenuBlendX </X>\r\n')
|
||||
out_xml( '\t<Y> TextPriceMenuY </Y>\r\n')
|
||||
out_xml( '\t<Size> TextPriceMenuSize </Size>\r\n')
|
||||
out_xml( '\t<Width>220</Width>\r\n')
|
||||
out_xml( '\t<Font> KanitRegularTTF </Font>\r\n')
|
||||
#out_xml( '\t<Align> end </Align>\r\n')
|
||||
|
||||
out_xml( '\t<Color> 0x6F5F51 </Color>\r\n')
|
||||
out_xml( '\t<ColorDisable> 0xEAE6E1 </ColorDisable>\r\n')
|
||||
out_xml( '\t<State> ' + shw + ' </State>\r\n')
|
||||
if "inter" in param:
|
||||
if "free" in param:
|
||||
out_xml( '\t<Value> " Free" </Value>\r\n')
|
||||
else:
|
||||
out_xml( '\t<Value> StringFmt( $' + str_blend_product_code + '.Price , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
|
||||
else:
|
||||
out_xml( '\t<Value> Var( "฿" + $' + str_blend_product_code + '.Price ) </Value>\r\n')
|
||||
out_xml( '\t</Text>\r\n')
|
||||
|
||||
out_xml( '\t<Image>\r\n')
|
||||
out_xml( '\t<X> 81 </X>\r\n')
|
||||
out_xml( '\t<Y> 264 </Y>\r\n')
|
||||
out_xml( '\t<State> \r\n')
|
||||
out_xml( '\t\teval( \r\n')
|
||||
out_xml( '\t\tIf ICE_PROCESS_STATUS = 2 Then\r\n')
|
||||
out_xml( '\t\t\r\n')
|
||||
if ice_tab_hot_show == True:
|
||||
|
||||
#out_xml( '\t\t\tDEBUGVAR $Sum' + str_con_var +'\r\n')
|
||||
out_xml( '\t\t\tIf $Sum' + str_con_var +' = "Disable" Then\r\n')
|
||||
out_xml( '\t\t\t\tVar ice_tab_process_show = "Disable"\r\n')
|
||||
out_xml( '\t\t\tElse\r\n')
|
||||
out_xml( '\t\t\t\tVar ice_tab_process_show = "Enable"\r\n')
|
||||
out_xml( '\t\t\tEndIf\r\n')
|
||||
else:
|
||||
out_xml( '\t\t\tVar ice_tab_process_show = "Invisible"\r\n')
|
||||
|
||||
out_xml( '\t\t\r\n')
|
||||
out_xml( '\t\tElse\r\n')
|
||||
out_xml( '\t\t\tVar ice_tab_process_show = "Invisible"\r\n')
|
||||
out_xml( '\t\tEndIf\r\n')
|
||||
out_xml( '\t\tVar return = ice_tab_process_show\r\n')
|
||||
out_xml( '\t\t)\r\n')
|
||||
out_xml( '\t</State>\r\n')
|
||||
out_xml( '\t<Filename> "ROOT/taobin_project/image/drink_option/ice_tab_unavalible.png" </Filename>\r\n')
|
||||
out_xml( '\t<FilenameDisable> "ROOT/taobin_project/image/drink_option/ice_tab_unavalible_dis.png" </FilenameDisable>\r\n')
|
||||
out_xml( '\t</Image>\r\n')
|
||||
|
||||
|
||||
out_xml( '\t<Image>\r\n')
|
||||
out_xml( '\t<X> 49 </X>\r\n')
|
||||
out_xml( '\t<Y> 117 </Y>\r\n')
|
||||
out_xml( '\t<State> \r\n')
|
||||
out_xml( '\t\teval( \r\n')
|
||||
out_xml( '\t\t\tIf $Sum' + str_con_var +' = "Disable" Then\r\n')
|
||||
out_xml( '\t\t\t\tSTRCONTAIN "ERR" $' + pd_code_1 + '.TAG tag1_is_disable\r\n')
|
||||
out_xml( '\t\t\t\tSTRCONTAIN "ERR" $' + pd_code_2 + '.TAG tag2_is_disable\r\n')
|
||||
out_xml( '\t\t\t\tSTRCONTAIN "ERR" $' + pd_code_3 + '.TAG tag3_is_disable\r\n')
|
||||
#out_xml( '\t\t\t\tDEBUGVAR $' + pd_code_1 + '.TAG\r\n')
|
||||
#out_xml( '\t\t\t\tDEBUGVAR $' + pd_code_2 + '.TAG\r\n')
|
||||
#out_xml( '\t\t\t\tDEBUGVAR $' + pd_code_3 + '.TAG\r\n')
|
||||
out_xml( '\t\t\t\tVar return = "Invisible"\r\n')
|
||||
out_xml( '\t\t\t\tIf tag1_is_disable = "true" Then\r\n')
|
||||
out_xml( '\t\t\t\t\tVar return = "Enable"\r\n')
|
||||
out_xml( '\t\t\t\tEndIf\r\n')
|
||||
out_xml( '\t\t\t\tIf tag2_is_disable = "true" Then\r\n')
|
||||
out_xml( '\t\t\t\t\tVar return = "Enable"\r\n')
|
||||
out_xml( '\t\t\t\tEndIf\r\n')
|
||||
out_xml( '\t\t\t\tIf tag3_is_disable = "true" Then\r\n')
|
||||
out_xml( '\t\t\t\t\tVar return = "Enable"\r\n')
|
||||
out_xml( '\t\t\t\tEndIf\r\n')
|
||||
out_xml( '\t\t\tElse\r\n')
|
||||
out_xml( '\t\t\t\t\tVar return = "Invisible"\r\n')
|
||||
|
||||
out_xml( '\t\t\tEndIf\r\n')
|
||||
|
||||
out_xml( '\t\t)\r\n')
|
||||
out_xml( '\t</State>\r\n')
|
||||
out_xml( '\t<Filename> "ROOT/taobin_project/image//img_menu_err2.png" </Filename>\r\n')
|
||||
out_xml( '\t</Image>\r\n')
|
||||
|
||||
out_xml( '\t<Text>\r\n')
|
||||
out_xml( '\t<X> 84 </X>\r\n')
|
||||
out_xml( '\t<Y> 266 </Y>\r\n')
|
||||
out_xml( '\t<Size> 10 </Size>\r\n')
|
||||
out_xml( '\t<Font> OpunMediumTTF </Font>\r\n')
|
||||
out_xml( '\t<Color> 0xDE794E </Color>\r\n')
|
||||
out_xml( '\t<State> ice_tab_process_show </State>\r\n')
|
||||
out_xml( '\t<Value> ice_show_open </Value>\r\n')
|
||||
out_xml( '\t</Text>\r\n')
|
||||
|
||||
|
||||
out_xml( '\t<Text>\r\n')
|
||||
out_xml( '\t<X> 48 </X>\r\n')
|
||||
out_xml( '\t<Y> 116 </Y>\r\n')
|
||||
out_xml( '\t<Size> 32 </Size>\r\n')
|
||||
out_xml( '\t<Width>128</Width>\r\n')
|
||||
out_xml( '\t<Height>64</Height>\r\n')
|
||||
out_xml( '\t<Mode> "disable-show" </Mode>\r\n')
|
||||
out_xml( '\t<State> $Sum' + str_con_var +' </State> \r\n')
|
||||
out_xml( '\t<Language>\r\n')
|
||||
out_xml( '\t\t<ID> 000013 </ID> \r\n')
|
||||
out_xml( '\t</Language>\r\n')
|
||||
out_xml( '\t<Align> center-vertical-horizontal </Align>\r\n')
|
||||
out_xml( '\t</Text>\r\n')
|
||||
|
||||
|
||||
out_xml( '</Block>\r\n')
|
||||
|
||||
def GenMenuBlock( idx_hot_product_code, idx_cold_product_code, idx_blend_product_code):
|
||||
GenMenuProductCodeBlock( spl[ idx_name][ idx_hot_product_code], spl[ idx_name][ idx_cold_product_code] , spl[ idx_name][ idx_blend_product_code] )
|
||||
|
||||
idx_lang_myanmar = 6
|
||||
idx_lang_malay = 5
|
||||
idx_lang_japan = 4
|
||||
idx_lang_china = 3
|
||||
idx_lang_thai = 2
|
||||
idx_lang_eng = 1
|
||||
|
||||
|
||||
idx_name = 0
|
||||
idx_desc = 1
|
||||
idx_img = 2
|
||||
|
||||
|
||||
idx_hot_product_code = 7
|
||||
idx_cold_product_code = idx_hot_product_code + 1
|
||||
idx_blend_product_code = idx_cold_product_code + 1
|
||||
|
||||
#
|
||||
idx_hot_product_code2 = idx_blend_product_code + 1
|
||||
idx_cold_product_code2 = idx_hot_product_code2 + 1
|
||||
idx_blend_product_code2 = idx_cold_product_code2 + 1
|
||||
idx_of_eng = 2
|
||||
idx_of_eng_des = 3
|
||||
idx_of_thai = 0
|
||||
idx_of_thai_des = 1
|
||||
print ("--------------------------------------------------------------------------------------------------------------------------")
|
||||
|
||||
|
||||
if current_file_name == "page_catalog_group_recommend.skt":
|
||||
touch_less_gen = True
|
||||
else:
|
||||
touch_less_gen = False
|
||||
|
||||
out_xml('<FrameScroll> \r\n')
|
||||
if touch_less_gen == True:
|
||||
out_xml('<Max> 16 </Max>\r\n')
|
||||
out_xml('<X> 10 </X>\r\n')
|
||||
out_xml('<Y> 497 </Y>\r\n')
|
||||
out_xml('<Width> 1080 </Width>\r\n')
|
||||
out_xml('<ScrollHeight> "auto" </ScrollHeight>\r\n')
|
||||
out_xml('<Scroll> "Vertical" </Scroll>\r\n')
|
||||
out_xml('<Column> 4 </Column>\r\n')
|
||||
out_xml('<Script>\r\n')
|
||||
|
||||
print("current_file_name " + current_file_name)
|
||||
|
||||
|
||||
if touch_less_gen == False:
|
||||
|
||||
out_xml('\t Var block_index_override = 0\r\n')
|
||||
out_xml('\t Var block_index_move = 0\r\n')
|
||||
else:
|
||||
out_xml('\t Var block_index_override = 0\r\n')
|
||||
out_xml('\t Var block_index_move = 0\r\n')
|
||||
#out_xml('\t Var block_index_override = 4\r\n')
|
||||
#out_xml('\t Var block_index_move = 1\r\n')
|
||||
#out_xml('\tIf Seeker = "curr" Then\r\n')
|
||||
#out_xml('\t\tVar TouchLessStg = "Enable"\r\n')
|
||||
#out_xml('\t\tVar TouchLessQrStg = "Enable"\r\n')
|
||||
#out_xml('\tElse\r\n')
|
||||
#out_xml('\t\tVar TouchLessStg = "Disable"\r\n')
|
||||
#out_xml('\t\tVar TouchLessQrStg = "Invisible"\r\n')
|
||||
#out_xml('\tEndIf\r\n')
|
||||
#out_xml('\tIf WebAppShow = "Invisible" Then\r\n')
|
||||
#out_xml('\t\tVar TouchLessStg = "Disable"\r\n')
|
||||
#out_xml('\t\tVar TouchLessQrStg = "Invisible"\r\n')
|
||||
#out_xml('\tEndIf\r\n')
|
||||
|
||||
|
||||
out_xml('</Script>\r\n')
|
||||
|
||||
pd_code_available = '##-##-##-####'
|
||||
count = 0
|
||||
count_test = 0
|
||||
#if touch_less_gen == True:
|
||||
# out_xml( '<Block>\r\n')
|
||||
# out_xml('\t<MarginLeft> 33 </MarginLeft>\r\n')
|
||||
# out_xml('\t<MarginTop> 22 </MarginTop>\r\n')
|
||||
# out_xml('\t<Width> 225 </Width>\r\n')
|
||||
# out_xml('\t<Height> 296 </Height>\r\n')
|
||||
# out_xml('\t<State> "Enable" </State> \r\n')
|
||||
# out_xml('\t<Image>\r\n')
|
||||
# out_xml('\t<X> 0 </X>\r\n')
|
||||
# out_xml('\t<Y> 0 </Y>\r\n')
|
||||
# out_xml('\t<State> TouchLessStg </State> \r\n')
|
||||
# out_xml('\t<Filename> Var( DirImage + "/touch_less_order.png" )</Filename>\r\n')
|
||||
# out_xml('\t<FilenameDisable> Var( DirImage + "/touch_less_order_db.png" )</FilenameDisable>\r\n')
|
||||
# out_xml('\t</Image>\r\n')
|
||||
# out_xml('\t<QRCode>\r\n')
|
||||
# out_xml('\t<X> 40 </X>\r\n')
|
||||
# out_xml('\t<Y> 153 </Y>\r\n')
|
||||
# out_xml('\t<Width> 150 </Width>\r\n')
|
||||
# out_xml('\t<Color> "0xeae6e1" </Color>\r\n')
|
||||
# out_xml('\t<QRColor> "0x513C2F" </Color>\r\n')
|
||||
# out_xml('\t<Height> 150 </Height>\r\n')
|
||||
#
|
||||
# #out_xml('\t<State> TouchLessQrStg </State>\r\n')
|
||||
# #out_xml('\t<Service> "Herr" </Service>\r\n')
|
||||
# out_xml('\t<State> TouchLessQrStg </State>\r\n')
|
||||
# out_xml('\t<Service> testservice </Service>\r\n')
|
||||
#
|
||||
# out_xml('\t</QRCode>\r\n')
|
||||
# out_xml('</Block>\r\n')
|
||||
out_xml(';dummy_layout.inc\r\n')
|
||||
#
|
||||
#out_xml('; menu_new_list '+ str(len(menu_new_list))+'\r\n')
|
||||
for spl in menu_new_list:
|
||||
#product_code = s
|
||||
#if spl[ idx_of_eng] == "IGNORE":
|
||||
# continue
|
||||
if len(spl) == 1:
|
||||
if spl[0].startswith("TAG"):
|
||||
out_xml( '\t;' + spl[0] + '\r\n')
|
||||
print("Have TAGESP")
|
||||
continue
|
||||
print( '==>\t; '+ spl[ idx_name][ idx_hot_product_code] + ' ' + spl[ idx_name][ idx_cold_product_code] + ' ' + spl[ idx_name][ idx_blend_product_code] + ' \r\n')
|
||||
|
||||
if "," in spl[ idx_name][ idx_hot_product_code] and "," in spl[ idx_name][ idx_cold_product_code] and "," in spl[ idx_name][ idx_blend_product_code]:
|
||||
#print(" hot = " + spl[ idx_name][ idx_hot_product_code])
|
||||
hot_pd = spl[ idx_name][ idx_hot_product_code].split(',')
|
||||
cold_pd = spl[ idx_name][ idx_cold_product_code].split(',')
|
||||
blend_pd = spl[ idx_name][ idx_blend_product_code].split(',')
|
||||
|
||||
#print(' size = ' + str( len( hot_pd)) + ' size = ' + str( len( cold_pd)) + ' size = ' + str( len( blend_pd)) + '\r\n')
|
||||
list_size = len( hot_pd)
|
||||
for idx in range( list_size):
|
||||
print(' hot = ' + hot_pd[ idx] + ' cold = ' + cold_pd[ idx]+ ' blend_pd = ' + blend_pd[ idx] + '\r\n')
|
||||
if hot_pd[ idx] == '-' and cold_pd[ idx] == '-' and blend_pd[ idx] == '-':
|
||||
print("\t\t==> ignore ")
|
||||
else:
|
||||
print("\t\t==> gen ")
|
||||
GenMenuProductCodeBlock( hot_pd[ idx], cold_pd[ idx], blend_pd[ idx] )
|
||||
else:
|
||||
GenMenuBlock( idx_hot_product_code, idx_cold_product_code, idx_blend_product_code)
|
||||
#out_xml( '\t; parallel '+ spl[ idx_name][ idx_hot_product_code2] + ' ' + spl[ idx_name][ idx_cold_product_code2] + ' ' + spl[ idx_name][ idx_blend_product_code2] + ' \r\n')
|
||||
#print("++++++++++++++++++++++++++++++ " + str( count_test) )
|
||||
#count_test = count_test + 1
|
||||
#if count_test > 5 :
|
||||
# break
|
||||
if len( spl[idx_name] ) >= 11:
|
||||
if spl[ idx_name][ idx_hot_product_code2] != "-" or spl[ idx_name][ idx_cold_product_code2] != "-" or spl[ idx_name][ idx_blend_product_code2] != "-":
|
||||
GenMenuBlock( idx_hot_product_code2, idx_cold_product_code2, idx_blend_product_code2)
|
||||
|
||||
out_xml('</FrameScroll>\r\n')
|
||||
|
||||
|
||||
out_xml('; Cart\r\n')
|
||||
out_xml('<Button>\r\n')
|
||||
out_xml('<X> 915 </X>\r\n')
|
||||
out_xml('<Y> 1769 </Y>\r\n')
|
||||
out_xml('<State> showCart </State>\r\n')
|
||||
out_xml('<Filename> cart_image_bn </Filename>\r\n')
|
||||
out_xml('<FilenamePress> cart_image_bp </FilenamePress>\r\n')
|
||||
out_xml('<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>\r\n')
|
||||
out_xml('<Volume> SoundVolume </Volume>\r\n')
|
||||
out_xml('<EventClick> \r\n')
|
||||
out_xml('\tOpen "ROOT/taobin_project/xml/page_payment_multi.xml"\r\n')
|
||||
out_xml('</EventClick>\r\n')
|
||||
out_xml('</Button>\r\n')
|
||||
# if "v2" in param:
|
||||
|
||||
|
||||
75
inter/tha/xml/menu_tab.py
Normal file
75
inter/tha/xml/menu_tab.py
Normal file
|
|
@ -0,0 +1,75 @@
|
|||
|
||||
out_xml(' ; bn_bestseller
|
||||
<Button>
|
||||
<X> 92 </X>
|
||||
<Y> 418 </Y>
|
||||
<State> "PressForever" </State>
|
||||
<Filename> Var( DirName + "/bn_bestseller.png" )</Filename>
|
||||
<FilenamePress> Var( DirName + "/bp_bestseller.png") </FilenamePress>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
Open "ROOT/taobin_project/xml/page_catalog_choose_drink1.xml"
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
<Button>
|
||||
<X> 243 </X>
|
||||
<Y> 418 </Y>
|
||||
<Filename> Var( DirName + "/bn_coffee.png") </Filename>
|
||||
<FilenamePress> Var( DirName + "/bp_coffee.png") </FilenamePress>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
Open "ROOT/taobin_project/xml/page_catalog_choose_drink2.xml"
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
<Button>
|
||||
<X> 397 </X>
|
||||
<Y> 418 </Y>
|
||||
<Filename> Var( DirName + "/bn_tea.png") </Filename>
|
||||
<FilenamePress> Var( DirName + "/bp_tea.png") </FilenamePress>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
Open "ROOT/taobin_project/xml/page_catalog_choose_drink3.xml"
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
<Button>
|
||||
<X> 545 </X>
|
||||
<Y> 418 </Y>
|
||||
<Filename> Var( "ROOT/taobin_project/inter/tha/image/page3_2_en/bn_cho_ca.png") </Filename>
|
||||
<FilenamePress> Var( "ROOT/taobin_project/inter/tha/image/page3_2_en/bp_cho_ca.png") </FilenamePress>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
Open "ROOT/taobin_project/xml/page_catalog_choose_drink4.xml"
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
<Button>
|
||||
<X> 696 </X>
|
||||
<Y> 418 </Y>
|
||||
<Filename> Var( DirName + "/bn_fruit.png") </Filename>
|
||||
<FilenamePress> Var( DirName + "/bp_fruit.png") </FilenamePress>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
Open "ROOT/taobin_project/xml/page_catalog_choose_drink5.xml"
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
|
||||
<Button>
|
||||
<X> 847 </X>
|
||||
<Y> 418 </Y>
|
||||
<Filename> Var( DirName + "/bn_sodada.png") </Filename>
|
||||
<FilenamePress> Var( DirName + "/bp_sodada.png") </FilenamePress>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
Open "ROOT/taobin_project/xml/page_catalog_choose_drink6.xml"
|
||||
</EventClick>
|
||||
</Button>
|
||||
437
inter/tha/xml/multi/control_and_lang_swith.lxml
Normal file
437
inter/tha/xml/multi/control_and_lang_swith.lxml
Normal file
|
|
@ -0,0 +1,437 @@
|
|||
<Popup>
|
||||
<Width> 1080</Width>
|
||||
<Height> 1920 </Height>
|
||||
|
||||
<EventOpen>
|
||||
Var Top2Timeout = 0
|
||||
|
||||
|
||||
|
||||
If InternationalEnable = 1 Then
|
||||
Var topview2_script = CountryRootPath + "/xml/topview2_script.ev"
|
||||
|
||||
; will apply other countries
|
||||
If CountryName = "UnitedArabEmirates Dubai" Then
|
||||
TRY topview2_script
|
||||
Else
|
||||
If CountryName = "Malaysia" Then
|
||||
TRY topview2_script
|
||||
Else
|
||||
Var lang_icon_file_name[0] = "bn_eng_lang.png"
|
||||
Var lang_icon_file_name[1] = "bn_thai_lang.png"
|
||||
Var lang_icon_file_name[2] = "bn_china_lang.png"
|
||||
Var lang_icon_file_name[3] = "bn_japan_lang.png"
|
||||
|
||||
Var lang_icon_file_name[4] = "bn_malay_lang.png"
|
||||
var lang_icon_file_name[5] = "bn_uae_dubai_lang.png"
|
||||
EndIf
|
||||
EndIf
|
||||
Else
|
||||
|
||||
Var lang_icon_file_name[0] = "bn_eng_lang.png"
|
||||
Var lang_icon_file_name[1] = "bn_thai_lang.png"
|
||||
Var lang_icon_file_name[3] = "bn_japan_lang.png"
|
||||
Var lang_icon_file_name[2] = "bn_china_lang.png"
|
||||
|
||||
Var lang_icon_file_name[4] = "bn_malay_lang.png"
|
||||
var lang_icon_file_name[5] = "bn_uae_dubai_lang.png"
|
||||
|
||||
EndIf
|
||||
|
||||
|
||||
Var LanguageButtonListEnable = "Invisible"
|
||||
|
||||
Var langFileNameIcon = lang_icon_file_name[LanguageShowByIndex]
|
||||
|
||||
Var langfn = "ROOT/taobin_project/image/lang/" + langFileNameIcon
|
||||
|
||||
;If CountryName = "Malaysia" Then
|
||||
; Var dirImageLang = CountryRootPath + "image/lang/"
|
||||
; Var langfn = dirImageLang + langFileNameIcon
|
||||
; DEBUGVAR langfn
|
||||
; DEBUGVAR ButtonLanguageCurrentXPosition
|
||||
; DEBUGVAR ButtonLanguageCurrentYPosition
|
||||
;EndIf
|
||||
|
||||
|
||||
Var ButtonLanguageListXPositionIcon = ButtonLanguageListXPosition + 27
|
||||
Var ButtonLanguageListYPositionIcon = ButtonLanguageListYPosition + 14
|
||||
|
||||
DEBUGVAR ENABLE_LANGUAGE_COUNT
|
||||
If ENABLE_LANGUAGE_COUNT = "" Then
|
||||
LanguageControl "UpdateList" 1
|
||||
EndIf
|
||||
|
||||
If ENABLE_LANGUAGE_COUNT = 1 Then
|
||||
Var LanguageButtonEnable = "Invisible"
|
||||
EndIf
|
||||
|
||||
If FirstTimeOpenFile = "" Then
|
||||
;Var Not#CountDownForMulti = 5
|
||||
Var FirstTimeOpenFile = "done"
|
||||
EndIf
|
||||
|
||||
IF Not#CountDownForMulti = "" Then
|
||||
Var Not#CountDownForMulti = 99
|
||||
EndIf
|
||||
|
||||
If EnableMultiInstance = "true" Then
|
||||
Var OpenRedirectSize = -1
|
||||
GetRedirectCount OpenRedirectSize
|
||||
;DEBUGVAR OpenRedirectSize
|
||||
If OpenRedirectSize = 0 Then
|
||||
SAVELOG "OpenRedirectSize zero size"
|
||||
Var Not#CountDownForMulti = 5
|
||||
EndIf
|
||||
|
||||
EndIf
|
||||
</EventOpen>
|
||||
<Timeout> 1000 </Timeout>
|
||||
<EventTimeout>
|
||||
;DEBUGVAR Top2Timeout
|
||||
Var Top2Timeout = Top2Timeout + 1
|
||||
|
||||
If Top2Timeout = 20 Then
|
||||
Open "ROOT/taobin_project/xml/topview2.xml"
|
||||
EndIf
|
||||
|
||||
If TimeForClose > 0 Then
|
||||
Var TimeForClose = TimeForClose - 1
|
||||
DEBUGVAR TimeForClose
|
||||
EndIf
|
||||
If TimeForClose = 1 Then
|
||||
Var LanguageButtonListEnable = "Invisible"
|
||||
Refresh
|
||||
EndIf
|
||||
|
||||
If EnableMultiInstance = "true" Then
|
||||
If Not#CountDownForMulti = 99 Then
|
||||
|
||||
;DEBUGVAR Not#CountDownForMulti
|
||||
|
||||
Else
|
||||
If Not#CountDownForMulti = 1 Then
|
||||
|
||||
OpenRedirect "/taobin_project/xml/page_catalog_group_coffee.xml" "/mnt/sdcard/coffeevending/taobin_project/xml/menutab/coffee.ev"
|
||||
OpenRedirect "/taobin_project/xml/page_catalog_group_tea.xml" "/mnt/sdcard/coffeevending/taobin_project/xml/menutab/tea.ev"
|
||||
OpenRedirect "/taobin_project/xml/page_catalog_group_milk.xml" "/mnt/sdcard/coffeevending/taobin_project/xml/menutab/milk.ev"
|
||||
OpenRedirect "/taobin_project/xml/page_catalog_group_other_other.xml" "/mnt/sdcard/coffeevending/taobin_project/xml/menutab/otherOther.ev"
|
||||
OpenRedirect "/taobin_project/xml/page_catalog_group_pepsi7up.xml" "/mnt/sdcard/coffeevending/taobin_project/xml/menutab/pepsi7up.ev"
|
||||
|
||||
Var InstanceTabOpenFile2 = "ROOT/taobin_project/xml/menutab/page_catalog_group_coffee.xml"
|
||||
Var InstanceTabOpenFile3 = "ROOT/taobin_project/xml/menutab/page_catalog_group_tea.xml"
|
||||
Var InstanceTabOpenFile4 = "ROOT/taobin_project/xml/menutab/page_catalog_group_milk.xml"
|
||||
|
||||
If AppFastButtonState = "Enable" Then
|
||||
Var InstanceTabOpenFile5 = "ROOT/taobin_project/xml/menutab/page_catalog_group_appfast.xml"
|
||||
EndIf
|
||||
If WheyButtonState = "Enable" Then
|
||||
Var InstanceTabOpenFile5 = "ROOT/taobin_project/xml/menutab/page_catalog_group_whey.xml"
|
||||
OpenRedirect "/taobin_project/xml/page_catalog_group_whey.xml" "/mnt/sdcard/coffeevending/taobin_project/xml/menutab/kidandwhey.ev"
|
||||
EndIf
|
||||
If MenuKidButtonState = "Enable" Then
|
||||
Var InstanceTabOpenFile5 = "ROOT/taobin_project/xml/menutab/page_catalog_group_forkid.xml"
|
||||
OpenRedirect "/taobin_project/xml/page_catalog_group_forkid.xml" "/mnt/sdcard/coffeevending/taobin_project/xml/menutab/kidandwhey.ev"
|
||||
EndIf
|
||||
|
||||
|
||||
|
||||
If CocktailShow = "true" Then
|
||||
Var InstanceTabOpenFile6 = "ROOT/taobin_project/xml/menutab/page_catalog_group_cocktail.xml"
|
||||
OpenRedirect "/taobin_project/xml/page_catalog_group_cocktail.xml" "/mnt/sdcard/coffeevending/taobin_project/xml/menutab/health.ev"
|
||||
|
||||
Else
|
||||
Var InstanceTabOpenFile6 = "ROOT/taobin_project/xml/menutab/page_catalog_group_health.xml"
|
||||
OpenRedirect "/taobin_project/xml/page_catalog_group_health.xml" "/mnt/sdcard/coffeevending/taobin_project/xml/menutab/health.ev"
|
||||
EndIf
|
||||
Var InstanceTabOpenFile7 = "ROOT/taobin_project/xml/menutab/page_catalog_group_other_other.xml"
|
||||
|
||||
Var InstanceTabOpenFile8 = "ROOT/taobin_project/xml/menutab/page_catalog_group_pepsi_7up.xml"
|
||||
|
||||
|
||||
Var InstanceTabOpenFile9 = "ROOT/taobin_project/xml/menutab/start_up_inst_dummy.xml"
|
||||
Var InstanceTabOpenFile10 = "ROOT/taobin_project/xml/menutab/start_up_inst_dummy.xml"
|
||||
Var InstanceTabOpenFile11 = "ROOT/taobin_project/xml/menutab/start_up_inst_dummy.xml"
|
||||
Var InstanceTabOpenFile12 = "ROOT/taobin_project/xml/menutab/start_up_inst_dummy.xml"
|
||||
Var InstanceTabOpenFile13 = "ROOT/taobin_project/xml/menutab/start_up_inst_dummy.xml"
|
||||
|
||||
TabMenuVisibleInst 99
|
||||
EndIf
|
||||
|
||||
If Not#CountDownForMulti > 0 Then
|
||||
DEBUGVAR Not#CountDownForMulti
|
||||
Var Not#CountDownForMulti = Not#CountDownForMulti - 1
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
|
||||
EndIf
|
||||
|
||||
|
||||
If BrewCommand = "RefreshAll" Then
|
||||
DEBUGVAR BrewCommand
|
||||
Var BrewCommand = "-"
|
||||
If EnableMultiInstance = "true" Then
|
||||
InstanceOverSetString "RefreshNow" 5
|
||||
InstanceOverSetString "RefreshNow" 6
|
||||
InstanceOverSetString "RefreshNow" 7
|
||||
InstanceOverSetString "RefreshNow" 8
|
||||
InstanceOverSetString "RefreshNow" 9
|
||||
InstanceOverSetString "RefreshNow" 10
|
||||
InstanceOverSetString "RefreshNow" 11
|
||||
; TODO
|
||||
|
||||
|
||||
EndIf
|
||||
If Not#CountDownForMulti = 99 Then
|
||||
Var Not#CountDownForMulti = 5
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
|
||||
|
||||
TimerReset
|
||||
|
||||
</EventTimeout>
|
||||
|
||||
; setvarint SlientRefreshEnable 1
|
||||
;
|
||||
;
|
||||
|
||||
<Button>
|
||||
<X> ButtonLanguageCurrentXPosition </X>
|
||||
<Y> ButtonLanguageCurrentYPosition </Y>
|
||||
<State> LanguageButtonEnable </State>
|
||||
<Name> "LangIcon" </Name>
|
||||
<Filename> langfn </Filename>
|
||||
<EventClick>
|
||||
DEBUGVAR ENABLE_LANGUAGE_COUNT
|
||||
If ENABLE_LANGUAGE_COUNT = 2 Then
|
||||
LanguageControl "ChangeNextLang" ""
|
||||
Open "ROOT/taobin_project/xml/topview2.xml"
|
||||
Else
|
||||
Var LanguageButtonListEnable = "Enable"
|
||||
DEBUGVAR LanguageButtonListEnable
|
||||
Var TimeForClose = 10
|
||||
EndIf
|
||||
Refresh
|
||||
</EventClick>
|
||||
|
||||
</Button>
|
||||
|
||||
|
||||
<ListView1>
|
||||
<X> ButtonLanguageListXPosition </X>
|
||||
<Y> ButtonLanguageListYPosition </Y>
|
||||
<Width> 986 </Width>
|
||||
<Height> "auto" </Height>
|
||||
<Align> "vertical"</Align>
|
||||
<State> LanguageButtonListEnable </State>
|
||||
;
|
||||
<Row1>
|
||||
<Width> 82 </Width>
|
||||
<Height> 51 </Height>
|
||||
<State> "Enable" </State>
|
||||
<Image>
|
||||
<Filename> "ROOT/taobin_project/image/lang/lang_bg_top.png" </Filename>
|
||||
</Image>
|
||||
</Row1>
|
||||
<Row1>
|
||||
<Width> 82 </Width>
|
||||
<Height> 56 </Height>
|
||||
<State> ENABLE_THAI </State>
|
||||
<Image>
|
||||
<Filename> "ROOT/taobin_project/image/lang/lang_bg_center.png" </Filename>
|
||||
</Image>
|
||||
</Row1>
|
||||
<Row1>
|
||||
<Width> 82 </Width>
|
||||
<Height> 56 </Height>
|
||||
<State> ENABLE_ENG </State>
|
||||
<Image>
|
||||
<Filename> "ROOT/taobin_project/image/lang/lang_bg_center.png" </Filename>
|
||||
</Image>
|
||||
</Row1>
|
||||
<Row1>
|
||||
<Width> 82 </Width>
|
||||
<Height> 56 </Height>
|
||||
<State> ENABLE_JAPAN </State>
|
||||
|
||||
<Image>
|
||||
<Filename> "ROOT/taobin_project/image/lang/lang_bg_center.png" </Filename>
|
||||
</Image>
|
||||
|
||||
</Row1>
|
||||
<Row1>
|
||||
<Width> 82 </Width>
|
||||
<Height> 56 </Height>
|
||||
<State> ENABLE_CHINA </State>
|
||||
<Image>
|
||||
<Filename> "ROOT/taobin_project/image/lang/lang_bg_center.png" </Filename>
|
||||
</Image>
|
||||
</Row1>
|
||||
<Row1>
|
||||
<Width> 82 </Width>
|
||||
<Height> 56 </Height>
|
||||
<State> ENABLE_MALAY </State>
|
||||
<Image>
|
||||
<Filename> "ROOT/taobin_project/image/lang/lang_bg_center.png" </Filename>
|
||||
</Image>
|
||||
</Row1>
|
||||
<Row1>
|
||||
<Width> 82 </Width>
|
||||
<Height> 56 </Height>
|
||||
<State> ENABLE_UAE_DUBAI </State>
|
||||
<Image>
|
||||
<Filename> "ROOT/taobin_project/image/lang/lang_bg_center.png" </Filename>
|
||||
</Image>
|
||||
</Row1>
|
||||
<Row1>
|
||||
<Width> 82 </Width>
|
||||
<Height> 51 </Height>
|
||||
<State> "Enable" </State>
|
||||
<Image>
|
||||
<Filename> "ROOT/taobin_project/image/lang/lang_bg_bottom.png" </Filename>
|
||||
</Image>
|
||||
</Row1>
|
||||
|
||||
</ListView1>
|
||||
|
||||
<ListView1>
|
||||
<X> ButtonLanguageListXPositionIcon </X>
|
||||
<Y> ButtonLanguageListYPositionIcon </Y>
|
||||
<Width> 958 </Width>
|
||||
<Height> "auto" </Height>
|
||||
<Align> "vertical"</Align>
|
||||
<State> LanguageButtonListEnable </State>
|
||||
;
|
||||
<Row1>
|
||||
<Width> 82 </Width>
|
||||
<Height> 68 </Height>
|
||||
<State> ENABLE_THAI </State>
|
||||
<Button>
|
||||
<X> 0 </X>
|
||||
<Y> 0 </Y>
|
||||
<Width> 56 </Width>
|
||||
<Height> 56 </Height>
|
||||
<State> ENABLE_THAI </State>
|
||||
<Filename> "ROOT/taobin_project/image/lang/bn_thai_lang.png" </Filename>
|
||||
<EventClick>
|
||||
Var LanguageButtonListEnable = "Invisible"
|
||||
Var langFileNameIcon = lang_icon_file_name[LanguageShowByIndex]
|
||||
Var langfn = "ROOT/taobin_project/image/lang/" + langFileNameIcon
|
||||
SetLanguage "THAI"
|
||||
Open "ROOT/taobin_project/xml/topview2.xml"
|
||||
|
||||
</EventClick>
|
||||
</Button>
|
||||
</Row1>
|
||||
<Row1>
|
||||
<Width> 82 </Width>
|
||||
<Height> 68 </Height>
|
||||
<State> ENABLE_ENG </State>
|
||||
<Button>
|
||||
<X> 0 </X>
|
||||
<Y> 0 </Y>
|
||||
<Width> 56 </Width>
|
||||
<Height> 56 </Height>
|
||||
<State> ENABLE_ENG </State>
|
||||
<Filename> "ROOT/taobin_project/image/lang/bn_eng_lang.png" </Filename>
|
||||
<EventClick>
|
||||
SetLanguage "ENG"
|
||||
Var LanguageButtonListEnable = "Invisible"
|
||||
Var langFileNameIcon = lang_icon_file_name[LanguageShowByIndex]
|
||||
Var langfn = "ROOT/taobin_project/image/lang/" + langFileNameIcon
|
||||
Open "ROOT/taobin_project/xml/topview2.xml"
|
||||
</EventClick>
|
||||
</Button>
|
||||
</Row1>
|
||||
<Row1>
|
||||
<Width> 82 </Width>
|
||||
<Height> 68 </Height>
|
||||
<State> ENABLE_JAPAN </State>
|
||||
<Button>
|
||||
<X> 0 </X>
|
||||
<Y> 0 </Y>
|
||||
<Width> 56 </Width>
|
||||
<Height> 56 </Height>
|
||||
<State> ENABLE_JAPAN </State>
|
||||
<Filename> "ROOT/taobin_project/image/lang/bn_japan_lang.png" </Filename>
|
||||
<EventClick>
|
||||
SetLanguage "JAPAN"
|
||||
Var LanguageButtonListEnable = "Invisible"
|
||||
Var langFileNameIcon = lang_icon_file_name[LanguageShowByIndex]
|
||||
Var langfn = "ROOT/taobin_project/image/lang/" + langFileNameIcon
|
||||
Open "ROOT/taobin_project/xml/topview2.xml"
|
||||
</EventClick>
|
||||
</Button>
|
||||
</Row1>
|
||||
<Row1>
|
||||
<Width> 82 </Width>
|
||||
<Height> 68 </Height>
|
||||
<State> ENABLE_CHINA </State>
|
||||
<Button>
|
||||
<X> 0 </X>
|
||||
<Y> 0 </Y>
|
||||
<Width> 82 </Width>
|
||||
<Height> 56 </Height>
|
||||
<State> ENABLE_CHINA </State>
|
||||
<Filename> "ROOT/taobin_project/image/lang/bn_china_lang.png" </Filename>
|
||||
<EventClick>
|
||||
SetLanguage "CHINA"
|
||||
Var LanguageButtonListEnable = "Invisible"
|
||||
|
||||
Var langFileNameIcon = lang_icon_file_name[LanguageShowByIndex]
|
||||
Var langfn = "ROOT/taobin_project/image/lang/" + langFileNameIcon
|
||||
Open "ROOT/taobin_project/xml/topview2.xml"
|
||||
</EventClick>
|
||||
</Button>
|
||||
</Row1>
|
||||
<Row1>
|
||||
<Width> 82 </Width>
|
||||
<Height> 68 </Height>
|
||||
<State> ENABLE_MALAY </State>
|
||||
<Button>
|
||||
<X> 0 </X>
|
||||
<Y> 0 </Y>
|
||||
<Width> 82 </Width>
|
||||
<Height> 56 </Height>
|
||||
<State> ENABLE_MALAY </State>
|
||||
<Filename> "ROOT/taobin_project/image/lang/bn_malay_lang.png" </Filename>
|
||||
<EventClick>
|
||||
SetLanguage "MALAY"
|
||||
Var LanguageButtonListEnable = "Invisible"
|
||||
|
||||
Var langFileNameIcon = lang_icon_file_name[LanguageShowByIndex]
|
||||
Var langfn = "ROOT/taobin_project/image/lang/" + langFileNameIcon
|
||||
Open "ROOT/taobin_project/xml/topview2.xml"
|
||||
</EventClick>
|
||||
</Button>
|
||||
</Row1>
|
||||
<Row1>
|
||||
<Width> 82 </Width>
|
||||
<Height> 68 </Height>
|
||||
<State> ENABLE_UAE_DUBAI </State>
|
||||
<Button>
|
||||
<X> 0 </X>
|
||||
<Y> 0 </Y>
|
||||
<Width> 82 </Width>
|
||||
<Height> 56 </Height>
|
||||
<State> ENABLE_UAE_DUBAI </State>
|
||||
<Filename> "ROOT/taobin_project/image/lang/bn_uae_dubai_lang.png" </Filename>
|
||||
<EventClick>
|
||||
SetLanguage "UAE_DUBAI"
|
||||
Var LanguageButtonListEnable = "Invisible"
|
||||
|
||||
Var langFileNameIcon = lang_icon_file_name[LanguageShowByIndex]
|
||||
Var langfn = "ROOT/taobin_project/image/lang/" + langFileNameIcon
|
||||
Open "ROOT/taobin_project/xml/topview2.xml"
|
||||
</EventClick>
|
||||
</Button>
|
||||
</Row1>
|
||||
|
||||
|
||||
</ListView1>
|
||||
;
|
||||
|
||||
</Popup>
|
||||
0
inter/tha/xml/multi/dummy_layout.py
Normal file
0
inter/tha/xml/multi/dummy_layout.py
Normal file
12
inter/tha/xml/multi/menu_catalog_default_init.py
Normal file
12
inter/tha/xml/multi/menu_catalog_default_init.py
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
if "v2" in param:
|
||||
print("new menu_catalog_default_init catalog ============================> inter.")
|
||||
f = open( directory_to_process + "/menu_catalog_default_init.lxml", "r")
|
||||
#print(f.read())
|
||||
out_xml(f.read())
|
||||
f.close()
|
||||
else:
|
||||
print("new menu_catalog_default_init catalog enable.")
|
||||
f = open( directory_to_process + "/menu_catalog_default_init.xml", "r")
|
||||
#print(f.read())
|
||||
out_xml(f.read())
|
||||
f.close()
|
||||
22
inter/tha/xml/multi/menu_catalog_new.py
Normal file
22
inter/tha/xml/multi/menu_catalog_new.py
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
|
||||
print("directory_to_process =" + directory_to_process)
|
||||
if param == "old":
|
||||
print("old layout catalog enable.")
|
||||
f = open( directory_to_process + "/menu_catalog.xml", "r")
|
||||
#print(f.read())
|
||||
out_xml(f.read())
|
||||
f.close()
|
||||
else:
|
||||
if "v2" in param:
|
||||
print("new layout catalog ============================> inter.")
|
||||
f = open( directory_to_process + "/menu_catalog_new.lxml", "r")
|
||||
#print(f.read())
|
||||
out_xml(f.read())
|
||||
f.close()
|
||||
else:
|
||||
print("new layout catalog enable.")
|
||||
f = open( directory_to_process + "/menu_catalog_new.xml", "r")
|
||||
#print(f.read())
|
||||
out_xml(f.read())
|
||||
f.close()
|
||||
|
||||
12
inter/tha/xml/multi/menu_catalog_new_menu.py
Normal file
12
inter/tha/xml/multi/menu_catalog_new_menu.py
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
if "v2" in param:
|
||||
print("new menu_catalog_new_menu catalog ============================> inter.")
|
||||
f = open( directory_to_process + "/menu_catalog_new_menu.lxml", "r")
|
||||
#print(f.read())
|
||||
out_xml(f.read())
|
||||
f.close()
|
||||
else:
|
||||
print("new menu_catalog_new_menu catalog enable.")
|
||||
f = open( directory_to_process + "/menu_catalog_new_menu.xml", "r")
|
||||
#print(f.read())
|
||||
out_xml(f.read())
|
||||
f.close()
|
||||
106
inter/tha/xml/multi/menu_head.py
Normal file
106
inter/tha/xml/multi/menu_head.py
Normal file
|
|
@ -0,0 +1,106 @@
|
|||
|
||||
RoadShow = False
|
||||
|
||||
default_dir = 'ROOT/taobin_project/image/page_drink/'
|
||||
default_dir2 = 'ROOT/taobin_project/image/page_drink_select/'
|
||||
default_dir_press = 'ROOT/taobin_project/image/page_drink_press/'
|
||||
default_dir_disable = 'ROOT/taobin_project/image/page_drink_disable/'
|
||||
|
||||
new_default_dir = 'ROOT/taobin_project/inter/aus/image/page_drink_n/'
|
||||
new_default_dir2 = 'ROOT/taobin_project/inter/aus/image/page_drink_picture2_n/'
|
||||
new_default_dir_press = 'ROOT/taobin_project/inter/aus/image/page_drink_press_n/'
|
||||
new_default_dir_disable = 'ROOT/taobin_project/inter/aus/image/page_drink_disable_n2/'
|
||||
|
||||
menu_count = 0
|
||||
|
||||
x1 = 44
|
||||
x2 = 301
|
||||
x3 = 558
|
||||
x4 = 815
|
||||
|
||||
ystep = 899 - 571
|
||||
y1 = 20
|
||||
y2 = y1 + ystep*1
|
||||
y3 = y1 + ystep*2
|
||||
y4 = y1 + ystep*3
|
||||
y5 = y1 + ystep*4
|
||||
y6 = y1 + ystep*5
|
||||
y7 = y1 + ystep*6
|
||||
|
||||
|
||||
|
||||
x_button = [
|
||||
x1,
|
||||
x2,
|
||||
x3,
|
||||
x4,
|
||||
|
||||
x1,
|
||||
x2,
|
||||
x3,
|
||||
x4,
|
||||
|
||||
x1,
|
||||
x2,
|
||||
x3,
|
||||
x4,
|
||||
|
||||
x1,
|
||||
x2,
|
||||
x3,
|
||||
x4,
|
||||
|
||||
x1,
|
||||
x2,
|
||||
x3,
|
||||
x4,
|
||||
|
||||
x1,
|
||||
x2,
|
||||
x3,
|
||||
x4,
|
||||
|
||||
x1,
|
||||
x2,
|
||||
x3,
|
||||
x4
|
||||
|
||||
]
|
||||
y_button = [
|
||||
y1,
|
||||
y1,
|
||||
y1,
|
||||
y1,
|
||||
|
||||
y2,
|
||||
y2,
|
||||
y2,
|
||||
y2,
|
||||
|
||||
y3,
|
||||
y3,
|
||||
y3,
|
||||
y3,
|
||||
|
||||
y4,
|
||||
y4,
|
||||
y4,
|
||||
y4,
|
||||
|
||||
y5,
|
||||
y5,
|
||||
y5,
|
||||
y5,
|
||||
|
||||
y6,
|
||||
y6,
|
||||
y6,
|
||||
y6,
|
||||
|
||||
y7,
|
||||
y7,
|
||||
y7,
|
||||
y7
|
||||
|
||||
]
|
||||
|
||||
619
inter/tha/xml/multi/menu_new_layout_gen_v2.py
Normal file
619
inter/tha/xml/multi/menu_new_layout_gen_v2.py
Normal file
|
|
@ -0,0 +1,619 @@
|
|||
if "v2" in param:
|
||||
def GenMenuProductCodeBlock( str_hot_product_code, str_cold_product_code, str_blend_product_code):
|
||||
print(" size " + str( len(spl)) + " img=" + spl[ idx_img][1] )
|
||||
out_xml( '\t; ==================> Len = ' + str(len(spl)) + '\r\n')
|
||||
menu_img = spl[ idx_img][1]
|
||||
out_xml( '\t; '+ str_hot_product_code + ' ' + str_cold_product_code + ' ' + str_blend_product_code+ ' \r\n')
|
||||
|
||||
out_xml( '<Block>\r\n')
|
||||
out_xml('\t<MarginLeft> 33 </MarginLeft>\r\n')
|
||||
out_xml('\t<MarginTop> 22 </MarginTop>\r\n')
|
||||
out_xml('\t<Width> 225 </Width>\r\n')
|
||||
out_xml('\t<Height> 296 </Height>\r\n')
|
||||
str_con = ""
|
||||
str_con_var = ""
|
||||
#print("#########################################################################################################################")
|
||||
#print( str( spl))
|
||||
#print("#########################################################################################################################")
|
||||
if str_hot_product_code != '-':
|
||||
str_con += str_hot_product_code + '.Button,'
|
||||
|
||||
if str_cold_product_code != '-':
|
||||
str_con += str_cold_product_code + '.Button,'
|
||||
|
||||
if str_blend_product_code != '-':
|
||||
str_con += str_blend_product_code + '.Button,'
|
||||
|
||||
if str_hot_product_code != '-':
|
||||
str_con_var += str_hot_product_code + '-'
|
||||
|
||||
if str_cold_product_code != '-':
|
||||
str_con_var += str_cold_product_code + '-'
|
||||
|
||||
if str_blend_product_code != '-':
|
||||
str_con_var += str_blend_product_code + '-'
|
||||
|
||||
str_con_var = str_con_var.replace("-", "")
|
||||
if touch_less_gen == True:
|
||||
str_con += "Disable=Invisible,"
|
||||
|
||||
str_con += "$Sum" + str_con_var
|
||||
|
||||
out_xml( '\t<State> Flag( '+ str_con + ') </State> \r\n')
|
||||
|
||||
pd_code_1 = str_hot_product_code
|
||||
pd_stage1 = '$' + str_hot_product_code + '.Button'
|
||||
if str_hot_product_code == "-" or len(str_hot_product_code) == 0 :
|
||||
pd_code_1 = pd_code_available
|
||||
pd_stage1 = '"Disable2"'
|
||||
|
||||
pd_code_2 = str_cold_product_code
|
||||
pd_stage2 = '$' + str_cold_product_code + '.Button'
|
||||
if str_cold_product_code == "-" or len(str_cold_product_code) == 0:
|
||||
pd_code_2 = pd_code_available
|
||||
pd_stage2 = '"Disable2"'
|
||||
|
||||
pd_code_3 = str_blend_product_code
|
||||
pd_stage3 = '$' + str_blend_product_code + '.Button'
|
||||
if str_blend_product_code == "-" or len(str_blend_product_code) == 0:
|
||||
pd_code_3 = pd_code_available
|
||||
pd_stage3 = '"Disable2"'
|
||||
|
||||
|
||||
|
||||
|
||||
out_xml( '\t<Button>\r\n')
|
||||
out_xml( '\t<State> $Sum' + str_con_var +' </State> \r\n')
|
||||
out_xml( '\t<Filename> "' + new_default_dir + '/'+ menu_img +'" </Filename>\r\n')
|
||||
out_xml( '\t<FilenamePress> "' + new_default_dir_press + '/'+ menu_img +'" </FilenamePress>\r\n')
|
||||
out_xml( '\t<FilenameDisable> "' + new_default_dir_disable + '/'+ menu_img +'" </FilenameDisable>\r\n')
|
||||
out_xml( '\t<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>\r\n')
|
||||
out_xml( '\t<Volume> SoundVolume </Volume>\r\n')
|
||||
out_xml( '\t<EventOnClick> \r\n')
|
||||
|
||||
# Default
|
||||
#out_xml( '\t\tVar NameDrink = "' + spl[ idx_of_eng_des].replace("\\n", " ") + '"\r\n')
|
||||
#out_xml( '\t\tVar NameDrinkTH = "' + spl[ idx_of_eng].replace("\\n", " ") + '"\r\n')
|
||||
#out_xml( '\t\tVar DrinkDescriptionTH = "' + spl[ idx_of_thai].replace("\\n", " ") + '"\r\n')
|
||||
#out_xml( '\t\tVar DrinkDescription = "' + spl[ idx_of_thai_des].replace("\\n", " ") + '"\r\n')
|
||||
out_xml( '\t\tVar PictureDrink = "' + new_default_dir2 + '" + \"' + menu_img + '\"\r\n')
|
||||
|
||||
out_xml( '\t\tVar OpenFromXML = CurrentXMLFileName2\r\n')
|
||||
|
||||
out_xml( '\t\tVar PriceD1 = $' + str_hot_product_code + '.Price\r\n')
|
||||
out_xml( '\t\tVar PriceD2 = $' + str_cold_product_code + '.Price\r\n')
|
||||
out_xml( '\t\tVar PriceD3 = $' + str_blend_product_code + '.Price\r\n')
|
||||
|
||||
out_xml( '\t\tVar PD_CODE1 = "' + pd_code_1 + '"\r\n')
|
||||
out_xml( '\t\tVar PD_CODE2 = "' + pd_code_2 + '"\r\n')
|
||||
out_xml( '\t\tVar PD_CODE3 = "' + pd_code_3 + '"\r\n')
|
||||
|
||||
out_xml( '\t\t; begin lang \r\n')
|
||||
for x in range( max_can_have_lang):
|
||||
if x < len( spl[ idx_name]):
|
||||
out_xml( '\t\tVar aliasName['+ str(x) +'] = "'+ spl[ idx_name][ x + 1]+'"\r\n')
|
||||
out_xml( '\t\tVar aliasDesc['+ str(x) +'] = "'+ spl[ idx_desc][ x + 1]+'"\r\n')
|
||||
|
||||
|
||||
for x in range( max_can_have_lang):
|
||||
out_xml( '\t\tVar NameLang[0]['+ str(x) +'] = "'+ get_name_lang( pd_code_1 , x)+'"\r\n')
|
||||
for x in range( max_can_have_lang):
|
||||
out_xml( '\t\tVar DescLang[0]['+ str(x) +'] = "'+ get_desc_lang( pd_code_1 , x)+'"\r\n')
|
||||
|
||||
|
||||
for x in range( max_can_have_lang):
|
||||
out_xml( '\t\tVar NameLang[1]['+ str(x) +'] = "'+ get_name_lang( pd_code_2 , x)+'"\r\n')
|
||||
for x in range( max_can_have_lang):
|
||||
out_xml( '\t\tVar DescLang[1]['+ str(x) +'] = "'+ get_desc_lang( pd_code_2 , x)+'"\r\n')
|
||||
|
||||
for x in range( max_can_have_lang):
|
||||
out_xml( '\t\tVar NameLang[2]['+ str(x) +'] = "'+ get_name_lang( pd_code_3 , x)+'"\r\n')
|
||||
for x in range( max_can_have_lang):
|
||||
out_xml( '\t\tVar DescLang[2]['+ str(x) +'] = "'+ get_desc_lang( pd_code_3 , x)+'"\r\n')
|
||||
|
||||
|
||||
|
||||
out_xml( '\t\t; end lang \r\n')
|
||||
|
||||
out_xml( '\t\tVar PD_STAGE_1 = ' + pd_stage1 + '\r\n')
|
||||
out_xml( '\t\tVar PD_STAGE_2 = ' + pd_stage2 + '\r\n')
|
||||
out_xml( '\t\tVar PD_STAGE_3 = ' + pd_stage3 + '\r\n')
|
||||
|
||||
|
||||
out_xml( '\t\tVar SelectCountDrinkType = 0\r\n')
|
||||
out_xml( '\t\tVar DefaultDrinkType = 0\r\n')
|
||||
|
||||
out_xml( '\t\tIf PD_STAGE_1 = "Enable" Then\r\n')
|
||||
out_xml( '\t\t\tVar SelectCountDrinkType = SelectCountDrinkType + 1\r\n')
|
||||
out_xml( '\t\t\tVar DefaultDrinkType = 1\r\n')
|
||||
out_xml( '\t\tEndIf\r\n')
|
||||
|
||||
|
||||
out_xml( '\t\tIf PD_STAGE_2 = "Enable" Then\r\n')
|
||||
out_xml( '\t\t\tVar SelectCountDrinkType = SelectCountDrinkType + 1\r\n')
|
||||
out_xml( '\t\t\tVar DefaultDrinkType = 2\r\n')
|
||||
out_xml( '\t\tEndIf\r\n')
|
||||
|
||||
|
||||
out_xml( '\t\tIf PD_STAGE_3 = "Enable" Then\r\n')
|
||||
out_xml( '\t\t\tVar SelectCountDrinkType = SelectCountDrinkType + 1\r\n')
|
||||
out_xml( '\t\t\tVar DefaultDrinkType = 3\r\n')
|
||||
out_xml( '\t\tEndIf\r\n')
|
||||
|
||||
|
||||
|
||||
out_xml( '\t\tIf PD_STAGE_2 = "Enable" Then\r\n')
|
||||
#out_xml( '\t\t\tVar PD_STAGE_2 = "Enable"\r\n')
|
||||
out_xml( '\t\t\tTopping "Load" "'+ str_cold_product_code +'"\r\n')
|
||||
out_xml( '\t\tElse\r\n')
|
||||
out_xml( '\t\t\tIf PD_STAGE_1 = "Enable" Then\r\n')
|
||||
#out_xml( '\t\t\t\tVar PD_STAGE_1 = "Enable"\r\n')
|
||||
out_xml( '\t\t\tTopping "Load" "'+ str_hot_product_code +'"\r\n')
|
||||
out_xml( '\t\t\tElse\r\n')
|
||||
#out_xml( '\t\t\t\tVar PD_STAGE_3 = "Enable"\r\n')
|
||||
out_xml( '\t\t\tTopping "Load" "'+ str_blend_product_code +'"\r\n')
|
||||
out_xml( '\t\t\tEndIf\r\n')
|
||||
out_xml( '\t\tEndIf\r\n')
|
||||
|
||||
|
||||
|
||||
#out_xml( '\t\tVar menu_name_eng_hot = $' + pd_code_1 + '.NameE\r\n')
|
||||
#out_xml( '\t\tVar menu_desc_eng_hot = $' + pd_code_1 + '.descriptionE\r\n')
|
||||
#out_xml( '\t\tVar menu_name_thai_hot = $' + pd_code_1 + '.Name\r\n')
|
||||
#out_xml( '\t\tVar menu_desc_thai_hot = $' + pd_code_1 + '.description\r\n')
|
||||
#out_xml( '\t\t\r\n')
|
||||
#out_xml( '\t\tVar menu_name_eng_cold = $' + pd_code_2 + '.NameE\r\n')
|
||||
#out_xml( '\t\tVar menu_desc_eng_cold = $' + pd_code_2 + '.descriptionE\r\n')
|
||||
#out_xml( '\t\tVar menu_name_thai_cold = $' + pd_code_2 + '.Name\r\n')
|
||||
#out_xml( '\t\tVar menu_desc_thai_cold = $' + pd_code_2 + '.description\r\n')
|
||||
#out_xml( '\t\t\r\n')
|
||||
#out_xml( '\t\tVar menu_name_eng_blender = $' + pd_code_3 + '.NameE\r\n')
|
||||
#out_xml( '\t\tVar menu_desc_eng_blender = $' + pd_code_3 + '.descriptionE\r\n')
|
||||
#out_xml( '\t\tVar menu_name_thai_blender = $' + pd_code_3 + '.Name\r\n')
|
||||
#out_xml( '\t\tVar menu_desc_thai_blender = $' + pd_code_3 + '.description\r\n')
|
||||
|
||||
|
||||
|
||||
|
||||
out_xml( '\t\t\r\n')
|
||||
out_xml( '\t\tDEBUGVAR PD_STAGE_1\r\n')
|
||||
out_xml( '\t\tDEBUGVAR PD_STAGE_2\r\n')
|
||||
out_xml( '\t\tDEBUGVAR PD_STAGE_3\r\n')
|
||||
out_xml( '\t\tVar SelectDrinkType = 0\r\n')
|
||||
|
||||
|
||||
out_xml( '\t\t\r\n')
|
||||
out_xml( '\t\t\r\n')
|
||||
out_xml( '\t\tOpen "ROOT/taobin_project/xml/page_topping_select6.lxml"\r\n')
|
||||
out_xml( '\t\t\r\n')
|
||||
|
||||
|
||||
|
||||
out_xml( '\t</EventOnClick>\r\n')
|
||||
out_xml( '\t</Button>\r\n')
|
||||
|
||||
|
||||
|
||||
out_xml( '\t<Text>\r\n')
|
||||
out_xml( '\t<X> 16 </X>\r\n')
|
||||
out_xml( '\t<Y> 164 </Y>\r\n')
|
||||
out_xml( '\t<Size> 22 </Size>\r\n')
|
||||
out_xml( '\t<Width>222</Width>\r\n')
|
||||
out_xml( '\t<Mode> "multi2" </Mode>\r\n')
|
||||
out_xml( '\t<Font> KanitMediumTTF </Font>\r\n')
|
||||
out_xml( '\t<Color> 0x322B26 </Color>\r\n')
|
||||
|
||||
out_xml( '\t<LanguageGroup>\r\n')
|
||||
out_xml( '\t\t<LanguageSlot1>' + spl[ idx_name][ idx_lang_eng] + '</LanguageSlot1>\r\n')
|
||||
out_xml( '\t\t<LanguageSlot2>' + spl[ idx_name][ idx_lang_thai] + '</LanguageSlot2>\r\n')
|
||||
out_xml( '\t\t<LanguageSlot3>' + spl[ idx_name][ idx_lang_eng] + '</LanguageSlot3>\r\n')
|
||||
out_xml( '\t\t<LanguageSlot4>' + spl[ idx_name][ idx_lang_thai] + '</LanguageSlot4>\r\n')
|
||||
out_xml( '\t\t<LanguageSlot5>' + spl[ idx_name][ idx_lang_malay] + '</LanguageSlot5>\r\n')
|
||||
out_xml( '\t\t<LanguageSlot6>' + spl[ idx_name][ idx_lang_thai] + '</LanguageSlot6>\r\n')
|
||||
out_xml( '\t</LanguageGroup>\r\n')
|
||||
|
||||
out_xml( '\t</Text>\r\n')
|
||||
|
||||
out_xml( '\t<Text>\r\n')
|
||||
out_xml( '\t<X> 16 </X>\r\n')
|
||||
out_xml( '\t<Y> 220 </Y>\r\n')
|
||||
out_xml( '\t<Size> 14 </Size>\r\n')
|
||||
out_xml( '\t<Width>222</Width>\r\n')
|
||||
out_xml( '\t<Font> KanitMediumTTF </Font>\r\n')
|
||||
out_xml( '\t<Color> 0x6F5F51 </Color>\r\n')
|
||||
#out_xml( '\t<State> showthaiText </State>\r\n')
|
||||
out_xml( '\t<LanguageGroup>\r\n')
|
||||
out_xml( '\t\t<LanguageSlot1>' + spl[ idx_desc][ idx_lang_eng] + '</LanguageSlot1>\r\n')
|
||||
out_xml( '\t\t<LanguageSlot2>' + spl[ idx_desc][ idx_lang_thai] + '</LanguageSlot2>\r\n')
|
||||
out_xml( '\t\t<LanguageSlot3>' + spl[ idx_desc][ idx_lang_eng] + '</LanguageSlot3>\r\n')
|
||||
out_xml( '\t\t<LanguageSlot4>' + spl[ idx_desc][ idx_lang_thai] + '</LanguageSlot4>\r\n')
|
||||
out_xml( '\t\t<LanguageSlot5>' + spl[ idx_desc][ idx_lang_malay] + '</LanguageSlot5>\r\n')
|
||||
out_xml( '\t\t<LanguageSlot6>' + spl[ idx_desc][ idx_lang_thai] + '</LanguageSlot6>\r\n')
|
||||
out_xml( '\t</LanguageGroup>\r\n')
|
||||
|
||||
out_xml( '\t</Text>\r\n')
|
||||
|
||||
|
||||
|
||||
out_xml( '\t<Image>\r\n')
|
||||
out_xml( '\t<X> 16 </X>\r\n')
|
||||
out_xml( '\t<Y> 264 </Y>\r\n')
|
||||
out_xml( '\t<Filename> Var( DirImage2 + "option_deactive.png" ) </Filename>\r\n')
|
||||
out_xml( '\t</Image>\r\n')
|
||||
|
||||
ice_tab_hot_show = True
|
||||
shw = "$" + str_hot_product_code + ".Button"
|
||||
if str_hot_product_code == "-" :
|
||||
shw = '"Invisible"'
|
||||
ice_tab_hot_show = False
|
||||
|
||||
if len(str_hot_product_code) == 0 :
|
||||
shw = '"Invisible"'
|
||||
ice_tab_hot_show = False
|
||||
|
||||
out_xml( '\t<Image>\r\n')
|
||||
out_xml( '\t<X> 16 </X>\r\n')
|
||||
out_xml( '\t<Y> 264 </Y>\r\n')
|
||||
out_xml( '\t<State> ' + shw + ' </State>\r\n')
|
||||
out_xml( '\t<Filename> Var( DirImage2 + "hot.png" ) </Filename>\r\n')
|
||||
out_xml( '\t<FilenameDisable> Var( DirImage2 + "hot_db.png" ) </FilenameDisable>\r\n')
|
||||
out_xml( '\t</Image>\r\n')
|
||||
|
||||
out_xml( '\t<Text>\r\n')
|
||||
out_xml( '\t<X> TextPriceMenuHotX </X>\r\n')
|
||||
out_xml( '\t<Y> TextPriceMenuY </Y>\r\n')
|
||||
out_xml( '\t<Size> TextPriceMenuSize </Size>\r\n')
|
||||
out_xml( '\t<Width>220</Width>\r\n')
|
||||
out_xml( '\t<Font> KanitMediumTTF </Font>\r\n')
|
||||
|
||||
|
||||
out_xml( '\t<Color> 0x6F5F51 </Color>\r\n')
|
||||
out_xml( '\t<ColorDisable> 0xEAE6E1 </ColorDisable>\r\n')
|
||||
out_xml( '\t<State> ' + shw + ' </State>\r\n')
|
||||
|
||||
#out_xml( '\t<Value> Var( "฿" + $' + spl[ idx_hot_product_code] + '.Price ) </Value>\r\n')
|
||||
|
||||
if "inter" in param:
|
||||
if "free" in param:
|
||||
out_xml( '\t<Value> "Free" </Value>\r\n')
|
||||
else:
|
||||
out_xml( '\t<Value> StringFmt( $' + str_hot_product_code + '.Price , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
|
||||
else:
|
||||
out_xml( '\t<Value> Var( "฿" + $' + str_hot_product_code + '.Price ) </Value>\r\n')
|
||||
out_xml( '\t</Text>\r\n')
|
||||
|
||||
ice_tab_ice_show = True
|
||||
|
||||
shw = "$" + str_cold_product_code + ".Button"
|
||||
if str_cold_product_code == "-" :
|
||||
shw = '"Invisible"'
|
||||
ice_tab_ice_show = False
|
||||
|
||||
if len(str_cold_product_code) == 0 :
|
||||
shw = '"Invisible"'
|
||||
ice_tab_ice_show = False
|
||||
|
||||
out_xml( '\t<Image>\r\n')
|
||||
out_xml( '\t<X> 81 </X>\r\n')
|
||||
out_xml( '\t<Y> 264 </Y>\r\n')
|
||||
if pd_code_2 == "51-05-02-0016":
|
||||
out_xml( '\t<Filename> Var( DirImage2 + "normal.png" ) </Filename>\r\n')
|
||||
out_xml( '\t<FilenameDisable> Var( DirImage2 + "cold_db.png" ) </FilenameDisable>\r\n')
|
||||
else:
|
||||
out_xml( '\t<Filename> Var( DirImage2 + "cold.png" ) </Filename>\r\n')
|
||||
out_xml( '\t<FilenameDisable> Var( DirImage2 + "cold_db.png" ) </FilenameDisable>\r\n')
|
||||
out_xml( '\t<State> ' + shw + ' </State>\r\n')
|
||||
out_xml( '\t</Image>\r\n')
|
||||
out_xml( '\t<Text>\r\n')
|
||||
out_xml( '\t<X> 113 </X>\r\n')
|
||||
out_xml( '\t<Y> TextPriceMenuY </Y>\r\n')
|
||||
out_xml( '\t<Size> TextPriceMenuSize </Size>\r\n')
|
||||
out_xml( '\t<Width>220</Width>\r\n')
|
||||
out_xml( '\t<Font> KanitMediumTTF </Font>\r\n')
|
||||
|
||||
out_xml( '\t<Color> 0x6F5F51 </Color>\r\n')
|
||||
out_xml( '\t<ColorDisable> 0xEAE6E1 </ColorDisable>\r\n')
|
||||
out_xml( '\t<State> ' + shw + ' </State>\r\n')
|
||||
if "inter" in param:
|
||||
if "free" in param:
|
||||
out_xml( '\t<Value> "Free" </Value>\r\n')
|
||||
else:
|
||||
out_xml( '\t<Value> StringFmt( $' + str_cold_product_code + '.Price , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
|
||||
else:
|
||||
out_xml( '\t<Value> Var( "฿" + $' + str_cold_product_code + '.Price ) </Value>\r\n')
|
||||
out_xml( '\t</Text>\r\n')
|
||||
|
||||
ice_tab_blend_show = True
|
||||
|
||||
shw = "$" + str_blend_product_code + ".Button"
|
||||
if str_blend_product_code == "-" :
|
||||
shw = '"Invisible"'
|
||||
ice_tab_blend_show = False
|
||||
|
||||
if len(str_blend_product_code) == 0 :
|
||||
shw = '"Invisible"'
|
||||
ice_tab_blend_show = False
|
||||
|
||||
out_xml( '\t<Image>\r\n')
|
||||
out_xml( '\t<X> 146 </X>\r\n')
|
||||
out_xml( '\t<Y> 264 </Y>\r\n')
|
||||
out_xml( '\t<Filename> Var( DirImage2 + "blend.png" ) </Filename>\r\n')
|
||||
out_xml( '\t<FilenameDisable> Var( DirImage2 + "blend_db.png" ) </FilenameDisable>\r\n')
|
||||
out_xml( '\t<State> ' + shw + ' </State>\r\n')
|
||||
out_xml( '\t</Image>\r\n')
|
||||
|
||||
out_xml( '\t<Text>\r\n')
|
||||
out_xml( '\t<X> TextPriceMenuBlendX </X>\r\n')
|
||||
out_xml( '\t<Y> TextPriceMenuY </Y>\r\n')
|
||||
out_xml( '\t<Size> TextPriceMenuSize </Size>\r\n')
|
||||
out_xml( '\t<Width>220</Width>\r\n')
|
||||
out_xml( '\t<Font> KanitRegularTTF </Font>\r\n')
|
||||
#out_xml( '\t<Align> end </Align>\r\n')
|
||||
|
||||
out_xml( '\t<Color> 0x6F5F51 </Color>\r\n')
|
||||
out_xml( '\t<ColorDisable> 0xEAE6E1 </ColorDisable>\r\n')
|
||||
out_xml( '\t<State> ' + shw + ' </State>\r\n')
|
||||
if "inter" in param:
|
||||
if "free" in param:
|
||||
out_xml( '\t<Value> " Free" </Value>\r\n')
|
||||
else:
|
||||
out_xml( '\t<Value> StringFmt( $' + str_blend_product_code + '.Price , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
|
||||
else:
|
||||
out_xml( '\t<Value> Var( "฿" + $' + str_blend_product_code + '.Price ) </Value>\r\n')
|
||||
out_xml( '\t</Text>\r\n')
|
||||
|
||||
out_xml( '\t<Image>\r\n')
|
||||
out_xml( '\t<X> 81 </X>\r\n')
|
||||
out_xml( '\t<Y> 264 </Y>\r\n')
|
||||
out_xml( '\t<State> \r\n')
|
||||
out_xml( '\t\teval( \r\n')
|
||||
out_xml( '\t\tIf ICE_PROCESS_STATUS = 2 Then\r\n')
|
||||
out_xml( '\t\t\r\n')
|
||||
if ice_tab_hot_show == True:
|
||||
|
||||
#out_xml( '\t\t\tDEBUGVAR $Sum' + str_con_var +'\r\n')
|
||||
out_xml( '\t\t\tIf $Sum' + str_con_var +' = "Disable" Then\r\n')
|
||||
out_xml( '\t\t\t\tVar ice_tab_process_show = "Disable"\r\n')
|
||||
out_xml( '\t\t\tElse\r\n')
|
||||
out_xml( '\t\t\t\tVar ice_tab_process_show = "Enable"\r\n')
|
||||
out_xml( '\t\t\tEndIf\r\n')
|
||||
else:
|
||||
out_xml( '\t\t\tVar ice_tab_process_show = "Invisible"\r\n')
|
||||
|
||||
out_xml( '\t\t\r\n')
|
||||
out_xml( '\t\tElse\r\n')
|
||||
out_xml( '\t\t\tVar ice_tab_process_show = "Invisible"\r\n')
|
||||
out_xml( '\t\tEndIf\r\n')
|
||||
out_xml( '\t\tVar return = ice_tab_process_show\r\n')
|
||||
out_xml( '\t\t)\r\n')
|
||||
out_xml( '\t</State>\r\n')
|
||||
out_xml( '\t<Filename> "ROOT/taobin_project/image/drink_option/ice_tab_unavalible.png" </Filename>\r\n')
|
||||
out_xml( '\t<FilenameDisable> "ROOT/taobin_project/image/drink_option/ice_tab_unavalible_dis.png" </FilenameDisable>\r\n')
|
||||
out_xml( '\t</Image>\r\n')
|
||||
|
||||
|
||||
out_xml( '\t<Image>\r\n')
|
||||
out_xml( '\t<X> 49 </X>\r\n')
|
||||
out_xml( '\t<Y> 117 </Y>\r\n')
|
||||
out_xml( '\t<State> \r\n')
|
||||
out_xml( '\t\teval( \r\n')
|
||||
out_xml( '\t\t\tIf $Sum' + str_con_var +' = "Disable" Then\r\n')
|
||||
out_xml( '\t\t\t\tSTRCONTAIN "ERR" $' + pd_code_1 + '.TAG tag1_is_disable\r\n')
|
||||
out_xml( '\t\t\t\tSTRCONTAIN "ERR" $' + pd_code_2 + '.TAG tag2_is_disable\r\n')
|
||||
out_xml( '\t\t\t\tSTRCONTAIN "ERR" $' + pd_code_3 + '.TAG tag3_is_disable\r\n')
|
||||
#out_xml( '\t\t\t\tDEBUGVAR $' + pd_code_1 + '.TAG\r\n')
|
||||
#out_xml( '\t\t\t\tDEBUGVAR $' + pd_code_2 + '.TAG\r\n')
|
||||
#out_xml( '\t\t\t\tDEBUGVAR $' + pd_code_3 + '.TAG\r\n')
|
||||
out_xml( '\t\t\t\tVar return = "Invisible"\r\n')
|
||||
out_xml( '\t\t\t\tIf tag1_is_disable = "true" Then\r\n')
|
||||
out_xml( '\t\t\t\t\tVar return = "Enable"\r\n')
|
||||
out_xml( '\t\t\t\tEndIf\r\n')
|
||||
out_xml( '\t\t\t\tIf tag2_is_disable = "true" Then\r\n')
|
||||
out_xml( '\t\t\t\t\tVar return = "Enable"\r\n')
|
||||
out_xml( '\t\t\t\tEndIf\r\n')
|
||||
out_xml( '\t\t\t\tIf tag3_is_disable = "true" Then\r\n')
|
||||
out_xml( '\t\t\t\t\tVar return = "Enable"\r\n')
|
||||
out_xml( '\t\t\t\tEndIf\r\n')
|
||||
out_xml( '\t\t\tElse\r\n')
|
||||
out_xml( '\t\t\t\t\tVar return = "Invisible"\r\n')
|
||||
|
||||
out_xml( '\t\t\tEndIf\r\n')
|
||||
|
||||
out_xml( '\t\t)\r\n')
|
||||
out_xml( '\t</State>\r\n')
|
||||
out_xml( '\t<Filename> "ROOT/taobin_project/image//img_menu_err2.png" </Filename>\r\n')
|
||||
out_xml( '\t</Image>\r\n')
|
||||
|
||||
out_xml( '\t<Text>\r\n')
|
||||
out_xml( '\t<X> 84 </X>\r\n')
|
||||
out_xml( '\t<Y> 266 </Y>\r\n')
|
||||
out_xml( '\t<Size> 10 </Size>\r\n')
|
||||
out_xml( '\t<Font> OpunMediumTTF </Font>\r\n')
|
||||
out_xml( '\t<Color> 0xDE794E </Color>\r\n')
|
||||
out_xml( '\t<State> ice_tab_process_show </State>\r\n')
|
||||
out_xml( '\t<Value> ice_show_open </Value>\r\n')
|
||||
out_xml( '\t</Text>\r\n')
|
||||
|
||||
|
||||
out_xml( '\t<Text>\r\n')
|
||||
out_xml( '\t<X> 48 </X>\r\n')
|
||||
out_xml( '\t<Y> 116 </Y>\r\n')
|
||||
out_xml( '\t<Size> 32 </Size>\r\n')
|
||||
out_xml( '\t<Width>128</Width>\r\n')
|
||||
out_xml( '\t<Height>64</Height>\r\n')
|
||||
out_xml( '\t<Mode> "disable-show" </Mode>\r\n')
|
||||
out_xml( '\t<State> $Sum' + str_con_var +' </State> \r\n')
|
||||
out_xml( '\t<Language>\r\n')
|
||||
out_xml( '\t\t<ID> 000013 </ID> \r\n')
|
||||
out_xml( '\t</Language>\r\n')
|
||||
out_xml( '\t<Align> center-vertical-horizontal </Align>\r\n')
|
||||
out_xml( '\t</Text>\r\n')
|
||||
|
||||
|
||||
out_xml( '</Block>\r\n')
|
||||
|
||||
def GenMenuBlock( idx_hot_product_code, idx_cold_product_code, idx_blend_product_code):
|
||||
GenMenuProductCodeBlock( spl[ idx_name][ idx_hot_product_code], spl[ idx_name][ idx_cold_product_code] , spl[ idx_name][ idx_blend_product_code] )
|
||||
|
||||
|
||||
idx_lang_malay = 5
|
||||
idx_lang_japan = 4
|
||||
idx_lang_china = 3
|
||||
idx_lang_thai = 2
|
||||
idx_lang_eng = 1
|
||||
|
||||
|
||||
idx_name = 0
|
||||
idx_desc = 1
|
||||
idx_img = 2
|
||||
|
||||
|
||||
idx_hot_product_code = 7
|
||||
idx_cold_product_code = idx_hot_product_code + 1
|
||||
idx_blend_product_code = idx_cold_product_code + 1
|
||||
|
||||
#
|
||||
idx_hot_product_code2 = idx_blend_product_code + 1
|
||||
idx_cold_product_code2 = idx_hot_product_code2 + 1
|
||||
idx_blend_product_code2 = idx_cold_product_code2 + 1
|
||||
idx_of_eng = 2
|
||||
idx_of_eng_des = 3
|
||||
idx_of_thai = 0
|
||||
idx_of_thai_des = 1
|
||||
print ("--------------------------------------------------------------------------------------------------------------------------")
|
||||
|
||||
|
||||
if current_file_name == "page_catalog_group_recommend.skt":
|
||||
touch_less_gen = True
|
||||
else:
|
||||
touch_less_gen = False
|
||||
|
||||
out_xml('<FrameScroll> \r\n')
|
||||
if touch_less_gen == True:
|
||||
out_xml('<Max> 16 </Max>\r\n')
|
||||
out_xml('<X> 10 </X>\r\n')
|
||||
out_xml('<Y> 497 </Y>\r\n')
|
||||
out_xml('<Width> 1080 </Width>\r\n')
|
||||
out_xml('<ScrollHeight> "auto" </ScrollHeight>\r\n')
|
||||
out_xml('<Scroll> "Vertical" </Scroll>\r\n')
|
||||
out_xml('<Column> 4 </Column>\r\n')
|
||||
out_xml('<Script>\r\n')
|
||||
|
||||
print("current_file_name " + current_file_name)
|
||||
|
||||
|
||||
if touch_less_gen == False:
|
||||
|
||||
out_xml('\t Var block_index_override = 0\r\n')
|
||||
out_xml('\t Var block_index_move = 0\r\n')
|
||||
else:
|
||||
out_xml('\t Var block_index_override = 0\r\n')
|
||||
out_xml('\t Var block_index_move = 0\r\n')
|
||||
#out_xml('\t Var block_index_override = 4\r\n')
|
||||
#out_xml('\t Var block_index_move = 1\r\n')
|
||||
#out_xml('\tIf Seeker = "curr" Then\r\n')
|
||||
#out_xml('\t\tVar TouchLessStg = "Enable"\r\n')
|
||||
#out_xml('\t\tVar TouchLessQrStg = "Enable"\r\n')
|
||||
#out_xml('\tElse\r\n')
|
||||
#out_xml('\t\tVar TouchLessStg = "Disable"\r\n')
|
||||
#out_xml('\t\tVar TouchLessQrStg = "Invisible"\r\n')
|
||||
#out_xml('\tEndIf\r\n')
|
||||
#out_xml('\tIf WebAppShow = "Invisible" Then\r\n')
|
||||
#out_xml('\t\tVar TouchLessStg = "Disable"\r\n')
|
||||
#out_xml('\t\tVar TouchLessQrStg = "Invisible"\r\n')
|
||||
#out_xml('\tEndIf\r\n')
|
||||
|
||||
|
||||
out_xml('</Script>\r\n')
|
||||
|
||||
pd_code_available = '##-##-##-####'
|
||||
count = 0
|
||||
count_test = 0
|
||||
#if touch_less_gen == True:
|
||||
# out_xml( '<Block>\r\n')
|
||||
# out_xml('\t<MarginLeft> 33 </MarginLeft>\r\n')
|
||||
# out_xml('\t<MarginTop> 22 </MarginTop>\r\n')
|
||||
# out_xml('\t<Width> 225 </Width>\r\n')
|
||||
# out_xml('\t<Height> 296 </Height>\r\n')
|
||||
# out_xml('\t<State> "Enable" </State> \r\n')
|
||||
# out_xml('\t<Image>\r\n')
|
||||
# out_xml('\t<X> 0 </X>\r\n')
|
||||
# out_xml('\t<Y> 0 </Y>\r\n')
|
||||
# out_xml('\t<State> TouchLessStg </State> \r\n')
|
||||
# out_xml('\t<Filename> Var( DirImage + "/touch_less_order.png" )</Filename>\r\n')
|
||||
# out_xml('\t<FilenameDisable> Var( DirImage + "/touch_less_order_db.png" )</FilenameDisable>\r\n')
|
||||
# out_xml('\t</Image>\r\n')
|
||||
# out_xml('\t<QRCode>\r\n')
|
||||
# out_xml('\t<X> 40 </X>\r\n')
|
||||
# out_xml('\t<Y> 153 </Y>\r\n')
|
||||
# out_xml('\t<Width> 150 </Width>\r\n')
|
||||
# out_xml('\t<Color> "0xeae6e1" </Color>\r\n')
|
||||
# out_xml('\t<QRColor> "0x513C2F" </Color>\r\n')
|
||||
# out_xml('\t<Height> 150 </Height>\r\n')
|
||||
#
|
||||
# #out_xml('\t<State> TouchLessQrStg </State>\r\n')
|
||||
# #out_xml('\t<Service> "Herr" </Service>\r\n')
|
||||
# out_xml('\t<State> TouchLessQrStg </State>\r\n')
|
||||
# out_xml('\t<Service> testservice </Service>\r\n')
|
||||
#
|
||||
# out_xml('\t</QRCode>\r\n')
|
||||
# out_xml('</Block>\r\n')
|
||||
out_xml(';dummy_layout.inc\r\n')
|
||||
#
|
||||
#out_xml('; menu_new_list '+ str(len(menu_new_list))+'\r\n')
|
||||
for spl in menu_new_list:
|
||||
#product_code = s
|
||||
#if spl[ idx_of_eng] == "IGNORE":
|
||||
# continue
|
||||
if len(spl) == 1:
|
||||
if spl[0].startswith("TAG"):
|
||||
out_xml( '\t;' + spl[0] + '\r\n')
|
||||
print("Have TAGESP")
|
||||
continue
|
||||
print( '==>\t; '+ spl[ idx_name][ idx_hot_product_code] + ' ' + spl[ idx_name][ idx_cold_product_code] + ' ' + spl[ idx_name][ idx_blend_product_code] + ' \r\n')
|
||||
|
||||
if "," in spl[ idx_name][ idx_hot_product_code] and "," in spl[ idx_name][ idx_cold_product_code] and "," in spl[ idx_name][ idx_blend_product_code]:
|
||||
#print(" hot = " + spl[ idx_name][ idx_hot_product_code])
|
||||
hot_pd = spl[ idx_name][ idx_hot_product_code].split(',')
|
||||
cold_pd = spl[ idx_name][ idx_cold_product_code].split(',')
|
||||
blend_pd = spl[ idx_name][ idx_blend_product_code].split(',')
|
||||
|
||||
#print(' size = ' + str( len( hot_pd)) + ' size = ' + str( len( cold_pd)) + ' size = ' + str( len( blend_pd)) + '\r\n')
|
||||
list_size = len( hot_pd)
|
||||
for idx in range( list_size):
|
||||
print(' hot = ' + hot_pd[ idx] + ' cold = ' + cold_pd[ idx]+ ' blend_pd = ' + blend_pd[ idx] + '\r\n')
|
||||
if hot_pd[ idx] == '-' and cold_pd[ idx] == '-' and blend_pd[ idx] == '-':
|
||||
print("\t\t==> ignore ")
|
||||
else:
|
||||
print("\t\t==> gen ")
|
||||
GenMenuProductCodeBlock( hot_pd[ idx], cold_pd[ idx], blend_pd[ idx] )
|
||||
else:
|
||||
GenMenuBlock( idx_hot_product_code, idx_cold_product_code, idx_blend_product_code)
|
||||
#out_xml( '\t; parallel '+ spl[ idx_name][ idx_hot_product_code2] + ' ' + spl[ idx_name][ idx_cold_product_code2] + ' ' + spl[ idx_name][ idx_blend_product_code2] + ' \r\n')
|
||||
#print("++++++++++++++++++++++++++++++ " + str( count_test) )
|
||||
#count_test = count_test + 1
|
||||
#if count_test > 5 :
|
||||
# break
|
||||
if len( spl[idx_name] ) >= 11:
|
||||
if spl[ idx_name][ idx_hot_product_code2] != "-" or spl[ idx_name][ idx_cold_product_code2] != "-" or spl[ idx_name][ idx_blend_product_code2] != "-":
|
||||
GenMenuBlock( idx_hot_product_code2, idx_cold_product_code2, idx_blend_product_code2)
|
||||
|
||||
out_xml('</FrameScroll>\r\n')
|
||||
|
||||
|
||||
out_xml('; Cart\r\n')
|
||||
out_xml('<Button>\r\n')
|
||||
out_xml('<X> 915 </X>\r\n')
|
||||
out_xml('<Y> 1769 </Y>\r\n')
|
||||
out_xml('<State> showCart </State>\r\n')
|
||||
out_xml('<Filename> cart_image_bn </Filename>\r\n')
|
||||
out_xml('<FilenamePress> cart_image_bp </FilenamePress>\r\n')
|
||||
out_xml('<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>\r\n')
|
||||
out_xml('<Volume> SoundVolume </Volume>\r\n')
|
||||
out_xml('<EventClick> \r\n')
|
||||
out_xml('\tOpen "ROOT/taobin_project/xml/page_payment_multi.xml"\r\n')
|
||||
out_xml('</EventClick>\r\n')
|
||||
out_xml('</Button>\r\n')
|
||||
# if "v2" in param:
|
||||
|
||||
|
||||
9
inter/tha/xml/multi/open_page_catalog.ev
Normal file
9
inter/tha/xml/multi/open_page_catalog.ev
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
If WinterWarmersCatalogFlag = 1 Then
|
||||
Var catalogFile = CountryRootPath + "/xml/page_catalog_winter_warmers.lxml"
|
||||
Else
|
||||
Var catalogFile = CountryRootPath + "/xml/page_catalog_westfield.lxml"
|
||||
EndIf
|
||||
|
||||
|
||||
|
||||
Open catalogFile
|
||||
51
inter/tha/xml/multi/page_catalog_group_appfast.skt
Normal file
51
inter/tha/xml/multi/page_catalog_group_appfast.skt
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
<?hurr
|
||||
#include=menu_head.py
|
||||
echo param
|
||||
?>
|
||||
|
||||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
;<Background> "0xeae6e1" </Background>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventOpen>
|
||||
; On open
|
||||
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_default_init.lxml"
|
||||
|
||||
If AppFastEnable = "true" Then
|
||||
Var Menu11Selected = "PressForever"
|
||||
Var Menu7Selected = "Invisible"
|
||||
Else
|
||||
Var Menu11Selected = "Invisible"
|
||||
Var Menu7Selected = "PressForever"
|
||||
EndIf
|
||||
|
||||
|
||||
|
||||
SAVELOG PreviseXMLFileName2
|
||||
|
||||
Var Timeout = 0
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_new_menu.lxml"
|
||||
</EventOpen>
|
||||
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_new.lxml"
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen_v2.py
|
||||
?>
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen.py
|
||||
?>
|
||||
|
||||
|
||||
|
||||
</Popup>
|
||||
44
inter/tha/xml/multi/page_catalog_group_cocktail.skt
Normal file
44
inter/tha/xml/multi/page_catalog_group_cocktail.skt
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
<?hurr
|
||||
#include=menu_head.py
|
||||
?>
|
||||
|
||||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
;<Background> "0xeae6e1" </Background>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventOpen>
|
||||
; On open
|
||||
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_default_init.lxml"
|
||||
|
||||
|
||||
Var Menu8Selected = "PressForever"
|
||||
|
||||
|
||||
SAVELOG PreviseXMLFileName2
|
||||
|
||||
Var Timeout = 0
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_new_menu.lxml"
|
||||
|
||||
</EventOpen>
|
||||
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_new.lxml"
|
||||
|
||||
|
||||
|
||||
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen_v2.py
|
||||
?>
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen.py
|
||||
?>
|
||||
|
||||
|
||||
|
||||
</Popup>
|
||||
42
inter/tha/xml/multi/page_catalog_group_coffee.skt
Normal file
42
inter/tha/xml/multi/page_catalog_group_coffee.skt
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
<?hurr
|
||||
#include=menu_head.py
|
||||
?>
|
||||
|
||||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
;<Background> "0xeae6e1" </Background>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventOpen>
|
||||
; On open
|
||||
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_default_init.lxml"
|
||||
Var Menu2Selected = "PressForever"
|
||||
|
||||
|
||||
|
||||
SAVELOG PreviseXMLFileName2
|
||||
|
||||
Var Timeout = 0
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_new_menu.lxml"
|
||||
</EventOpen>
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_new.lxml"
|
||||
|
||||
|
||||
|
||||
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen_v2.py
|
||||
?>
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen.py
|
||||
?>
|
||||
|
||||
|
||||
|
||||
|
||||
</Popup>
|
||||
51
inter/tha/xml/multi/page_catalog_group_forkid.skt
Normal file
51
inter/tha/xml/multi/page_catalog_group_forkid.skt
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
<?hurr
|
||||
#include=menu_head.py
|
||||
touch_less_gen = False
|
||||
?>
|
||||
|
||||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
;<Background> "0xeae6e1" </Background>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventOpen>
|
||||
; On open
|
||||
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_default_init.lxml"
|
||||
; protein
|
||||
If AppFastEnable = "true" Then
|
||||
Var Menu11Selected = "PressForever"
|
||||
Var Menu7Selected = "Invisible"
|
||||
Var Menu21Selected = "Invisible"
|
||||
Else
|
||||
Var Menu11Selected = "Invisible"
|
||||
Var Menu7Selected = "Invisible"
|
||||
Var Menu21Selected = "PressForever"
|
||||
EndIf
|
||||
|
||||
|
||||
SAVELOG PreviseXMLFileName2
|
||||
|
||||
Var Timeout = 0
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_new_menu.lxml"
|
||||
</EventOpen>
|
||||
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_new.lxml"
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen_v2.py
|
||||
?>
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen.py
|
||||
?>
|
||||
|
||||
|
||||
</Popup>
|
||||
38
inter/tha/xml/multi/page_catalog_group_health.skt
Normal file
38
inter/tha/xml/multi/page_catalog_group_health.skt
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
<?hurr
|
||||
#include=menu_head.py
|
||||
touch_less_gen = False
|
||||
?>
|
||||
|
||||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
;<Background> "0xeae6e1" </Background>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventOpen>
|
||||
; On open
|
||||
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_default_init.lxml"
|
||||
Var Menu22Selected = "PressForever"
|
||||
|
||||
|
||||
SAVELOG PreviseXMLFileName2
|
||||
|
||||
Var Timeout = 0
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_new_menu.lxml"
|
||||
</EventOpen>
|
||||
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_new.lxml"
|
||||
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen_v2.py
|
||||
?>
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen.py
|
||||
?>
|
||||
|
||||
|
||||
</Popup>
|
||||
2815
inter/tha/xml/multi/page_catalog_group_melon.skt
Normal file
2815
inter/tha/xml/multi/page_catalog_group_melon.skt
Normal file
File diff suppressed because it is too large
Load diff
46
inter/tha/xml/multi/page_catalog_group_milk.skt
Normal file
46
inter/tha/xml/multi/page_catalog_group_milk.skt
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
<?hurr
|
||||
#include=menu_head.py
|
||||
?>
|
||||
|
||||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
;<Background> "0xeae6e1" </Background>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventOpen>
|
||||
; On open
|
||||
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_default_init.lxml"
|
||||
Var Menu4Selected = "PressForever"
|
||||
|
||||
SAVELOG PreviseXMLFileName2
|
||||
|
||||
Var Timeout = 0
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_new_menu.lxml"
|
||||
</EventOpen>
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_new.lxml"
|
||||
|
||||
|
||||
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen_v2.py
|
||||
?>
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen.py
|
||||
?>
|
||||
|
||||
|
||||
<?hurr
|
||||
#include=./event/dummy_layout_promotion.py
|
||||
?>
|
||||
|
||||
<EventUnitTest4>
|
||||
RefreshAll
|
||||
</EventUnitTest4>
|
||||
|
||||
|
||||
</Popup>
|
||||
36
inter/tha/xml/multi/page_catalog_group_oreo.skt
Normal file
36
inter/tha/xml/multi/page_catalog_group_oreo.skt
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
<?hurr
|
||||
#include=menu_head.py
|
||||
?>
|
||||
|
||||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
;<Background> "0xeae6e1" </Background>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventOpen>
|
||||
; On open
|
||||
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_default_init.lxml"
|
||||
|
||||
|
||||
Var Timeout = 0
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_new_menu.lxml"
|
||||
</EventOpen>
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_new.lxml"
|
||||
|
||||
|
||||
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen_v2.py
|
||||
?>
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen.py
|
||||
?>
|
||||
|
||||
|
||||
|
||||
</Popup>
|
||||
40
inter/tha/xml/multi/page_catalog_group_other.skt
Normal file
40
inter/tha/xml/multi/page_catalog_group_other.skt
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
<?hurr
|
||||
#include=menu_head.py
|
||||
echo param
|
||||
?>
|
||||
|
||||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
;<Background> "0xeae6e1" </Background>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventOpen>
|
||||
; On open
|
||||
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_default_init.lxml"
|
||||
; soda and other
|
||||
Var Menu6Selected = "PressForever"
|
||||
|
||||
SAVELOG PreviseXMLFileName2
|
||||
|
||||
Var Timeout = 0
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_new_menu.lxml"
|
||||
</EventOpen>
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_new.lxml"
|
||||
|
||||
|
||||
|
||||
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen_v2.py
|
||||
?>
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen.py
|
||||
?>
|
||||
|
||||
|
||||
</Popup>
|
||||
36
inter/tha/xml/multi/page_catalog_group_pepsi_pro.skt
Normal file
36
inter/tha/xml/multi/page_catalog_group_pepsi_pro.skt
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
<?hurr
|
||||
#include=menu_head.py
|
||||
?>
|
||||
|
||||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
;<Background> "0xeae6e1" </Background>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventOpen>
|
||||
; On open
|
||||
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_default_init.lxml"
|
||||
|
||||
|
||||
Var Timeout = 0
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_new_menu.lxml"
|
||||
</EventOpen>
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_new.lxml"
|
||||
|
||||
|
||||
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen_v2.py
|
||||
?>
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen.py
|
||||
?>
|
||||
|
||||
|
||||
|
||||
</Popup>
|
||||
69
inter/tha/xml/multi/page_catalog_group_recommend.lxml
Normal file
69
inter/tha/xml/multi/page_catalog_group_recommend.lxml
Normal file
|
|
@ -0,0 +1,69 @@
|
|||
|
||||
|
||||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
;<Background> "0xeae6e1" </Background>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventOpen>
|
||||
; On open
|
||||
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_default_init.lxml"
|
||||
|
||||
Var Menu1Selected = "PressForever"
|
||||
|
||||
Var OreoBigButtonEnable = "Enable"
|
||||
|
||||
If $12-01-01-0001.Button = "Invisible" Then
|
||||
Var esp102101001Enable = "Invisible"
|
||||
Var esp122101001Enable = "Enable"
|
||||
|
||||
Else
|
||||
Var esp102101001Enable = "Enable"
|
||||
Var esp122101001Enable = "Invisible"
|
||||
|
||||
EndIf
|
||||
|
||||
SAVELOG PreviseXMLFileName2
|
||||
|
||||
Var Timeout = 0
|
||||
|
||||
If show_eng = "true" Then
|
||||
|
||||
Var text_unavailable = "UNAVAILABLE###size=16"
|
||||
Else
|
||||
Var text_unavailable = "หมด###size=32"
|
||||
|
||||
EndIf
|
||||
|
||||
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_new_menu.lxml"
|
||||
|
||||
|
||||
</EventOpen>
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_new.lxml"
|
||||
|
||||
|
||||
<Button>
|
||||
<X> 780 </X>
|
||||
<Y> 500 </Y>
|
||||
<State> buttonRemoveCup </State>
|
||||
;<Color> "0x00BDFF" </Color>
|
||||
<Interval> 500 </Interval>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bn_remove_cup.png" </Filename>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bp_remove_cup.png" </Filename>
|
||||
<EventClick>
|
||||
Machine RemoveCup
|
||||
Machine DoorLidOpen
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
|
||||
|
||||
;BigLogoLayout
|
||||
|
||||
</Popup>
|
||||
|
||||
|
||||
73
inter/tha/xml/multi/page_catalog_group_recommend.skt
Normal file
73
inter/tha/xml/multi/page_catalog_group_recommend.skt
Normal file
|
|
@ -0,0 +1,73 @@
|
|||
<?hurr
|
||||
#include=menu_head.py
|
||||
?>
|
||||
|
||||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
;<Background> "0xeae6e1" </Background>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventOpen>
|
||||
; On open
|
||||
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_default_init.lxml"
|
||||
|
||||
Var Menu1Selected = "PressForever"
|
||||
|
||||
Var OreoBigButtonEnable = "Enable"
|
||||
|
||||
If $12-01-01-0001.Button = "Invisible" Then
|
||||
Var esp102101001Enable = "Invisible"
|
||||
Var esp122101001Enable = "Enable"
|
||||
|
||||
Else
|
||||
Var esp102101001Enable = "Enable"
|
||||
Var esp122101001Enable = "Invisible"
|
||||
|
||||
EndIf
|
||||
|
||||
SAVELOG PreviseXMLFileName2
|
||||
|
||||
Var Timeout = 0
|
||||
|
||||
If show_eng = "true" Then
|
||||
|
||||
Var text_unavailable = "UNAVAILABLE###size=16"
|
||||
Else
|
||||
Var text_unavailable = "หมด###size=32"
|
||||
|
||||
EndIf
|
||||
|
||||
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_new_menu.lxml"
|
||||
|
||||
|
||||
</EventOpen>
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_new.lxml"
|
||||
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen_v2.py
|
||||
?>
|
||||
<Button>
|
||||
<X> 780 </X>
|
||||
<Y> 500 </Y>
|
||||
<State> buttonRemoveCup </State>
|
||||
;<Color> "0x00BDFF" </Color>
|
||||
<Interval> 500 </Interval>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bn_remove_cup.png" </Filename>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bp_remove_cup.png" </Filename>
|
||||
<EventClick>
|
||||
Machine RemoveCup
|
||||
Machine DoorLidOpen
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
|
||||
|
||||
;BigLogoLayout
|
||||
|
||||
</Popup>
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,36 @@
|
|||
<?hurr
|
||||
#include=menu_head.py
|
||||
?>
|
||||
|
||||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
;<Background> "0xeae6e1" </Background>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventOpen>
|
||||
; On open
|
||||
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_default_init.lxml"
|
||||
|
||||
|
||||
Var Timeout = 0
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_new_menu.lxml"
|
||||
</EventOpen>
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_new.lxml"
|
||||
|
||||
|
||||
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen_v2.py
|
||||
?>
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen.py
|
||||
?>
|
||||
|
||||
|
||||
|
||||
</Popup>
|
||||
43
inter/tha/xml/multi/page_catalog_group_tea.skt
Normal file
43
inter/tha/xml/multi/page_catalog_group_tea.skt
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
<?hurr
|
||||
#include=menu_head.py
|
||||
touch_less_gen = False
|
||||
?>
|
||||
|
||||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
;<Background> "0xeae6e1" </Background>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventOpen>
|
||||
; On open
|
||||
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_default_init.lxml"
|
||||
Var Menu3Selected = "PressForever"
|
||||
|
||||
|
||||
SAVELOG PreviseXMLFileName2
|
||||
|
||||
Var Timeout = 0
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_new_menu.lxml"
|
||||
</EventOpen>
|
||||
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_new.lxml"
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen_v2.py
|
||||
?>
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen.py
|
||||
?>
|
||||
|
||||
|
||||
</Popup>
|
||||
46
inter/tha/xml/multi/page_catalog_group_whey.skt
Normal file
46
inter/tha/xml/multi/page_catalog_group_whey.skt
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
<?hurr
|
||||
#include=menu_head.py
|
||||
touch_less_gen = False
|
||||
?>
|
||||
|
||||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
;<Background> "0xeae6e1" </Background>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventOpen>
|
||||
; On open
|
||||
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_default_init.lxml"
|
||||
If AppFastEnable = "true" Then
|
||||
Var Menu11Selected = "PressForever"
|
||||
Var Menu7Selected = "Invisible"
|
||||
Else
|
||||
Var Menu11Selected = "Invisible"
|
||||
Var Menu7Selected = "PressForever"
|
||||
EndIf
|
||||
|
||||
SAVELOG PreviseXMLFileName2
|
||||
|
||||
Var Timeout = 0
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_new_menu.lxml"
|
||||
</EventOpen>
|
||||
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_new.lxml"
|
||||
|
||||
|
||||
|
||||
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen_v2.py
|
||||
?>
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen.py
|
||||
?>
|
||||
|
||||
|
||||
</Popup>
|
||||
66
inter/tha/xml/multi/page_catalog_group_winter_warmers.skt
Normal file
66
inter/tha/xml/multi/page_catalog_group_winter_warmers.skt
Normal file
|
|
@ -0,0 +1,66 @@
|
|||
<?hurr
|
||||
#include=menu_head.py
|
||||
touch_less_gen = False
|
||||
?>
|
||||
|
||||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
;<Background> "0xeae6e1" </Background>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventOpen>
|
||||
; On open
|
||||
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_default_init.lxml"
|
||||
|
||||
|
||||
SAVELOG PreviseXMLFileName2
|
||||
|
||||
Var Timeout = 0
|
||||
|
||||
Var MenuWinterWarmersCatalogState = "PressForever"
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_new_menu.lxml"
|
||||
</EventOpen>
|
||||
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/inter/aus/xml/menu_catalog_new.lxml"
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen_v2.py
|
||||
?>
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen.py
|
||||
?>
|
||||
|
||||
<Button>
|
||||
<X> 42 </X>
|
||||
<Y> 520 </Y>
|
||||
<State> BigButtonEnable </State>
|
||||
<Filename> "ROOT/taobin_project/inter/aus/image/event/winter_warmer_banner.png </Filename>
|
||||
<FilenamePress> "ROOT/taobin_project/inter/aus/image/event/winter_warmer_banner.png" </FilenamePress>
|
||||
<FilenameDisable> "ROOT/taobin_project/inter/aus/image/event/winter_warmer_banner.png" </FilenameDisable>
|
||||
<EventOnClick>
|
||||
|
||||
</EventOnClick>
|
||||
</Button>
|
||||
|
||||
<EventUnitTest1>
|
||||
Var BigButtonEnable = "Enable"
|
||||
Refresh
|
||||
</EventUnitTest1>
|
||||
<EventUnitTest2>
|
||||
Var BigButtonEnable = "Invisible"
|
||||
Refresh
|
||||
</EventUnitTest2>
|
||||
|
||||
|
||||
</Popup>
|
||||
|
||||
11
inter/tha/xml/open_page_catalog.ev
Normal file
11
inter/tha/xml/open_page_catalog.ev
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
If WinterWarmersCatalogFlag = 1 Then
|
||||
Var catalogFile = CountryRootPath + "/xml/page_catalog_winter_warmers.lxml"
|
||||
Else
|
||||
Var catalogFile = CountryRootPath + "/xml/page_catalog.lxml"
|
||||
EndIf
|
||||
|
||||
Var catalogFile = CountryRootPath + "/xml/page_catalog.lxml"
|
||||
DEBUGVAR catalogFile
|
||||
|
||||
|
||||
Open catalogFile
|
||||
2090
inter/tha/xml/page_brewing3.lxml
Normal file
2090
inter/tha/xml/page_brewing3.lxml
Normal file
File diff suppressed because it is too large
Load diff
1303
inter/tha/xml/page_brewing3Conti.xml
Normal file
1303
inter/tha/xml/page_brewing3Conti.xml
Normal file
File diff suppressed because it is too large
Load diff
818
inter/tha/xml/page_catalog.lxml
Normal file
818
inter/tha/xml/page_catalog.lxml
Normal file
|
|
@ -0,0 +1,818 @@
|
|||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
;<Background> "0xeae6e1" </Background>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventOpen>
|
||||
|
||||
|
||||
TopView "show"
|
||||
; On open
|
||||
|
||||
Machine WakeUp
|
||||
|
||||
DEBUGVAR ToppingNewShow
|
||||
|
||||
Var NextPage = "-"
|
||||
|
||||
Var Seeker.thankLidFlag = 0
|
||||
Var Seeker.thankStrawFlag = 0
|
||||
|
||||
WEB "DISABLE"
|
||||
|
||||
Var web_readyOK = "false"
|
||||
Var web_telnumOK = ""
|
||||
|
||||
Var PicturePath = "/mnt/sdcard/coffeevending/taobin_project/image/page_doing/"
|
||||
|
||||
If CocktailShow = "true" Then
|
||||
Open "/mnt/sdcard/coffeevending/taobin_project/xml/page_catalog_cocktail.xml"
|
||||
EndIf
|
||||
|
||||
If TermTemOnline = "true" Then
|
||||
Open "/mnt/sdcard/coffeevending/taobin_project/xml/page_tt_catalog.xml"
|
||||
EndIf
|
||||
|
||||
If Seeker = "curr" Then
|
||||
Machine DoorLidClose
|
||||
EndIf
|
||||
|
||||
Var GetPayInfoFlag = 0
|
||||
Var countDownRetrun = 300
|
||||
|
||||
Var OpenRouteManTest = 0
|
||||
|
||||
CoinVending OFF
|
||||
|
||||
|
||||
; Clear value
|
||||
Topping "clear" "-"
|
||||
|
||||
|
||||
Var DirImage = "ROOT/taobin_project/image/page2_inter/"
|
||||
|
||||
Var StrawAutoRelease1 = "false"
|
||||
Var StrawAutoRelease2 = "false"
|
||||
|
||||
|
||||
Var SELLONLINE = 0
|
||||
If SELLSTATUS = "SELLONLINE" Then
|
||||
Var SELLONLINE = 1
|
||||
EndIf
|
||||
If SELLSTATUS = "SELLNOCASH" Then
|
||||
Var SELLONLINE = 1
|
||||
EndIf
|
||||
|
||||
|
||||
|
||||
If SELLONLINE = 1 Then
|
||||
Var ShowButtonClick2 = "Enable"
|
||||
Else
|
||||
Var ShowButtonClick2 = "Invisible"
|
||||
Var ButtontoTopupMenu = "Invisible"
|
||||
EndIf
|
||||
|
||||
If SELLONLINE = 1 Then
|
||||
Var ShowNetworkProblem = "Invisible"
|
||||
Var ShowNetworkProblemText = ""
|
||||
|
||||
;GenHashWithTimeStamp QRCODE99x
|
||||
WEB "ENABLE"
|
||||
|
||||
Else
|
||||
Var ShowNetworkProblem = "Enable"
|
||||
Var ShowButtonClick2 = "Invisible"
|
||||
Var ButtontoTopupMenu = "Invisible"
|
||||
;Var ShowNetworkProblemText = "การสื่อสารขัดข้อง ชำระเงินได้เฉพาะเงินสด"
|
||||
|
||||
Var QRCODE99 = ""
|
||||
WEB "DISABLE"
|
||||
|
||||
EndIf
|
||||
|
||||
If RoadShow = "true" Then
|
||||
Var ShowNetworkProblem = "Invisible"
|
||||
Var ShowNetworkProblemText = ""
|
||||
EndIf
|
||||
|
||||
; 1035 is Coke.
|
||||
STRCONTAIN "1035" MaterialAvailable CokeUI
|
||||
|
||||
Var bnSodaAndOther = DirImage + "/bn_soda_coke.png"
|
||||
Var bpSodaAndOther = DirImage + "/bp_soda_coke.png"
|
||||
|
||||
|
||||
Var countClick = 0
|
||||
|
||||
|
||||
DEBUGVAR CART_COUNT
|
||||
|
||||
|
||||
Var QRCODE99_Y = 1718
|
||||
|
||||
Var showCart = "Invisible"
|
||||
If MultiPayEnable = "true" Then
|
||||
|
||||
If CART_COUNT = 1 Then
|
||||
Var showCart = "Enable"
|
||||
Var cart_image_bn = DirImageCart + "/bn_cart1.png"
|
||||
Var cart_image_bp = DirImageCart + "/bp_cart1.png"
|
||||
|
||||
Var QRCODE99_Y = 1580
|
||||
|
||||
EndIf
|
||||
|
||||
If CART_COUNT = 2 Then
|
||||
Var showCart = "Enable"
|
||||
Var cart_image_bn = DirImageCart + "/bn_cart2.png"
|
||||
Var cart_image_bp = DirImageCart + "/bp_cart2.png"
|
||||
|
||||
Var QRCODE99_Y = 1580
|
||||
|
||||
EndIf
|
||||
|
||||
|
||||
|
||||
If CART_COUNT = 3 Then
|
||||
Open "ROOT/taobin_project/xml/page_payment_multi.xml"
|
||||
EndIf
|
||||
|
||||
EndIf
|
||||
|
||||
If Seeker = "next" Then
|
||||
Var ShowButtonClick2 = "Invisible"
|
||||
Var ButtontoTopupMenu = "Invisible"
|
||||
EndIf
|
||||
|
||||
|
||||
If XMLProfile = "taobin_notopup" Then
|
||||
Var ButtontoTopupMenu = "Disable"
|
||||
|
||||
EndIf
|
||||
|
||||
|
||||
Var menu_name_eng_hot = ""
|
||||
Var menu_desc_eng_hot = ""
|
||||
Var menu_name_thai_hot = ""
|
||||
Var menu_desc_thai_hot = ""
|
||||
|
||||
Var menu_name_eng_cold = ""
|
||||
Var menu_desc_eng_cold = ""
|
||||
Var menu_name_thai_cold = ""
|
||||
Var menu_desc_thai_cold = ""
|
||||
|
||||
|
||||
Var menu_name_eng_blender = ""
|
||||
Var menu_desc_eng_blender = ""
|
||||
Var menu_name_thai_blender = ""
|
||||
Var menu_desc_thai_blender = ""
|
||||
|
||||
|
||||
|
||||
|
||||
If BoxID = 0 Then
|
||||
RebootWithCause "BoxID was zero"
|
||||
EndIf
|
||||
|
||||
|
||||
|
||||
DEBUGVAR ShowButtonClick2
|
||||
|
||||
DEBUGVAR MenuKidButtonState
|
||||
|
||||
|
||||
|
||||
|
||||
DEBUGVAR $51-03-01-0035.Price
|
||||
Var PromotionIDCurrentOrder = 0
|
||||
RootLayoutVisible 3 "show"
|
||||
</EventOpen>
|
||||
<Timeout> 1000 </Timeout>
|
||||
<EventTimeout>
|
||||
|
||||
;SAVELOG SoundPlaying
|
||||
|
||||
If countDownRetrun > 0 Then
|
||||
Var countDownRetrun = countDownRetrun - 1
|
||||
EndIf
|
||||
|
||||
If countDownRetrun = 0 Then
|
||||
If Seeker = "next" Then
|
||||
RootLayoutVisible 3 "hide"
|
||||
Open "ROOT/taobin_project/xml/page_brewing3Conti.xml"
|
||||
Else
|
||||
Open "ROOT/taobin_project/xml/page_back_to_main.xml"
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
|
||||
|
||||
; zone cup on arm
|
||||
If CupOnArm = "true" Then
|
||||
|
||||
If CheckCupStateDoorCupClose = "" Then
|
||||
Var buttonRemoveCup = "Enable"
|
||||
EndIf
|
||||
|
||||
If CheckCupStateDoorCupClose = "done" Then
|
||||
Var buttonRemoveCup = "Enable"
|
||||
EndIf
|
||||
Else
|
||||
If buttonRemoveCup = "Enable" Then
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
|
||||
Refresh
|
||||
TimerReset
|
||||
</EventTimeout>
|
||||
|
||||
<EventChangeStatus>
|
||||
;If ChangeStatus = "payout-end" Then
|
||||
; Var ChangeOK = 1
|
||||
;EndIf
|
||||
</EventChangeStatus>
|
||||
|
||||
<EventWebApp>
|
||||
|
||||
DEBUGVAR web_ready
|
||||
If web_ready = "true" Then
|
||||
If web_ref = QRCODE99 Then
|
||||
Cart "DeleteMenuID" "ALL"
|
||||
Var web_readyOK = web_ready
|
||||
Var web_telnumOK = web_telnum
|
||||
|
||||
|
||||
|
||||
Open "/mnt/sdcard/coffeevending/taobin_project/xml/page_payment.xml"
|
||||
EndIf
|
||||
|
||||
Else
|
||||
EndIf
|
||||
|
||||
</EventWebApp>
|
||||
|
||||
<Image>
|
||||
<X> 0 </X>
|
||||
<Y> 380 </Y>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1540 </Height>
|
||||
<Color> "0xeae6e1" </Color>
|
||||
</Image>
|
||||
|
||||
<EventLanguageOnChange>
|
||||
DEBUGVAR LanguageShow
|
||||
|
||||
If LanguageShow = "ENG" Then
|
||||
Var PlaySoundLag = "/mnt/sdcard/coffeevending/taobin_project/sound_eng/What_would_you_like_to_drink_today.mp3"
|
||||
EndIf
|
||||
|
||||
If LanguageShow = "MALAY" Then
|
||||
Var PlaySoundLag = "/mnt/sdcard/coffeevending/taobin_project/sound_eng/What_would_you_like_to_drink_today.mp3"
|
||||
EndIf
|
||||
|
||||
If LanguageShow = "THAI" Then
|
||||
Var PlaySoundLag = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/taobin_sawade.mp3"
|
||||
EndIf
|
||||
|
||||
If LanguageShow = "MYANMAR" Then
|
||||
Var show_eng = "true"
|
||||
DEBUGVAR show_eng
|
||||
EndIf
|
||||
|
||||
Play PlaySoundLag
|
||||
Var countDownRetrun = 300
|
||||
|
||||
Var LanguageButtonEnable = "Enable"
|
||||
Var ButtonLanguageCurrentXPosition = 990
|
||||
Var ButtonLanguageCurrentYPosition = 438
|
||||
Var ButtonLanguageListXPosition = 970
|
||||
Var ButtonLanguageListYPosition = 430
|
||||
OpenInst 3 "ROOT/taobin_project/inter/tha/xml/topview2.xml"
|
||||
|
||||
|
||||
RefreshAll
|
||||
</EventLanguageOnChange>
|
||||
|
||||
|
||||
; 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>
|
||||
If Seeker = "next" Then
|
||||
RootLayoutVisible 3 "hide"
|
||||
Open "ROOT/taobin_project/xml/page_brewing3Conti.xml"
|
||||
Else
|
||||
Open "ROOT/taobin_project/xml/page_back_to_main.xml"
|
||||
EndIf
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
|
||||
<Text>
|
||||
<X> 70 </X>
|
||||
<Y> 591 </Y>
|
||||
<Width> 940 </Width>
|
||||
<Height> 85 </Height>
|
||||
<Language>
|
||||
<ID> 000001 </ID>
|
||||
</Language>
|
||||
</Text>
|
||||
|
||||
<Text>
|
||||
<X> 70 </X>
|
||||
<Y> 679 </Y>
|
||||
<Width> 940 </Width>
|
||||
<Height> 85 </Height>
|
||||
<Language>
|
||||
<ID> 000002 </ID>
|
||||
</Language>
|
||||
</Text>
|
||||
|
||||
|
||||
|
||||
; menu row 1
|
||||
<Button>
|
||||
<X> 220 </X>
|
||||
<Y> 844 </Y>
|
||||
<Filename> Var(DirImage + "/bn_diy.png") </Filename>
|
||||
<FilenamePress> Var(DirImage + "/bp_diy.png") </FilenamePress>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert2.xml"
|
||||
|
||||
If CountryName = "Thailand" Then
|
||||
If InternationalEnable = 1 Then
|
||||
Var OpenFileXML = CountryRootPath + "xml/event/script_common_for_open_promotion_xml.ev"
|
||||
TRY OpenFileXML
|
||||
Else
|
||||
TRY "/mnt/sdcard/coffeevending/taobin_project/xml/event/script_common_for_open_promotion_xml.ev"
|
||||
EndIf
|
||||
Else
|
||||
Var OpenFileXML = CountryRootPath + "xml/event/script_common_for_open_promotion_xml.ev"
|
||||
TRY OpenFileXML
|
||||
EndIf
|
||||
|
||||
</EventClick>
|
||||
<Language>
|
||||
<ID> 000003 </ID>
|
||||
<X> 28 </X>
|
||||
<Y> 202 </Y>
|
||||
<Width> 241 </Width>
|
||||
<Height> 72 </Height>
|
||||
</Language>
|
||||
</Button>
|
||||
|
||||
<Button>
|
||||
<X> 564 </X>
|
||||
<Y> 844 </Y>
|
||||
<Filename> Var(DirImage + "/bn_coffee.png") </Filename>
|
||||
<FilenamePress> Var(DirImage + "/bp_coffee.png") </FilenamePress>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert2.xml"
|
||||
|
||||
|
||||
Var OpenFileXML = CountryRootPath + "xml/page_catalog_group_coffee.lxml"
|
||||
|
||||
DEBUGVAR CountryRootPath
|
||||
DEBUGVAR OpenFileXML
|
||||
Open OpenFileXML
|
||||
|
||||
</EventClick>
|
||||
<Language>
|
||||
<ID> 000005 </ID>
|
||||
<X> 28 </X>
|
||||
<Y> 202 </Y>
|
||||
<Width> 241 </Width>
|
||||
<Height> 72 </Height>
|
||||
</Language>
|
||||
</Button>
|
||||
|
||||
; menu row 2
|
||||
<Button>
|
||||
<X> 47 </X>
|
||||
<Y> 1188 </Y>
|
||||
<Filename> Var(DirImage + "/bn_tea.png") </Filename>
|
||||
<FilenamePress> Var(DirImage + "/bp_tea.png") </FilenamePress>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert2.xml"
|
||||
|
||||
;Open "ROOT/taobin_project/xml/page_catalog_group_tea.lxml"
|
||||
|
||||
Var OpenFileXML = CountryRootPath + "xml/page_catalog_group_tea.lxml"
|
||||
Open OpenFileXML
|
||||
</EventClick>
|
||||
<Language>
|
||||
<ID> 000006 </ID>
|
||||
<X> 28 </X>
|
||||
<Y> 193 </Y>
|
||||
<Width> 241 </Width>
|
||||
<Height> 72 </Height>
|
||||
</Language>
|
||||
</Button>
|
||||
|
||||
<Button>
|
||||
<X> 391 </X>
|
||||
<Y> 1188 </Y>
|
||||
<Filename> Var(DirImage + "/bn_cho_caramel.png") </Filename>
|
||||
<FilenamePress> Var(DirImage + "/bp_cho_caramel.png") </FilenamePress>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert2.xml"
|
||||
|
||||
;Open "ROOT/taobin_project/xml/page_catalog_group_milk.lxml"
|
||||
|
||||
Var OpenFileXML = CountryRootPath + "xml/page_catalog_group_milk.lxml"
|
||||
Open OpenFileXML
|
||||
</EventClick>
|
||||
<Language>
|
||||
<ID> 000007 </ID>
|
||||
<X> 28 </X>
|
||||
<Y> 193 </Y>
|
||||
<Width> 241 </Width>
|
||||
<Height> 72 </Height>
|
||||
</Language>
|
||||
</Button>
|
||||
|
||||
|
||||
<Button>
|
||||
<X> 392 </X>
|
||||
<Y> 1532 </Y>
|
||||
<State>MenuKidButtonState</State>
|
||||
<Filename> Var(DirImage + "/bn_kidmenu.png") </Filename>
|
||||
<FilenamePress> Var(DirImage + "/bn_kidmenu.png") </FilenamePress>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert2.xml"
|
||||
|
||||
;Open "ROOT/taobin_project/xml/page_catalog_group_forkid.lxml"
|
||||
|
||||
Var OpenFileXML = CountryRootPath + "xml/page_catalog_group_forkid.lxml"
|
||||
Open OpenFileXML
|
||||
</EventClick>
|
||||
<Language>
|
||||
<ID> 000011 </ID>
|
||||
<X> 28 </X>
|
||||
<Y> 211 </Y>
|
||||
<Width> 241 </Width>
|
||||
<Height> 72 </Height>
|
||||
</Language>
|
||||
</Button>
|
||||
|
||||
<Button>
|
||||
<X> 392 </X>
|
||||
<Y> 1532 </Y>
|
||||
<State>AppFastButtonState</State>
|
||||
<Filename> Var(DirImage + "/bn_appfast.png") </Filename>
|
||||
<FilenamePress> Var(DirImage + "/bp_appfast.png") </FilenamePress>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert2.xml"
|
||||
|
||||
;Open "ROOT/taobin_project/xml/page_catalog_group_appfast.lxml"
|
||||
|
||||
Var OpenFileXML = CountryRootPath + "xml/page_catalog_group_appfast.lxml"
|
||||
Open OpenFileXML
|
||||
|
||||
</EventClick>
|
||||
<Language>
|
||||
<ID> 000012 </ID>
|
||||
<X> 28 </X>
|
||||
<Y> 211 </Y>
|
||||
<Width> 241 </Width>
|
||||
<Height> 72 </Height>
|
||||
</Language>
|
||||
</Button>
|
||||
|
||||
|
||||
<Button>
|
||||
<X> 748 </X>
|
||||
<Y> 1188 </Y>
|
||||
<Filename> bnSodaAndOther </Filename>
|
||||
<FilenamePress> bpSodaAndOther </FilenamePress>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert2.xml"
|
||||
|
||||
;Open "ROOT/taobin_project/xml/page_catalog_group_other.lxml"
|
||||
|
||||
Var OpenFileXML = CountryRootPath + "xml/page_catalog_group_other.lxml"
|
||||
Open OpenFileXML
|
||||
</EventClick>
|
||||
<Language>
|
||||
<ID> 000009 </ID>
|
||||
<X> 28 </X>
|
||||
<Y> 211 </Y>
|
||||
<Width> 241 </Width>
|
||||
<Height> 72 </Height>
|
||||
</Language>
|
||||
</Button>
|
||||
|
||||
;###############################################################
|
||||
|
||||
|
||||
|
||||
<Button>
|
||||
<X> 392 </X>
|
||||
<Y> 1532 </Y>
|
||||
<State>WheyButtonState</State>
|
||||
<Filename> Var(DirImage + "/bn_protein.png") </Filename>
|
||||
<FilenamePress> Var(DirImage + "/bp_protein.png") </FilenamePress>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert2.xml"
|
||||
|
||||
;Open "ROOT/taobin_project/xml/page_catalog_group_whey.lxml"
|
||||
|
||||
Var OpenFileXML = CountryRootPath + "xml/page_catalog_group_whey.lxml"
|
||||
Open OpenFileXML
|
||||
|
||||
</EventClick>
|
||||
<Language>
|
||||
<ID> 000008 </ID>
|
||||
<X> 28 </X>
|
||||
<Y> 202 </Y>
|
||||
<Width> 241 </Width>
|
||||
<Height> 72 </Height>
|
||||
</Language>
|
||||
</Button>
|
||||
|
||||
|
||||
<Button>
|
||||
<X> 736 </X>
|
||||
<Y> 1532 </Y>
|
||||
<State> "Enable" </State>
|
||||
<Filename> Var(DirImage + "/bn_HealthyOption.png") </Filename>
|
||||
<FilenamePress> Var(DirImage + "/bp_HealthyOption.png") </FilenamePress>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert2.xml"
|
||||
|
||||
;Open "ROOT/taobin_project/xml/page_catalog_group_health.lxml"
|
||||
|
||||
|
||||
Var OpenFileXML = CountryRootPath + "xml/page_catalog_group_health.lxml"
|
||||
Open OpenFileXML
|
||||
|
||||
</EventClick>
|
||||
<Language>
|
||||
<ID> 000010 </ID>
|
||||
<X> 28 </X>
|
||||
<Y> 202 </Y>
|
||||
<Width> 241 </Width>
|
||||
<Height> 82 </Height>
|
||||
</Language>
|
||||
</Button>
|
||||
|
||||
|
||||
<Button>
|
||||
<X> 736 </X>
|
||||
<Y> 1532 </Y>
|
||||
<State> "Invisible" </State>
|
||||
<Filename> Var(DirImage + "/bn_winter_warmers.png") </Filename>
|
||||
<FilenamePress> Var(DirImage + "/bn_winter_warmers.png") </FilenamePress>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert2.xml"
|
||||
|
||||
;Open "ROOT/taobin_project/xml/page_catalog_group_winter_warmers.lxml"
|
||||
|
||||
|
||||
Var OpenFileXML = CountryRootPath + "xml/page_catalog_group_winter_warmers_ignore.lxml"
|
||||
Open OpenFileXML
|
||||
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
|
||||
;###############################################################
|
||||
|
||||
<Button>
|
||||
<X> 48 </X>
|
||||
<Y> 1532 </Y>
|
||||
<Filename> Var(DirImage + "/bn_Pepsi_7up.png") </Filename>
|
||||
<FilenamePress> Var(DirImage + "/bp_Pepsi_7up.png") </FilenamePress>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert2.xml"
|
||||
Var OpenFileXML = CountryRootPath + "xml/page_catalog_group_pepsi_7up.lxml"
|
||||
Open OpenFileXML
|
||||
|
||||
</EventClick>
|
||||
<Language>
|
||||
<ID> 000025 </ID>
|
||||
<X> 28 </X>
|
||||
<Y> 202 </Y>
|
||||
<Width> 241 </Width>
|
||||
<Height> 82 </Height>
|
||||
</Language>
|
||||
</Button>
|
||||
|
||||
<Button>
|
||||
<X> 225 </X>
|
||||
<Y> 424 </Y>
|
||||
<State> ShowButtonClick2 </State>
|
||||
<Filename> Var(DirImage + "/bn_main_page_member.png") </Filename>
|
||||
<FilenamePress> Var(DirImage + "/bp_main_page_member.png") </FilenamePress>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
; eng
|
||||
Var CheckMemberPage = CountryRootPath + "xml/page_check_member.lxml"
|
||||
Open CheckMemberPage
|
||||
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
<Button>
|
||||
<X> 696 </X>
|
||||
<Y> 424 </Y>
|
||||
<State> ButtontoTopupMenu </State>
|
||||
<Filename> Var(DirImage + "/bn_main_page_topup.png") </Filename>
|
||||
<FilenamePress> Var(DirImage + "/bp_main_page_topup.png") </FilenamePress>
|
||||
<FilenameDisable> Var(DirImage + "/bp_main_page_topup.png") </FilenameDisable>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
; eng
|
||||
Var PayDetail=""
|
||||
Open "ROOT/taobin_project/xml/page_back_to_topup.xml"
|
||||
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
<Button>
|
||||
<X> 0 </X>
|
||||
<Y> 1870 </Y>
|
||||
<State> ShowNetworkProblem </State>
|
||||
<Color> "0xFF0000" </Color>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 60 </Height>
|
||||
<EventClick>
|
||||
|
||||
Open "ROOT/taobin_project/xml/page_camera.xml"
|
||||
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
<Text>
|
||||
<X> 5 </X>
|
||||
<Y> 1880 </Y>
|
||||
<Size> 24 </Size>
|
||||
<Align> Center </Align>
|
||||
<Width> 1080 </Width>
|
||||
<Font> RobotoRegular </Font>
|
||||
<Color> 0xFFFFFF </Color>
|
||||
<Value> ShowNetworkProblemText </Value>
|
||||
</Text>
|
||||
|
||||
; Cart
|
||||
<Button>
|
||||
<X> 915 </X>
|
||||
<Y> 1769 </Y>
|
||||
<State> showCart </State>
|
||||
<Filename> cart_image_bn </Filename>
|
||||
<Filename> cart_image_bp </Filename>
|
||||
<FilenamePress> cart_image_bp </FilenamePress>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<Interval> 400</Interval>
|
||||
<EventClick>
|
||||
|
||||
|
||||
Open "ROOT/taobin_project/xml/page_payment_multi.xml"
|
||||
|
||||
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
<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"
|
||||
|
||||
Open "/mnt/sdcard/coffeevending/taobin_project/xml/page_payment.xml"
|
||||
|
||||
EndIf
|
||||
Else
|
||||
EndIf
|
||||
|
||||
</EventWebApp>
|
||||
|
||||
|
||||
|
||||
|
||||
<Button>
|
||||
<X> 780 </X>
|
||||
<Y> 500 </Y>
|
||||
<State> buttonRemoveCup </State>
|
||||
;<Color> "0x00BDFF" </Color>
|
||||
<Interval> 500 </Interval>
|
||||
<Filename> Var(RootPath + "image/main_page_inter/bn_remove_cup.png") </Filename>
|
||||
<Filename> Var(RootPath + "image/main_page_inter/bp_remove_cup.png") </Filename>
|
||||
<EventClick>
|
||||
Machine RemoveCup
|
||||
Machine DoorLidOpen
|
||||
|
||||
Var CheckCupStateDoorCupClose = "reset"
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<Image>
|
||||
<X> 0 </X>
|
||||
<Y> 1820 </Y>
|
||||
<Width> 100 </Width>
|
||||
<Height> 100 </Height>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
Var ClickCountMainTe = ClickCountMainTe + 1
|
||||
|
||||
DEBUGVAR ClickCountMainTe
|
||||
|
||||
If ClickCountMainTe = 2 Then
|
||||
Var OpenRouteManTest = 1
|
||||
Open "ROOT/taobin_project/xml/page_back_to_main.xml"
|
||||
Var ClickCountMainTe = 0
|
||||
EndIf
|
||||
</EventClick>
|
||||
</Image>
|
||||
|
||||
<EventUnitTest1>
|
||||
Var StrawGetMoreState = "Invisible"
|
||||
Var bg_lidProblem_ST = "Invisible"
|
||||
Var GetLidButtonState2 = "Enable"
|
||||
Var bg_lidProblem_ST2 ="Invisible"
|
||||
|
||||
Var EnableGetMoreStrawFileName2 = "Enable"
|
||||
Var bg_strawProblem_ST2 ="Invisible"
|
||||
</EventUnitTest1>
|
||||
|
||||
<EventUnitTest4>
|
||||
Var StrawGetMoreState = "Invisible"
|
||||
Var bg_lidProblem_ST = "Enable"
|
||||
Var GetLidButtonState2 = "Invisible"
|
||||
Var bg_lidProblem_ST2 ="Enable"
|
||||
|
||||
Var XStraw = 376
|
||||
Var EnableGetMoreStrawFileName2 = "Invisible"
|
||||
Var bg_strawProblem_ST2 ="Enable"
|
||||
</EventUnitTest4>
|
||||
|
||||
<EventUnitTest2>
|
||||
Var MachineState_Result = 0
|
||||
Var waitAckPay = 1
|
||||
Var BREW_COUNT_DOWN_FROM_APP = "on"
|
||||
Var CountDownBrewing = 122
|
||||
Var MachineStage = "testing"
|
||||
Var BREW_CNT = 122
|
||||
|
||||
Var InternationalEnable = 1
|
||||
DEBUGVAR InternationalEnable
|
||||
Var LanguageObjectShow = "Enable"
|
||||
Var NoLangObjectShow = "Invisible"
|
||||
|
||||
|
||||
Var Top2Timeout = 19
|
||||
DEBUGVAR CountDownBrewing
|
||||
Open "/mnt/sdcard/coffeevending/taobin_project/xml/page_lid_straw.xml"
|
||||
</EventUnitTest2>
|
||||
; Initial for jump to page_brewing3.xml
|
||||
<EventUnitTest3>
|
||||
|
||||
</EventUnitTest3>
|
||||
|
||||
</Popup>
|
||||
768
inter/tha/xml/page_catalog_cocktail.lxml
Normal file
768
inter/tha/xml/page_catalog_cocktail.lxml
Normal file
|
|
@ -0,0 +1,768 @@
|
|||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
;<Background> "0xeae6e1" </Background>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventOpen>
|
||||
|
||||
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert.xml"
|
||||
|
||||
TopView "show"
|
||||
; On open
|
||||
|
||||
Machine WakeUp
|
||||
|
||||
DEBUGVAR ToppingNewShow
|
||||
|
||||
Var NextPage = "-"
|
||||
|
||||
Var Seeker.thankLidFlag = 0
|
||||
Var Seeker.thankStrawFlag = 0
|
||||
|
||||
WEB "DISABLE"
|
||||
|
||||
Var web_readyOK = "false"
|
||||
Var web_telnumOK = ""
|
||||
|
||||
Var PicturePath = "/mnt/sdcard/coffeevending/taobin_project/image/page_doing/"
|
||||
|
||||
If Seeker = "curr" Then
|
||||
Machine DoorLidClose
|
||||
EndIf
|
||||
|
||||
Var GetPayInfoFlag = 0
|
||||
Var countDownRetrun = 300
|
||||
|
||||
CoinVending OFF
|
||||
|
||||
|
||||
; Clear value
|
||||
Topping "clear" "-"
|
||||
|
||||
|
||||
Var DirImage = "ROOT/taobin_project/image/page2_inter/"
|
||||
|
||||
|
||||
Var StrawAutoRelease1 = "false"
|
||||
Var StrawAutoRelease2 = "false"
|
||||
|
||||
|
||||
Var SELLONLINE = 0
|
||||
If SELLSTATUS = "SELLONLINE" Then
|
||||
Var SELLONLINE = 1
|
||||
EndIf
|
||||
If SELLSTATUS = "SELLNOCASH" Then
|
||||
Var SELLONLINE = 1
|
||||
EndIf
|
||||
|
||||
|
||||
|
||||
If SELLONLINE = 1 Then
|
||||
Var ShowButtonClick2 = "Enable"
|
||||
Else
|
||||
Var ShowButtonClick2 = "Invisible"
|
||||
Var ButtontoTopupMenu = "Invisible"
|
||||
EndIf
|
||||
|
||||
If SELLONLINE = 1 Then
|
||||
Var ShowNetworkProblem = "Invisible"
|
||||
Var ShowNetworkProblemText = ""
|
||||
|
||||
;GenHashWithTimeStamp QRCODE99x
|
||||
WEB "ENABLE"
|
||||
|
||||
Else
|
||||
Var ShowNetworkProblem = "Enable"
|
||||
Var ShowButtonClick2 = "Invisible"
|
||||
Var ButtontoTopupMenu = "Invisible"
|
||||
;Var ShowNetworkProblemText = "การสื่อสารขัดข้อง ชำระเงินได้เฉพาะเงินสด"
|
||||
|
||||
Var QRCODE99 = ""
|
||||
WEB "DISABLE"
|
||||
|
||||
EndIf
|
||||
|
||||
If RoadShow = "true" Then
|
||||
Var ShowNetworkProblem = "Invisible"
|
||||
Var ShowNetworkProblemText = ""
|
||||
EndIf
|
||||
|
||||
; 1035 is Coke.
|
||||
STRCONTAIN "1035" MaterialAvailable CokeUI
|
||||
|
||||
Var bnSodaAndOther = DirImage + "/bn_soda_coke.png"
|
||||
Var bpSodaAndOther = DirImage + "/bp_soda_coke.png"
|
||||
|
||||
|
||||
Var countClick = 0
|
||||
|
||||
|
||||
DEBUGVAR CART_COUNT
|
||||
|
||||
|
||||
Var QRCODE99_Y = 1718
|
||||
|
||||
Var showCart = "Invisible"
|
||||
If MultiPayEnable = "true" Then
|
||||
|
||||
If CART_COUNT = 1 Then
|
||||
Var showCart = "Enable"
|
||||
Var cart_image_bn = DirImageCart + "/bn_cart1.png"
|
||||
Var cart_image_bp = DirImageCart + "/bp_cart1.png"
|
||||
|
||||
Var QRCODE99_Y = 1580
|
||||
|
||||
EndIf
|
||||
|
||||
If CART_COUNT = 2 Then
|
||||
Var showCart = "Enable"
|
||||
Var cart_image_bn = DirImageCart + "/bn_cart2.png"
|
||||
Var cart_image_bp = DirImageCart + "/bp_cart2.png"
|
||||
|
||||
Var QRCODE99_Y = 1580
|
||||
|
||||
EndIf
|
||||
|
||||
|
||||
|
||||
If CART_COUNT = 3 Then
|
||||
Open "ROOT/taobin_project/xml/page_payment_multi.xml"
|
||||
EndIf
|
||||
|
||||
EndIf
|
||||
|
||||
If Seeker = "next" Then
|
||||
Var ShowButtonClick2 = "Invisible"
|
||||
Var ButtontoTopupMenu = "Invisible"
|
||||
EndIf
|
||||
|
||||
|
||||
If XMLProfile = "taobin_notopup" Then
|
||||
Var ButtontoTopupMenu = "Disable"
|
||||
|
||||
EndIf
|
||||
|
||||
|
||||
Var menu_name_eng_hot = ""
|
||||
Var menu_desc_eng_hot = ""
|
||||
Var menu_name_thai_hot = ""
|
||||
Var menu_desc_thai_hot = ""
|
||||
|
||||
Var menu_name_eng_cold = ""
|
||||
Var menu_desc_eng_cold = ""
|
||||
Var menu_name_thai_cold = ""
|
||||
Var menu_desc_thai_cold = ""
|
||||
|
||||
|
||||
Var menu_name_eng_blender = ""
|
||||
Var menu_desc_eng_blender = ""
|
||||
Var menu_name_thai_blender = ""
|
||||
Var menu_desc_thai_blender = ""
|
||||
|
||||
|
||||
|
||||
|
||||
If BoxID = 0 Then
|
||||
RebootWithCause "BoxID was zero"
|
||||
EndIf
|
||||
|
||||
|
||||
|
||||
DEBUGVAR ShowButtonClick2
|
||||
|
||||
DEBUGVAR MenuKidButtonState
|
||||
|
||||
|
||||
|
||||
|
||||
DEBUGVAR $51-03-01-0035.Price
|
||||
Var PromotionIDCurrentOrder = 0
|
||||
RootLayoutVisible 3 "show"
|
||||
</EventOpen>
|
||||
<Timeout> 1000 </Timeout>
|
||||
<EventTimeout>
|
||||
|
||||
;SAVELOG SoundPlaying
|
||||
|
||||
If countDownRetrun > 0 Then
|
||||
Var countDownRetrun = countDownRetrun - 1
|
||||
EndIf
|
||||
|
||||
If countDownRetrun = 0 Then
|
||||
If Seeker = "next" Then
|
||||
RootLayoutVisible 3 "hide"
|
||||
Open "ROOT/taobin_project/xml/page_brewing3Conti.xml"
|
||||
Else
|
||||
Open "ROOT/taobin_project/xml/page_back_to_main.xml"
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
|
||||
|
||||
; zone cup on arm
|
||||
If CupOnArm = "true" Then
|
||||
|
||||
If CheckCupStateDoorCupClose = "" Then
|
||||
Var buttonRemoveCup = "Enable"
|
||||
EndIf
|
||||
|
||||
If CheckCupStateDoorCupClose = "done" Then
|
||||
Var buttonRemoveCup = "Enable"
|
||||
EndIf
|
||||
Else
|
||||
If buttonRemoveCup = "Enable" Then
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
|
||||
Refresh
|
||||
TimerReset
|
||||
</EventTimeout>
|
||||
|
||||
<EventChangeStatus>
|
||||
;If ChangeStatus = "payout-end" Then
|
||||
; Var ChangeOK = 1
|
||||
;EndIf
|
||||
</EventChangeStatus>
|
||||
|
||||
<EventWebApp>
|
||||
|
||||
DEBUGVAR web_ready
|
||||
If web_ready = "true" Then
|
||||
If web_ref = QRCODE99 Then
|
||||
Cart "DeleteMenuID" "ALL"
|
||||
Var web_readyOK = web_ready
|
||||
Var web_telnumOK = web_telnum
|
||||
|
||||
|
||||
|
||||
Open "/mnt/sdcard/coffeevending/taobin_project/xml/page_payment.xml"
|
||||
EndIf
|
||||
|
||||
Else
|
||||
EndIf
|
||||
|
||||
</EventWebApp>
|
||||
|
||||
<Image>
|
||||
<X> 0 </X>
|
||||
<Y> 380 </Y>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1540 </Height>
|
||||
<Color> "0xeae6e1" </Color>
|
||||
</Image>
|
||||
|
||||
<EventLanguageOnChange>
|
||||
DEBUGVAR LanguageShow
|
||||
|
||||
If LanguageShow = "ENG" Then
|
||||
Var PlaySoundLag = "/mnt/sdcard/coffeevending/taobin_project/sound_eng/What_would_you_like_to_drink_today.mp3"
|
||||
EndIf
|
||||
|
||||
If LanguageShow = "MALAY" Then
|
||||
Var PlaySoundLag = "/mnt/sdcard/coffeevending/taobin_project/sound_eng/What_would_you_like_to_drink_today.mp3"
|
||||
EndIf
|
||||
|
||||
If LanguageShow = "THAI" Then
|
||||
Var PlaySoundLag = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/taobin_sawade.mp3"
|
||||
EndIf
|
||||
|
||||
Play PlaySoundLag
|
||||
Var countDownRetrun = 300
|
||||
|
||||
Var LanguageButtonEnable = "Enable"
|
||||
Var ButtonLanguageCurrentXPosition = 990
|
||||
Var ButtonLanguageCurrentYPosition = 438
|
||||
Var ButtonLanguageListXPosition = 970
|
||||
Var ButtonLanguageListYPosition = 430
|
||||
OpenInst 3 "ROOT/taobin_project/xml/topview2.xml"
|
||||
|
||||
|
||||
RefreshAll
|
||||
</EventLanguageOnChange>
|
||||
|
||||
|
||||
; 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>
|
||||
If Seeker = "next" Then
|
||||
RootLayoutVisible 3 "hide"
|
||||
Open "ROOT/taobin_project/xml/page_brewing3Conti.xml"
|
||||
Else
|
||||
Open "ROOT/taobin_project/xml/page_back_to_main.xml"
|
||||
EndIf
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
|
||||
<Text>
|
||||
<X> 70 </X>
|
||||
<Y> 591 </Y>
|
||||
<Width> 940 </Width>
|
||||
<Height> 85 </Height>
|
||||
<Language>
|
||||
<ID> 000001 </ID>
|
||||
</Language>
|
||||
</Text>
|
||||
|
||||
<Text>
|
||||
<X> 70 </X>
|
||||
<Y> 679 </Y>
|
||||
<Width> 940 </Width>
|
||||
<Height> 85 </Height>
|
||||
<Language>
|
||||
<ID> 000002 </ID>
|
||||
</Language>
|
||||
</Text>
|
||||
|
||||
; menu row 1
|
||||
<Button>
|
||||
<X> 220 </X>
|
||||
<Y> 844 </Y>
|
||||
<Filename> Var(DirImage + "/bn_cocktail.png") </Filename>
|
||||
<FilenamePress> Var(DirImage + "/bp_cocktail.png") </FilenamePress>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert2.xml"
|
||||
|
||||
Var OpenFileXML = CountryRootPath + "xml/page_catalog_group_cocktail.lxml"
|
||||
Open OpenFileXML
|
||||
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
<Button>
|
||||
<X> 564 </X>
|
||||
<Y> 844 </Y>
|
||||
<Filename> Var(DirImage + "/bn_diy.png") </Filename>
|
||||
<FilenamePress> Var(DirImage + "/bp_diy.png") </FilenamePress>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert2.xml"
|
||||
|
||||
If CountryName = "Thailand" Then
|
||||
TRY "/mnt/sdcard/coffeevending/taobin_project/xml/event/script_common_for_open_promotion_xml.ev"
|
||||
Else
|
||||
Var OpenFileXML = CountryRootPath + "xml/event/script_common_for_open_promotion_xml.ev"
|
||||
TRY OpenFileXML
|
||||
EndIf
|
||||
|
||||
</EventClick>
|
||||
<Language>
|
||||
<ID> 000003 </ID>
|
||||
<X> 28 </X>
|
||||
<Y> 202 </Y>
|
||||
<Width> 241 </Width>
|
||||
<Height> 72 </Height>
|
||||
</Language>
|
||||
</Button>
|
||||
|
||||
; menu row 2
|
||||
<Button>
|
||||
<X> 47 </X>
|
||||
<Y> 1188 </Y>
|
||||
<Filename> Var(DirImage + "/bn_tea.png") </Filename>
|
||||
<FilenamePress> Var(DirImage + "/bp_tea.png") </FilenamePress>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert2.xml"
|
||||
|
||||
;Open "ROOT/taobin_project/xml/page_catalog_group_tea.lxml"
|
||||
|
||||
Var OpenFileXML = CountryRootPath + "xml/page_catalog_group_tea.lxml"
|
||||
Open OpenFileXML
|
||||
</EventClick>
|
||||
<Language>
|
||||
<ID> 000006 </ID>
|
||||
<X> 28 </X>
|
||||
<Y> 193 </Y>
|
||||
<Width> 241 </Width>
|
||||
<Height> 72 </Height>
|
||||
</Language>
|
||||
</Button>
|
||||
|
||||
<Button>
|
||||
<X> 391 </X>
|
||||
<Y> 1188 </Y>
|
||||
<Filename> Var(DirImage + "/bn_cho_caramel.png") </Filename>
|
||||
<FilenamePress> Var(DirImage + "/bp_cho_caramel.png") </FilenamePress>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert2.xml"
|
||||
|
||||
;Open "ROOT/taobin_project/xml/page_catalog_group_milk.lxml"
|
||||
|
||||
Var OpenFileXML = CountryRootPath + "xml/page_catalog_group_milk.lxml"
|
||||
Open OpenFileXML
|
||||
</EventClick>
|
||||
<Language>
|
||||
<ID> 000007 </ID>
|
||||
<X> 28 </X>
|
||||
<Y> 193 </Y>
|
||||
<Width> 241 </Width>
|
||||
<Height> 72 </Height>
|
||||
</Language>
|
||||
</Button>
|
||||
|
||||
|
||||
<Button>
|
||||
<X> 219 </X>
|
||||
<Y> 1532 </Y>
|
||||
<State>MenuKidButtonState</State>
|
||||
<Filename> Var(DirImage + "/bn_kidmenu.png") </Filename>
|
||||
<FilenamePress> Var(DirImage + "/bn_kidmenu.png") </FilenamePress>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert2.xml"
|
||||
|
||||
;Open "ROOT/taobin_project/xml/page_catalog_group_forkid.lxml"
|
||||
|
||||
Var OpenFileXML = CountryRootPath + "xml/page_catalog_group_forkid.lxml"
|
||||
Open OpenFileXML
|
||||
</EventClick>
|
||||
<Language>
|
||||
<ID> 000011 </ID>
|
||||
<X> 28 </X>
|
||||
<Y> 211 </Y>
|
||||
<Width> 241 </Width>
|
||||
<Height> 72 </Height>
|
||||
</Language>
|
||||
</Button>
|
||||
|
||||
<Button>
|
||||
<X> 219 </X>
|
||||
<Y> 1532 </Y>
|
||||
<State>AppFastButtonState</State>
|
||||
<Filename> Var(DirImage + "/bn_appfast.png") </Filename>
|
||||
<FilenamePress> Var(DirImage + "/bp_appfast.png") </FilenamePress>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert2.xml"
|
||||
|
||||
;Open "ROOT/taobin_project/xml/page_catalog_group_appfast.lxml"
|
||||
|
||||
Var OpenFileXML = CountryRootPath + "xml/page_catalog_group_appfast.lxml"
|
||||
Open OpenFileXML
|
||||
|
||||
</EventClick>
|
||||
<Language>
|
||||
<ID> 000012 </ID>
|
||||
<X> 28 </X>
|
||||
<Y> 211 </Y>
|
||||
<Width> 241 </Width>
|
||||
<Height> 72 </Height>
|
||||
</Language>
|
||||
</Button>
|
||||
|
||||
|
||||
<Button>
|
||||
<X> 748 </X>
|
||||
<Y> 1188 </Y>
|
||||
<Filename> bnSodaAndOther </Filename>
|
||||
<FilenamePress> bpSodaAndOther </FilenamePress>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert2.xml"
|
||||
|
||||
;Open "ROOT/taobin_project/xml/page_catalog_group_other.lxml"
|
||||
|
||||
Var OpenFileXML = CountryRootPath + "xml/page_catalog_group_other.lxml"
|
||||
Open OpenFileXML
|
||||
</EventClick>
|
||||
<Language>
|
||||
<ID> 000009 </ID>
|
||||
<X> 28 </X>
|
||||
<Y> 211 </Y>
|
||||
<Width> 241 </Width>
|
||||
<Height> 72 </Height>
|
||||
</Language>
|
||||
</Button>
|
||||
|
||||
;###############################################################
|
||||
|
||||
|
||||
|
||||
<Button>
|
||||
<X> 48 </X>
|
||||
<Y> 1532 </Y>
|
||||
<State>WheyButtonState</State>
|
||||
<Filename> Var(DirImage + "/bn_protein.png") </Filename>
|
||||
<FilenamePress> Var(DirImage + "/bp_protein.png") </FilenamePress>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert2.xml"
|
||||
|
||||
;Open "ROOT/taobin_project/xml/page_catalog_group_whey.lxml"
|
||||
|
||||
Var OpenFileXML = CountryRootPath + "xml/page_catalog_group_whey.lxml"
|
||||
Open OpenFileXML
|
||||
|
||||
</EventClick>
|
||||
<Language>
|
||||
<ID> 000008 </ID>
|
||||
<X> 28 </X>
|
||||
<Y> 202 </Y>
|
||||
<Width> 241 </Width>
|
||||
<Height> 72 </Height>
|
||||
</Language>
|
||||
</Button>
|
||||
|
||||
|
||||
<Button>
|
||||
<X> 392 </X>
|
||||
<Y> 1532 </Y>
|
||||
<State> "Enable" </State>
|
||||
<Filename> Var(DirImage + "/bn_HealthyOption.png") </Filename>
|
||||
<FilenamePress> Var(DirImage + "/bp_HealthyOption.png") </FilenamePress>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert2.xml"
|
||||
|
||||
;Open "ROOT/taobin_project/xml/page_catalog_group_health.lxml"
|
||||
|
||||
|
||||
Var OpenFileXML = CountryRootPath + "xml/page_catalog_group_health.lxml"
|
||||
Open OpenFileXML
|
||||
|
||||
</EventClick>
|
||||
<Language>
|
||||
<ID> 000010 </ID>
|
||||
<X> 28 </X>
|
||||
<Y> 202 </Y>
|
||||
<Width> 241 </Width>
|
||||
<Height> 82 </Height>
|
||||
</Language>
|
||||
</Button>
|
||||
|
||||
|
||||
<Button>
|
||||
<X> 736 </X>
|
||||
<Y> 1532 </Y>
|
||||
<State> "Enable" </State>
|
||||
<Filename> Var(DirImage + "/bn_coffee.png") </Filename>
|
||||
<FilenamePress> Var(DirImage + "/bp_coffee.png") </FilenamePress>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert2.xml"
|
||||
|
||||
|
||||
Var OpenFileXML = CountryRootPath + "xml/page_catalog_group_coffee.lxml"
|
||||
|
||||
DEBUGVAR CountryRootPath
|
||||
DEBUGVAR OpenFileXML
|
||||
Open OpenFileXML
|
||||
|
||||
</EventClick>
|
||||
<Language>
|
||||
<ID> 000005 </ID>
|
||||
<X> 28 </X>
|
||||
<Y> 202 </Y>
|
||||
<Width> 241 </Width>
|
||||
<Height> 72 </Height>
|
||||
</Language>
|
||||
</Button>
|
||||
|
||||
|
||||
;###############################################################
|
||||
|
||||
<Button>
|
||||
<X> 225 </X>
|
||||
<Y> 424 </Y>
|
||||
<State> ShowButtonClick2 </State>
|
||||
<Filename> Var(DirImage + "/bn_main_page_member.png") </Filename>
|
||||
<FilenamePress> Var(DirImage + "/bp_main_page_member.png") </FilenamePress>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
; eng
|
||||
Var CheckMemberPage = CountryRootPath + "xml/page_check_member.lxml"
|
||||
Open CheckMemberPage
|
||||
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
<Button>
|
||||
<X> 696 </X>
|
||||
<Y> 424 </Y>
|
||||
<State> ButtontoTopupMenu </State>
|
||||
<Filename> Var(DirImage + "/bn_main_page_topup.png") </Filename>
|
||||
<FilenamePress> Var(DirImage + "/bp_main_page_topup.png") </FilenamePress>
|
||||
<FilenameDisable> Var(DirImage + "/bp_main_page_topup.png") </FilenameDisable>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
; eng
|
||||
Var PayDetail=""
|
||||
Open "ROOT/taobin_project/xml/page_back_to_topup.xml"
|
||||
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
<Button>
|
||||
<X> 0 </X>
|
||||
<Y> 1870 </Y>
|
||||
<State> ShowNetworkProblem </State>
|
||||
<Color> "0xFF0000" </Color>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 60 </Height>
|
||||
<EventClick>
|
||||
|
||||
Open "ROOT/taobin_project/xml/page_camera.xml"
|
||||
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
<Text>
|
||||
<X> 5 </X>
|
||||
<Y> 1880 </Y>
|
||||
<Size> 24 </Size>
|
||||
<Align> Center </Align>
|
||||
<Width> 1080 </Width>
|
||||
<Font> RobotoRegular </Font>
|
||||
<Color> 0xFFFFFF </Color>
|
||||
<Value> ShowNetworkProblemText </Value>
|
||||
</Text>
|
||||
|
||||
; Cart
|
||||
<Button>
|
||||
<X> 915 </X>
|
||||
<Y> 1769 </Y>
|
||||
<State> showCart </State>
|
||||
<Filename> cart_image_bn </Filename>
|
||||
<Filename> cart_image_bp </Filename>
|
||||
<FilenamePress> cart_image_bp </FilenamePress>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<Interval> 400</Interval>
|
||||
<EventClick>
|
||||
|
||||
|
||||
Open "ROOT/taobin_project/xml/page_payment_multi.xml"
|
||||
|
||||
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
<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"
|
||||
|
||||
Open "/mnt/sdcard/coffeevending/taobin_project/xml/page_payment.xml"
|
||||
|
||||
EndIf
|
||||
Else
|
||||
EndIf
|
||||
|
||||
</EventWebApp>
|
||||
|
||||
|
||||
<Image>
|
||||
<X> 0 </X>
|
||||
<Y> 1820 </Y>
|
||||
<Width> 100 </Width>
|
||||
<Height> 100 </Height>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
Var ClickCountMainTe = ClickCountMainTe + 1
|
||||
|
||||
DEBUGVAR ClickCountMainTe
|
||||
|
||||
If ClickCountMainTe = 2 Then
|
||||
Var OpenRouteManTest = 1
|
||||
Open "ROOT/taobin_project/xml/page_back_to_main.xml"
|
||||
Var ClickCountMainTe = 0
|
||||
EndIf
|
||||
</EventClick>
|
||||
</Image>
|
||||
|
||||
|
||||
<Button>
|
||||
<X> 780 </X>
|
||||
<Y> 500 </Y>
|
||||
<State> buttonRemoveCup </State>
|
||||
;<Color> "0x00BDFF" </Color>
|
||||
<Interval> 500 </Interval>
|
||||
<Filename> Var(RootPath + "image/main_page_inter/bn_remove_cup.png") </Filename>
|
||||
<Filename> Var(RootPath + "image/main_page_inter/bp_remove_cup.png") </Filename>
|
||||
<EventClick>
|
||||
Machine RemoveCup
|
||||
Machine DoorLidOpen
|
||||
|
||||
Var CheckCupStateDoorCupClose = "reset"
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
<EventUnitTest1>
|
||||
Var StrawGetMoreState = "Invisible"
|
||||
Var bg_lidProblem_ST = "Invisible"
|
||||
Var GetLidButtonState2 = "Enable"
|
||||
Var bg_lidProblem_ST2 ="Invisible"
|
||||
|
||||
Var EnableGetMoreStrawFileName2 = "Enable"
|
||||
Var bg_strawProblem_ST2 ="Invisible"
|
||||
</EventUnitTest1>
|
||||
|
||||
<EventUnitTest4>
|
||||
Var StrawGetMoreState = "Invisible"
|
||||
Var bg_lidProblem_ST = "Enable"
|
||||
Var GetLidButtonState2 = "Invisible"
|
||||
Var bg_lidProblem_ST2 ="Enable"
|
||||
|
||||
Var XStraw = 376
|
||||
Var EnableGetMoreStrawFileName2 = "Invisible"
|
||||
Var bg_strawProblem_ST2 ="Enable"
|
||||
</EventUnitTest4>
|
||||
|
||||
|
||||
<EventUnitTest2>
|
||||
Var MachineState_Result = 0
|
||||
Var waitAckPay = 1
|
||||
Var BREW_COUNT_DOWN_FROM_APP = "on"
|
||||
Var CountDownBrewing = 122
|
||||
Var MachineStage = "testing"
|
||||
Var BREW_CNT = 122
|
||||
|
||||
Var InternationalEnable = 1
|
||||
DEBUGVAR InternationalEnable
|
||||
Var LanguageObjectShow = "Enable"
|
||||
Var NoLangObjectShow = "Invisible"
|
||||
|
||||
|
||||
Var Top2Timeout = 19
|
||||
DEBUGVAR CountDownBrewing
|
||||
Open "/mnt/sdcard/coffeevending/taobin_project/xml/page_lid_straw.xml"
|
||||
</EventUnitTest2>
|
||||
; Initial for jump to page_brewing3.xml
|
||||
<EventUnitTest3>
|
||||
|
||||
</EventUnitTest3>
|
||||
|
||||
</Popup>
|
||||
1420
inter/tha/xml/page_catalog_group_appfast.lxml
Normal file
1420
inter/tha/xml/page_catalog_group_appfast.lxml
Normal file
File diff suppressed because it is too large
Load diff
51
inter/tha/xml/page_catalog_group_appfast.skt
Normal file
51
inter/tha/xml/page_catalog_group_appfast.skt
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
<?hurr
|
||||
#include=menu_head.py
|
||||
echo param
|
||||
?>
|
||||
|
||||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
;<Background> "0xeae6e1" </Background>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventOpen>
|
||||
; On open
|
||||
;include="ROOT/taobin_project/inter/tha/xml/menu_catalog_default_init.lxml"
|
||||
|
||||
If AppFastEnable = "true" Then
|
||||
Var Menu11Selected = "PressForever"
|
||||
Var Menu7Selected = "Invisible"
|
||||
Else
|
||||
Var Menu11Selected = "Invisible"
|
||||
Var Menu7Selected = "PressForever"
|
||||
EndIf
|
||||
|
||||
|
||||
|
||||
SAVELOG PreviseXMLFileName2
|
||||
|
||||
Var Timeout = 0
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/inter/tha/xml/menu_catalog_new_menu.lxml"
|
||||
</EventOpen>
|
||||
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/inter/tha/xml/menu_catalog_new.lxml"
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen_v2.py
|
||||
?>
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen.py
|
||||
?>
|
||||
|
||||
|
||||
|
||||
</Popup>
|
||||
7354
inter/tha/xml/page_catalog_group_cocktail.lxml
Normal file
7354
inter/tha/xml/page_catalog_group_cocktail.lxml
Normal file
File diff suppressed because it is too large
Load diff
44
inter/tha/xml/page_catalog_group_cocktail.skt
Normal file
44
inter/tha/xml/page_catalog_group_cocktail.skt
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
<?hurr
|
||||
#include=menu_head.py
|
||||
?>
|
||||
|
||||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
;<Background> "0xeae6e1" </Background>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventOpen>
|
||||
; On open
|
||||
;include="ROOT/taobin_project/inter/tha/xml/menu_catalog_default_init.lxml"
|
||||
|
||||
|
||||
Var Menu8Selected = "PressForever"
|
||||
|
||||
|
||||
SAVELOG PreviseXMLFileName2
|
||||
|
||||
Var Timeout = 0
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/inter/tha/xml/menu_catalog_new_menu.lxml"
|
||||
|
||||
</EventOpen>
|
||||
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/inter/tha/xml/menu_catalog_new.lxml"
|
||||
|
||||
|
||||
|
||||
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen_v2.py
|
||||
?>
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen.py
|
||||
?>
|
||||
|
||||
|
||||
|
||||
</Popup>
|
||||
26818
inter/tha/xml/page_catalog_group_coffee.lxml
Normal file
26818
inter/tha/xml/page_catalog_group_coffee.lxml
Normal file
File diff suppressed because it is too large
Load diff
42
inter/tha/xml/page_catalog_group_coffee.skt
Normal file
42
inter/tha/xml/page_catalog_group_coffee.skt
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
<?hurr
|
||||
#include=menu_head.py
|
||||
?>
|
||||
|
||||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
;<Background> "0xeae6e1" </Background>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventOpen>
|
||||
; On open
|
||||
;include="ROOT/taobin_project/inter/tha/xml/menu_catalog_default_init.lxml"
|
||||
Var Menu2Selected = "PressForever"
|
||||
|
||||
|
||||
|
||||
SAVELOG PreviseXMLFileName2
|
||||
|
||||
Var Timeout = 0
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/inter/tha/xml/menu_catalog_new_menu.lxml"
|
||||
</EventOpen>
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/inter/tha/xml/menu_catalog_new.lxml"
|
||||
|
||||
|
||||
|
||||
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen_v2.py
|
||||
?>
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen.py
|
||||
?>
|
||||
|
||||
|
||||
|
||||
|
||||
</Popup>
|
||||
4688
inter/tha/xml/page_catalog_group_forkid.lxml
Normal file
4688
inter/tha/xml/page_catalog_group_forkid.lxml
Normal file
File diff suppressed because it is too large
Load diff
51
inter/tha/xml/page_catalog_group_forkid.skt
Normal file
51
inter/tha/xml/page_catalog_group_forkid.skt
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
<?hurr
|
||||
#include=menu_head.py
|
||||
touch_less_gen = False
|
||||
?>
|
||||
|
||||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
;<Background> "0xeae6e1" </Background>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventOpen>
|
||||
; On open
|
||||
;include="ROOT/taobin_project/inter/tha/xml/menu_catalog_default_init.lxml"
|
||||
; protein
|
||||
If AppFastEnable = "true" Then
|
||||
Var Menu11Selected = "PressForever"
|
||||
Var Menu7Selected = "Invisible"
|
||||
Var Menu21Selected = "Invisible"
|
||||
Else
|
||||
Var Menu11Selected = "Invisible"
|
||||
Var Menu7Selected = "Invisible"
|
||||
Var Menu21Selected = "PressForever"
|
||||
EndIf
|
||||
|
||||
|
||||
SAVELOG PreviseXMLFileName2
|
||||
|
||||
Var Timeout = 0
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/inter/tha/xml/menu_catalog_new_menu.lxml"
|
||||
</EventOpen>
|
||||
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/inter/tha/xml/menu_catalog_new.lxml"
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen_v2.py
|
||||
?>
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen.py
|
||||
?>
|
||||
|
||||
|
||||
</Popup>
|
||||
9599
inter/tha/xml/page_catalog_group_health.lxml
Normal file
9599
inter/tha/xml/page_catalog_group_health.lxml
Normal file
File diff suppressed because it is too large
Load diff
38
inter/tha/xml/page_catalog_group_health.skt
Normal file
38
inter/tha/xml/page_catalog_group_health.skt
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
<?hurr
|
||||
#include=menu_head.py
|
||||
touch_less_gen = False
|
||||
?>
|
||||
|
||||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
;<Background> "0xeae6e1" </Background>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventOpen>
|
||||
; On open
|
||||
;include="ROOT/taobin_project/inter/tha/xml/menu_catalog_default_init.lxml"
|
||||
Var Menu22Selected = "PressForever"
|
||||
|
||||
|
||||
SAVELOG PreviseXMLFileName2
|
||||
|
||||
Var Timeout = 0
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/inter/tha/xml/menu_catalog_new_menu.lxml"
|
||||
</EventOpen>
|
||||
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/inter/tha/xml/menu_catalog_new.lxml"
|
||||
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen_v2.py
|
||||
?>
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen.py
|
||||
?>
|
||||
|
||||
|
||||
</Popup>
|
||||
2815
inter/tha/xml/page_catalog_group_melon.skt
Normal file
2815
inter/tha/xml/page_catalog_group_melon.skt
Normal file
File diff suppressed because it is too large
Load diff
316
inter/tha/xml/page_catalog_group_menu_test.lxml
Normal file
316
inter/tha/xml/page_catalog_group_menu_test.lxml
Normal file
|
|
@ -0,0 +1,316 @@
|
|||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
;<Background> "0xeae6e1" </Background>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventOpen>
|
||||
; On open
|
||||
;include="ROOT/taobin_project/inter/tha/xml/menu_catalog_default_init.lxml"
|
||||
|
||||
SAVELOG PreviseXMLFileName2
|
||||
|
||||
Var Timeout = 0
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/inter/tha/xml/menu_catalog_new_menu.lxml"
|
||||
</EventOpen>
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/inter/tha/xml/menu_catalog_new.lxml"
|
||||
|
||||
|
||||
<FrameScroll>
|
||||
<X> 10 </X>
|
||||
<Y> 497 </Y>
|
||||
<Width> 1080 </Width>
|
||||
<ScrollHeight> "auto" </ScrollHeight>
|
||||
<Scroll> "Vertical" </Scroll>
|
||||
<Column> 4 </Column>
|
||||
<Script>
|
||||
Var block_index_override = 0
|
||||
Var block_index_move = 0
|
||||
</Script>
|
||||
;dummy_layout.inc
|
||||
; ==================> Len = 1
|
||||
; 51-99-99-9999
|
||||
<Block>
|
||||
<MarginLeft> 33 </MarginLeft>
|
||||
<MarginTop> 22 </MarginTop>
|
||||
<Width> 225 </Width>
|
||||
<Height> 296 </Height>
|
||||
<State> Flag( 51-99-99-9999.Button,$Sum5199999999) </State>
|
||||
<Button>
|
||||
<State> $Sum5199999999 </State>
|
||||
<Filename> "ROOT/taobin_project/inter/tha/image/page_drink_n//bn_iced_milk.png" </Filename>
|
||||
<FilenamePress> "ROOT/taobin_project/inter/tha/image/page_drink_press_n//bn_iced_milk.png" </FilenamePress>
|
||||
<FilenameDisable> "ROOT/taobin_project/inter/tha/image/page_drink_disable_n2//bn_iced_milk.png" </FilenameDisable>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventOnClick>
|
||||
Var PictureDrink = "ROOT/taobin_project/inter/tha/image/page_drink_picture2_n/" + "bn_iced_milk.png"
|
||||
Var OpenFromXML = CurrentXMLFileName2
|
||||
Var PriceD1 = $-.Price
|
||||
Var PriceD2 = $51-99-99-9999.Price
|
||||
Var PriceD3 = $-.Price
|
||||
Var PD_CODE1 = "##-##-##-####"
|
||||
Var PD_CODE2 = "51-99-99-9999"
|
||||
Var PD_CODE3 = "##-##-##-####"
|
||||
; begin lang
|
||||
Var aliasName[0] = "Test Drink"
|
||||
Var aliasDesc[0] = "Just drop cup"
|
||||
Var aliasName[1] = "นม"
|
||||
Var aliasDesc[1] = "นม"
|
||||
Var aliasName[2] = "-"
|
||||
Var aliasDesc[2] = "-"
|
||||
Var aliasName[3] = "-"
|
||||
Var aliasDesc[3] = "-"
|
||||
Var aliasName[4] = ""
|
||||
Var aliasDesc[4] = ""
|
||||
Var aliasName[5] = ""
|
||||
Var aliasDesc[5] = ""
|
||||
Var NameLang[0][0] = ""
|
||||
Var NameLang[0][1] = ""
|
||||
Var NameLang[0][2] = ""
|
||||
Var NameLang[0][3] = ""
|
||||
Var NameLang[0][4] = ""
|
||||
Var NameLang[0][5] = ""
|
||||
Var DescLang[0][0] = ""
|
||||
Var DescLang[0][1] = ""
|
||||
Var DescLang[0][2] = ""
|
||||
Var DescLang[0][3] = ""
|
||||
Var DescLang[0][4] = ""
|
||||
Var DescLang[0][5] = ""
|
||||
Var NameLang[1][0] = "Test Drink"
|
||||
Var NameLang[1][1] = "นมเย็น"
|
||||
Var NameLang[1][2] = ""
|
||||
Var NameLang[1][3] = ""
|
||||
Var NameLang[1][4] = ""
|
||||
Var NameLang[1][5] = ""
|
||||
Var DescLang[1][0] = "Just drop cup"
|
||||
Var DescLang[1][1] = ""
|
||||
Var DescLang[1][2] = ""
|
||||
Var DescLang[1][3] = ""
|
||||
Var DescLang[1][4] = ""
|
||||
Var DescLang[1][5] = ""
|
||||
Var NameLang[2][0] = ""
|
||||
Var NameLang[2][1] = ""
|
||||
Var NameLang[2][2] = ""
|
||||
Var NameLang[2][3] = ""
|
||||
Var NameLang[2][4] = ""
|
||||
Var NameLang[2][5] = ""
|
||||
Var DescLang[2][0] = ""
|
||||
Var DescLang[2][1] = ""
|
||||
Var DescLang[2][2] = ""
|
||||
Var DescLang[2][3] = ""
|
||||
Var DescLang[2][4] = ""
|
||||
Var DescLang[2][5] = ""
|
||||
; end lang
|
||||
Var PD_STAGE_1 = "Disable2"
|
||||
Var PD_STAGE_2 = $51-99-99-9999.Button
|
||||
Var PD_STAGE_3 = "Disable2"
|
||||
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" "51-99-99-9999"
|
||||
Else
|
||||
If PD_STAGE_1 = "Enable" Then
|
||||
Topping "Load" "-"
|
||||
Else
|
||||
Topping "Load" "-"
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
DEBUGVAR PD_STAGE_1
|
||||
DEBUGVAR PD_STAGE_2
|
||||
DEBUGVAR PD_STAGE_3
|
||||
Var SelectDrinkType = 0
|
||||
|
||||
|
||||
Open "ROOT/taobin_project/xml/page_topping_select6.lxml"
|
||||
|
||||
</EventOnClick>
|
||||
</Button>
|
||||
<Text>
|
||||
<X> 16 </X>
|
||||
<Y> 164 </Y>
|
||||
<Size> 22 </Size>
|
||||
<Width>222</Width>
|
||||
<Mode> "multi2" </Mode>
|
||||
<Font> KanitMediumTTF </Font>
|
||||
<Color> 0x322B26 </Color>
|
||||
<LanguageGroup>
|
||||
<LanguageSlot1>Test Drink</LanguageSlot1>
|
||||
<LanguageSlot2>นม</LanguageSlot2>
|
||||
<LanguageSlot3>Test Drink</LanguageSlot3>
|
||||
<LanguageSlot4>นม</LanguageSlot4>
|
||||
<LanguageSlot5></LanguageSlot5>
|
||||
<LanguageSlot6>นม</LanguageSlot6>
|
||||
</LanguageGroup>
|
||||
</Text>
|
||||
<Text>
|
||||
<X> 16 </X>
|
||||
<Y> 220 </Y>
|
||||
<Size> 14 </Size>
|
||||
<Width>222</Width>
|
||||
<Font> KanitMediumTTF </Font>
|
||||
<Color> 0x6F5F51 </Color>
|
||||
<LanguageGroup>
|
||||
<LanguageSlot1>Milk</LanguageSlot1>
|
||||
<LanguageSlot2>นม</LanguageSlot2>
|
||||
<LanguageSlot3>Milk</LanguageSlot3>
|
||||
<LanguageSlot4>นม</LanguageSlot4>
|
||||
<LanguageSlot5></LanguageSlot5>
|
||||
<LanguageSlot6>นม</LanguageSlot6>
|
||||
</LanguageGroup>
|
||||
</Text>
|
||||
<Image>
|
||||
<X> 16 </X>
|
||||
<Y> 264 </Y>
|
||||
<Filename> Var( DirImage2 + "option_deactive.png" ) </Filename>
|
||||
</Image>
|
||||
<Image>
|
||||
<X> 16 </X>
|
||||
<Y> 264 </Y>
|
||||
<State> "Invisible" </State>
|
||||
<Filename> Var( DirImage2 + "hot.png" ) </Filename>
|
||||
<FilenameDisable> Var( DirImage2 + "hot_db.png" ) </FilenameDisable>
|
||||
</Image>
|
||||
<Text>
|
||||
<X> TextPriceMenuHotX </X>
|
||||
<Y> TextPriceMenuY </Y>
|
||||
<Size> TextPriceMenuSize </Size>
|
||||
<Width>220</Width>
|
||||
<Font> KanitMediumTTF </Font>
|
||||
<Color> 0x6F5F51 </Color>
|
||||
<ColorDisable> 0xEAE6E1 </ColorDisable>
|
||||
<State> "Invisible" </State>
|
||||
<Value> StringFmt( $-.Price , DisplayFormat, PreScaleConvertShow) </Value>; test
|
||||
</Text>
|
||||
<Image>
|
||||
<X> 81 </X>
|
||||
<Y> 264 </Y>
|
||||
<Filename> Var( DirImage2 + "cold.png" ) </Filename>
|
||||
<FilenameDisable> Var( DirImage2 + "cold_db.png" ) </FilenameDisable>
|
||||
<State> $51-99-99-9999.Button </State>
|
||||
</Image>
|
||||
<Text>
|
||||
<X> 113 </X>
|
||||
<Y> TextPriceMenuY </Y>
|
||||
<Size> TextPriceMenuSize </Size>
|
||||
<Width>220</Width>
|
||||
<Font> KanitMediumTTF </Font>
|
||||
<Color> 0x6F5F51 </Color>
|
||||
<ColorDisable> 0xEAE6E1 </ColorDisable>
|
||||
<State> $51-99-99-9999.Button </State>
|
||||
<Value> StringFmt( $51-99-99-9999.Price , DisplayFormat, PreScaleConvertShow) </Value>; test
|
||||
</Text>
|
||||
<Image>
|
||||
<X> 146 </X>
|
||||
<Y> 264 </Y>
|
||||
<Filename> Var( DirImage2 + "blend.png" ) </Filename>
|
||||
<FilenameDisable> Var( DirImage2 + "blend_db.png" ) </FilenameDisable>
|
||||
<State> "Invisible" </State>
|
||||
</Image>
|
||||
<Text>
|
||||
<X> TextPriceMenuBlendX </X>
|
||||
<Y> TextPriceMenuY </Y>
|
||||
<Size> TextPriceMenuSize </Size>
|
||||
<Width>220</Width>
|
||||
<Font> KanitRegularTTF </Font>
|
||||
<Color> 0x6F5F51 </Color>
|
||||
<ColorDisable> 0xEAE6E1 </ColorDisable>
|
||||
<State> "Invisible" </State>
|
||||
<Value> StringFmt( $-.Price , DisplayFormat, PreScaleConvertShow) </Value>; test
|
||||
</Text>
|
||||
<Image>
|
||||
<X> 81 </X>
|
||||
<Y> 264 </Y>
|
||||
<State>
|
||||
eval(
|
||||
If ICE_PROCESS_STATUS = 2 Then
|
||||
|
||||
If $Sum5199999999 = "Disable" Then
|
||||
Var ice_tab_process_show = "Disable"
|
||||
Else
|
||||
Var ice_tab_process_show = "Enable"
|
||||
EndIf
|
||||
|
||||
Else
|
||||
Var ice_tab_process_show = "Invisible"
|
||||
EndIf
|
||||
Var return = ice_tab_process_show
|
||||
)
|
||||
</State>
|
||||
<Filename> "ROOT/taobin_project/image/drink_option/ice_tab_unavalible.png" </Filename>
|
||||
<FilenameDisable> "ROOT/taobin_project/image/drink_option/ice_tab_unavalible_dis.png" </FilenameDisable>
|
||||
</Image>
|
||||
<Image>
|
||||
<X> 49 </X>
|
||||
<Y> 117 </Y>
|
||||
<State>
|
||||
eval(
|
||||
If $Sum5199999999 = "Disable" Then
|
||||
STRCONTAIN "ERR" $##-##-##-####.TAG tag1_is_disable
|
||||
STRCONTAIN "ERR" $51-99-99-9999.TAG tag2_is_disable
|
||||
STRCONTAIN "ERR" $##-##-##-####.TAG tag3_is_disable
|
||||
Var return = "Invisible"
|
||||
If tag1_is_disable = "true" Then
|
||||
Var return = "Enable"
|
||||
EndIf
|
||||
If tag2_is_disable = "true" Then
|
||||
Var return = "Enable"
|
||||
EndIf
|
||||
If tag3_is_disable = "true" Then
|
||||
Var return = "Enable"
|
||||
EndIf
|
||||
Else
|
||||
Var return = "Invisible"
|
||||
EndIf
|
||||
)
|
||||
</State>
|
||||
<Filename> "ROOT/taobin_project/image//img_menu_err2.png" </Filename>
|
||||
</Image>
|
||||
<Text>
|
||||
<X> 84 </X>
|
||||
<Y> 266 </Y>
|
||||
<Size> 10 </Size>
|
||||
<Font> OpunMediumTTF </Font>
|
||||
<Color> 0xDE794E </Color>
|
||||
<State> ice_tab_process_show </State>
|
||||
<Value> ice_show_open </Value>
|
||||
</Text>
|
||||
<Text>
|
||||
<X> 48 </X>
|
||||
<Y> 116 </Y>
|
||||
<Size> 32 </Size>
|
||||
<Width>128</Width>
|
||||
<Height>64</Height>
|
||||
<Mode> "disable-show" </Mode>
|
||||
<State> $Sum5199999999 </State>
|
||||
<Language>
|
||||
<ID> 000013 </ID>
|
||||
</Language>
|
||||
<Align> center-vertical-horizontal </Align>
|
||||
</Text>
|
||||
</Block>
|
||||
</FrameScroll>
|
||||
|
||||
<EventUnitTest4>
|
||||
RefreshAll
|
||||
</EventUnitTest4>
|
||||
|
||||
|
||||
</Popup>
|
||||
9026
inter/tha/xml/page_catalog_group_milk.lxml
Normal file
9026
inter/tha/xml/page_catalog_group_milk.lxml
Normal file
File diff suppressed because it is too large
Load diff
46
inter/tha/xml/page_catalog_group_milk.skt
Normal file
46
inter/tha/xml/page_catalog_group_milk.skt
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
<?hurr
|
||||
#include=menu_head.py
|
||||
?>
|
||||
|
||||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
;<Background> "0xeae6e1" </Background>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventOpen>
|
||||
; On open
|
||||
;include="ROOT/taobin_project/inter/tha/xml/menu_catalog_default_init.lxml"
|
||||
Var Menu4Selected = "PressForever"
|
||||
|
||||
SAVELOG PreviseXMLFileName2
|
||||
|
||||
Var Timeout = 0
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/inter/tha/xml/menu_catalog_new_menu.lxml"
|
||||
</EventOpen>
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/inter/tha/xml/menu_catalog_new.lxml"
|
||||
|
||||
|
||||
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen_v2.py
|
||||
?>
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen.py
|
||||
?>
|
||||
|
||||
|
||||
<?hurr
|
||||
#include=./event/dummy_layout_promotion.py
|
||||
?>
|
||||
|
||||
<EventUnitTest4>
|
||||
RefreshAll
|
||||
</EventUnitTest4>
|
||||
|
||||
|
||||
</Popup>
|
||||
3836
inter/tha/xml/page_catalog_group_oreo.lxml
Normal file
3836
inter/tha/xml/page_catalog_group_oreo.lxml
Normal file
File diff suppressed because it is too large
Load diff
36
inter/tha/xml/page_catalog_group_oreo.skt
Normal file
36
inter/tha/xml/page_catalog_group_oreo.skt
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
<?hurr
|
||||
#include=menu_head.py
|
||||
?>
|
||||
|
||||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
;<Background> "0xeae6e1" </Background>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventOpen>
|
||||
; On open
|
||||
;include="ROOT/taobin_project/inter/tha/xml/menu_catalog_default_init.lxml"
|
||||
|
||||
|
||||
Var Timeout = 0
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/inter/tha/xml/menu_catalog_new_menu.lxml"
|
||||
</EventOpen>
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/inter/tha/xml/menu_catalog_new.lxml"
|
||||
|
||||
|
||||
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen_v2.py
|
||||
?>
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen.py
|
||||
?>
|
||||
|
||||
|
||||
|
||||
</Popup>
|
||||
20055
inter/tha/xml/page_catalog_group_other.lxml
Normal file
20055
inter/tha/xml/page_catalog_group_other.lxml
Normal file
File diff suppressed because it is too large
Load diff
40
inter/tha/xml/page_catalog_group_other.skt
Normal file
40
inter/tha/xml/page_catalog_group_other.skt
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
<?hurr
|
||||
#include=menu_head.py
|
||||
echo param
|
||||
?>
|
||||
|
||||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
;<Background> "0xeae6e1" </Background>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventOpen>
|
||||
; On open
|
||||
;include="ROOT/taobin_project/inter/tha/xml/menu_catalog_default_init.lxml"
|
||||
; soda and other
|
||||
Var Menu6Selected = "PressForever"
|
||||
|
||||
SAVELOG PreviseXMLFileName2
|
||||
|
||||
Var Timeout = 0
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/inter/tha/xml/menu_catalog_new_menu.lxml"
|
||||
</EventOpen>
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/inter/tha/xml/menu_catalog_new.lxml"
|
||||
|
||||
|
||||
|
||||
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen_v2.py
|
||||
?>
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen.py
|
||||
?>
|
||||
|
||||
|
||||
</Popup>
|
||||
11955
inter/tha/xml/page_catalog_group_other_other.lxml
Normal file
11955
inter/tha/xml/page_catalog_group_other_other.lxml
Normal file
File diff suppressed because it is too large
Load diff
40
inter/tha/xml/page_catalog_group_other_other.skt
Normal file
40
inter/tha/xml/page_catalog_group_other_other.skt
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
<?hurr
|
||||
#include=menu_head.py
|
||||
echo param
|
||||
?>
|
||||
|
||||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
;<Background> "0xeae6e1" </Background>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventOpen>
|
||||
; On open
|
||||
;include="ROOT/taobin_project/xml/menu_catalog_default_init.xml"
|
||||
; soda and other
|
||||
Var Menu62Selected = "PressForever"
|
||||
|
||||
SAVELOG PreviseXMLFileName2
|
||||
|
||||
Var Timeout = 0
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/xml/menu_catalog_new_menu.xml"
|
||||
</EventOpen>
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/xml/menu_catalog_new.xml"
|
||||
|
||||
|
||||
|
||||
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen_v2.py
|
||||
?>
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen.py
|
||||
?>
|
||||
|
||||
|
||||
</Popup>
|
||||
7888
inter/tha/xml/page_catalog_group_pepsi_7up.lxml
Normal file
7888
inter/tha/xml/page_catalog_group_pepsi_7up.lxml
Normal file
File diff suppressed because it is too large
Load diff
39
inter/tha/xml/page_catalog_group_pepsi_7up.skt
Normal file
39
inter/tha/xml/page_catalog_group_pepsi_7up.skt
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
<?hurr
|
||||
#include=menu_head.py
|
||||
echo param
|
||||
?>
|
||||
|
||||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
;<Background> "0xeae6e1" </Background>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventOpen>
|
||||
; On open
|
||||
;include="ROOT/taobin_project/inter/tha/xml/menu_catalog_default_init.lxml"
|
||||
; pepsi 7up
|
||||
Var Menu61Selected = "PressForever"
|
||||
SAVELOG PreviseXMLFileName2
|
||||
|
||||
Var Timeout = 0
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/inter/tha/xml/menu_catalog_new_menu.lxml"
|
||||
</EventOpen>
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/inter/tha/xml/menu_catalog_new.lxml"
|
||||
|
||||
|
||||
|
||||
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen_v2.py
|
||||
?>
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen.py
|
||||
?>
|
||||
|
||||
|
||||
</Popup>
|
||||
2486
inter/tha/xml/page_catalog_group_pepsi_pro.lxml
Normal file
2486
inter/tha/xml/page_catalog_group_pepsi_pro.lxml
Normal file
File diff suppressed because it is too large
Load diff
36
inter/tha/xml/page_catalog_group_pepsi_pro.skt
Normal file
36
inter/tha/xml/page_catalog_group_pepsi_pro.skt
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
<?hurr
|
||||
#include=menu_head.py
|
||||
?>
|
||||
|
||||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
;<Background> "0xeae6e1" </Background>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventOpen>
|
||||
; On open
|
||||
;include="ROOT/taobin_project/inter/tha/xml/menu_catalog_default_init.lxml"
|
||||
|
||||
|
||||
Var Timeout = 0
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/inter/tha/xml/menu_catalog_new_menu.lxml"
|
||||
</EventOpen>
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/inter/tha/xml/menu_catalog_new.lxml"
|
||||
|
||||
|
||||
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen_v2.py
|
||||
?>
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen.py
|
||||
?>
|
||||
|
||||
|
||||
|
||||
</Popup>
|
||||
2661
inter/tha/xml/page_catalog_group_pro_15THB.lxml
Normal file
2661
inter/tha/xml/page_catalog_group_pro_15THB.lxml
Normal file
File diff suppressed because it is too large
Load diff
81
inter/tha/xml/page_catalog_group_pro_15THB.skt
Normal file
81
inter/tha/xml/page_catalog_group_pro_15THB.skt
Normal file
|
|
@ -0,0 +1,81 @@
|
|||
<?hurr
|
||||
#include=menu_head.py
|
||||
?>
|
||||
|
||||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
;<Background> "0xeae6e1" </Background>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventOpen>
|
||||
; On open
|
||||
<?hurr
|
||||
#include=menu_catalog_default_init.xml
|
||||
?>
|
||||
|
||||
Var Menu1Selected = "PressForever"
|
||||
|
||||
Var OreoBigButtonEnable = "Enable"
|
||||
Var From15THBPro = 0
|
||||
|
||||
If $12-01-01-0001.Button = "Invisible" Then
|
||||
Var esp102101001Enable = "Invisible"
|
||||
Var esp122101001Enable = "Enable"
|
||||
|
||||
Else
|
||||
Var esp102101001Enable = "Enable"
|
||||
Var esp122101001Enable = "Invisible"
|
||||
|
||||
EndIf
|
||||
|
||||
SAVELOG PreviseXMLFileName2
|
||||
|
||||
Var Timeout = 0
|
||||
|
||||
If show_eng = "true" Then
|
||||
|
||||
Var text_unavailable = "UNAVAILABLE###size=16"
|
||||
Else
|
||||
Var text_unavailable = "หมด###size=32"
|
||||
|
||||
EndIf
|
||||
|
||||
<?hurr
|
||||
#include=menu_catalog_new_menu.xml
|
||||
?>
|
||||
|
||||
</EventOpen>
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/xml/menu_catalog_new.xml"
|
||||
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen_v2.py
|
||||
?>
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen.py
|
||||
?>
|
||||
|
||||
<Button>
|
||||
<X> 780 </X>
|
||||
<Y> 500 </Y>
|
||||
<State> buttonRemoveCup </State>
|
||||
;<Color> "0x00BDFF" </Color>
|
||||
<Interval> 500 </Interval>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bn_remove_cup.png" </Filename>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bp_remove_cup.png" </Filename>
|
||||
<EventClick>
|
||||
Machine RemoveCup
|
||||
Machine DoorLidOpen
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
|
||||
|
||||
;BigLogoLayout
|
||||
|
||||
</Popup>
|
||||
|
||||
|
||||
11949
inter/tha/xml/page_catalog_group_pro_7up_lucky_draw_x2.lxml
Normal file
11949
inter/tha/xml/page_catalog_group_pro_7up_lucky_draw_x2.lxml
Normal file
File diff suppressed because it is too large
Load diff
49
inter/tha/xml/page_catalog_group_pro_7up_lucky_draw_x2.skt
Normal file
49
inter/tha/xml/page_catalog_group_pro_7up_lucky_draw_x2.skt
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
<?hurr
|
||||
#include=menu_head.py
|
||||
?>
|
||||
|
||||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
;<Background> "0xeae6e1" </Background>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventOpen>
|
||||
; On open
|
||||
;include="ROOT/taobin_project/xml/menu_catalog_default_init.xml"
|
||||
Var Timeout = 0
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/xml/menu_catalog_new_menu.xml"
|
||||
</EventOpen>
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/xml/menu_catalog_new.xml"
|
||||
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen_v2.py
|
||||
?>
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen.py
|
||||
?>
|
||||
|
||||
|
||||
|
||||
;BigLogoLayout
|
||||
|
||||
<Button>
|
||||
<X> 780 </X>
|
||||
<Y> 500 </Y>
|
||||
<State> buttonRemoveCup </State>
|
||||
;<Color> "0x00BDFF" </Color>
|
||||
<Interval> 500 </Interval>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bn_remove_cup.png" </Filename>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bp_remove_cup.png" </Filename>
|
||||
<EventClick>
|
||||
Machine RemoveCup
|
||||
Machine DoorLidOpen
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
</Popup>
|
||||
3027
inter/tha/xml/page_catalog_group_pro_bad_valentine.lxml
Normal file
3027
inter/tha/xml/page_catalog_group_pro_bad_valentine.lxml
Normal file
File diff suppressed because it is too large
Load diff
37
inter/tha/xml/page_catalog_group_pro_bad_valentine.skt
Normal file
37
inter/tha/xml/page_catalog_group_pro_bad_valentine.skt
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
<?hurr
|
||||
#include=menu_head.py
|
||||
?>
|
||||
|
||||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
;<Background> "0xeae6e1" </Background>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventOpen>
|
||||
; On open
|
||||
;include="ROOT/taobin_project/xml/menu_catalog_default_init.xml"
|
||||
|
||||
|
||||
Var Timeout = 0
|
||||
Var FromBadValentinePro = 0
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/xml/menu_catalog_new_menu.xml"
|
||||
</EventOpen>
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/xml/menu_catalog_new.xml"
|
||||
|
||||
|
||||
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen_v2.py
|
||||
?>
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen.py
|
||||
?>
|
||||
|
||||
|
||||
|
||||
</Popup>
|
||||
7092
inter/tha/xml/page_catalog_group_pro_banana_mint_lucky_draw_x3.lxml
Normal file
7092
inter/tha/xml/page_catalog_group_pro_banana_mint_lucky_draw_x3.lxml
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,48 @@
|
|||
<?hurr
|
||||
#include=menu_head.py
|
||||
?>
|
||||
|
||||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
;<Background> "0xeae6e1" </Background>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventOpen>
|
||||
; On open
|
||||
;include="ROOT/taobin_project/xml/menu_catalog_default_init.xml"
|
||||
Var Timeout = 0
|
||||
|
||||
;include="ROOT/taobin_project/xml/menu_catalog_new_menu.xml"
|
||||
</EventOpen>
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/xml/menu_catalog_new.xml"
|
||||
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen_v2.py
|
||||
?>
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen.py
|
||||
?>
|
||||
|
||||
|
||||
|
||||
;BigLogoLayout
|
||||
|
||||
<Button>
|
||||
<X> 780 </X>
|
||||
<Y> 500 </Y>
|
||||
<State> buttonRemoveCup </State>
|
||||
;<Color> "0x00BDFF" </Color>
|
||||
<Interval> 500 </Interval>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bn_remove_cup.png" </Filename>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bp_remove_cup.png" </Filename>
|
||||
<EventClick>
|
||||
Machine RemoveCup
|
||||
Machine DoorLidOpen
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
</Popup>
|
||||
8712
inter/tha/xml/page_catalog_group_pro_buble_tea.lxml
Normal file
8712
inter/tha/xml/page_catalog_group_pro_buble_tea.lxml
Normal file
File diff suppressed because it is too large
Load diff
52
inter/tha/xml/page_catalog_group_pro_buble_tea.skt
Normal file
52
inter/tha/xml/page_catalog_group_pro_buble_tea.skt
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
<?hurr
|
||||
#include=menu_head.py
|
||||
?>
|
||||
|
||||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
;<Background> "0xeae6e1" </Background>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventOpen>
|
||||
; On open
|
||||
;include="ROOT/taobin_project/xml/menu_catalog_default_init.xml"
|
||||
Var Timeout = 0
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/xml/menu_catalog_new_menu.xml"
|
||||
|
||||
</EventOpen>
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/xml/menu_catalog_new.xml"
|
||||
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen_v2.py
|
||||
?>
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen.py
|
||||
?>
|
||||
|
||||
|
||||
|
||||
;BigLogoLayout
|
||||
|
||||
<Button>
|
||||
<X> 780 </X>
|
||||
<Y> 500 </Y>
|
||||
<State> buttonRemoveCup </State>
|
||||
;<Color> "0x00BDFF" </Color>
|
||||
<Interval> 500 </Interval>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bn_remove_cup.png" </Filename>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bp_remove_cup.png" </Filename>
|
||||
<EventClick>
|
||||
Machine RemoveCup
|
||||
Machine DoorLidOpen
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
</Popup>
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue