This commit is contained in:
wanlop run 2024-04-24 16:53:32 +07:00
commit 1d38695131
41 changed files with 26542 additions and 34 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

View file

@ -0,0 +1,302 @@
if "v2" in param:
print("V2 ignore")
else:
#print("params=" + param)
#print( "dir= " + directory_to_process + "/page_catalog_group_recommend.xml");
file_recommend = open(directory_to_process + "/page_catalog_group_recommend.xml", 'r')
content_recommend = file_recommend.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_inc1_content = ""
file_recommend.close()
if "template1" in param:
print("Here", param)
file_inc1 = open(directory_to_process + "/event/promotion_template1.inc", 'r')
file_inc1_content = file_inc1.read()
file_inc_img = open(directory_to_process + "../image/event/image_template1", 'r')
file_inc1_img_content = file_inc_img.read()
# replace key.
sp_key = file_inc1_img_content.split("\n")
#print("sp_key = " + str(len( sp_key)))
for sp_line in sp_key:
sp_line = sp_line.strip()
key_val = sp_line.split("=")
if len( key_val) == 2:
#print("k = " + key_val[0] + " val=" + key_val[1])
file_inc1_content = file_inc1_content.replace( "###" + key_val[0], '"' + key_val[1].strip() + '"')
file_inc_event_click = open(directory_to_process + "/event/promotion_onclick1.inc", 'r')
file_inc_event_click_content = file_inc_event_click.read()
file_inc1_content = file_inc1_content.replace("###EventOnClick", file_inc_event_click_content)
#print(file_inc2_content)
#print( file_inc_content)
file_inc = open(directory_to_process + "/dummy_layout.inc", 'r')
file_inc_content = file_inc.read()
content_data_was_repack = content_recommend.replace(";dummy_layout.inc", file_inc_content)
content_data = content_data_was_repack.replace(";BigLogoLayout", file_inc1_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_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()
if "template2" in param:
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)
file_inc = open(directory_to_process + "/dummy_layout.inc", 'r')
file_inc_content = file_inc.read()
content_data_was_repack = content_recommend.replace(";dummy_layout.inc", file_inc_content)
content_data = content_data_was_repack.replace(";BigLogoLayout", file_inc2_content)
begin_text = content_data.index(";TAGESP")
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()
if "template3" in param:
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)
file_inc = open(directory_to_process + "/dummy_layout.inc", 'r')
file_inc_content = file_inc.read()
content_data_was_repack = content_recommend.replace(";dummy_layout.inc", file_inc_content)
content_data = content_data_was_repack.replace(";BigLogoLayout", file_inc3_content)
begin_text = content_data.index(";TAGESP")
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()
if "template4" in param:
file_inc4 = open(directory_to_process + "/event/promotion_template4.inc", 'r')
file_inc4_content = file_inc4.read()
file_inc_img = open(directory_to_process + "../image/event/image_template4", 'r')
file_inc4_img_content = file_inc_img.read()
# replace key.
sp_key = file_inc4_img_content.split("\n")
#print("sp_key = " + str(len( sp_key)))
for sp_line in sp_key:
sp_line = sp_line.strip()
key_val = sp_line.split("=")
#print("Kenta420:", key_val)
if len( key_val) == 2:
#print("k = " + key_val[0] + " val=" + key_val[1])
file_inc4_content = file_inc4_content.replace( "###" + key_val[0], '"' + key_val[1].strip() + '"')
file_inc_event_click = open(directory_to_process + "/event/promotion_onclick4.inc", 'r')
file_inc_event_click_content = file_inc_event_click.read()
file_inc4_content = file_inc4_content.replace("###EventOnClick", file_inc_event_click_content)
#print(file_inc4_content)
#print( file_inc_content)
file_inc = open(directory_to_process + "/dummy_layout.inc", 'r')
file_inc_content = file_inc.read()
content_data_was_repack = content_recommend.replace(";dummy_layout.inc", file_inc_content)
content_data = content_data_was_repack.replace(";BigLogoLayout", file_inc4_content)
begin_text = content_data.index(";TAGESP")
end_text = content_data.index(";TAGESP", begin_text + 7)
#print("sub text = " + str(begin_text) + " end = " + str(end_text))
tmp1 = content_data[: begin_text - 7]
tmp3 = content_data[ end_text:-1]
#print("tmp1=" + tmp1)
#print("tmp3=" + tmp3)
content_data = tmp1 + tmp3
file_xml4_out = open(directory_to_process + "/event/out_put_file4.txt", 'r')
file_xml4_out_content = file_xml4_out.read()
file_xml4_out_content = file_xml4_out_content.strip()
file_xml4_out_content = file_xml4_out_content.replace("\r", "")
file_xml4_out_content = file_xml4_out_content.replace("\n", "")
file_xml4 = open(directory_to_process + file_xml4_out_content, 'w')
file_xml4.write( content_data)
file_xml4.close()
if "multi_promotion" in param:
files = os.listdir(directory_to_process + "/event/")
files = [f for f in files if f.startswith("multi_promotion_config")]
for filename in files:
recommend_multi_pro = open(directory_to_process + "/page_catalog_group_recommend_multi_pro.xml", "r")
recommend_multi_pro_buff = recommend_multi_pro.read()
recommend_multi_pro.close()
#read config
multi_pro_config_file = open(directory_to_process + "/event/"+ filename)
multi_pro_config = json.load(multi_pro_config_file)
index = 0
promotion_name = []
while index < len(multi_pro_config):
promotion_config = multi_pro_config[index]
index += 1
# add promotion name for create filename later
promotion_name.append(promotion_config["name"])
#load template
template_file = open(directory_to_process + promotion_config["template"])
template = template_file.read()
template_file.close()
for key, value in promotion_config["config"].items():
template = template.replace("###"+key, '"' + value.strip() + '"')
promotion_block_str = '\r\n<Block>\r\n\t<State> PromotionState{0} </State>\r\n\t<MarginLeft> 33 </MarginLeft>\r\n\t<MarginTop> 22 </MarginTop>\r\n\t<Width> 484 </Width>\r\n\t<Height> 602 </Height>\r\n'.format(index)
promotion_block_str += template
promotion_block_str += '\r\n</Block>\r\n'
recommend_multi_pro_buff = re.sub(r'(?is)(;block{0}).*(;endblock{0})'.format(index), r'\1{0}\2'.format(promotion_block_str), recommend_multi_pro_buff)
if index == 2:
# expend block3 to full width bottom
inner_block = re.search(r'(?is);block{0}(.*);endblock{0}'.format(index+1), recommend_multi_pro_buff).group(1)
inner_block = inner_block.replace("<Width> 516 </Width>", "<Width> 1032 </Width>", 2)
inner_block = inner_block.replace("<Max> 4 </Max>", "<Max> 8 </Max>", 1)
inner_block = inner_block.replace("<Column> 2 </Column>", "<Column> 4 </Column>", 1)
recommend_multi_pro_buff = re.sub(r'(?is)(;block{0}).*(;endblock{0})'.format(index+1), r'\1{0}\2'.format(inner_block), recommend_multi_pro_buff)
# remove block4
recommend_multi_pro_buff = re.sub(r'(?is)(;block{0}).*(;endblock{0})'.format(index+2), r'\1\2', recommend_multi_pro_buff)
if index == 3:
# create expand block
inner_block2 = re.search(r'(?is)(;block{0}.*;endblock{0})'.format(index+1), recommend_multi_pro_buff).group(1)
inner_block2 = inner_block2.replace(";block{0}".format(index+1), ";block{0}-expand".format(index+1))
inner_block2 = inner_block2.replace(";endblock{0}".format(index+1), ";endblock{0}-expand".format(index+1))
inner_block2 = inner_block2.replace("<Width> 516 </Width>", "<Width> 1032 </Width>", 2)
# inner_block2 = inner_block2.replace("<State> \"Enable\" </State> ", "<State>\r\n\teval(\r\n\tIf PromotionState{0} = \"Enable\" Then\r\n\t\tVar block_expend_show = \"Invisible\"\r\n\tElse\r\n\t\tVar block_expend_show = \"Enable\"\r\n\tEndIf\r\n\tVar return = block_expend_show\r\n\t)\r\n</State>".format(index), 1)
inner_block2 = inner_block2.replace("<Max> 4 </Max>", "<Max>\r\neval(\r\n\tIf CountEnablePromotion > 2 Then\r\n\t\tVar max_count = 4\r\n\tElse\r\n\t\tVar max_count = 8\r\n\tEndIf\r\n\tVar return = max_count\r\n)\r\n</Max>", 1)
inner_block2 = inner_block2.replace("<Column> 2 </Column>", "<Column>\r\neval(\r\n\tIf CountEnablePromotion > 2 Then\r\n\t\tVar column_count = 2\r\n\tElse\r\n\t\tVar column_count = 4\r\n\tEndIf\r\n\tVar return = column_count\r\n)\r\n</Column>", 1)
recommend_multi_pro_buff = re.sub(r'(?is);block{0}.*;endblock{0}'.format(index+1), inner_block2, recommend_multi_pro_buff)
# create promotion file
count_name_dict = {
2: "double_",
3: "triple_"
}
promo_file = open(directory_to_process + "/event/" + count_name_dict[len(multi_pro_config)]+ "promotion_" + "_and_".join(promotion_name) + ".xml", "w")
promo_file.write(recommend_multi_pro_buff)
promo_file.close()

View file

@ -0,0 +1,46 @@
<?hurr
#include=menu_head.py
?>
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
;<Background> "0xeae6e1" </Background>
<Volume> SoundVolume </Volume>
<EventOpen>
; On open
<?hurr
#include=menu_catalog_default_init.py
?>
Var Timeout = 0
Var FromBadValentinePro = 0
<?hurr
#include=menu_catalog_new_menu.py
?>
</EventOpen>
<?hurr
#include=menu_catalog_new.py
?>
<?hurr
#include=menu_new_layout_gen_v2.py
?>
<?hurr
#include=menu_new_layout_gen.py
?>
</Popup>

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,63 @@
<?hurr
#include=menu_head.py
?>
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
;<Background> "0xeae6e1" </Background>
<Volume> SoundVolume </Volume>
<EventOpen>
; On open
<?hurr
#include=menu_catalog_default_init.py
?>
Var FromMyMintPro = 0
Var Timeout = 0
<?hurr
#include=menu_catalog_new_menu.py
?>
</EventOpen>
<?hurr
#include=menu_catalog_new.py
?>
<?hurr
#include=menu_new_layout_gen_v2.py
?>
<?hurr
#include=menu_new_layout_gen.py
?>
;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>

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,46 @@
<?hurr
#include=menu_head.py
?>
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
;<Background> "0xeae6e1" </Background>
<Volume> SoundVolume </Volume>
<EventOpen>
; On open
<?hurr
#include=menu_catalog_default_init.py
?>
Var Timeout = 0
Var FromLipitPro = 0
<?hurr
#include=menu_catalog_new_menu.py
?>
</EventOpen>
<?hurr
#include=menu_catalog_new.py
?>
<?hurr
#include=menu_new_layout_gen_v2.py
?>
<?hurr
#include=menu_new_layout_gen.py
?>
</Popup>

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,46 @@
<?hurr
#include=menu_head.py
?>
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
;<Background> "0xeae6e1" </Background>
<Volume> SoundVolume </Volume>
<EventOpen>
; On open
<?hurr
#include=menu_catalog_default_init.py
?>
Var Timeout = 0
Var FromMondayBananaPro = 0
<?hurr
#include=menu_catalog_new_menu.py
?>
</EventOpen>
<?hurr
#include=menu_catalog_new.py
?>
<?hurr
#include=menu_new_layout_gen_v2.py
?>
<?hurr
#include=menu_new_layout_gen.py
?>
</Popup>

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,45 @@
<?hurr
#include=menu_head.py
?>
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
;<Background> "0xeae6e1" </Background>
<Volume> SoundVolume </Volume>
<EventOpen>
; On open
<?hurr
#include=menu_catalog_default_init.py
?>
Var Timeout = 0
<?hurr
#include=menu_catalog_new_menu.py
?>
</EventOpen>
<?hurr
#include=menu_catalog_new.py
?>
<?hurr
#include=menu_new_layout_gen_v2.py
?>
<?hurr
#include=menu_new_layout_gen.py
?>
</Popup>

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,46 @@
<?hurr
#include=menu_head.py
?>
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
;<Background> "0xeae6e1" </Background>
<Volume> SoundVolume </Volume>
<EventOpen>
; On open
<?hurr
#include=menu_catalog_default_init.py
?>
Var Timeout = 0
Var FromPepsiSecondCup30 = 0
<?hurr
#include=menu_catalog_new_menu.py
?>
</EventOpen>
<?hurr
#include=menu_catalog_new.py
?>
<?hurr
#include=menu_new_layout_gen_v2.py
?>
<?hurr
#include=menu_new_layout_gen.py
?>
</Popup>

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,63 @@
<?hurr
#include=menu_head.py
?>
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
;<Background> "0xeae6e1" </Background>
<Volume> SoundVolume </Volume>
<EventOpen>
; On open
<?hurr
#include=menu_catalog_default_init.py
?>
Var FromTeaTimePro = 0
Var Timeout = 0
<?hurr
#include=menu_catalog_new_menu.py
?>
</EventOpen>
<?hurr
#include=menu_catalog_new.py
?>
<?hurr
#include=menu_new_layout_gen_v2.py
?>
<?hurr
#include=menu_new_layout_gen.py
?>
;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>

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,83 @@
<?hurr
#include=menu_head.py
?>
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
;<Background> "0xeae6e1" </Background>
<Volume> SoundVolume </Volume>
<EventOpen>
; On open
<?hurr
#include=menu_catalog_default_init.xml
?>
Var Menu1Selected = "PressForever"
Var OreoBigButtonEnable = "Enable"
If $12-01-01-0001.Button = "Invisible" Then
Var esp102101001Enable = "Invisible"
Var esp122101001Enable = "Enable"
Else
Var esp102101001Enable = "Enable"
Var esp122101001Enable = "Invisible"
EndIf
SAVELOG PreviseXMLFileName2
Var Timeout = 0
If show_eng = "true" Then
Var text_unavailable = "UNAVAILABLE###size=16"
Else
Var text_unavailable = "หมด###size=32"
EndIf
<?hurr
#include=menu_catalog_new_menu.xml
?>
</EventOpen>
<?hurr
#include=menu_catalog_new.py
?>
<?hurr
#include=menu_new_layout_gen_v2.py
?>
<?hurr
#include=menu_new_layout_gen.py
?>
;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>

View file

@ -101,6 +101,9 @@
Var DinCondensedRegular = "ROOT/taobin_project/font/Din/DIN-Regular.ttf"
Var DinCondensedBold = "ROOT/taobin_project/font/Din/DIN-Condensed-Bold.ttf"
Var ChivoMonoBold = "ROOT/taobin_project/font/ChivoMono/ChivoMono-Bold.ttf"
Var ChivoMonoSemiBold = "ROOT/taobin_project/font/ChivoMono/ChivoMono-SemiBold.ttf"
Var countClick = 0

View file

@ -435,11 +435,11 @@
<Text>
<X> 437 </X>
<Y> 506 </Y>
<Size> 15 </Size>
<Size> 14 </Size>
<Align> end </Align>
<Width> 71 </Width>
<Height> 22 </Height>
<Font> KanitMediumTTF </Font>
<Font> ChivoMonoSemiBold </Font>
<Color> 0x523D30 </Color>
<Value> StringFmt(Rank[3].Amount, AMOUNT_FORMAT, PreScaleConvertShow) </Value>
</Text>
@ -477,11 +477,11 @@
<Text>
<X> 437 </X>
<Y> 532 </Y>
<Size> 15 </Size>
<Size> 14 </Size>
<Align> end </Align>
<Width> 71 </Width>
<Height> 22 </Height>
<Font> KanitMediumTTF </Font>
<Font> ChivoMonoSemiBold </Font>
<Color> 0x523D30 </Color>
<Value> StringFmt(Rank[4].Amount, AMOUNT_FORMAT, PreScaleConvertShow) </Value>
</Text>
@ -519,11 +519,11 @@
<Text>
<X> 437 </X>
<Y> 559 </Y>
<Size> 15 </Size>
<Size> 14 </Size>
<Align> end </Align>
<Width> 71 </Width>
<Height> 22 </Height>
<Font> KanitMediumTTF </Font>
<Font> ChivoMonoSemiBold </Font>
<Color> 0x523D30 </Color>
<Value> StringFmt(Rank[5].Amount, AMOUNT_FORMAT, PreScaleConvertShow) </Value>
</Text>
@ -561,11 +561,11 @@
<Text>
<X> 437 </X>
<Y> 585 </Y>
<Size> 15 </Size>
<Size> 14 </Size>
<Align> end </Align>
<Width> 71 </Width>
<Height> 22 </Height>
<Font> KanitMediumTTF </Font>
<Font> ChivoMonoSemiBold </Font>
<Color> 0x523D30 </Color>
<Value> StringFmt(Rank[6].Amount, AMOUNT_FORMAT, PreScaleConvertShow) </Value>
</Text>
@ -603,11 +603,11 @@
<Text>
<X> 437 </X>
<Y> 613 </Y>
<Size> 15 </Size>
<Size> 14 </Size>
<Align> end </Align>
<Width> 71 </Width>
<Height> 22 </Height>
<Font> KanitMediumTTF </Font>
<Font> ChivoMonoSemiBold </Font>
<Color> 0x523D30 </Color>
<Value> StringFmt(Rank[7].Amount, AMOUNT_FORMAT, PreScaleConvertShow) </Value>
</Text>
@ -645,11 +645,11 @@
<Text>
<X> 437 </X>
<Y> 638 </Y>
<Size> 15 </Size>
<Size> 14 </Size>
<Align> end </Align>
<Width> 71 </Width>
<Height> 22 </Height>
<Font> KanitMediumTTF </Font>
<Font> ChivoMonoSemiBold </Font>
<Color> 0x523D30 </Color>
<Value> StringFmt(Rank[8].Amount, AMOUNT_FORMAT, PreScaleConvertShow) </Value>
</Text>
@ -687,11 +687,11 @@
<Text>
<X> 437 </X>
<Y> 666 </Y>
<Size> 15 </Size>
<Size> 14 </Size>
<Align> end </Align>
<Width> 71 </Width>
<Height> 22 </Height>
<Font> KanitMediumTTF </Font>
<Font> ChivoMonoSemiBold </Font>
<Color> 0x523D30 </Color>
<Value> StringFmt(Rank[9].Amount, AMOUNT_FORMAT, PreScaleConvertShow) </Value>
</Text>
@ -729,11 +729,11 @@
<Text>
<X> 437 </X>
<Y> 692 </Y>
<Size> 15 </Size>
<Size> 14 </Size>
<Align> end </Align>
<Width> 71 </Width>
<Height> 22 </Height>
<Font> KanitMediumTTF </Font>
<Font> ChivoMonoSemiBold </Font>
<Color> 0x523D30 </Color>
<Value> StringFmt(Rank[10].Amount, AMOUNT_FORMAT, PreScaleConvertShow) </Value>
</Text>
@ -771,11 +771,11 @@
<Text>
<X> 437 </X>
<Y> 718 </Y>
<Size> 15 </Size>
<Size> 14 </Size>
<Align> end </Align>
<Width> 71 </Width>
<Height> 22 </Height>
<Font> KanitMediumTTF </Font>
<Font> ChivoMonoSemiBold </Font>
<Color> 0x523D30 </Color>
<Value> StringFmt(Rank[11].Amount, AMOUNT_FORMAT, PreScaleConvertShow) </Value>
</Text>
@ -813,11 +813,11 @@
<Text>
<X> 437 </X>
<Y> 745 </Y>
<Size> 15 </Size>
<Size> 14 </Size>
<Align> end </Align>
<Width> 71 </Width>
<Height> 22 </Height>
<Font> KanitMediumTTF </Font>
<Font> ChivoMonoSemiBold </Font>
<Color> 0x523D30 </Color>
<Value> StringFmt(Rank[12].Amount, AMOUNT_FORMAT, PreScaleConvertShow) </Value>
</Text>
@ -855,11 +855,11 @@
<Text>
<X> 437 </X>
<Y> 771 </Y>
<Size> 15 </Size>
<Size> 14 </Size>
<Align> end </Align>
<Width> 71 </Width>
<Height> 22 </Height>
<Font> KanitMediumTTF </Font>
<Font> ChivoMonoSemiBold </Font>
<Color> 0x523D30 </Color>
<Value> StringFmt(Rank[13].Amount, AMOUNT_FORMAT, PreScaleConvertShow) </Value>
</Text>
@ -897,11 +897,11 @@
<Text>
<X> 854 </X>
<Y> 506 </Y>
<Size> 15 </Size>
<Size> 14 </Size>
<Align> end </Align>
<Width> 71 </Width>
<Height> 22 </Height>
<Font> KanitMediumTTF </Font>
<Font> ChivoMonoSemiBold </Font>
<Color> 0x523D30 </Color>
<Value> StringFmt(Rank[14].Amount, AMOUNT_FORMAT, PreScaleConvertShow) </Value>
</Text>
@ -939,11 +939,11 @@
<Text>
<X> 854 </X>
<Y> 532 </Y>
<Size> 15 </Size>
<Size> 14 </Size>
<Align> end </Align>
<Width> 71 </Width>
<Height> 22 </Height>
<Font> KanitMediumTTF </Font>
<Font> ChivoMonoSemiBold </Font>
<Color> 0x523D30 </Color>
<Value> StringFmt(Rank[15].Amount, AMOUNT_FORMAT, PreScaleConvertShow) </Value>
</Text>
@ -981,11 +981,11 @@
<Text>
<X> 854 </X>
<Y> 559 </Y>
<Size> 15 </Size>
<Size> 14 </Size>
<Align> end </Align>
<Width> 71 </Width>
<Height> 22 </Height>
<Font> KanitMediumTTF </Font>
<Font> ChivoMonoSemiBold </Font>
<Color> 0x523D30 </Color>
<Value> StringFmt(Rank[16].Amount, AMOUNT_FORMAT, PreScaleConvertShow) </Value>
</Text>
@ -1023,11 +1023,11 @@
<Text>
<X> 854 </X>
<Y> 585 </Y>
<Size> 15 </Size>
<Size> 14 </Size>
<Align> end </Align>
<Width> 71 </Width>
<Height> 22 </Height>
<Font> KanitMediumTTF </Font>
<Font> ChivoMonoSemiBold </Font>
<Color> 0x523D30 </Color>
<Value> StringFmt(Rank[17].Amount, AMOUNT_FORMAT, PreScaleConvertShow) </Value>
</Text>
@ -1065,11 +1065,11 @@
<Text>
<X> 854 </X>
<Y> 613 </Y>
<Size> 15 </Size>
<Size> 14 </Size>
<Align> end </Align>
<Width> 71 </Width>
<Height> 22 </Height>
<Font> KanitMediumTTF </Font>
<Font> ChivoMonoSemiBold </Font>
<Color> 0x523D30 </Color>
<Value> StringFmt(Rank[18].Amount, AMOUNT_FORMAT, PreScaleConvertShow) </Value>
</Text>
@ -1107,11 +1107,11 @@
<Text>
<X> 854 </X>
<Y> 638 </Y>
<Size> 15 </Size>
<Size> 14 </Size>
<Align> end </Align>
<Width> 71 </Width>
<Height> 22 </Height>
<Font> KanitMediumTTF </Font>
<Font> ChivoMonoSemiBold </Font>
<Color> 0x523D30 </Color>
<Value> StringFmt(Rank[19].Amount, AMOUNT_FORMAT, PreScaleConvertShow) </Value>
</Text>

View file

@ -0,0 +1,169 @@
<BeginX>28</BeginX>
<BeginY>255</BeginY>
<OverrideBackground> "ROOT/ui/bg_main_menu2.png"</OverrideBackground>
<Page>
<Width> 1024 </Width>
<Height> 600 </Height>
<Background> "/ROOT/pictures/startup.bmp" </Background>
<Timeout> 3000 </Timeout>
<EventTimeout>
CameraService "filter-remove-all"
CameraService "add-filter=mClass=9,mSubclass=4"
CameraService "add-filter=USB Camera"
CameraService "Start"
Var NeedReboot = "false"
If JXMLVersionInt > 409 Then
FlushTxRef1
EndIf
Open "/ROOT/xml/main.xml"
</EventTimeout>
<EventOpen>
Var video_main_0 = "/mnt/sdcard/coffeevending/taobin_project/adv/taobin_adv_00.mp4"
Var video_menu_0 = "/mnt/sdcard/coffeevending/taobin_project/adv/taobin_adv_menu_00.mp4"
Var video_menu_1 = "/mnt/sdcard/coffeevending/taobin_project/adv/taobin_adv_menu2_00.mp4"
Var MenuLangTH = 1
Var VendingCampaign = 0
Var VendingDiscount = 0
Var VendingClass = ""
TopView "hide"
Var NetworkStatus = "DOWN"
Var MachineErrorDetail = ""
Var SetVideo = 1
Var AdvSoundWorking = ""
Var AdvSoundWorking = "/ROOT/sounds/adv_working_01.wav"
Var AdvIndex = 1
Var SetSoundPlay = 0
Var CheckAutoZero = 0.0
Var DeffZero = 0.0
Var CountZero = 0
Var AdvWorking = ""
Var AdvCoin = ""
Var AdvAmount = ""
Var AdvMobile = ""
Var AdvId = "00"
;Var AdvertiseProfile = "00/00/00/00/00/00/00/00/00/00/00/00/00/00/00/00/00/00"
Var AdvertiseProfile1 = "00"
Var AdvertiseProfile2 = "00"
Var AdvertiseProfile3 = "00"
Var AdvertiseProfile4 = "00"
Var AdvertiseProfile5 = "00"
Var AdvertiseProfile6 = "00"
Var AdvertiseProfile7 = "00"
Var AdvertiseProfile8 = "00"
Var AdvertiseProfile9 = "00"
Var AdvertiseProfile10 = "00"
Var AdvertiseProfile11 = "00"
Var AdvertiseProfile12 = "00"
Var AdvertiseProfile13 = "00"
Var AdvertiseProfile14 = "00"
Var AdvertiseProfile15 = "00"
Var AdvertiseProfile16 = "00"
Var AdvertiseProfile17 = "00"
Var AdvertiseProfile18 = "00"
Var ExtSlot1 = ""
Var ExtSlot2 = ""
Var ExtSlot3 = ""
Var ExtSlot4 = ""
Var ExtSlot5 = ""
Var ExtSlot6 = ""
Var AdvExt1 = ".mp4"
Var AdvExt2 = ".mp4"
Var AdvExt3 = ".mp4"
Var AdvExt4 = ".bmp"
Var AdvExt5 = ".bmp"
Var AdvExt6 = ".bmp"
Var AdvExt7 = ".mp4"
Var AdvExt8 = ".mp4"
Var AdvExt9 = ".bmp"
Var AdvExt10 = ".bmp"
Var AdvExt11 = ".mp4"
Var AdvExt12 = ".bmp"
Var AdvExt13 = ".bmp"
Var AdvExt14 = ".bmp"
Var AdvExt15 = ".bmp"
Var AdvExt16 = ".mp4"
Var AdvExt17 = ".mp4"
Var AdvExt18 = ".bmp"
Var AdvExt19 = ".mp4"
Var AdvExt20 = ".bmp"
;Dtac
Var RandomPromotion = 0
;true_move
Var RandomPromotion1 = 0
Var RandomPromotionAIS = 0
Var RandomPromotionCAT = 0
Var RandomPromotionOper168 = 0
Var RandomPromotionImobile = 0
Var RandomPromotionWhitespace = 0
Var RandomPromotionTOT = 0
Var RandomPromotionMyworld = 0
Var RandomSalePackage = 0
Var XMLPageVersion = "8.40"
Var XMLPageVersionInt = 840
;Oreo
Var OreoGuarantee = 0
</EventOpen>
<Text>
<X> 644 </X>
<Y> 350 </Y>
<Size> 20 </Size>
<Font> fontType1 </Font>
<Color> 0xEA068A </Color>
<Transparent> 0 </Transparent>
<Value> "Engine" </Value>
</Text>
<Text>
<X> 724 </X>
<Y> 350 </Y>
<Size> 20 </Size>
<Font> fontType1 </Font>
<Color> 0xEA068A </Color>
<Transparent> 0 </Transparent>
<Value> SoftwareVersion </Value>
</Text>
<Text>
<X> 628 </X>
<Y> 380 </Y>
<Size> 20 </Size>
<Font> fontType1 </Font>
<Color> 0xEA068A </Color>
<Transparent> 0 </Transparent>
<Value> "Software version" </Value>
</Text>
<Text>
<X> 802 </X>
<Y> 380 </Y>
<Size> 20 </Size>
<Font> fontType1 </Font>
<Color> 0xEA068A </Color>
<Transparent> 0 </Transparent>
<Value> XMLPageVersion </Value>
</Text>
<TextRunner>
<Visible> False </Visible>
<Y> 430 </Y>
<Size> 50 </Size>
<Size> 20 </Size>
<Font> fontType1 </Font>
<Repeat> True </Repeat>
<Color> 0xFFFF00 </Color>
<BgColor> 0x0000A0 </BgColor>
<Filename> "/ROOT/text/runner.txt" </Filename>
</TextRunner>
</Page>