save
This commit is contained in:
parent
488ccd06f3
commit
866f21d4e8
11 changed files with 1079 additions and 2366 deletions
245
xml/dummy_layout_multiple_pro.inc
Normal file
245
xml/dummy_layout_multiple_pro.inc
Normal file
|
|
@ -0,0 +1,245 @@
|
||||||
|
<Block>
|
||||||
|
<MarginLeft> 33 </MarginLeft>
|
||||||
|
<MarginTop> 22 </MarginTop>
|
||||||
|
<Width> 225 </Width>
|
||||||
|
<Height> 296 </Height>
|
||||||
|
<State> "Enable" </State>
|
||||||
|
<Button>
|
||||||
|
<State> "Enable" </State>
|
||||||
|
<Filename> "ROOT/taobin_project/image/page_drink_n//bn_water_roomtemp.png" </Filename>
|
||||||
|
<FilenamePress> "ROOT/taobin_project/image/page_drink_press_n//bn_water_roomtemp.png" </FilenamePress>
|
||||||
|
<FilenameDisable> "ROOT/taobin_project/image/page_drink_disable_n2//bn_water_roomtemp.png" </FilenameDisable>
|
||||||
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventOnClick>
|
||||||
|
Var NameDrink = "DRINKING WATER"
|
||||||
|
Var NameDrinkTH = "น้ำดื่ม"
|
||||||
|
Var DrinkDescriptionTH = "น้ำ"
|
||||||
|
Var DrinkDescription = "Water"
|
||||||
|
Var PictureDrink = "ROOT/taobin_project/image/page_drink_picture2_n/" + "bn_water_roomtemp.png"
|
||||||
|
Var OpenFromXML = CurrentXMLFileName2
|
||||||
|
Var PriceD1 = $-.Price
|
||||||
|
Var PriceD2 = $12-05-02-0016.Price
|
||||||
|
Var PriceD3 = $-.Price
|
||||||
|
Var PD_CODE1 = "##-##-##-####"
|
||||||
|
Var PD_CODE2 = "12-05-02-0016"
|
||||||
|
Var PD_CODE3 = "##-##-##-####"
|
||||||
|
Var PD_STAGE_1 = "Disable2"
|
||||||
|
Var PD_STAGE_2 = $12-05-02-0016.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" "12-05-02-0016"
|
||||||
|
Else
|
||||||
|
If PD_STAGE_1 = "Enable" Then
|
||||||
|
Topping "Load" "-"
|
||||||
|
Else
|
||||||
|
Topping "Load" "-"
|
||||||
|
EndIf
|
||||||
|
EndIf
|
||||||
|
Var menu_name_eng_hot = $##-##-##-####.NameE
|
||||||
|
Var menu_desc_eng_hot = $##-##-##-####.descriptionE
|
||||||
|
Var menu_name_thai_hot = $##-##-##-####.Name
|
||||||
|
Var menu_desc_thai_hot = $##-##-##-####.description
|
||||||
|
|
||||||
|
Var menu_name_eng_cold = $12-05-02-0016.NameE
|
||||||
|
Var menu_desc_eng_cold = $12-05-02-0016.descriptionE
|
||||||
|
Var menu_name_thai_cold = $12-05-02-0016.Name
|
||||||
|
Var menu_desc_thai_cold = $12-05-02-0016.description
|
||||||
|
|
||||||
|
Var menu_name_eng_blender = $##-##-##-####.NameE
|
||||||
|
Var menu_desc_eng_blender = $##-##-##-####.descriptionE
|
||||||
|
Var menu_name_thai_blender = $##-##-##-####.Name
|
||||||
|
Var menu_desc_thai_blender = $##-##-##-####.description
|
||||||
|
|
||||||
|
DEBUGVAR PD_STAGE_1
|
||||||
|
DEBUGVAR PD_STAGE_2
|
||||||
|
DEBUGVAR PD_STAGE_3
|
||||||
|
Var SelectDrinkType = 0
|
||||||
|
|
||||||
|
|
||||||
|
Open "ROOT/taobin_project/xml/page_topping_select5.xml"
|
||||||
|
|
||||||
|
</EventOnClick>
|
||||||
|
</Button>
|
||||||
|
<Text>
|
||||||
|
<X> 16 </X>
|
||||||
|
<Y> 164 </Y>
|
||||||
|
<Size> 24 </Size>
|
||||||
|
<Width>220</Width>
|
||||||
|
<Mode> "multi2" </Mode>
|
||||||
|
<Font> KanitMediumTTF </Font>
|
||||||
|
<Color> 0x322B26 </Color>
|
||||||
|
<State> showthaiText </State>
|
||||||
|
<Value> "น้ำดื่ม" </Value>
|
||||||
|
</Text>
|
||||||
|
<Text>
|
||||||
|
<X> 16 </X>
|
||||||
|
<Y> 220 </Y>
|
||||||
|
<Size> 14 </Size>
|
||||||
|
<Width>220</Width>
|
||||||
|
<Font> KanitMediumTTF </Font>
|
||||||
|
<Color> 0x6F5F51 </Color>
|
||||||
|
<State> showthaiText </State>
|
||||||
|
<Value> "น้ำ" </Value>
|
||||||
|
</Text>
|
||||||
|
<Text>
|
||||||
|
<X> 16 </X>
|
||||||
|
<Y> 164 </Y>
|
||||||
|
<Size> 22 </Size>
|
||||||
|
<Width>220</Width>
|
||||||
|
<Mode> "multi2" </Mode>
|
||||||
|
<Font> KanitMediumTTF </Font>
|
||||||
|
<Color> 0x322B26 </Color>
|
||||||
|
<State> showengText </State>
|
||||||
|
<Value> "DRINKING WATER" </Value>
|
||||||
|
</Text>
|
||||||
|
<Text>
|
||||||
|
<X> 16 </X>
|
||||||
|
<Y> 220 </Y>
|
||||||
|
<Size> 14 </Size>
|
||||||
|
<Width>220</Width>
|
||||||
|
<Font> KanitMediumTTF </Font>
|
||||||
|
<Color> 0x6F5F51 </Color>
|
||||||
|
<State> showengText </State>
|
||||||
|
<Value> "Water" </Value>
|
||||||
|
</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> 50 </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> $12-05-02-0016.Button </State>
|
||||||
|
</Image>
|
||||||
|
<Text>
|
||||||
|
<X> 115 </X>
|
||||||
|
<Y> TextPriceMenuY </Y>
|
||||||
|
<Size> TextPriceMenuSize </Size>
|
||||||
|
<Width>220</Width>
|
||||||
|
<Font> KanitMediumTTF </Font>
|
||||||
|
<Color> 0x6F5F51 </Color>
|
||||||
|
<ColorDisable> 0xEAE6E1 </ColorDisable>
|
||||||
|
<State> $12-05-02-0016.Button </State>
|
||||||
|
<Value> StringFmt( $12-05-02-0016.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> 180 </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
|
||||||
|
|
||||||
|
Var ice_tab_process_show = "Invisible"
|
||||||
|
|
||||||
|
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 $Sum1205020016 = "Disable" Then
|
||||||
|
STRCONTAIN "ERR" $##-##-##-####.TAG tag1_is_disable
|
||||||
|
STRCONTAIN "ERR" $12-05-02-0016.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>
|
||||||
|
<Font> MITRegularTTF </Font>
|
||||||
|
<Color> 0x5A5A5A </Color>
|
||||||
|
<Mode> "disable-show" </Mode>
|
||||||
|
<State> $Sum1205020016 </State>
|
||||||
|
<Value> text_unavailable </Value>
|
||||||
|
<Align> center-vertical-horizontal </Align>
|
||||||
|
</Text>
|
||||||
|
</Block>
|
||||||
File diff suppressed because it is too large
Load diff
|
|
@ -574,4 +574,28 @@ else:
|
||||||
|
|
||||||
file_xml_triple2 = open(directory_to_process + file_xml_triple2_out_content, 'w')
|
file_xml_triple2 = open(directory_to_process + file_xml_triple2_out_content, 'w')
|
||||||
file_xml_triple2.write( content_data)
|
file_xml_triple2.write( content_data)
|
||||||
file_xml_triple2.close()
|
file_xml_triple2.close()
|
||||||
|
|
||||||
|
if "multi_promotion1" in param:
|
||||||
|
recommend_multi_pro = open(directory_to_process + "/page_catgalog_group_recommend_multi_pro.xml", "r")
|
||||||
|
recommend_multi_pro_buff = recommend_multi_pro.read()
|
||||||
|
|
||||||
|
#read config
|
||||||
|
multi_pro_config_file = open(directory_to_process + "/event/multi_promotion_config1.json")
|
||||||
|
multi_pro_config = json.load(multi_pro_config_file)
|
||||||
|
|
||||||
|
for index, promotion_config in enumerate(multi_pro_config):
|
||||||
|
#load template
|
||||||
|
template_file = open(dictionary_to_process + promotion_config["template"])
|
||||||
|
template = template_file.read()
|
||||||
|
|
||||||
|
for key, value in promotion_config["config"].items():
|
||||||
|
template = template.replace("###"+key, '"' + key_val[1].strip() + '"')
|
||||||
|
|
||||||
|
start_block_index = recommend_multi_pro_buff.find(";block"+(index+1))
|
||||||
|
end_block_index = recommend_multi_pro_buff.find(";endblock"+(index+1))
|
||||||
|
|
||||||
|
promotion_block_str = '\t<Block>\r\n\t\t<State> ### </State> \r\n\t\t<MarginTop> 22 </MarginTop>\r\n\t\t<Width> 484 </Width>\r\n\t\t<Height> 602 </Height>\r\n'
|
||||||
|
|
||||||
|
recommend_multi_pro_buff = recommend_multi_pro_buff[start_block_index+len(";block"+(index+1)):end_block_index+";endblock"+(index+1)]
|
||||||
|
|
||||||
30
xml/event/multi_promotion_config1.json
Normal file
30
xml/event/multi_promotion_config1.json
Normal file
|
|
@ -0,0 +1,30 @@
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"name": "lipit",
|
||||||
|
"template": "/event/promotion_video_template.inc",
|
||||||
|
"config": {
|
||||||
|
"normal_eng": "ROOT/taobin_project/image/event/lipit/lipit_en.png",
|
||||||
|
"normal_thai": "ROOT/taobin_project/image/event/lipit/lipit_th.png",
|
||||||
|
"press_eng": "ROOT/taobin_project/image/event/lipit/lipit_en.png",
|
||||||
|
"press_thai": "ROOT/taobin_project/image/event/lipit/lipit_th.png",
|
||||||
|
"disable_eng": "ROOT/taobin_project/image/event/lipit/lipit_en.png",
|
||||||
|
"disable_thai": "ROOT/taobin_project/image/event/lipit/lipit_th.png",
|
||||||
|
"video_eng": "ROOT/taobin_project/image/event/lipit/pro_lipit_en.mp4",
|
||||||
|
"video_thai": "ROOT/taobin_project/image/event/lipit/pro_lipit_th.mp4",
|
||||||
|
"event_on_click": "ROOT/taobin_project/xml/page_catalog_group_pro_lipit.xml"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "free_energy_drink",
|
||||||
|
"template": "/event/promotion_template.inc",
|
||||||
|
"config": {
|
||||||
|
"normal_eng": "ROOT/taobin_project/image/event/powerup_free_1/powerup_en.png",
|
||||||
|
"normal_thai": "ROOT/taobin_project/image/event/powerup_free_1/powerup.png",
|
||||||
|
"press_eng": "ROOT/taobin_project/image/event/powerup_free_1/powerup_en.png",
|
||||||
|
"press_thai": "ROOT/taobin_project/image/event/powerup_free_1/powerup.png",
|
||||||
|
"disable_eng": "ROOT/taobin_project/image/event/powerup_free_1/powerup_en.png",
|
||||||
|
"disable_thai": "ROOT/taobin_project/image/event/powerup_free_1/powerup.png",
|
||||||
|
"event_on_click": "ROOT/taobin_project/xml/event/powerup_free_1/page_powerup_bridge.xml"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
48
xml/event/multi_promotion_template.inc
Normal file
48
xml/event/multi_promotion_template.inc
Normal file
|
|
@ -0,0 +1,48 @@
|
||||||
|
<Block>
|
||||||
|
<MarginLeft> 33 </MarginLeft>
|
||||||
|
<MarginTop> 22 </MarginTop>
|
||||||
|
<Width> 484 </Width>
|
||||||
|
<Height> 602 </Height>
|
||||||
|
<State> </State>
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<State> BigButtonEnable </State>
|
||||||
|
<Filename>
|
||||||
|
eval(
|
||||||
|
If show_eng = "true" Then
|
||||||
|
Var return = ###normal_eng
|
||||||
|
Else
|
||||||
|
Var return = ###normal_th
|
||||||
|
EndIf
|
||||||
|
)
|
||||||
|
</Filename>
|
||||||
|
<FilenamePress>
|
||||||
|
eval(
|
||||||
|
If show_eng = "true" Then
|
||||||
|
Var return = ###normal_eng
|
||||||
|
Else
|
||||||
|
Var return = ###normal_th
|
||||||
|
EndIf
|
||||||
|
)
|
||||||
|
</FilenamePress>
|
||||||
|
<FilenameDisable>
|
||||||
|
eval(
|
||||||
|
If show_eng = "true" Then
|
||||||
|
Var return = ###normal_eng
|
||||||
|
Else
|
||||||
|
Var return = ###normal_th
|
||||||
|
EndIf
|
||||||
|
)
|
||||||
|
</FilenameDisable>
|
||||||
|
<EventOnClick>
|
||||||
|
|
||||||
|
###event_click1
|
||||||
|
|
||||||
|
</EventOnClick>
|
||||||
|
|
||||||
|
|
||||||
|
###video_layout
|
||||||
|
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
</Block>
|
||||||
40
xml/event/promotion_template.inc
Normal file
40
xml/event/promotion_template.inc
Normal file
|
|
@ -0,0 +1,40 @@
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 42 </X>
|
||||||
|
<Y> 518 </Y>
|
||||||
|
|
||||||
|
<State> BigButtonEnable </State>
|
||||||
|
<Filename>
|
||||||
|
eval(
|
||||||
|
If show_eng = "true" Then
|
||||||
|
Var return = ###normal_eng
|
||||||
|
Else
|
||||||
|
Var return = ###normal_thai
|
||||||
|
EndIf
|
||||||
|
)
|
||||||
|
</Filename>
|
||||||
|
<FilenamePress>
|
||||||
|
eval(
|
||||||
|
If show_eng = "true" Then
|
||||||
|
Var return = ###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>
|
||||||
|
|
||||||
|
Open ###event_on_click
|
||||||
|
|
||||||
|
</EventOnClick>
|
||||||
|
|
||||||
|
</Button>
|
||||||
77
xml/event/promotion_video_template.inc
Normal file
77
xml/event/promotion_video_template.inc
Normal file
|
|
@ -0,0 +1,77 @@
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 42 </X>
|
||||||
|
<Y> 518 </Y>
|
||||||
|
|
||||||
|
<State> BigButtonEnable </State>
|
||||||
|
<Filename>
|
||||||
|
eval(
|
||||||
|
If show_eng = "true" Then
|
||||||
|
Var return = ###normal_eng
|
||||||
|
Else
|
||||||
|
Var return = ###normal_thai
|
||||||
|
EndIf
|
||||||
|
)
|
||||||
|
</Filename>
|
||||||
|
<FilenamePress>
|
||||||
|
eval(
|
||||||
|
If show_eng = "true" Then
|
||||||
|
Var return = ###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>
|
||||||
|
|
||||||
|
###event_on_click
|
||||||
|
|
||||||
|
</EventOnClick>
|
||||||
|
|
||||||
|
|
||||||
|
<Video>
|
||||||
|
<X> 42 </X>
|
||||||
|
<Y> 518 </Y>
|
||||||
|
<Width> 484 </Width>
|
||||||
|
<Height> 616 </Height>
|
||||||
|
<Loop> "true" </Loop>
|
||||||
|
<State>
|
||||||
|
eval(
|
||||||
|
If show_eng = "true" Then
|
||||||
|
Var return = "Invisible"
|
||||||
|
Else
|
||||||
|
Var return = "Enable"
|
||||||
|
EndIf
|
||||||
|
)
|
||||||
|
</State>
|
||||||
|
<Filename> ###video_th </Filename>
|
||||||
|
</Video>
|
||||||
|
|
||||||
|
<Video>
|
||||||
|
<X> 42 </X>
|
||||||
|
<Y> 518 </Y>
|
||||||
|
<Width> 484 </Width>
|
||||||
|
<Height> 616 </Height>
|
||||||
|
<State>
|
||||||
|
eval(
|
||||||
|
If show_eng = "true" Then
|
||||||
|
Var return = "Enable"
|
||||||
|
Else
|
||||||
|
Var return = "Invisible"
|
||||||
|
EndIf
|
||||||
|
)
|
||||||
|
</State>
|
||||||
|
<Loop> "true" </Loop>
|
||||||
|
<Filename> ###video_eng </Filename>
|
||||||
|
</Video>
|
||||||
|
|
||||||
|
</Button>
|
||||||
|
|
@ -24,8 +24,8 @@ Else
|
||||||
|
|
||||||
|
|
||||||
DEBUGVAR FreeEnergyDrink
|
DEBUGVAR FreeEnergyDrink
|
||||||
|
Var FreeEnergyDrink = 1
|
||||||
;Var EnableFreeEnergyDrink = "true"
|
Var EnableFreeEnergyDrink = "true"
|
||||||
DEBUGVAR EnableFreeEnergyDrink
|
DEBUGVAR EnableFreeEnergyDrink
|
||||||
; zone promote
|
; zone promote
|
||||||
If OpenFromPageBoard = 1 Then
|
If OpenFromPageBoard = 1 Then
|
||||||
|
|
|
||||||
31
xml/event/video_layout.inc
Normal file
31
xml/event/video_layout.inc
Normal file
|
|
@ -0,0 +1,31 @@
|
||||||
|
<Video>
|
||||||
|
<Width> 484 </Width>
|
||||||
|
<Height> 616 </Height>
|
||||||
|
<Loop> "true" </Loop>
|
||||||
|
<State>
|
||||||
|
eval(
|
||||||
|
If show_eng = "true" Then
|
||||||
|
Var return = "Enable"
|
||||||
|
Else
|
||||||
|
Var return = "Invisible
|
||||||
|
EndIf
|
||||||
|
)
|
||||||
|
</State>
|
||||||
|
<Filename> ###video_en </Filename>
|
||||||
|
</Video>
|
||||||
|
|
||||||
|
<Video>
|
||||||
|
<Width> 484 </Width>
|
||||||
|
<Height> 616 </Height>
|
||||||
|
<State>
|
||||||
|
eval(
|
||||||
|
If show_eng = "true" Then
|
||||||
|
Var return = "Invisible"
|
||||||
|
Else
|
||||||
|
Var return = "Enable"
|
||||||
|
EndIf
|
||||||
|
)
|
||||||
|
</State>
|
||||||
|
<Loop> "true" </Loop>
|
||||||
|
<Filename> ###video_th </Filename>
|
||||||
|
</Video>
|
||||||
|
|
@ -60,6 +60,11 @@
|
||||||
else:
|
else:
|
||||||
triple_pro_gen = False
|
triple_pro_gen = False
|
||||||
|
|
||||||
|
if current_file_name == "page_catalog_group_recommend_multiple_pro.skt":
|
||||||
|
multi_pro_gen = True
|
||||||
|
else:
|
||||||
|
multi_pro_gen = False
|
||||||
|
|
||||||
if current_file_name == "page_catalog_group_pro_15THB.skt":
|
if current_file_name == "page_catalog_group_pro_15THB.skt":
|
||||||
fixed_price = 15
|
fixed_price = 15
|
||||||
else:
|
else:
|
||||||
|
|
@ -169,24 +174,25 @@
|
||||||
out_xml('<FrameScroll> \r\n')
|
out_xml('<FrameScroll> \r\n')
|
||||||
if touch_less_gen == True or double_pro_gen or triple_pro_gen:
|
if touch_less_gen == True or double_pro_gen or triple_pro_gen:
|
||||||
out_xml('<Max> 16 </Max>\r\n')
|
out_xml('<Max> 16 </Max>\r\n')
|
||||||
|
elif multi_pro_gen:
|
||||||
|
out_xml('<Max> 4 </Max>\r\n')
|
||||||
out_xml('<X> 10 </X>\r\n')
|
out_xml('<X> 10 </X>\r\n')
|
||||||
out_xml('<Y> 497 </Y>\r\n')
|
out_xml('<Y> 497 </Y>\r\n')
|
||||||
out_xml('<Width> 1080 </Width>\r\n')
|
out_xml('<Width> 1080 </Width>\r\n')
|
||||||
out_xml('<ScrollHeight> "auto" </ScrollHeight>\r\n')
|
out_xml('<ScrollHeight> "auto" </ScrollHeight>\r\n')
|
||||||
out_xml('<Scroll> "Vertical" </Scroll>\r\n')
|
out_xml('<Scroll> "Vertical" </Scroll>\r\n')
|
||||||
out_xml('<Column> 4 </Column>\r\n')
|
|
||||||
|
if multi_pro_gen:
|
||||||
|
out_xml('<Column> 2 </Column>\r\n')
|
||||||
|
else:
|
||||||
|
out_xml('<Column> 4 </Column>\r\n')
|
||||||
out_xml('<Script>\r\n')
|
out_xml('<Script>\r\n')
|
||||||
|
|
||||||
if "all" in verbose:
|
if "all" in verbose:
|
||||||
print("current_file_name " + current_file_name)
|
print("current_file_name " + current_file_name)
|
||||||
|
|
||||||
if triple_pro_gen == True:
|
|
||||||
out_xml('\t Var block_index_override = 0\r\n')
|
if touch_less_gen == False or triple_pro_gen or double_pro_gen or multi_pro_gen:
|
||||||
out_xml('\t Var block_index_move = 0\r\n')
|
|
||||||
elif double_pro_gen == True:
|
|
||||||
out_xml('\t Var block_index_override = 0\r\n')
|
|
||||||
out_xml('\t Var block_index_move = 0\r\n')
|
|
||||||
elif touch_less_gen == False:
|
|
||||||
|
|
||||||
out_xml('\t Var block_index_override = 0\r\n')
|
out_xml('\t Var block_index_override = 0\r\n')
|
||||||
out_xml('\t Var block_index_move = 0\r\n')
|
out_xml('\t Var block_index_move = 0\r\n')
|
||||||
|
|
@ -248,10 +254,9 @@
|
||||||
|
|
||||||
if double_pro_gen == True or triple_pro_gen:
|
if double_pro_gen == True or triple_pro_gen:
|
||||||
out_xml(';dummy_layout.inc\r\n')
|
out_xml(';dummy_layout.inc\r\n')
|
||||||
|
|
||||||
|
def GenListMenu():
|
||||||
out_xml('; menu_new_list '+ str(len(menu_new_list))+'\r\n')
|
for spl in menu_new_list:
|
||||||
for spl in menu_new_list:
|
|
||||||
#product_code = s
|
#product_code = s
|
||||||
if spl[0] == "IGNORE":
|
if spl[0] == "IGNORE":
|
||||||
continue
|
continue
|
||||||
|
|
@ -277,14 +282,14 @@
|
||||||
str_con += spl[5] + '.Button,'
|
str_con += spl[5] + '.Button,'
|
||||||
if spl[6] != '-':
|
if spl[6] != '-':
|
||||||
str_con += spl[6] + '.Button,'
|
str_con += spl[6] + '.Button,'
|
||||||
|
|
||||||
if spl[4] != '-':
|
if spl[4] != '-':
|
||||||
str_con_var += spl[4] + '-'
|
str_con_var += spl[4] + '-'
|
||||||
if spl[5] != '-':
|
if spl[5] != '-':
|
||||||
str_con_var += spl[5] + '-'
|
str_con_var += spl[5] + '-'
|
||||||
if spl[6] != '-':
|
if spl[6] != '-':
|
||||||
str_con_var += spl[6] + '-'
|
str_con_var += spl[6] + '-'
|
||||||
|
|
||||||
str_con_var = str_con_var.replace("-", "")
|
str_con_var = str_con_var.replace("-", "")
|
||||||
if touch_less_gen == True or double_pro_gen == True or triple_pro_gen == True:
|
if touch_less_gen == True or double_pro_gen == True or triple_pro_gen == True:
|
||||||
str_con += "Disable=Invisible,"
|
str_con += "Disable=Invisible,"
|
||||||
|
|
@ -495,8 +500,8 @@
|
||||||
if menu_white_color_catalog == True:
|
if menu_white_color_catalog == True:
|
||||||
menu_color_font = '0xFFFFFF'
|
menu_color_font = '0xFFFFFF'
|
||||||
desc_color_font = '0xFFFFFF'
|
desc_color_font = '0xFFFFFF'
|
||||||
|
|
||||||
|
|
||||||
if spl[1] != "None":
|
if spl[1] != "None":
|
||||||
out_xml( '\t<Text>\r\n')
|
out_xml( '\t<Text>\r\n')
|
||||||
out_xml( '\t<X> 16 </X>\r\n')
|
out_xml( '\t<X> 16 </X>\r\n')
|
||||||
|
|
@ -588,7 +593,7 @@
|
||||||
out_xml( '\t<State> ' + shw + ' </State>\r\n')
|
out_xml( '\t<State> ' + shw + ' </State>\r\n')
|
||||||
|
|
||||||
#out_xml( '\t<Value> Var( "฿" + $' + spl[4] + '.Price ) </Value>\r\n')
|
#out_xml( '\t<Value> Var( "฿" + $' + spl[4] + '.Price ) </Value>\r\n')
|
||||||
|
|
||||||
if "inter" in param:
|
if "inter" in param:
|
||||||
if "free" in param:
|
if "free" in param:
|
||||||
out_xml( '\t<Value> "Free" </Value>\r\n')
|
out_xml( '\t<Value> "Free" </Value>\r\n')
|
||||||
|
|
@ -850,14 +855,14 @@
|
||||||
str_con += spl[9] + '.Button,'
|
str_con += spl[9] + '.Button,'
|
||||||
if spl[6] != '-':
|
if spl[6] != '-':
|
||||||
str_con += spl[10] + '.Button,'
|
str_con += spl[10] + '.Button,'
|
||||||
|
|
||||||
if spl[8] != '-':
|
if spl[8] != '-':
|
||||||
str_con_var += spl[8] + '-'
|
str_con_var += spl[8] + '-'
|
||||||
if spl[9] != '-':
|
if spl[9] != '-':
|
||||||
str_con_var += spl[9] + '-'
|
str_con_var += spl[9] + '-'
|
||||||
if spl[10] != '-':
|
if spl[10] != '-':
|
||||||
str_con_var += spl[10] + '-'
|
str_con_var += spl[10] + '-'
|
||||||
|
|
||||||
str_con_var = str_con_var.replace("-", "")
|
str_con_var = str_con_var.replace("-", "")
|
||||||
if touch_less_gen == True or double_pro_gen == True or triple_pro_gen == True:
|
if touch_less_gen == True or double_pro_gen == True or triple_pro_gen == True:
|
||||||
str_con += "Disable=Invisible,"
|
str_con += "Disable=Invisible,"
|
||||||
|
|
@ -884,7 +889,7 @@
|
||||||
pd_code_3 = pd_code_available
|
pd_code_3 = pd_code_available
|
||||||
pd_stage3 = '"Disable2"'
|
pd_stage3 = '"Disable2"'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
out_xml( '\t<Button>\r\n')
|
out_xml( '\t<Button>\r\n')
|
||||||
|
|
@ -1022,7 +1027,7 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
out_xml( '\t<Text>\r\n')
|
out_xml( '\t<Text>\r\n')
|
||||||
out_xml( '\t<X> 16 </X>\r\n')
|
out_xml( '\t<X> 16 </X>\r\n')
|
||||||
out_xml( '\t<Y> 164 </Y>\r\n')
|
out_xml( '\t<Y> 164 </Y>\r\n')
|
||||||
|
|
@ -1319,7 +1324,23 @@
|
||||||
count_test = count_test + 1
|
count_test = count_test + 1
|
||||||
#if count_test > 8 :
|
#if count_test > 8 :
|
||||||
# break
|
# break
|
||||||
|
|
||||||
|
|
||||||
|
if multi_pro_gen:
|
||||||
|
for i in range(1, 5):
|
||||||
|
out_put(';block'+i+'\r\n')
|
||||||
|
out_put('\t<Block>\r\n')
|
||||||
|
out_put('\t\t<State> ### </State> \r\n')
|
||||||
|
out_put('\t\t<MarginTop> 22 </MarginTop>\r\n')
|
||||||
|
out_put('\t\t<Width> 484 </Width>\r\n')
|
||||||
|
out_put('\t\t<Height> 602 </Height>\r\n')
|
||||||
|
GenListMenu()
|
||||||
|
out_put('\t\t</Block>')
|
||||||
|
out_put(';endblock'+i+'\r\n')
|
||||||
|
else:
|
||||||
|
out_xml('; menu_new_list '+ str(len(menu_new_list))+'\r\n')
|
||||||
|
GenListMenu()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
out_xml('</FrameScroll>\r\n')
|
out_xml('</FrameScroll>\r\n')
|
||||||
|
|
@ -1339,4 +1360,4 @@
|
||||||
out_xml('</EventClick>\r\n')
|
out_xml('</EventClick>\r\n')
|
||||||
out_xml('</Button>\r\n')
|
out_xml('</Button>\r\n')
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
83
xml/page_catalog_group_recommend_multi_pro.skt
Normal file
83
xml/page_catalog_group_recommend_multi_pro.skt
Normal file
|
|
@ -0,0 +1,83 @@
|
||||||
|
<?hurr
|
||||||
|
#include=menu_head.py
|
||||||
|
?>
|
||||||
|
|
||||||
|
<Popup>
|
||||||
|
<Cache> "Enable" </Cache>
|
||||||
|
<Width> 1080 </Width>
|
||||||
|
<Height> 1920 </Height>
|
||||||
|
;<Background> "0xeae6e1" </Background>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventOpen>
|
||||||
|
; On open
|
||||||
|
<?hurr
|
||||||
|
#include=menu_catalog_default_init.xml
|
||||||
|
?>
|
||||||
|
|
||||||
|
Var Menu1Selected = "PressForever"
|
||||||
|
|
||||||
|
Var OreoBigButtonEnable = "Enable"
|
||||||
|
|
||||||
|
If $12-01-01-0001.Button = "Invisible" Then
|
||||||
|
Var esp102101001Enable = "Invisible"
|
||||||
|
Var esp122101001Enable = "Enable"
|
||||||
|
|
||||||
|
Else
|
||||||
|
Var esp102101001Enable = "Enable"
|
||||||
|
Var esp122101001Enable = "Invisible"
|
||||||
|
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
SAVELOG PreviseXMLFileName2
|
||||||
|
|
||||||
|
Var Timeout = 0
|
||||||
|
|
||||||
|
If show_eng = "true" Then
|
||||||
|
|
||||||
|
Var text_unavailable = "UNAVAILABLE###size=16"
|
||||||
|
Else
|
||||||
|
Var text_unavailable = "หมด###size=32"
|
||||||
|
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
<?hurr
|
||||||
|
#include=menu_catalog_new_menu.xml
|
||||||
|
?>
|
||||||
|
|
||||||
|
</EventOpen>
|
||||||
|
|
||||||
|
|
||||||
|
<?hurr
|
||||||
|
#include=menu_catalog_new.py
|
||||||
|
?>
|
||||||
|
|
||||||
|
|
||||||
|
<?hurr
|
||||||
|
#include=menu_new_layout_gen_v2.py
|
||||||
|
?>
|
||||||
|
<?hurr
|
||||||
|
#include=menu_new_layout_gen.py
|
||||||
|
?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
;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>
|
||||||
|
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue