do many
This commit is contained in:
parent
7dbdc5caeb
commit
1d06d8f72d
28 changed files with 255 additions and 1077 deletions
|
|
@ -47,791 +47,25 @@
|
|||
|
||||
|
||||
<FrameScroll>
|
||||
<Max> 16 </Max>
|
||||
<Max> 12 </Max>
|
||||
<X> 10 </X>
|
||||
<Y> 497 </Y>
|
||||
<Width> 1080 </Width>
|
||||
<ScrollHeight> "auto" </ScrollHeight>
|
||||
<Scroll> "Vertical" </Scroll>
|
||||
<Column> 4 </Column>
|
||||
<Mode> "EnableAdjust" </Mode>
|
||||
<Script>
|
||||
Var block_index_override = 0
|
||||
Var block_index_move = 0
|
||||
Var ColumnOverride[0] = 2
|
||||
Var ColumnOverride[1] = 2
|
||||
|
||||
Var ColumnGravity[0] = 3
|
||||
Var ColumnGravity[1] = 3
|
||||
|
||||
</Script>
|
||||
<Block>
|
||||
<MarginLeft> 33 </MarginLeft>
|
||||
<MarginTop> 22 </MarginTop>
|
||||
<Width> 225 </Width>
|
||||
<Height> 296 </Height>
|
||||
<State> "Enable" </State>
|
||||
</Block>
|
||||
<Block>
|
||||
<MarginLeft> 33 </MarginLeft>
|
||||
<MarginTop> 22 </MarginTop>
|
||||
<Width> 225 </Width>
|
||||
<Height> 296 </Height>
|
||||
<State> "Enable" </State>
|
||||
</Block>
|
||||
|
||||
|
||||
; ==================> Len = 19
|
||||
; 12-01-01-0004 12-01-02-0002 12-01-03-0002
|
||||
<Block>
|
||||
<MarginLeft> 33 </MarginLeft>
|
||||
<MarginTop> 22 </MarginTop>
|
||||
<Width> 225 </Width>
|
||||
<Height> 296 </Height>
|
||||
<State> Flag( 12-01-01-0004.Button,12-01-02-0002.Button,12-01-03-0002.Button,DateTimeEnd="2024/12/01T00:00:00",$Sum120101000412010200021201030002) </State>
|
||||
<Button>
|
||||
<State> $Sum120101000412010200021201030002 </State>
|
||||
<Filename> "ROOT/taobin_project/image/page_drink_n//bn_hot_latte.png" </Filename>
|
||||
<FilenamePress> "ROOT/taobin_project/image/page_drink_press_n//bn_hot_latte.png" </FilenamePress>
|
||||
<FilenameDisable> "ROOT/taobin_project/image/page_drink_disable_n2//bn_hot_latte.png" </FilenameDisable>
|
||||
<OverlayImage> xmlpro( 12-01-01-0004, "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 = "LATTE"
|
||||
Var NameDrinkTH = "ลาเต้"
|
||||
Var DrinkDescriptionTH = "กาแฟ นม และ ฟองนม"
|
||||
Var DrinkDescription = "Espresso, Milk, Foamed milk"
|
||||
Var PictureDrink = "ROOT/taobin_project/image/page_drink_picture2_n/" + "bn_hot_latte.png"
|
||||
Var OpenFromXML = CurrentXMLFileName2
|
||||
Var PriceD1 = $12-01-01-0004.Price
|
||||
Var PriceD2 = $12-01-02-0002.Price
|
||||
Var PriceD3 = $12-01-03-0002.Price
|
||||
Var PD_CODE1 = "12-01-01-0004"
|
||||
Var PD_CODE2 = "12-01-02-0002"
|
||||
Var PD_CODE3 = "12-01-03-0002"
|
||||
Var PD_STAGE_1 = $12-01-01-0004.Button
|
||||
Var PD_STAGE_2 = $12-01-02-0002.Button
|
||||
Var PD_STAGE_3 = $12-01-03-0002.Button
|
||||
Var OverlayMenuFilter !assigned xmlpro( 12-01-01-0004, "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-0002"
|
||||
Else
|
||||
If PD_STAGE_1 = "Enable" Then
|
||||
Topping "Load" "12-01-01-0004"
|
||||
Else
|
||||
Topping "Load" "12-01-03-0002"
|
||||
EndIf
|
||||
EndIf
|
||||
Var menu_name_eng_hot = $12-01-01-0004.NameE
|
||||
Var menu_desc_eng_hot = $12-01-01-0004.descriptionE
|
||||
Var menu_name_thai_hot = $12-01-01-0004.Name
|
||||
Var menu_desc_thai_hot = $12-01-01-0004.description
|
||||
|
||||
Var menu_name_eng_cold = $12-01-02-0002.NameE
|
||||
Var menu_desc_eng_cold = $12-01-02-0002.descriptionE
|
||||
Var menu_name_thai_cold = $12-01-02-0002.Name
|
||||
Var menu_desc_thai_cold = $12-01-02-0002.description
|
||||
|
||||
Var menu_name_eng_blender = $12-01-03-0002.NameE
|
||||
Var menu_desc_eng_blender = $12-01-03-0002.descriptionE
|
||||
Var menu_name_thai_blender = $12-01-03-0002.Name
|
||||
Var menu_desc_thai_blender = $12-01-03-0002.description
|
||||
|
||||
DEBUGVAR PD_STAGE_1
|
||||
DEBUGVAR PD_STAGE_2
|
||||
DEBUGVAR PD_STAGE_3
|
||||
Var SelectDrinkType = 0
|
||||
|
||||
Var OpenFromInstMenuTab = 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> "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> "Espresso, Milk, Foamed milk" </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-0004.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-0004.Button </State>
|
||||
<Value> StringFmt( $12-01-01-0004.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-0002.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-0002.Button </State>
|
||||
<Value> StringFmt( $12-01-02-0002.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-0002.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-0002.Button </State>
|
||||
<Value> StringFmt( $12-01-03-0002.Price , DisplayFormat, PreScaleConvertShow) </Value>; test
|
||||
</Text>
|
||||
<Image>
|
||||
<X> 81 </X>
|
||||
<Y> 264 </Y>
|
||||
<State>
|
||||
eval(
|
||||
If ICE_PROCESS_STATUS = 2 Then
|
||||
|
||||
If $Sum120101000412010200021201030002 = "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 $Sum120101000412010200021201030002 = "Disable" Then
|
||||
STRCONTAIN "ERR" $12-01-01-0004.TAG tag1_is_disable
|
||||
STRCONTAIN "ERR" $12-01-02-0002.TAG tag2_is_disable
|
||||
STRCONTAIN "ERR" $12-01-03-0002.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> $Sum120101000412010200021201030002 </State>
|
||||
<Value> text_unavailable </Value>
|
||||
<Align> center-vertical-horizontal </Align>
|
||||
</Text>
|
||||
</Block>
|
||||
; 12-21-01-0004 12-21-02-0002 12-21-03-0002
|
||||
<Block>
|
||||
<MarginLeft> 33 </MarginLeft>
|
||||
<MarginTop> 22 </MarginTop>
|
||||
<Width> 225 </Width>
|
||||
<Height> 296 </Height>
|
||||
<State> Flag( 12-21-01-0004.Button,12-21-02-0002.Button,12-21-03-0002.Button,DateTimeEnd="2024/12/01T00:00:00",$Sum122101000412210200021221030002) </State>
|
||||
<Button>
|
||||
<State> $Sum122101000412210200021221030002 </State>
|
||||
<Filename> "ROOT/taobin_project/image/page_drink_n//bn_hot_latte.png" </Filename>
|
||||
<FilenamePress> "ROOT/taobin_project/image/page_drink_press_n//bn_hot_latte.png" </FilenamePress>
|
||||
<FilenameDisable> "ROOT/taobin_project/image/page_drink_disable_n2//bn_hot_latte.png" </FilenameDisable>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<OverlayImage> xmlpro( 12-21-01-0004, "ROOT/taobin_project/image/menu_overlay_set/button_overlay_%s_posi1.png") </OverlayImage>
|
||||
<EventOnClick>
|
||||
Var NameDrink = "LATTE"
|
||||
Var NameDrinkTH = "ลาเต้"
|
||||
Var DrinkDescriptionTH = "กาแฟ นม และ ฟองนม"
|
||||
Var DrinkDescription = "Espresso, Milk, Foamed milk"
|
||||
Var PictureDrink = "ROOT/taobin_project/image/page_drink_picture2_n/" + "bn_hot_latte.png"
|
||||
Var OpenFromXML = CurrentXMLFileName2
|
||||
Var PriceD1 = $12-21-01-0004.Price
|
||||
Var PriceD2 = $12-21-02-0002.Price
|
||||
Var PriceD3 = $12-21-03-0002.Price
|
||||
Var PD_CODE1 = "12-21-01-0004"
|
||||
Var PD_CODE2 = "12-21-02-0002"
|
||||
Var PD_CODE3 = "12-21-03-0002"
|
||||
Var PD_STAGE_1 = $12-21-01-0004.Button
|
||||
Var PD_STAGE_2 = $12-21-02-0002.Button
|
||||
Var PD_STAGE_3 = $12-21-03-0002.Button
|
||||
Var OverlayMenuFilter !assigned xmlpro( 12-21-01-0004, "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-0002"
|
||||
Else
|
||||
If PD_STAGE_1 = "Enable" Then
|
||||
Topping "Load" "12-21-01-0004"
|
||||
Else
|
||||
Topping "Load" "12-21-03-0002"
|
||||
EndIf
|
||||
EndIf
|
||||
Var menu_name_eng_hot = $12-21-01-0004.NameE
|
||||
Var menu_desc_eng_hot = $12-21-01-0004.descriptionE
|
||||
Var menu_name_thai_hot = $12-21-01-0004.Name
|
||||
Var menu_desc_thai_hot = $12-21-01-0004.description
|
||||
|
||||
Var menu_name_eng_cold = $12-21-02-0002.NameE
|
||||
Var menu_desc_eng_cold = $12-21-02-0002.descriptionE
|
||||
Var menu_name_thai_cold = $12-21-02-0002.Name
|
||||
Var menu_desc_thai_cold = $12-21-02-0002.description
|
||||
|
||||
Var menu_name_eng_blender = $12-21-03-0002.NameE
|
||||
Var menu_desc_eng_blender = $12-21-03-0002.descriptionE
|
||||
Var menu_name_thai_blender = $12-21-03-0002.Name
|
||||
Var menu_desc_thai_blender = $12-21-03-0002.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> "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> "Espresso, Milk, Foamed milk" </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-0004.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-0004.Button </State>
|
||||
<Value> StringFmt( $12-21-01-0004.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-0002.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-0002.Button </State>
|
||||
<Value> StringFmt( $12-21-02-0002.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-0002.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-0002.Button </State>
|
||||
<Value> StringFmt( $12-21-03-0002.Price , DisplayFormat, PreScaleConvertShow) </Value>; test
|
||||
</Text>
|
||||
<Image>
|
||||
<X> 81 </X>
|
||||
<Y> 264 </Y>
|
||||
<State>
|
||||
eval(
|
||||
If ICE_PROCESS_STATUS = 2 Then
|
||||
|
||||
If $Sum122101000412210200021221030002 = "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 $Sum122101000412210200021221030002 = "Disable" Then
|
||||
STRCONTAIN "ERR" $12-21-01-0004.TAG tag1_is_disable
|
||||
STRCONTAIN "ERR" $12-21-02-0002.TAG tag2_is_disable
|
||||
STRCONTAIN "ERR" $12-21-03-0002.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> $Sum122101000412210200021221030002 </State>
|
||||
<Value> text_unavailable </Value>
|
||||
<Align> center-vertical-horizontal </Align>
|
||||
</Text>
|
||||
</Block>
|
||||
; ==================> Len = 19
|
||||
; - 12-05-02-0008 12-05-03-0008
|
||||
<Block>
|
||||
<MarginLeft> 33 </MarginLeft>
|
||||
<MarginTop> 22 </MarginTop>
|
||||
<Width> 225 </Width>
|
||||
<Height> 296 </Height>
|
||||
<State> Flag( 12-05-02-0008.Button,12-05-03-0008.Button,DateTimeEnd="2024/12/01T00:00:00",$Sum12050200081205030008) </State>
|
||||
<Button>
|
||||
<State> $Sum12050200081205030008 </State>
|
||||
<Filename> "ROOT/taobin_project/image/page_drink_n//bn_sala_soda.png" </Filename>
|
||||
<FilenamePress> "ROOT/taobin_project/image/page_drink_press_n//bn_sala_soda.png" </FilenamePress>
|
||||
<FilenameDisable> "ROOT/taobin_project/image/page_drink_disable_n2//bn_sala_soda.png" </FilenameDisable>
|
||||
<OverlayImage> xmlpro( 12-05-03-0008, "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 = "SALAK SODA"
|
||||
Var NameDrinkTH = "น้ำแดงโซดา"
|
||||
Var DrinkDescriptionTH = "น้ำแดงกลิ่นสละ โซดา "
|
||||
Var DrinkDescription = "Salak Syrup, Soda & Ice"
|
||||
Var PictureDrink = "ROOT/taobin_project/image/page_drink_picture2_n/" + "bn_sala_soda.png"
|
||||
Var OpenFromXML = CurrentXMLFileName2
|
||||
Var PriceD1 = $-.Price
|
||||
Var PriceD2 = $12-05-02-0008.Price
|
||||
Var PriceD3 = $12-05-03-0008.Price
|
||||
Var PD_CODE1 = "##-##-##-####"
|
||||
Var PD_CODE2 = "12-05-02-0008"
|
||||
Var PD_CODE3 = "12-05-03-0008"
|
||||
Var PD_STAGE_1 = "Disable2"
|
||||
Var PD_STAGE_2 = $12-05-02-0008.Button
|
||||
Var PD_STAGE_3 = $12-05-03-0008.Button
|
||||
Var OverlayMenuFilter !assigned xmlpro( 12-05-03-0008, "ROOT/taobin_project/image/menu_overlay_set/button_overlay_pic_%s_posi1.png")
|
||||
DEBUGVAR OverlayMenuFilter
|
||||
Var SelectCountDrinkType = 0
|
||||
Var DefaultDrinkType = 0
|
||||
If PD_STAGE_1 = "Enable" Then
|
||||
Var SelectCountDrinkType = SelectCountDrinkType + 1
|
||||
Var DefaultDrinkType = 1
|
||||
EndIf
|
||||
If PD_STAGE_2 = "Enable" Then
|
||||
Var SelectCountDrinkType = SelectCountDrinkType + 1
|
||||
Var DefaultDrinkType = 2
|
||||
EndIf
|
||||
If PD_STAGE_3 = "Enable" Then
|
||||
Var SelectCountDrinkType = SelectCountDrinkType + 1
|
||||
Var DefaultDrinkType = 3
|
||||
EndIf
|
||||
If PD_STAGE_2 = "Enable" Then
|
||||
Topping "Load" "12-05-02-0008"
|
||||
Else
|
||||
If PD_STAGE_1 = "Enable" Then
|
||||
Topping "Load" "-"
|
||||
Else
|
||||
Topping "Load" "12-05-03-0008"
|
||||
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-0008.NameE
|
||||
Var menu_desc_eng_cold = $12-05-02-0008.descriptionE
|
||||
Var menu_name_thai_cold = $12-05-02-0008.Name
|
||||
Var menu_desc_thai_cold = $12-05-02-0008.description
|
||||
|
||||
Var menu_name_eng_blender = $12-05-03-0008.NameE
|
||||
Var menu_desc_eng_blender = $12-05-03-0008.descriptionE
|
||||
Var menu_name_thai_blender = $12-05-03-0008.Name
|
||||
Var menu_desc_thai_blender = $12-05-03-0008.description
|
||||
|
||||
DEBUGVAR PD_STAGE_1
|
||||
DEBUGVAR PD_STAGE_2
|
||||
DEBUGVAR PD_STAGE_3
|
||||
Var SelectDrinkType = 0
|
||||
|
||||
Var OpenFromInstMenuTab = 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> "SALAK SODA" </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> "Salak Syrup, Soda & Ice" </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-0008.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-0008.Button </State>
|
||||
<Value> StringFmt( $12-05-02-0008.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-05-03-0008.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-05-03-0008.Button </State>
|
||||
<Value> StringFmt( $12-05-03-0008.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 $Sum12050200081205030008 = "Disable" Then
|
||||
STRCONTAIN "ERR" $##-##-##-####.TAG tag1_is_disable
|
||||
STRCONTAIN "ERR" $12-05-02-0008.TAG tag2_is_disable
|
||||
STRCONTAIN "ERR" $12-05-03-0008.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> $Sum12050200081205030008 </State>
|
||||
<Value> text_unavailable </Value>
|
||||
<Align> center-vertical-horizontal </Align>
|
||||
</Text>
|
||||
</Block>
|
||||
; - - -
|
||||
; ==================> Len = 14
|
||||
; 12-02-01-0085 12-02-02-0085 12-02-03-0085
|
||||
<Block>
|
||||
|
|
@ -1094,7 +328,7 @@
|
|||
<MarginTop> 22 </MarginTop>
|
||||
<Width> 225 </Width>
|
||||
<Height> 296 </Height>
|
||||
<State> Flag( 12-02-01-0084.Button,12-02-02-0084.Button,12-02-03-0084.Button,DateTimeStart="2024/12/01T00:00:00",DateTimeEnd="2025/01/31T23:59:59",$Sum120201008412020200841202030084) </State>
|
||||
<State> Flag( 12-02-01-0084.Button,12-02-02-0084.Button,12-02-03-0084.Button,Disable=Invisible,DateTimeStart="2024/12/01T00:00:00",DateTimeEnd="2025/01/31T23:59:59",$Sum120201008412020200841202030084) </State>
|
||||
<Button>
|
||||
<State> $Sum120201008412020200841202030084 </State>
|
||||
<Filename> "ROOT/taobin_project/image/page_drink_n//bn_traditional_green_tea.png" </Filename>
|
||||
|
|
@ -1349,7 +583,7 @@
|
|||
<MarginTop> 22 </MarginTop>
|
||||
<Width> 225 </Width>
|
||||
<Height> 296 </Height>
|
||||
<State> Flag( 12-01-01-0004.Button,12-01-02-0002.Button,12-01-03-0002.Button,$Sum120101000412010200021201030002) </State>
|
||||
<State> Flag( 12-01-01-0004.Button,12-01-02-0002.Button,12-01-03-0002.Button,Disable=Invisible,$Sum120101000412010200021201030002) </State>
|
||||
<Button>
|
||||
<State> $Sum120101000412010200021201030002 </State>
|
||||
<Filename> "ROOT/taobin_project/image/page_drink_n//bn_hot_latte.png" </Filename>
|
||||
|
|
@ -1602,7 +836,7 @@
|
|||
<MarginTop> 22 </MarginTop>
|
||||
<Width> 225 </Width>
|
||||
<Height> 296 </Height>
|
||||
<State> Flag( 12-21-01-0004.Button,12-21-02-0002.Button,12-21-03-0002.Button,$Sum122101000412210200021221030002) </State>
|
||||
<State> Flag( 12-21-01-0004.Button,12-21-02-0002.Button,12-21-03-0002.Button,Disable=Invisible,$Sum122101000412210200021221030002) </State>
|
||||
<Button>
|
||||
<State> $Sum122101000412210200021221030002 </State>
|
||||
<Filename> "ROOT/taobin_project/image/page_drink_n//bn_hot_latte.png" </Filename>
|
||||
|
|
@ -1856,7 +1090,7 @@
|
|||
<MarginTop> 22 </MarginTop>
|
||||
<Width> 225 </Width>
|
||||
<Height> 296 </Height>
|
||||
<State> Flag( 12-05-02-0008.Button,12-05-03-0008.Button,$Sum12050200081205030008) </State>
|
||||
<State> Flag( 12-05-02-0008.Button,12-05-03-0008.Button,Disable=Invisible,$Sum12050200081205030008) </State>
|
||||
<Button>
|
||||
<State> $Sum12050200081205030008 </State>
|
||||
<Filename> "ROOT/taobin_project/image/page_drink_n//bn_sala_soda.png" </Filename>
|
||||
|
|
@ -2110,7 +1344,7 @@
|
|||
<MarginTop> 22 </MarginTop>
|
||||
<Width> 225 </Width>
|
||||
<Height> 296 </Height>
|
||||
<State> Flag( 12-02-01-0083.Button,12-02-02-0083.Button,12-02-03-0083.Button,DateTimeStart="2024/12/01T00:00:00",DateTimeEnd="2025/01/31T23:59:59",Disable=Invisible,$Sum120201008312020200831202030083) </State>
|
||||
<State> Flag( 12-02-01-0083.Button,12-02-02-0083.Button,12-02-03-0083.Button,Disable=Invisible,DateTimeStart="2024/12/01T00:00:00",DateTimeEnd="2025/01/31T23:59:59",Disable=Invisible,$Sum120201008312020200831202030083) </State>
|
||||
<Button>
|
||||
<State> $Sum120201008312020200831202030083 </State>
|
||||
<Filename> "ROOT/taobin_project/image/page_drink_n//bn_southern_fusion_tea.png" </Filename>
|
||||
|
|
@ -2366,7 +1600,7 @@ TEA" </Value>
|
|||
<MarginTop> 22 </MarginTop>
|
||||
<Width> 225 </Width>
|
||||
<Height> 296 </Height>
|
||||
<State> Flag( 12-03-02-0081.Button,DateTimeStart="2024/12/01T00:00:00",DateTimeEnd="2025/01/06T23:59:59",Disable=Invisible,$Sum1203020081) </State>
|
||||
<State> Flag( 12-03-02-0081.Button,DateTimeStart="2024/12/01T00:00:00",Disable=Invisible,DateTimeEnd="2025/01/06T23:59:59",Disable=Invisible,$Sum1203020081) </State>
|
||||
<Button>
|
||||
<State> $Sum1203020081 </State>
|
||||
<Filename> "ROOT/taobin_project/image/page_drink_n//bn_santa_ginger.png" </Filename>
|
||||
|
|
@ -2617,7 +1851,7 @@ TEA" </Value>
|
|||
<MarginTop> 22 </MarginTop>
|
||||
<Width> 225 </Width>
|
||||
<Height> 296 </Height>
|
||||
<State> Flag( 12-03-03-0088.Button,DateTimeStart="2024/12/01T00:00:00",DateTimeEnd="2025/01/06T23:59:59",Disable=Invisible,$Sum1203030088) </State>
|
||||
<State> Flag( 12-03-03-0088.Button,DateTimeStart="2024/12/01T00:00:00",Disable=Invisible,DateTimeEnd="2025/01/06T23:59:59",Disable=Invisible,$Sum1203030088) </State>
|
||||
<Button>
|
||||
<State> $Sum1203030088 </State>
|
||||
<Filename> "ROOT/taobin_project/image/page_drink_n//bn_choco_snow_flake_smoothie.png" </Filename>
|
||||
|
|
@ -2870,7 +2104,7 @@ CARAMEL SYRUP , OREO AND ICE" </Value>
|
|||
<MarginTop> 22 </MarginTop>
|
||||
<Width> 225 </Width>
|
||||
<Height> 296 </Height>
|
||||
<State> Flag( 12-03-03-0089.Button,DateTimeStart="2024/12/01T00:00:00",DateTimeEnd="2025/01/06T23:59:59",Disable=Invisible,$Sum1203030089) </State>
|
||||
<State> Flag( 12-03-03-0089.Button,DateTimeStart="2024/12/01T00:00:00",Disable=Invisible,DateTimeEnd="2025/01/06T23:59:59",Disable=Invisible,$Sum1203030089) </State>
|
||||
<Button>
|
||||
<State> $Sum1203030089 </State>
|
||||
<Filename> "ROOT/taobin_project/image/page_drink_n//bn_reindeer_peppermint_smoothie.png" </Filename>
|
||||
|
|
@ -3124,7 +2358,7 @@ STRAWBERRY SYRUP AND ICE" </Value>
|
|||
<MarginTop> 22 </MarginTop>
|
||||
<Width> 225 </Width>
|
||||
<Height> 296 </Height>
|
||||
<State> Flag( 12-01-02-0084.Button,DateTimeStart="2024/12/01T00:00:00",DateTimeEnd="2025/01/06T23:59:59",Disable=Invisible,$Sum1201020084) </State>
|
||||
<State> Flag( 12-01-02-0084.Button,DateTimeStart="2024/12/01T00:00:00",Disable=Invisible,DateTimeEnd="2025/01/06T23:59:59",Disable=Invisible,$Sum1201020084) </State>
|
||||
<Button>
|
||||
<State> $Sum1201020084 </State>
|
||||
<Filename> "ROOT/taobin_project/image/page_drink_n//bn_iced_christmas_cafe_latte.png" </Filename>
|
||||
|
|
@ -3377,7 +2611,7 @@ CARAMEL SYRUP AND WATER" </Value>
|
|||
<MarginTop> 22 </MarginTop>
|
||||
<Width> 225 </Width>
|
||||
<Height> 296 </Height>
|
||||
<State> Flag( 12-21-02-0084.Button,DateTimeStart="2024/12/01T00:00:00",DateTimeEnd="2025/01/06T23:59:59",Disable=Invisible,$Sum1221020084) </State>
|
||||
<State> Flag( 12-21-02-0084.Button,DateTimeStart="2024/12/01T00:00:00",Disable=Invisible,DateTimeEnd="2025/01/06T23:59:59",Disable=Invisible,$Sum1221020084) </State>
|
||||
<Button>
|
||||
<State> $Sum1221020084 </State>
|
||||
<Filename> "ROOT/taobin_project/image/page_drink_n//bn_iced_christmas_cafe_latte.png" </Filename>
|
||||
|
|
@ -4891,7 +4125,7 @@ CARAMEL OREO" </Value>
|
|||
<MarginTop> 22 </MarginTop>
|
||||
<Width> 225 </Width>
|
||||
<Height> 296 </Height>
|
||||
<State> Flag( 12-03-03-0009.Button,Disable=Invisible,$Sum1203030009) </State>
|
||||
<State> Flag( 12-03-03-0009.Button,Disable=Invisible,$Sum1203030009,Disable=Invisible) </State>
|
||||
<Button>
|
||||
<State> $Sum1203030009 </State>
|
||||
<Filename> "ROOT/taobin_project/image/page_drink_n//bn_smoothie_oreo.png" </Filename>
|
||||
|
|
@ -18443,6 +17677,7 @@ LIMENADE SODA" </Value>
|
|||
Else
|
||||
Var return = "Invisible"
|
||||
EndIf
|
||||
Var return = "Invisible"
|
||||
)
|
||||
</State>
|
||||
<Loop> "true" </Loop>
|
||||
|
|
|
|||
|
|
@ -47,32 +47,25 @@
|
|||
|
||||
|
||||
<FrameScroll>
|
||||
<Max> 16 </Max>
|
||||
<Max> 12 </Max>
|
||||
<X> 10 </X>
|
||||
<Y> 497 </Y>
|
||||
<Width> 1080 </Width>
|
||||
<ScrollHeight> "auto" </ScrollHeight>
|
||||
<Scroll> "Vertical" </Scroll>
|
||||
<Column> 4 </Column>
|
||||
<Mode> "EnableAdjust" </Mode>
|
||||
<Script>
|
||||
Var block_index_override = 0
|
||||
Var block_index_move = 0
|
||||
Var ColumnOverride[0] = 2
|
||||
Var ColumnOverride[1] = 2
|
||||
|
||||
Var ColumnGravity[0] = 3
|
||||
Var ColumnGravity[1] = 3
|
||||
|
||||
|
||||
</Script>
|
||||
<Block>
|
||||
<MarginLeft> 33 </MarginLeft>
|
||||
<MarginTop> 22 </MarginTop>
|
||||
<Width> 225 </Width>
|
||||
<Height> 296 </Height>
|
||||
<State> "Enable" </State>
|
||||
</Block>
|
||||
<Block>
|
||||
<MarginLeft> 33 </MarginLeft>
|
||||
<MarginTop> 22 </MarginTop>
|
||||
<Width> 225 </Width>
|
||||
<Height> 296 </Height>
|
||||
<State> "Enable" </State>
|
||||
</Block>
|
||||
|
||||
|
||||
; ==================> Len = 19
|
||||
; 12-01-01-0004 12-01-02-0002 12-01-03-0002
|
||||
|
|
@ -81,7 +74,7 @@
|
|||
<MarginTop> 22 </MarginTop>
|
||||
<Width> 225 </Width>
|
||||
<Height> 296 </Height>
|
||||
<State> Flag( 12-01-01-0004.Button,12-01-02-0002.Button,12-01-03-0002.Button,DateTimeEnd="2024/12/01T00:00:00",$Sum120101000412010200021201030002) </State>
|
||||
<State> Flag( 12-01-01-0004.Button,12-01-02-0002.Button,12-01-03-0002.Button,Disable=Invisible,DateTimeEnd="2024/12/01T00:00:00",$Sum120101000412010200021201030002) </State>
|
||||
<Button>
|
||||
<State> $Sum120101000412010200021201030002 </State>
|
||||
<Filename> "ROOT/taobin_project/image/page_drink_n//bn_hot_latte.png" </Filename>
|
||||
|
|
@ -334,7 +327,7 @@
|
|||
<MarginTop> 22 </MarginTop>
|
||||
<Width> 225 </Width>
|
||||
<Height> 296 </Height>
|
||||
<State> Flag( 12-21-01-0004.Button,12-21-02-0002.Button,12-21-03-0002.Button,DateTimeEnd="2024/12/01T00:00:00",$Sum122101000412210200021221030002) </State>
|
||||
<State> Flag( 12-21-01-0004.Button,12-21-02-0002.Button,12-21-03-0002.Button,Disable=Invisible,DateTimeEnd="2024/12/01T00:00:00",$Sum122101000412210200021221030002) </State>
|
||||
<Button>
|
||||
<State> $Sum122101000412210200021221030002 </State>
|
||||
<Filename> "ROOT/taobin_project/image/page_drink_n//bn_hot_latte.png" </Filename>
|
||||
|
|
@ -581,256 +574,7 @@
|
|||
<Align> center-vertical-horizontal </Align>
|
||||
</Text>
|
||||
</Block>
|
||||
; ==================> Len = 19
|
||||
; - 12-05-02-0008 12-05-03-0008
|
||||
<Block>
|
||||
<MarginLeft> 33 </MarginLeft>
|
||||
<MarginTop> 22 </MarginTop>
|
||||
<Width> 225 </Width>
|
||||
<Height> 296 </Height>
|
||||
<State> Flag( 12-05-02-0008.Button,12-05-03-0008.Button,DateTimeEnd="2024/12/01T00:00:00",$Sum12050200081205030008) </State>
|
||||
<Button>
|
||||
<State> $Sum12050200081205030008 </State>
|
||||
<Filename> "ROOT/taobin_project/image/page_drink_n//bn_sala_soda.png" </Filename>
|
||||
<FilenamePress> "ROOT/taobin_project/image/page_drink_press_n//bn_sala_soda.png" </FilenamePress>
|
||||
<FilenameDisable> "ROOT/taobin_project/image/page_drink_disable_n2//bn_sala_soda.png" </FilenameDisable>
|
||||
<OverlayImage> xmlpro( 12-05-03-0008, "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 = "SALAK SODA"
|
||||
Var NameDrinkTH = "น้ำแดงโซดา"
|
||||
Var DrinkDescriptionTH = "น้ำแดงกลิ่นสละ โซดา "
|
||||
Var DrinkDescription = "Salak Syrup, Soda & Ice"
|
||||
Var PictureDrink = "ROOT/taobin_project/image/page_drink_picture2_n/" + "bn_sala_soda.png"
|
||||
Var OpenFromXML = CurrentXMLFileName2
|
||||
Var PriceD1 = $-.Price
|
||||
Var PriceD2 = $12-05-02-0008.Price
|
||||
Var PriceD3 = $12-05-03-0008.Price
|
||||
Var PD_CODE1 = "##-##-##-####"
|
||||
Var PD_CODE2 = "12-05-02-0008"
|
||||
Var PD_CODE3 = "12-05-03-0008"
|
||||
Var PD_STAGE_1 = "Disable2"
|
||||
Var PD_STAGE_2 = $12-05-02-0008.Button
|
||||
Var PD_STAGE_3 = $12-05-03-0008.Button
|
||||
Var OverlayMenuFilter !assigned xmlpro( 12-05-03-0008, "ROOT/taobin_project/image/menu_overlay_set/button_overlay_pic_%s_posi1.png")
|
||||
DEBUGVAR OverlayMenuFilter
|
||||
Var SelectCountDrinkType = 0
|
||||
Var DefaultDrinkType = 0
|
||||
If PD_STAGE_1 = "Enable" Then
|
||||
Var SelectCountDrinkType = SelectCountDrinkType + 1
|
||||
Var DefaultDrinkType = 1
|
||||
EndIf
|
||||
If PD_STAGE_2 = "Enable" Then
|
||||
Var SelectCountDrinkType = SelectCountDrinkType + 1
|
||||
Var DefaultDrinkType = 2
|
||||
EndIf
|
||||
If PD_STAGE_3 = "Enable" Then
|
||||
Var SelectCountDrinkType = SelectCountDrinkType + 1
|
||||
Var DefaultDrinkType = 3
|
||||
EndIf
|
||||
If PD_STAGE_2 = "Enable" Then
|
||||
Topping "Load" "12-05-02-0008"
|
||||
Else
|
||||
If PD_STAGE_1 = "Enable" Then
|
||||
Topping "Load" "-"
|
||||
Else
|
||||
Topping "Load" "12-05-03-0008"
|
||||
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-0008.NameE
|
||||
Var menu_desc_eng_cold = $12-05-02-0008.descriptionE
|
||||
Var menu_name_thai_cold = $12-05-02-0008.Name
|
||||
Var menu_desc_thai_cold = $12-05-02-0008.description
|
||||
|
||||
Var menu_name_eng_blender = $12-05-03-0008.NameE
|
||||
Var menu_desc_eng_blender = $12-05-03-0008.descriptionE
|
||||
Var menu_name_thai_blender = $12-05-03-0008.Name
|
||||
Var menu_desc_thai_blender = $12-05-03-0008.description
|
||||
|
||||
DEBUGVAR PD_STAGE_1
|
||||
DEBUGVAR PD_STAGE_2
|
||||
DEBUGVAR PD_STAGE_3
|
||||
Var SelectDrinkType = 0
|
||||
|
||||
Var OpenFromInstMenuTab = 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> "SALAK SODA" </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> "Salak Syrup, Soda & Ice" </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-0008.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-0008.Button </State>
|
||||
<Value> StringFmt( $12-05-02-0008.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-05-03-0008.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-05-03-0008.Button </State>
|
||||
<Value> StringFmt( $12-05-03-0008.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 $Sum12050200081205030008 = "Disable" Then
|
||||
STRCONTAIN "ERR" $##-##-##-####.TAG tag1_is_disable
|
||||
STRCONTAIN "ERR" $12-05-02-0008.TAG tag2_is_disable
|
||||
STRCONTAIN "ERR" $12-05-03-0008.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> $Sum12050200081205030008 </State>
|
||||
<Value> text_unavailable </Value>
|
||||
<Align> center-vertical-horizontal </Align>
|
||||
</Text>
|
||||
</Block>
|
||||
|
||||
; - - -
|
||||
; ==================> Len = 14
|
||||
; 12-02-01-0085 12-02-02-0085 12-02-03-0085
|
||||
|
|
@ -839,7 +583,7 @@
|
|||
<MarginTop> 22 </MarginTop>
|
||||
<Width> 225 </Width>
|
||||
<Height> 296 </Height>
|
||||
<State> Flag( 12-02-01-0085.Button,12-02-02-0085.Button,12-02-03-0085.Button,DateTimeStart="2024/12/01T00:00:00",DateTimeEnd="2025/01/31T23:59:59",$Sum120201008512020200851202030085) </State>
|
||||
<State> Flag( 12-02-01-0085.Button,12-02-02-0085.Button,12-02-03-0085.Button,Disable=Invisible,DateTimeStart="2024/12/01T00:00:00",DateTimeEnd="2025/01/31T23:59:59",$Sum120201008512020200851202030085) </State>
|
||||
<Button>
|
||||
<State> $Sum120201008512020200851202030085 </State>
|
||||
<Filename> "ROOT/taobin_project/image/page_drink_n//bn_royal_milk_tea.png" </Filename>
|
||||
|
|
@ -1094,7 +838,7 @@
|
|||
<MarginTop> 22 </MarginTop>
|
||||
<Width> 225 </Width>
|
||||
<Height> 296 </Height>
|
||||
<State> Flag( 12-02-01-0084.Button,12-02-02-0084.Button,12-02-03-0084.Button,DateTimeStart="2024/12/01T00:00:00",DateTimeEnd="2025/01/31T23:59:59",$Sum120201008412020200841202030084) </State>
|
||||
<State> Flag( 12-02-01-0084.Button,12-02-02-0084.Button,12-02-03-0084.Button,Disable=Invisible,DateTimeStart="2024/12/01T00:00:00",DateTimeEnd="2025/01/31T23:59:59",$Sum120201008412020200841202030084) </State>
|
||||
<Button>
|
||||
<State> $Sum120201008412020200841202030084 </State>
|
||||
<Filename> "ROOT/taobin_project/image/page_drink_n//bn_traditional_green_tea.png" </Filename>
|
||||
|
|
@ -1349,7 +1093,7 @@
|
|||
<MarginTop> 22 </MarginTop>
|
||||
<Width> 225 </Width>
|
||||
<Height> 296 </Height>
|
||||
<State> Flag( 12-01-01-0004.Button,12-01-02-0002.Button,12-01-03-0002.Button,$Sum120101000412010200021201030002) </State>
|
||||
<State> Flag( 12-01-01-0004.Button,12-01-02-0002.Button,12-01-03-0002.Button,Disable=Invisible,DateTimeStart="2025/02/02T00:00:00",$Sum120101000412010200021201030002) </State>
|
||||
<Button>
|
||||
<State> $Sum120101000412010200021201030002 </State>
|
||||
<Filename> "ROOT/taobin_project/image/page_drink_n//bn_hot_latte.png" </Filename>
|
||||
|
|
@ -1602,7 +1346,7 @@
|
|||
<MarginTop> 22 </MarginTop>
|
||||
<Width> 225 </Width>
|
||||
<Height> 296 </Height>
|
||||
<State> Flag( 12-21-01-0004.Button,12-21-02-0002.Button,12-21-03-0002.Button,$Sum122101000412210200021221030002) </State>
|
||||
<State> Flag( 12-21-01-0004.Button,12-21-02-0002.Button,12-21-03-0002.Button,Disable=Invisible,DateTimeStart="2025/02/02T00:00:00",$Sum122101000412210200021221030002) </State>
|
||||
<Button>
|
||||
<State> $Sum122101000412210200021221030002 </State>
|
||||
<Filename> "ROOT/taobin_project/image/page_drink_n//bn_hot_latte.png" </Filename>
|
||||
|
|
@ -1856,7 +1600,7 @@
|
|||
<MarginTop> 22 </MarginTop>
|
||||
<Width> 225 </Width>
|
||||
<Height> 296 </Height>
|
||||
<State> Flag( 12-05-02-0008.Button,12-05-03-0008.Button,$Sum12050200081205030008) </State>
|
||||
<State> Flag( 12-05-02-0008.Button,12-05-03-0008.Button,DateTimeStart="2025/02/02T00:00:00",$Sum12050200081205030008) </State>
|
||||
<Button>
|
||||
<State> $Sum12050200081205030008 </State>
|
||||
<Filename> "ROOT/taobin_project/image/page_drink_n//bn_sala_soda.png" </Filename>
|
||||
|
|
@ -2101,7 +1845,6 @@
|
|||
</Block>
|
||||
; - - -
|
||||
|
||||
|
||||
; menu_new_li;TAGESP
|
||||
; ==================> Len = 14
|
||||
; 12-02-01-0083 12-02-02-0083 12-02-03-0083
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue