fix bug topview2 and page_collect_point_3_28.xml

This commit is contained in:
wanlop run 2025-02-07 11:21:40 +07:00
parent 46cd6603d0
commit 0793aaeeb6
91 changed files with 10797 additions and 1764 deletions

View file

@ -250,14 +250,17 @@ If BoxID = 105005 Then
Var SugarZeroCalFreeFlag = 1
EndIf
If BoxID = 201714 Then
If BoxID = 201714 Then
Var RedStringOfFatePro = 1
Var OvaltineSchoolPro = 1
EndIf
If BoxID = 201714 Then
If BoxID = 201729 Then
Var RedStringOfFatePro = 1
Var OvaltineSchoolPro = 1
EndIf
If BoxID = 173249 Then
Var OvaltineSchoolPro = 1

View file

@ -1103,7 +1103,7 @@
DEBUGVAR EnableMultiInstance
STRCONTAIN "MyanmarLang" XMLProfile MyanmarLangEnable
;Var MyanmarLangEnable = "false"
Var MyanmarLangEnable = "false"
;Var MyanmarLangEnable = ""
@ -1163,7 +1163,7 @@
Var show_eng_button_stage = "Invisible"
Var XButtonMember = 384
Var XButtonMember = 212
Var YButtonMember = 1695
If Not#LanguageLoaded = "" Then
@ -2244,6 +2244,14 @@ PRICE "Reset" "-"
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert2.xml"
If DoorCupPosition = "bottom" Then
If CupOnArm = "true" Then
Else
__CMD "CLI" "arm_id=3,arm_position=posi_espresso_ii" "-" "-"
EndIf
EndIf
Var OpenFromPageBoard = 1

File diff suppressed because it is too large Load diff

View file

@ -40,7 +40,516 @@
Var block_index_move = 0
</Script>
;dummy_layout.inc
; menu_new_list 69
; menu_new_list 70
; ==================> Len = 15
; 12-01-01-0030 12-01-02-0030 12-01-03-0030
<Block>
<MarginLeft> 33 </MarginLeft>
<MarginTop> 22 </MarginTop>
<Width> 225 </Width>
<Height> 296 </Height>
<State> Flag( 12-01-01-0030.Button,12-01-02-0030.Button,12-01-03-0030.Button,DateTimeStart="2025/02/17T00:00:00",Var=TaiwaneseDrinkMenu,$Sum120101003012010200301201030030) </State>
<Button>
<State> $Sum120101003012010200301201030030 </State>
<Filename> "ROOT/taobin_project/image/page_drink_n//bn_Iced_taiwanese_Tea_Cafe_Latte.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_drink_press_n//bn_Iced_taiwanese_Tea_Cafe_Latte.png" </FilenamePress>
<FilenameDisable> "ROOT/taobin_project/image/page_drink_disable_n2//bn_Iced_taiwanese_Tea_Cafe_Latte.png" </FilenameDisable>
<OverlayImage> xmlpro( 12-01-01-0030, "ROOT/taobin_project/image/menu_overlay_set/button_overlay_%s_posi1.png") </OverlayImage>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventOnClick>
Var NameDrink = "Taiwanese Tea Cafe Latte"
Var NameDrinkTH = "กาแฟชานมไต้หวัน"
Var DrinkDescriptionTH = "ชาไต้หวัน, กาแฟ, นม และ น้ำตาล"
Var DrinkDescription = "Taiwanese Tea, Coffee, Milk And Sugar"
Var PictureDrink = "ROOT/taobin_project/image/page_drink_picture2_n/" + "bn_Iced_taiwanese_Tea_Cafe_Latte.png"
Var OpenFromXML = CurrentXMLFileName2
Var PriceD1 = $12-01-01-0030.Price
Var PriceD2 = $12-01-02-0030.Price
Var PriceD3 = $12-01-03-0030.Price
Var PD_CODE1 = "12-01-01-0030"
Var PD_CODE2 = "12-01-02-0030"
Var PD_CODE3 = "12-01-03-0030"
Var PD_STAGE_1 = $12-01-01-0030.Button
Var PD_STAGE_2 = $12-01-02-0030.Button
Var PD_STAGE_3 = $12-01-03-0030.Button
Var OverlayMenuFilter !assigned xmlpro( 12-01-01-0030, "ROOT/taobin_project/image/menu_overlay_set/button_overlay_pic_%s_posi1.png")
DEBUGVAR OverlayMenuFilter
Var SelectCountDrinkType = 0
Var DefaultDrinkType = 0
If PD_STAGE_1 = "Enable" Then
Var SelectCountDrinkType = SelectCountDrinkType + 1
Var DefaultDrinkType = 1
EndIf
If PD_STAGE_2 = "Enable" Then
Var SelectCountDrinkType = SelectCountDrinkType + 1
Var DefaultDrinkType = 2
EndIf
If PD_STAGE_3 = "Enable" Then
Var SelectCountDrinkType = SelectCountDrinkType + 1
Var DefaultDrinkType = 3
EndIf
If PD_STAGE_2 = "Enable" Then
Topping "Load" "12-01-02-0030"
Else
If PD_STAGE_1 = "Enable" Then
Topping "Load" "12-01-01-0030"
Else
Topping "Load" "12-01-03-0030"
EndIf
EndIf
Var menu_name_eng_hot = $12-01-01-0030.NameE
Var menu_desc_eng_hot = $12-01-01-0030.descriptionE
Var menu_name_thai_hot = $12-01-01-0030.Name
Var menu_desc_thai_hot = $12-01-01-0030.description
Var menu_name_eng_cold = $12-01-02-0030.NameE
Var menu_desc_eng_cold = $12-01-02-0030.descriptionE
Var menu_name_thai_cold = $12-01-02-0030.Name
Var menu_desc_thai_cold = $12-01-02-0030.description
Var menu_name_eng_blender = $12-01-03-0030.NameE
Var menu_desc_eng_blender = $12-01-03-0030.descriptionE
Var menu_name_thai_blender = $12-01-03-0030.Name
Var menu_desc_thai_blender = $12-01-03-0030.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> "Taiwanese Tea Cafe Latte" </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> "Taiwanese Tea, Coffee, Milk
And Sugar" </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> $12-01-01-0030.Button </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> $12-01-01-0030.Button </State>
<Value> StringFmt( $12-01-01-0030.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-01-02-0030.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-01-02-0030.Button </State>
<Value> StringFmt( $12-01-02-0030.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> $12-01-03-0030.Button </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> $12-01-03-0030.Button </State>
<Value> StringFmt( $12-01-03-0030.Price , DisplayFormat, PreScaleConvertShow) </Value>; test
</Text>
<Image>
<X> 81 </X>
<Y> 264 </Y>
<State>
eval(
If ICE_PROCESS_STATUS = 2 Then
If $Sum120101003012010200301201030030 = "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 $Sum120101003012010200301201030030 = "Disable" Then
STRCONTAIN "ERR" $12-01-01-0030.TAG tag1_is_disable
STRCONTAIN "ERR" $12-01-02-0030.TAG tag2_is_disable
STRCONTAIN "ERR" $12-01-03-0030.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> $Sum120101003012010200301201030030 </State>
<Value> text_unavailable </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; 12-21-01-0030 12-21-02-0030 12-21-03-0030
<Block>
<MarginLeft> 33 </MarginLeft>
<MarginTop> 22 </MarginTop>
<Width> 225 </Width>
<Height> 296 </Height>
<State> Flag( 12-21-01-0030.Button,12-21-02-0030.Button,12-21-03-0030.Button,DateTimeStart="2025/02/17T00:00:00",Var=TaiwaneseDrinkMenu,$Sum122101003012210200301221030030) </State>
<Button>
<State> $Sum122101003012210200301221030030 </State>
<Filename> "ROOT/taobin_project/image/page_drink_n//bn_Iced_taiwanese_Tea_Cafe_Latte.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_drink_press_n//bn_Iced_taiwanese_Tea_Cafe_Latte.png" </FilenamePress>
<FilenameDisable> "ROOT/taobin_project/image/page_drink_disable_n2//bn_Iced_taiwanese_Tea_Cafe_Latte.png" </FilenameDisable>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<OverlayImage> xmlpro( 12-21-01-0030, "ROOT/taobin_project/image/menu_overlay_set/button_overlay_%s_posi1.png") </OverlayImage>
<EventOnClick>
Var NameDrink = "Taiwanese Tea Cafe Latte"
Var NameDrinkTH = "กาแฟชานมไต้หวัน"
Var DrinkDescriptionTH = "ชาไต้หวัน, กาแฟ, นม และ น้ำตาล"
Var DrinkDescription = "Taiwanese Tea, Coffee, Milk And Sugar"
Var PictureDrink = "ROOT/taobin_project/image/page_drink_picture2_n/" + "bn_Iced_taiwanese_Tea_Cafe_Latte.png"
Var OpenFromXML = CurrentXMLFileName2
Var PriceD1 = $12-21-01-0030.Price
Var PriceD2 = $12-21-02-0030.Price
Var PriceD3 = $12-21-03-0030.Price
Var PD_CODE1 = "12-21-01-0030"
Var PD_CODE2 = "12-21-02-0030"
Var PD_CODE3 = "12-21-03-0030"
Var PD_STAGE_1 = $12-21-01-0030.Button
Var PD_STAGE_2 = $12-21-02-0030.Button
Var PD_STAGE_3 = $12-21-03-0030.Button
Var OverlayMenuFilter !assigned xmlpro( 12-21-01-0030, "ROOT/taobin_project/image/menu_overlay_set/button_overlay_pic_%s_posi1.png")
DEBUGVAR OverlayMenuFilter
Var SelectCountDrinkType = 0
Var DefaultDrinkType = 0
If PD_STAGE_1 = "Enable" Then
Var SelectCountDrinkType = SelectCountDrinkType + 1
Var DefaultDrinkType = 1
EndIf
If PD_STAGE_2 = "Enable" Then
Var SelectCountDrinkType = SelectCountDrinkType + 1
Var DefaultDrinkType = 2
EndIf
If PD_STAGE_3 = "Enable" Then
Var SelectCountDrinkType = SelectCountDrinkType + 1
Var DefaultDrinkType = 3
EndIf
If PD_STAGE_2 = "Enable" Then
Topping "Load" "12-21-02-0030"
Else
If PD_STAGE_1 = "Enable" Then
Topping "Load" "12-21-01-0030"
Else
Topping "Load" "12-21-03-0030"
EndIf
EndIf
Var menu_name_eng_hot = $12-21-01-0030.NameE
Var menu_desc_eng_hot = $12-21-01-0030.descriptionE
Var menu_name_thai_hot = $12-21-01-0030.Name
Var menu_desc_thai_hot = $12-21-01-0030.description
Var menu_name_eng_cold = $12-21-02-0030.NameE
Var menu_desc_eng_cold = $12-21-02-0030.descriptionE
Var menu_name_thai_cold = $12-21-02-0030.Name
Var menu_desc_thai_cold = $12-21-02-0030.description
Var menu_name_eng_blender = $12-21-03-0030.NameE
Var menu_desc_eng_blender = $12-21-03-0030.descriptionE
Var menu_name_thai_blender = $12-21-03-0030.Name
Var menu_desc_thai_blender = $12-21-03-0030.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> "Taiwanese Tea Cafe Latte" </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> "Taiwanese Tea, Coffee, Milk
And Sugar" </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> $12-21-01-0030.Button </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> $12-21-01-0030.Button </State>
<Value> StringFmt( $12-21-01-0030.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-21-02-0030.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-21-02-0030.Button </State>
<Value> StringFmt( $12-21-02-0030.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> $12-21-03-0030.Button </State>
</Image>
<Text>
<X> 183 </X>
<Y> TextPriceMenuY </Y>
<Size> TextPriceMenuSize </Size>
<Width>220</Width>
<Font> KanitMediumTTF </Font>
<Color> 0x6F5F51 </Color>
<ColorDisable> 0xEAE6E1 </ColorDisable>
<State> $12-21-03-0030.Button </State>
<Value> StringFmt( $12-21-03-0030.Price , DisplayFormat, PreScaleConvertShow) </Value>; test
</Text>
<Image>
<X> 81 </X>
<Y> 264 </Y>
<State>
eval(
If ICE_PROCESS_STATUS = 2 Then
If $Sum122101003012210200301221030030 = "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 $Sum122101003012210200301221030030 = "Disable" Then
STRCONTAIN "ERR" $12-21-01-0030.TAG tag1_is_disable
STRCONTAIN "ERR" $12-21-02-0030.TAG tag2_is_disable
STRCONTAIN "ERR" $12-21-03-0030.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> $Sum122101003012210200301221030030 </State>
<Value> text_unavailable </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; ==================> Len = 15
; 12-01-01-0074 12-01-02-0074 12-01-03-0074
<Block>

View 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/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
?>
</Popup>

View file

@ -0,0 +1,822 @@
<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"
<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
; menu_new_list 3
; ==================> Len = 15
; 12-51-01-0001 - -
<Block>
<MarginLeft> 33 </MarginLeft>
<MarginTop> 22 </MarginTop>
<Width> 225 </Width>
<Height> 296 </Height>
<State> Flag( 12-51-01-0001.Button,$Sum1251010001) </State>
<Button>
<State> $Sum1251010001 </State>
<Filename> "ROOT/taobin_project/image/page_drink_n//bn_deep_fried_chicken.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_drink_press_n//bn_deep_fried_chicken.png" </FilenamePress>
<FilenameDisable> "ROOT/taobin_project/image/page_drink_disable_n2//bn_deep_fried_chicken.png" </FilenameDisable>
<OverlayImage> xmlpro( 12-51-01-0001, "ROOT/taobin_project/image/menu_overlay_set/button_overlay_%s_posi1.png") </OverlayImage>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventOnClick>
Var NameDrink = "Chicken Fire"
Var NameDrinkTH = "ไก่จ๋าได้ยินมั้ยว่าเสียงใคร"
Var DrinkDescriptionTH = "ไก่ทอดไหม้ๆ อร่อยที่ไม่มีใครอยากเหมือน"
Var DrinkDescription = "Delicious burnt fried chicken that no one wants"
Var PictureDrink = "ROOT/taobin_project/image/page_drink_picture2_n/" + "bn_deep_fried_chicken.png"
Var OpenFromXML = CurrentXMLFileName2
Var PriceD1 = $12-51-01-0001.Price
Var PriceD2 = $-.Price
Var PriceD3 = $-.Price
Var PD_CODE1 = "12-51-01-0001"
Var PD_CODE2 = "##-##-##-####"
Var PD_CODE3 = "##-##-##-####"
Var PD_STAGE_1 = $12-51-01-0001.Button
Var PD_STAGE_2 = "Disable2"
Var PD_STAGE_3 = "Disable2"
Var OverlayMenuFilter !assigned xmlpro( 12-51-01-0001, "ROOT/taobin_project/image/menu_overlay_set/button_overlay_pic_%s_posi1.png")
DEBUGVAR OverlayMenuFilter
Var SelectCountDrinkType = 0
Var DefaultDrinkType = 0
If PD_STAGE_1 = "Enable" Then
Var SelectCountDrinkType = SelectCountDrinkType + 1
Var DefaultDrinkType = 1
EndIf
If PD_STAGE_2 = "Enable" Then
Var SelectCountDrinkType = SelectCountDrinkType + 1
Var DefaultDrinkType = 2
EndIf
If PD_STAGE_3 = "Enable" Then
Var SelectCountDrinkType = SelectCountDrinkType + 1
Var DefaultDrinkType = 3
EndIf
If PD_STAGE_2 = "Enable" Then
Topping "Load" "-"
Else
If PD_STAGE_1 = "Enable" Then
Topping "Load" "12-51-01-0001"
Else
Topping "Load" "-"
EndIf
EndIf
Var menu_name_eng_hot = $12-51-01-0001.NameE
Var menu_desc_eng_hot = $12-51-01-0001.descriptionE
Var menu_name_thai_hot = $12-51-01-0001.Name
Var menu_desc_thai_hot = $12-51-01-0001.description
Var menu_name_eng_cold = $##-##-##-####.NameE
Var menu_desc_eng_cold = $##-##-##-####.descriptionE
Var menu_name_thai_cold = $##-##-##-####.Name
Var menu_desc_thai_cold = $##-##-##-####.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> "Chicken Fire" </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> "Delicious burnt fried chicken that no one wants" </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> $12-51-01-0001.Button </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> $12-51-01-0001.Button </State>
<Value> StringFmt( $12-51-01-0001.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> "Invisible" </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> "Invisible" </State>
<Value> StringFmt( $-.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
If $Sum1251010001 = "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 $Sum1251010001 = "Disable" Then
STRCONTAIN "ERR" $12-51-01-0001.TAG tag1_is_disable
STRCONTAIN "ERR" $##-##-##-####.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> $Sum1251010001 </State>
<Value> text_unavailable </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; - - -
; ==================> Len = 15
; 12-51-01-0002 - -
<Block>
<MarginLeft> 33 </MarginLeft>
<MarginTop> 22 </MarginTop>
<Width> 225 </Width>
<Height> 296 </Height>
<State> Flag( 12-51-01-0002.Button,$Sum1251010002) </State>
<Button>
<State> $Sum1251010002 </State>
<Filename> "ROOT/taobin_project/image/page_drink_n//bn_deep_fried_meatball.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_drink_press_n//bn_deep_fried_meatball.png" </FilenamePress>
<FilenameDisable> "ROOT/taobin_project/image/page_drink_disable_n2//bn_deep_fried_meatball.png" </FilenameDisable>
<OverlayImage> xmlpro( 12-51-01-0002, "ROOT/taobin_project/image/menu_overlay_set/button_overlay_%s_posi1.png") </OverlayImage>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventOnClick>
Var NameDrink = "Meatball"
Var NameDrinkTH = "ลูกที่ไม่เป็นชิ้นดี"
Var DrinkDescriptionTH = "ลูกชิ้นกรอบๆ เคี้ยวจนฟันหลุดออกมาหลายซี่"
Var DrinkDescription = "Crispy meatballs, chew until several teeth fall out"
Var PictureDrink = "ROOT/taobin_project/image/page_drink_picture2_n/" + "bn_deep_fried_meatball.png"
Var OpenFromXML = CurrentXMLFileName2
Var PriceD1 = $12-51-01-0002.Price
Var PriceD2 = $-.Price
Var PriceD3 = $-.Price
Var PD_CODE1 = "12-51-01-0002"
Var PD_CODE2 = "##-##-##-####"
Var PD_CODE3 = "##-##-##-####"
Var PD_STAGE_1 = $12-51-01-0002.Button
Var PD_STAGE_2 = "Disable2"
Var PD_STAGE_3 = "Disable2"
Var OverlayMenuFilter !assigned xmlpro( 12-51-01-0002, "ROOT/taobin_project/image/menu_overlay_set/button_overlay_pic_%s_posi1.png")
DEBUGVAR OverlayMenuFilter
Var SelectCountDrinkType = 0
Var DefaultDrinkType = 0
If PD_STAGE_1 = "Enable" Then
Var SelectCountDrinkType = SelectCountDrinkType + 1
Var DefaultDrinkType = 1
EndIf
If PD_STAGE_2 = "Enable" Then
Var SelectCountDrinkType = SelectCountDrinkType + 1
Var DefaultDrinkType = 2
EndIf
If PD_STAGE_3 = "Enable" Then
Var SelectCountDrinkType = SelectCountDrinkType + 1
Var DefaultDrinkType = 3
EndIf
If PD_STAGE_2 = "Enable" Then
Topping "Load" "-"
Else
If PD_STAGE_1 = "Enable" Then
Topping "Load" "12-51-01-0002"
Else
Topping "Load" "-"
EndIf
EndIf
Var menu_name_eng_hot = $12-51-01-0002.NameE
Var menu_desc_eng_hot = $12-51-01-0002.descriptionE
Var menu_name_thai_hot = $12-51-01-0002.Name
Var menu_desc_thai_hot = $12-51-01-0002.description
Var menu_name_eng_cold = $##-##-##-####.NameE
Var menu_desc_eng_cold = $##-##-##-####.descriptionE
Var menu_name_thai_cold = $##-##-##-####.Name
Var menu_desc_thai_cold = $##-##-##-####.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> "Meatball" </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> "Crispy meatballs, chew until several teeth fall out" </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> $12-51-01-0002.Button </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> $12-51-01-0002.Button </State>
<Value> StringFmt( $12-51-01-0002.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> "Invisible" </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> "Invisible" </State>
<Value> StringFmt( $-.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
If $Sum1251010002 = "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 $Sum1251010002 = "Disable" Then
STRCONTAIN "ERR" $12-51-01-0002.TAG tag1_is_disable
STRCONTAIN "ERR" $##-##-##-####.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> $Sum1251010002 </State>
<Value> text_unavailable </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; - - -
; ==================> Len = 15
; 12-51-01-0003 - -
<Block>
<MarginLeft> 33 </MarginLeft>
<MarginTop> 22 </MarginTop>
<Width> 225 </Width>
<Height> 296 </Height>
<State> Flag( 12-51-01-0003.Button,$Sum1251010003) </State>
<Button>
<State> $Sum1251010003 </State>
<Filename> "ROOT/taobin_project/image/page_drink_n//bn_deep_fried_nugget.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_drink_press_n//bn_deep_fried_nugget.png" </FilenamePress>
<FilenameDisable> "ROOT/taobin_project/image/page_drink_disable_n2//bn_deep_fried_nugget.png" </FilenameDisable>
<OverlayImage> xmlpro( 12-51-01-0003, "ROOT/taobin_project/image/menu_overlay_set/button_overlay_%s_posi1.png") </OverlayImage>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventOnClick>
Var NameDrink = "Nugget"
Var NameDrinkTH = "นักสเก๊ตโย่วๆ"
Var DrinkDescriptionTH = "นักเก๊ตสูตรเด็ด ผสมเนื้อแมวเหมียว"
Var DrinkDescription = "Great recipe for nuggets Mix with cat meat"
Var PictureDrink = "ROOT/taobin_project/image/page_drink_picture2_n/" + "bn_deep_fried_nugget.png"
Var OpenFromXML = CurrentXMLFileName2
Var PriceD1 = $12-51-01-0003.Price
Var PriceD2 = $-.Price
Var PriceD3 = $-.Price
Var PD_CODE1 = "12-51-01-0003"
Var PD_CODE2 = "##-##-##-####"
Var PD_CODE3 = "##-##-##-####"
Var PD_STAGE_1 = $12-51-01-0003.Button
Var PD_STAGE_2 = "Disable2"
Var PD_STAGE_3 = "Disable2"
Var OverlayMenuFilter !assigned xmlpro( 12-51-01-0003, "ROOT/taobin_project/image/menu_overlay_set/button_overlay_pic_%s_posi1.png")
DEBUGVAR OverlayMenuFilter
Var SelectCountDrinkType = 0
Var DefaultDrinkType = 0
If PD_STAGE_1 = "Enable" Then
Var SelectCountDrinkType = SelectCountDrinkType + 1
Var DefaultDrinkType = 1
EndIf
If PD_STAGE_2 = "Enable" Then
Var SelectCountDrinkType = SelectCountDrinkType + 1
Var DefaultDrinkType = 2
EndIf
If PD_STAGE_3 = "Enable" Then
Var SelectCountDrinkType = SelectCountDrinkType + 1
Var DefaultDrinkType = 3
EndIf
If PD_STAGE_2 = "Enable" Then
Topping "Load" "-"
Else
If PD_STAGE_1 = "Enable" Then
Topping "Load" "12-51-01-0003"
Else
Topping "Load" "-"
EndIf
EndIf
Var menu_name_eng_hot = $12-51-01-0003.NameE
Var menu_desc_eng_hot = $12-51-01-0003.descriptionE
Var menu_name_thai_hot = $12-51-01-0003.Name
Var menu_desc_thai_hot = $12-51-01-0003.description
Var menu_name_eng_cold = $##-##-##-####.NameE
Var menu_desc_eng_cold = $##-##-##-####.descriptionE
Var menu_name_thai_cold = $##-##-##-####.Name
Var menu_desc_thai_cold = $##-##-##-####.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> "Nugget" </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> "Great recipe for nuggets Mix with cat meat" </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> $12-51-01-0003.Button </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> $12-51-01-0003.Button </State>
<Value> StringFmt( $12-51-01-0003.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> "Invisible" </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> "Invisible" </State>
<Value> StringFmt( $-.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
If $Sum1251010003 = "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 $Sum1251010003 = "Disable" Then
STRCONTAIN "ERR" $12-51-01-0003.TAG tag1_is_disable
STRCONTAIN "ERR" $##-##-##-####.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> $Sum1251010003 </State>
<Value> text_unavailable </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; - - -
</FrameScroll>
; Cart
<Button>
<X> 915 </X>
<Y> 1769 </Y>
<State> showCart </State>
<Filename> cart_image_bn </Filename>
<FilenamePress> cart_image_bp </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Open "ROOT/taobin_project/xml/page_payment_multi.xml"
</EventClick>
</Button>
</Popup>

File diff suppressed because it is too large Load diff

View file

@ -805,7 +805,7 @@
EndIf
Var FlagForProtectXMLOpenDouble = 0
</EventOpen>
<Timeout> 1000 </Timeout>
<EventTimeout>
@ -818,7 +818,7 @@
Var Timeout = Timeout + 1
If Timeout > 5 Then
Var FlagForProtectXMLOpenDouble = 1
; process next page
Function 2
EndIf
@ -1016,8 +1016,9 @@
<Volume> SoundVolume </Volume>
<EventClick>
Open "ROOT/taobin_project/xml/page_display_get_15_discount.xml"
If FlagForProtectXMLOpenDouble = 0 Then
Open "ROOT/taobin_project/xml/page_display_get_15_discount.xml"
EndIf
</EventClick>
</Button>

96
xml/test_all_syntax.xml Normal file
View file

@ -0,0 +1,96 @@
<Page>
<Width> 1080 </Width>
<Height> 1312 </Height>
<Volume> SoundVolume </Volume>
<Background> BackgroundColor </Background>
<EventOpen>
; On open
Machine AndroidTemperatureUpdateNow
Var Timeout = 0
Var Index = 1
DEBUGVAR TestArrary[0]
DEBUGVAR TestArrary[Index]
DEBUGVAR TestArrary[2]
DEBUGVAR TestArrary[3]
; xml-open-0 /mnt/sdcard/coffeevending/taobin_project/xml/test_all_syntax.xml
SAVELOG "TEST IF"
Var idx = 0
If idx = 0 Then
SAVELOG "================ True OK"
Else
SAVELOG "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
EndIf
Var idx = 1
If idx = 0 Then
SAVELOG "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
Else
SAVELOG "================ True OK"
EndIf
SAVELOG "TEST ELSE IF"
Var idx = 0
Var idx2 = 0
If idx = 0 Then
SAVELOG "###### ====== ######"
ElIf idx = 1 Then
SAVELOG "++++++ ====== ++++++"
EndIf
SAVELOG "TEST LOOP"
For idx < 10 Loop
Var idx = idx + 1
DEBUGVAR idx
If idx = 5 Then
SAVELOG "===========================================================================================###########################################################"
Else
SAVELOG "Hurr Hurr Hurr Hurr"
EndIf
Var TestLoopArray[idx] = idx + 10
Var idx2 = 0
For idx2 < 30 Loop
Var idx2 = idx2 + 1
DEBUGVAR idx2
If idx2 < 15 Then
SAVELOG "###### TTTTTT ######"
Else
SAVELOG "++++++ TTTTTT ++++++"
EndIf
EndFor
EndFor
Var idx = 0
For idx < 10 Loop
Var idx = idx + 1
DEBUGVAR TestLoopArray[idx]
EndFor
</EventOpen>
<Timeout> 1000 </Timeout>
<EventTimeout>
Var Timeout = Timeout + 1
If Timeout > 15 Then
Open "ROOT/taobin_project/xml/page_board.xml"
EndIf
Refresh
TimerReset
</EventTimeout>
</Page>

View file

@ -119,31 +119,7 @@
EndIf
EndIf
READ_FILE "/mnt/sdcard/coffeevending/openfile_xml_0" openfile_xml_0
READ_FILE "/mnt/sdcard/coffeevending/openfile_xml_2" openfile_xml_2
If openfile_xml_0 = "/mnt/sdcard/coffeevending/taobin_project/xml/page_main_blank.xml" Then
If openfile_xml_2 = "/mnt/sdcard/coffeevending/taobin_project/xml/page_list.xml" Then
If CountUpForProtectBlankScreenInstance0 = "" Then
Var CountUpForProtectBlankScreenInstance0 = 0
EndIf
If CountUpForProtectBlankScreenInstance0 >= 4 Then
OpenInst 0 "/mnt/sdcard/coffeevending/taobin_project/xml/page_board.xml"
SAVELOG "================= OPEN FROM INSTANCE 0 STUCK ======================"
EndIf
Var CountUpForProtectBlankScreenInstance0 = CountUpForProtectBlankScreenInstance0 + 1
DEBUGVAR CountUpForProtectBlankScreenInstance0
Else
Var CountUpForProtectBlankScreenInstance0 = 0
EndIf
EndIf
TRY exhaust_fan_schedule
;include="ROOT/taobin_project/inc/language_toggle_mode.inc"