New layout

This commit is contained in:
kong 2022-10-11 13:28:43 +07:00
parent 8304e81f8d
commit f18511b8e4
117 changed files with 902 additions and 22202 deletions

View file

@ -482,9 +482,9 @@
out_xml( '</Block>\r\n')
###############################################################################
if len(spl) == 11:
out_xml( '\t; '+ spl[8] + ' ' + spl[9] + ' ' + spl[10]+ ' \r\n')
if spl[8] != '-' or spl[9] != '-' or spl[10] != '-':
menu_img = spl[7]
out_xml( '\t; '+ spl[8] + ' ' + spl[9] + ' ' + spl[10]+ ' \r\n')
out_xml( '<Block>\r\n')
out_xml('\t<MarginLeft> 33 </MarginLeft>\r\n')
out_xml('\t<MarginTop> 22 </MarginTop>\r\n')

View file

@ -120,6 +120,9 @@
If NeedUpgrade = "true" Then
Open "ROOT/taobin_project/xml/page_show_error.xml"
EndIf
Var TestLoopMakeDrink = 0
@ -188,10 +191,12 @@
Var ShowButtonClickFull = "Invisible"
Var VideoMainPage = "ROOT/taobin_project/video/main_page.mp4"
;Var ShowButtonClickFull = "Invisible"
;Var CountDownShowButton = 0
;Var VideoMainPage = "ROOT/taobin_project/video/main_page_event.mp4"
DEBUGVAR SystemDateMonth
Var EventTurnOn = 1
Var ShowButtonClickFull = "Invisible"
Var CountDownShowButton = 0
Var VideoMainPage = "ROOT/taobin_project/video/main_page_event.mp4"
EndIf
If TermTemOnline = "true" Then
@ -667,11 +672,9 @@
Var NextPage = "ROOT/taobin_project/xml/page_back_to_main.xml"
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert2.xml"
If new_layout = "true" Then
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/xml/page_catalog_group_recommend.xml"
Else
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/xml/page_catalog_choose_drink1.xml"
EndIf
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/xml/page_catalog_group_recommend.xml"
Machine DoorClose
TopView "show"
Open "/mnt/sdcard/coffeevending/taobin_project/xml/page_main_blank.xml"

View file

@ -519,7 +519,7 @@
Var block_index_move = 0
</Script>
; menu_new_list 5
; ==================> Len = 8
; ==================> Len = 16
; - 12-04-02-1018 -
<Block>
<MarginLeft> 33 </MarginLeft>
@ -768,7 +768,8 @@ essential nutrients" </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; ==================> Len = 8
; - - -
; ==================> Len = 16
; - 12-04-02-1019 -
<Block>
<MarginLeft> 33 </MarginLeft>
@ -1016,7 +1017,8 @@ essential nutrients" </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; ==================> Len = 8
; - - -
; ==================> Len = 16
; - 12-04-02-1020 -
<Block>
<MarginLeft> 33 </MarginLeft>
@ -1265,7 +1267,8 @@ essential nutrients" </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; ==================> Len = 8
; - - -
; ==================> Len = 16
; - 12-04-02-1021 -
<Block>
<MarginLeft> 33 </MarginLeft>
@ -1514,7 +1517,8 @@ essential nutrients" </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; ==================> Len = 8
; - - -
; ==================> Len = 16
; - 12-04-02-1022 -
<Block>
<MarginLeft> 33 </MarginLeft>
@ -1763,6 +1767,7 @@ essential nutrients" </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; - - -
</FrameScroll>
; Cart
<Button>

File diff suppressed because it is too large Load diff

View file

@ -519,7 +519,7 @@
Var block_index_move = 0
</Script>
; menu_new_list 13
; ==================> Len = 8
; ==================> Len = 16
; 12-03-01-0005 12-03-02-0005 12-03-03-0005
<Block>
<MarginLeft> 33 </MarginLeft>
@ -769,7 +769,8 @@
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; ==================> Len = 8
; - - -
; ==================> Len = 16
; 12-03-01-0001 12-03-02-0001 12-03-03-0001
<Block>
<MarginLeft> 33 </MarginLeft>
@ -1019,7 +1020,8 @@
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; ==================> Len = 8
; - - -
; ==================> Len = 16
; 12-03-01-0003 12-03-02-0003 12-03-03-0003
<Block>
<MarginLeft> 33 </MarginLeft>
@ -1270,7 +1272,8 @@ MILK" </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; ==================> Len = 8
; - - -
; ==================> Len = 16
; - 12-03-02-0006 12-03-03-0006
<Block>
<MarginLeft> 33 </MarginLeft>
@ -1517,7 +1520,8 @@ MILK" </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; ==================> Len = 8
; - - -
; ==================> Len = 16
; 12-03-01-0002 12-03-02-0002 12-03-03-0002
<Block>
<MarginLeft> 33 </MarginLeft>
@ -1767,7 +1771,8 @@ MILK" </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; ==================> Len = 8
; - - -
; ==================> Len = 16
; 12-03-01-0022 12-03-02-0022 12-03-03-0022
<Block>
<MarginLeft> 33 </MarginLeft>
@ -2017,7 +2022,8 @@ MILK" </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; ==================> Len = 8
; - - -
; ==================> Len = 16
; - - 12-03-03-0010
<Block>
<MarginLeft> 33 </MarginLeft>
@ -2265,7 +2271,8 @@ SMOOTHIE" </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; ==================> Len = 8
; - - -
; ==================> Len = 16
; - - 12-03-03-0020
<Block>
<MarginLeft> 33 </MarginLeft>
@ -2512,7 +2519,8 @@ VOLCANO" </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; ==================> Len = 8
; - - -
; ==================> Len = 16
; - - 12-03-03-0021
<Block>
<MarginLeft> 33 </MarginLeft>
@ -2759,7 +2767,8 @@ VOLCANO" </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; ==================> Len = 8
; - - -
; ==================> Len = 16
; - 12-05-02-0041 12-05-03-0041
<Block>
<MarginLeft> 33 </MarginLeft>
@ -3005,7 +3014,8 @@ VOLCANO" </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; ==================> Len = 8
; - - -
; ==================> Len = 16
; - 12-05-02-0008 12-05-03-0008
<Block>
<MarginLeft> 33 </MarginLeft>
@ -3251,7 +3261,8 @@ VOLCANO" </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; ==================> Len = 8
; - - -
; ==================> Len = 16
; - 12-05-02-0044 -
<Block>
<MarginLeft> 33 </MarginLeft>
@ -3498,7 +3509,8 @@ VOLCANO" </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; ==================> Len = 8
; - - -
; ==================> Len = 16
; - 12-05-02-0045 -
<Block>
<MarginLeft> 33 </MarginLeft>
@ -3745,6 +3757,7 @@ VOLCANO" </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; - - -
</FrameScroll>
; Cart
<Button>

View file

@ -510,7 +510,7 @@
Var block_index_move = 0
</Script>
; menu_new_list 17
; ==================> Len = 8
; ==================> Len = 16
; 12-01-01-1003 12-01-02-1001 -
<Block>
<MarginLeft> 33 </MarginLeft>
@ -762,7 +762,8 @@
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; ==================> Len = 8
; - - -
; ==================> Len = 16
; 12-01-01-1004 12-01-02-1002 -
<Block>
<MarginLeft> 33 </MarginLeft>
@ -1013,7 +1014,8 @@ Foamed milk" </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; ==================> Len = 8
; - - -
; ==================> Len = 16
; 12-01-01-1006 12-01-02-1003 -
<Block>
<MarginLeft> 33 </MarginLeft>
@ -1265,7 +1267,8 @@ Milk, Sugar" </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; ==================> Len = 8
; - - -
; ==================> Len = 16
; 12-01-01-1099 12-01-02-1099 -
<Block>
<MarginLeft> 33 </MarginLeft>
@ -1516,7 +1519,8 @@ Foamed milk" </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; ==================> Len = 8
; - - -
; ==================> Len = 16
; 12-02-01-1024 12-02-02-1024 -
<Block>
<MarginLeft> 33 </MarginLeft>
@ -1766,7 +1770,8 @@ Foamed milk" </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; ==================> Len = 8
; - - -
; ==================> Len = 16
; 12-02-01-1025 12-02-02-1025 -
<Block>
<MarginLeft> 33 </MarginLeft>
@ -2018,7 +2023,8 @@ and Milk" </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; ==================> Len = 8
; - - -
; ==================> Len = 16
; 12-02-01-1026 12-02-02-1026 -
<Block>
<MarginLeft> 33 </MarginLeft>
@ -2268,7 +2274,8 @@ and Milk" </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; ==================> Len = 8
; - - -
; ==================> Len = 16
; 12-02-01-1027 12-02-02-1027 -
<Block>
<MarginLeft> 33 </MarginLeft>
@ -2518,7 +2525,8 @@ and Milk" </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; ==================> Len = 8
; - - -
; ==================> Len = 16
; 12-02-01-1029 12-02-02-1029 -
<Block>
<MarginLeft> 33 </MarginLeft>
@ -2768,7 +2776,8 @@ and Milk" </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; ==================> Len = 8
; - - -
; ==================> Len = 16
; 12-02-01-1030 12-02-02-1030 -
<Block>
<MarginLeft> 33 </MarginLeft>
@ -3019,7 +3028,8 @@ LIMENADE" </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; ==================> Len = 8
; - - -
; ==================> Len = 16
; 12-02-01-1031 12-02-02-1031 -
<Block>
<MarginLeft> 33 </MarginLeft>
@ -3269,7 +3279,8 @@ LIMENADE" </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; ==================> Len = 8
; - - -
; ==================> Len = 16
; 12-02-01-1032 12-02-02-1032 -
<Block>
<MarginLeft> 33 </MarginLeft>
@ -3522,7 +3533,8 @@ Water, and Ice" </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; ==================> Len = 8
; - - -
; ==================> Len = 16
; 12-02-01-1037 12-02-02-1037 -
<Block>
<MarginLeft> 33 </MarginLeft>
@ -3772,7 +3784,8 @@ Water, and Ice" </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; ==================> Len = 8
; - - -
; ==================> Len = 16
; 12-03-01-1002 12-03-02-1002 -
<Block>
<MarginLeft> 33 </MarginLeft>
@ -4022,7 +4035,8 @@ Water, and Ice" </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; ==================> Len = 8
; - - -
; ==================> Len = 16
; 12-03-01-1005 12-03-02-1005 -
<Block>
<MarginLeft> 33 </MarginLeft>
@ -4272,7 +4286,8 @@ Water, and Ice" </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; ==================> Len = 8
; - - -
; ==================> Len = 16
; 12-05-01-1001 12-05-02-1001 -
<Block>
<MarginLeft> 33 </MarginLeft>
@ -4522,7 +4537,8 @@ Water, and Ice" </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; ==================> Len = 8
; - - -
; ==================> Len = 16
; - 12-05-02-1010 -
<Block>
<MarginLeft> 33 </MarginLeft>
@ -4769,6 +4785,7 @@ SODA" </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; - - -
</FrameScroll>
; Cart
<Button>

View file

@ -506,8 +506,8 @@
Var block_index_override = 0
Var block_index_move = 0
</Script>
; menu_new_list 14
; ==================> Len = 8
; menu_new_list 13
; ==================> Len = 16
; 12-03-01-0005 12-03-02-0005 12-03-03-0005
<Block>
<MarginLeft> 33 </MarginLeft>
@ -757,7 +757,8 @@
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; ==================> Len = 8
; - - -
; ==================> Len = 16
; 12-03-01-0001 12-03-02-0001 12-03-03-0001
<Block>
<MarginLeft> 33 </MarginLeft>
@ -1007,7 +1008,8 @@
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; ==================> Len = 8
; - - -
; ==================> Len = 16
; 12-03-01-0004 12-03-02-0004 12-03-03-0004
<Block>
<MarginLeft> 33 </MarginLeft>
@ -1259,7 +1261,8 @@ Caramel Syrup" </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; ==================> Len = 8
; - - -
; ==================> Len = 16
; 12-03-01-0003 12-03-02-0003 12-03-03-0003
<Block>
<MarginLeft> 33 </MarginLeft>
@ -1510,7 +1513,8 @@ MILK" </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; ==================> Len = 8
; - - -
; ==================> Len = 16
; - 12-03-02-0006 12-03-03-0006
<Block>
<MarginLeft> 33 </MarginLeft>
@ -1757,7 +1761,8 @@ MILK" </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; ==================> Len = 8
; - - -
; ==================> Len = 16
; 12-03-01-0002 12-03-02-0002 12-03-03-0002
<Block>
<MarginLeft> 33 </MarginLeft>
@ -2007,7 +2012,8 @@ MILK" </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; ==================> Len = 8
; - - -
; ==================> Len = 16
; - - 12-03-03-0010
<Block>
<MarginLeft> 33 </MarginLeft>
@ -2255,7 +2261,8 @@ SMOOTHIE" </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; ==================> Len = 8
; - - -
; ==================> Len = 16
; - - 12-03-03-0011
<Block>
<MarginLeft> 33 </MarginLeft>
@ -2503,7 +2510,8 @@ SMOOTHIE" </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; ==================> Len = 8
; - - -
; ==================> Len = 16
; - - 12-03-03-0009
<Block>
<MarginLeft> 33 </MarginLeft>
@ -2751,7 +2759,8 @@ VOLCANO" </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; ==================> Len = 8
; - - -
; ==================> Len = 16
; 12-03-01-0019 12-03-02-0019 12-03-03-0019
<Block>
<MarginLeft> 33 </MarginLeft>
@ -3001,7 +3010,8 @@ VOLCANO" </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; ==================> Len = 8
; - - -
; ==================> Len = 16
; - - 12-03-03-0020
<Block>
<MarginLeft> 33 </MarginLeft>
@ -3248,7 +3258,8 @@ VOLCANO" </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; ==================> Len = 8
; - - -
; ==================> Len = 16
; - - 12-03-03-0021
<Block>
<MarginLeft> 33 </MarginLeft>
@ -3495,7 +3506,8 @@ VOLCANO" </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; ==================> Len = 8
; - - -
; ==================> Len = 16
; 12-03-01-0022 12-03-02-0022 12-03-03-0022
<Block>
<MarginLeft> 33 </MarginLeft>
@ -3745,256 +3757,7 @@ VOLCANO" </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; ==================> Len = 8
; 12-03-01-0024 12-03-02-0024 12-03-03-0024
<Block>
<MarginLeft> 33 </MarginLeft>
<MarginTop> 22 </MarginTop>
<Width> 225 </Width>
<Height> 296 </Height>
<State> Flag( 12-03-01-0024.Button,12-03-02-0024.Button,12-03-03-0024.Button,$Sum120301002412030200241203030024) </State>
<Button>
<State> $Sum120301002412030200241203030024 </State>
<Filename> "ROOT/taobin_project/image/page_drink_n//bn_iced_Milk_Lychee_smoothie.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_drink_press_n//bn_iced_Milk_Lychee_smoothie.png" </FilenamePress>
<FilenameDisable> "ROOT/taobin_project/image/page_drink_disable_n2//bn_iced_Milk_Lychee_smoothie.png" </FilenameDisable>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventOnClick>
Var NameDrink = "LYCHEE MILK"
Var NameDrinkTH = "นมลิ้นจี่"
Var DrinkDescriptionTH = "นม และ น้ำเชื่อมลิ้นจี่"
Var DrinkDescription = "Milk & Lychee Syrup"
Var PictureDrink = "ROOT/taobin_project/image/page_drink_picture2_n/" + "bn_iced_Milk_Lychee_smoothie.png"
Var OpenFromXML = CurrentXMLFileName2
Var PriceD1 = $12-03-01-0024.Price
Var PriceD2 = $12-03-02-0024.Price
Var PriceD3 = $12-03-03-0024.Price
Var PD_CODE1 = "12-03-01-0024"
Var PD_CODE2 = "12-03-02-0024"
Var PD_CODE3 = "12-03-03-0024"
Var PD_STAGE_1 = $12-03-01-0024.Button
Var PD_STAGE_2 = $12-03-02-0024.Button
Var PD_STAGE_3 = $12-03-03-0024.Button
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-03-02-0024"
Else
If PD_STAGE_1 = "Enable" Then
Topping "Load" "12-03-01-0024"
Else
Topping "Load" "12-03-03-0024"
EndIf
EndIf
Var menu_name_eng_hot = $12-03-01-0024.NameE
Var menu_desc_eng_hot = $12-03-01-0024.descriptionE
Var menu_name_thai_hot = $12-03-01-0024.Name
Var menu_desc_thai_hot = $12-03-01-0024.description
Var menu_name_eng_cold = $12-03-02-0024.NameE
Var menu_desc_eng_cold = $12-03-02-0024.descriptionE
Var menu_name_thai_cold = $12-03-02-0024.Name
Var menu_desc_thai_cold = $12-03-02-0024.description
Var menu_name_eng_blender = $12-03-03-0024.NameE
Var menu_desc_eng_blender = $12-03-03-0024.descriptionE
Var menu_name_thai_blender = $12-03-03-0024.Name
Var menu_desc_thai_blender = $12-03-03-0024.description
DEBUGVAR PD_STAGE_1
DEBUGVAR PD_STAGE_2
DEBUGVAR PD_STAGE_3
Open "ROOT/taobin_project/xml/page_topping_select4.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> "LYCHEE MILK" </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> "Milk & Lychee Syrup" </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-03-01-0024.Button </State>
<Filename> Var( DirImage2 + "hot.png" ) </Filename>
<FilenameDisable> Var( DirImage2 + "hot_db.png" ) </FilenameDisable>
</Image>
<Text>
<X> 50 </X>
<Y> 265 </Y>
<Size> 14 </Size>
<Width>220</Width>
<Font> KanitMediumTTF </Font>
<Color> 0x6F5F51 </Color>
<ColorDisable> 0xEAE6E1 </ColorDisable>
<State> $12-03-01-0024.Button </State>
<Value> Var( "฿" + $12-03-01-0024.Price ) </Value>
</Text>
<Image>
<X> 81 </X>
<Y> 264 </Y>
<Filename> Var( DirImage2 + "cold.png" ) </Filename>
<FilenameDisable> Var( DirImage2 + "cold_db.png" ) </FilenameDisable>
<State> $12-03-02-0024.Button </State>
</Image>
<Text>
<X> 115 </X>
<Y> 265 </Y>
<Size> 14 </Size>
<Width>220</Width>
<Font> KanitMediumTTF </Font>
<Color> 0x6F5F51 </Color>
<ColorDisable> 0xEAE6E1 </ColorDisable>
<State> $12-03-02-0024.Button </State>
<Value> Var( "฿" + $12-03-02-0024.Price ) </Value>
</Text>
<Image>
<X> 146 </X>
<Y> 264 </Y>
<Filename> Var( DirImage2 + "blend.png" ) </Filename>
<FilenameDisable> Var( DirImage2 + "blend_db.png" ) </FilenameDisable>
<State> $12-03-03-0024.Button </State>
</Image>
<Text>
<X> 183 </X>
<Y> 265 </Y>
<Size> 14 </Size>
<Width>220</Width>
<Font> KanitMediumTTF </Font>
<Color> 0x6F5F51 </Color>
<ColorDisable> 0xEAE6E1 </ColorDisable>
<State> $12-03-03-0024.Button </State>
<Value> Var( "฿" + $12-03-03-0024.Price ) </Value>
</Text>
<Image>
<X> 81 </X>
<Y> 264 </Y>
<State>
eval(
If ICE_PROCESS_STATUS = 2 Then
If $Sum120301002412030200241203030024 = "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 $Sum120301002412030200241203030024 = "Disable" Then
STRCONTAIN "ERR" $12-03-01-0024.TAG tag1_is_disable
STRCONTAIN "ERR" $12-03-02-0024.TAG tag2_is_disable
STRCONTAIN "ERR" $12-03-03-0024.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> $Sum120301002412030200241203030024 </State>
<Value> text_unavailable </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; - - -
</FrameScroll>
; Cart
<Button>

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -513,8 +513,8 @@
Var block_index_override = 0
Var block_index_move = 0
</Script>
; menu_new_list 16
; ==================> Len = 8
; menu_new_list 15
; ==================> Len = 16
; - 12-04-02-0001 -
<Block>
<MarginLeft> 33 </MarginLeft>
@ -761,7 +761,8 @@ Matcha, & Milk" </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; ==================> Len = 8
; - - -
; ==================> Len = 16
; - 12-04-02-0016 -
<Block>
<MarginLeft> 33 </MarginLeft>
@ -1008,7 +1009,8 @@ Matcha, & Milk" </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; ==================> Len = 8
; - - -
; ==================> Len = 16
; - 12-04-02-0002 -
<Block>
<MarginLeft> 33 </MarginLeft>
@ -1255,7 +1257,8 @@ Cocoa, & Milk" </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; ==================> Len = 8
; - - -
; ==================> Len = 16
; - 12-04-02-0003 -
<Block>
<MarginLeft> 33 </MarginLeft>
@ -1504,7 +1507,8 @@ Strawberry Syrup" </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; ==================> Len = 8
; - - -
; ==================> Len = 16
; - 12-04-02-0013 -
<Block>
<MarginLeft> 33 </MarginLeft>
@ -1753,7 +1757,8 @@ Strawberry Syrup" </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; ==================> Len = 8
; - - -
; ==================> Len = 16
; - 12-04-02-0018 -
<Block>
<MarginLeft> 33 </MarginLeft>
@ -2001,7 +2006,8 @@ Melon Syrup" </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; ==================> Len = 8
; - - -
; ==================> Len = 16
; - 12-04-02-0004 -
<Block>
<MarginLeft> 33 </MarginLeft>
@ -2248,7 +2254,8 @@ Melon Syrup" </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; ==================> Len = 8
; - - -
; ==================> Len = 16
; - 12-04-02-0005 -
<Block>
<MarginLeft> 33 </MarginLeft>
@ -2495,7 +2502,8 @@ Thai Tea, & Milk" </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; ==================> Len = 8
; - - -
; ==================> Len = 16
; - 12-04-02-0015 -
<Block>
<MarginLeft> 33 </MarginLeft>
@ -2742,7 +2750,8 @@ Thai Tea, & Milk" </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; ==================> Len = 8
; - - -
; ==================> Len = 16
; - 12-04-02-0006 -
<Block>
<MarginLeft> 33 </MarginLeft>
@ -2991,255 +3000,8 @@ Kokuto syrup" </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; ==================> Len = 8
; - 12-04-02-0007 -
<Block>
<MarginLeft> 33 </MarginLeft>
<MarginTop> 22 </MarginTop>
<Width> 225 </Width>
<Height> 296 </Height>
<State> Flag( 12-04-02-0007.Button,$Sum1204020007) </State>
<Button>
<State> $Sum1204020007 </State>
<Filename> "ROOT/taobin_project/image/page_drink_n//bn_protein_Blueberry.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_drink_press_n//bn_protein_Blueberry.png" </FilenamePress>
<FilenameDisable> "ROOT/taobin_project/image/page_drink_disable_n2//bn_protein_Blueberry.png" </FilenameDisable>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventOnClick>
Var NameDrink = "BLUEBERRY SHAKE"
Var NameDrinkTH = "บลูเบอร์รี่โปรตีน"
Var DrinkDescriptionTH = "เวย์โปรตีน นม น้ำเชื่อมบลูเบอร์รี่"
Var DrinkDescription = "Whey protein, Blueberry Syrup & Milk"
Var PictureDrink = "ROOT/taobin_project/image/page_drink_picture2_n/" + "bn_protein_Blueberry.png"
Var OpenFromXML = CurrentXMLFileName2
Var PriceD1 = $-.Price
Var PriceD2 = $12-04-02-0007.Price
Var PriceD3 = $-.Price
Var PD_CODE1 = "##-##-##-####"
Var PD_CODE2 = "12-04-02-0007"
Var PD_CODE3 = "##-##-##-####"
Var PD_STAGE_1 = "Disable2"
Var PD_STAGE_2 = $12-04-02-0007.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-04-02-0007"
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-04-02-0007.NameE
Var menu_desc_eng_cold = $12-04-02-0007.descriptionE
Var menu_name_thai_cold = $12-04-02-0007.Name
Var menu_desc_thai_cold = $12-04-02-0007.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
Open "ROOT/taobin_project/xml/page_topping_select4.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> "BLUEBERRY SHAKE" </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> "Whey protein,
Blueberry Syrup & 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> "Invisible" </State>
<Filename> Var( DirImage2 + "hot.png" ) </Filename>
<FilenameDisable> Var( DirImage2 + "hot_db.png" ) </FilenameDisable>
</Image>
<Text>
<X> 50 </X>
<Y> 265 </Y>
<Size> 14 </Size>
<Width>220</Width>
<Font> KanitMediumTTF </Font>
<Color> 0x6F5F51 </Color>
<ColorDisable> 0xEAE6E1 </ColorDisable>
<State> "Invisible" </State>
<Value> Var( "฿" + $-.Price ) </Value>
</Text>
<Image>
<X> 81 </X>
<Y> 264 </Y>
<Filename> Var( DirImage2 + "cold.png" ) </Filename>
<FilenameDisable> Var( DirImage2 + "cold_db.png" ) </FilenameDisable>
<State> $12-04-02-0007.Button </State>
</Image>
<Text>
<X> 115 </X>
<Y> 265 </Y>
<Size> 14 </Size>
<Width>220</Width>
<Font> KanitMediumTTF </Font>
<Color> 0x6F5F51 </Color>
<ColorDisable> 0xEAE6E1 </ColorDisable>
<State> $12-04-02-0007.Button </State>
<Value> Var( "฿" + $12-04-02-0007.Price ) </Value>
</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> 183 </X>
<Y> 265 </Y>
<Size> 14 </Size>
<Width>220</Width>
<Font> KanitMediumTTF </Font>
<Color> 0x6F5F51 </Color>
<ColorDisable> 0xEAE6E1 </ColorDisable>
<State> "Invisible" </State>
<Value> Var( "฿" + $-.Price ) </Value>
</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 $Sum1204020007 = "Disable" Then
STRCONTAIN "ERR" $##-##-##-####.TAG tag1_is_disable
STRCONTAIN "ERR" $12-04-02-0007.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> $Sum1204020007 </State>
<Value> text_unavailable </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; ==================> Len = 8
; - - -
; ==================> Len = 16
; - 12-04-02-0008 -
<Block>
<MarginLeft> 33 </MarginLeft>
@ -3488,7 +3250,8 @@ Taiwanese Tea, Sugar" </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; ==================> Len = 8
; - - -
; ==================> Len = 16
; - 12-04-02-0017 -
<Block>
<MarginLeft> 33 </MarginLeft>
@ -3737,7 +3500,8 @@ Taiwanese Tea, Sugar" </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; ==================> Len = 8
; - - -
; ==================> Len = 16
; - 12-04-02-0009 -
<Block>
<MarginLeft> 33 </MarginLeft>
@ -3985,7 +3749,8 @@ Caramel Syrup" </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; ==================> Len = 8
; - - -
; ==================> Len = 16
; - 12-04-02-0010 -
<Block>
<MarginLeft> 33 </MarginLeft>
@ -4231,7 +3996,8 @@ Caramel Syrup" </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; ==================> Len = 8
; - - -
; ==================> Len = 16
; - 12-04-02-0011 -
<Block>
<MarginLeft> 33 </MarginLeft>
@ -4477,6 +4243,7 @@ Caramel Syrup" </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; - - -
</FrameScroll>
; Cart
<Button>

View file

@ -126,36 +126,37 @@
Else
Random video_id_to_ran
EndIf
Var ThankyouST = "Enable"
EndIf
If new_layout = "true" Then
DEBUGVAR video_id_to_ran
DEBUGVAR video_id_to_ran
Var show_video = 1
Var SaveTheWorldST = "Invisible"
Var video_file_name = "ROOT/taobin_project/video/" + video_name_to_play
Var video_file_name = video_file_name + video_id_to_ran
Var video_file_name = video_file_name + ".mp4"
DEBUGVAR video_file_name
Var VideoFileNameStage = "Enable"
Var TimeoutToNext = 5
Var ThankyouST = "Invisible"
Else
Var show_video = 0
Var VideoFileNameStage = "Invisible"
Var TimeoutToNext = 3
Var show_video = 1
Var SaveTheWorldST = "Invisible"
Var video_file_name = "ROOT/taobin_project/video/" + video_name_to_play
Var video_file_name = video_file_name + video_id_to_ran
Var video_file_name = video_file_name + ".mp4"
If SaveTheWorldCount < 2 Then
If EventTurnOn = 1 Then
Var video_file_name = "ROOT/taobin_project/video/taobin_thank1_event.mp4"
EndIf
EndIf
DEBUGVAR video_file_name
Var VideoFileNameStage = "Enable"
Var TimeoutToNext = 5
Var ThankyouST = "Invisible"
</EventOpen>
<Timeout> 1000 </Timeout>
<EventTimeout>

View file

@ -67,6 +67,8 @@
DEBUGVAR TelephoneNumber
DEBUGVAR Seeker.StoreCreditFlag
Var SaveTheWorldST = "Invisible"
Var SaveTheWorldCount = 0
@ -122,6 +124,10 @@
Var buttonRemoveCup = "Invisible"
Var CountUpDoorCupOpen = 0
Machine DoorClose
Var Timeout2 = 0
</EventOpen>
<Timeout> 1000 </Timeout>
<EventTimeout>
@ -134,9 +140,9 @@
DEBUGVAR CHECKCUP
DEBUGVAR CupChecking
DEBUGVAR MaybeHaveCup
DEBUGVAR NextOrder
DEBUGVAR DoorCupPosition
DEBUGVAR CountUpDoorCupOpen
DEBUGVAR Timeout2
DEBUGVAR MakeContinue
If PaySuccessWithDaemonTask = 1 Then
@ -159,6 +165,29 @@
EndIf
Var Timeout2 = Timeout2 + 1
; Timeout2 10*60*2
If Timeout2 > 1100 Then
SAVELOG "Timeout2 1100"
SAVELOG "Make next order by take-cup with close-maintenance 2"
Var error_code_stop_now = 1221
If DoorCupPosition = "bottom" Then
Else
Var error_code_stop_now = 1296
EndIf
Open "ROOT/taobin_project/xml/page_cannotConti.xml"
EndIf
If HaveCup = "true" Then
Var Timeout = 0
Else