DO coffee and pull

This commit is contained in:
kong 2021-08-25 22:42:18 +07:00
parent 0990a37cbb
commit d4a903b98b
27 changed files with 407 additions and 29 deletions

View file

@ -415,6 +415,7 @@
EndIf
;DEBUGVAR CupOnArm
;Var CupOnArm = "true"
If CupOnArm = "true" Then
Var buttonRemoveCup = "Enable"
@ -581,11 +582,11 @@
<Button>
<X> 840 </X>
<Y> 634 </Y>
<X> 780 </X>
<Y> 630 </Y>
<State> buttonRemoveCup </State>
;<Color> "0x00BDFF" </Color>
<Interval> 300 </Interval>
<Interval> 500 </Interval>
<Filename> "ROOT/taobin_project/image/main_page/bn_remove_cup.png" </Filename>
<Filename> "ROOT/taobin_project/image/main_page/bp_remove_cup.png" </Filename>
<EventClick>

View file

@ -9,10 +9,12 @@
product_code = []
product_code.append('12-01-01-0001')
product_code.append('12-01-01-0013')
product_code.append('12-01-01-0020')
product_code.append('12-11-01-0001')
product_code.append('12-01-01-0003')
product_code.append('12-01-01-0014')
product_code.append('12-01-01-0019')
product_code.append('12-01-01-0004')
@ -27,11 +29,13 @@
product_code.append('12-01-01-0012')
product_code.append('12-01-01-0017')
product_code.append('12-01-02-0018')
product_code.append('12-01-02-0020')
product_code.append('12-11-02-0001')
product_code.append('12-01-02-0001')
product_code.append('12-01-02-0011')
product_code.append('12-01-02-0019')
product_code.append('12-01-02-0002')
product_code.append('12-11-02-0002')

View file

@ -448,7 +448,100 @@
<Value> $12-01-01-0013.descriptionE </Value>
</Text>
</Block>
; button i=3 12-11-01-0001
; button i=3 12-01-01-0020
<Block>
<MarginLeft> 33 </MarginLeft>
<MarginTop> 22 </MarginTop>
<Width> 225 </Width>
<Height> 296 </Height>
<State> $12-01-01-0020.Button </State>
<Button>
<State> $12-01-01-0020.Button </State>
<Filename> Var( "ROOT/taobin_project/image/page_drink/" + $12-01-01-0020.image ) </Filename>
<FilenamePress> Var( "ROOT/taobin_project/image/page_drink_press/" + $12-01-01-0020.image ) " </FilenamePress>
<FilenameDisable> Var( "ROOT/taobin_project/image/page_drink_disable/" + $12-01-01-0020.image ) " </FilenameDisable>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventOnClick>
Var SelectDrink = $12-01-01-0020.Self
Var NameDrink = $12-01-01-0020.NameE
Var NameDrinkTH = $12-01-01-0020.Name
Var DrinkDescriptionTH = $12-01-01-0020.description
Var DrinkDescription = $12-01-01-0020.descriptionE
Var PriceDrink = $12-01-01-0020.Price
Var PictureDrink = "ROOT/taobin_project/image/page_drink_select/" + $12-01-01-0020.image
Topping "Load" SelectDrink
SAVELOG NameDrink
Var PriceShowValue = charOfBaht + PriceDrink
Var OpenFromXML = CurrentXMLFileName2
Open "ROOT/taobin_project/xml/page_topping_alter.xml"
</EventOnClick>
</Button>
<Text>
<X> 182 </X>
<Y> 12 </Y>
<State> ShowPrice </State>
<Align> "Hurr" </Align>
<Width>150</Width>
<Size> 27 </Size>
<Font> KanitTTF </Font>
<Color> 0xB78F24 </Color>
<Value> $12-01-01-0020.Price </Value>
</Text>
<Text>
<X> 164 </X>
<Y> 12 </Y>
<State> ShowPrice </State>
<Width>20</Width>
<Size> 27 </Size>
<Font> KanitTTF </Font>
<Color> 0xB78F24 </Color>
<Value> "฿"" </Value>
</Text>
<Text>
<X> 16 </X>
<Y> 190 </Y>
<Size> 24 </Size>
<Width>220</Width>
<Mode> "multi2" </Mode>
<Font> KanitMediumTTF </Font>
<Color> 0x322B26 </Color>
<State> showthaiText </State>
<Value> $12-01-01-0020.Name </Value>
</Text>
<Text>
<X> 16 </X>
<Y> 246 </Y>
<Size> 14 </Size>
<Width>220</Width>
<Font> KanitMediumTTF </Font>
<Color> 0x6F5F51 </Color>
<State> showthaiText </State>
<Value> $12-01-01-0020.description </Value>
</Text>
<Text>
<X> 16 </X>
<Y> 190 </Y>
<Size> 22 </Size>
<Width>220</Width>
<Mode> "multi2" </Mode>
<Font> KanitMediumTTF </Font>
<Color> 0x322B26 </Color>
<State> showengText </State>
<Value> $12-01-01-0020.NameE </Value>
</Text>
<Text>
<X> 16 </X>
<Y> 246 </Y>
<Size> 14 </Size>
<Width>220</Width>
<Font> KanitMediumTTF </Font>
<Color> 0x6F5F51 </Color>
<State> showengText </State>
<Value> $12-01-01-0020.descriptionE </Value>
</Text>
</Block>
; button i=4 12-11-01-0001
<Block>
<MarginLeft> 33 </MarginLeft>
<MarginTop> 22 </MarginTop>
@ -541,7 +634,7 @@
<Value> $12-11-01-0001.descriptionE </Value>
</Text>
</Block>
; button i=4 12-01-01-0003
; button i=5 12-01-01-0003
<Block>
<MarginLeft> 33 </MarginLeft>
<MarginTop> 22 </MarginTop>
@ -634,7 +727,7 @@
<Value> $12-01-01-0003.descriptionE </Value>
</Text>
</Block>
; button i=5 12-01-01-0014
; button i=6 12-01-01-0014
<Block>
<MarginLeft> 33 </MarginLeft>
<MarginTop> 22 </MarginTop>
@ -727,7 +820,100 @@
<Value> $12-01-01-0014.descriptionE </Value>
</Text>
</Block>
; button i=6 12-01-01-0004
; button i=7 12-01-01-0019
<Block>
<MarginLeft> 33 </MarginLeft>
<MarginTop> 22 </MarginTop>
<Width> 225 </Width>
<Height> 296 </Height>
<State> $12-01-01-0019.Button </State>
<Button>
<State> $12-01-01-0019.Button </State>
<Filename> Var( "ROOT/taobin_project/image/page_drink/" + $12-01-01-0019.image ) </Filename>
<FilenamePress> Var( "ROOT/taobin_project/image/page_drink_press/" + $12-01-01-0019.image ) " </FilenamePress>
<FilenameDisable> Var( "ROOT/taobin_project/image/page_drink_disable/" + $12-01-01-0019.image ) " </FilenameDisable>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventOnClick>
Var SelectDrink = $12-01-01-0019.Self
Var NameDrink = $12-01-01-0019.NameE
Var NameDrinkTH = $12-01-01-0019.Name
Var DrinkDescriptionTH = $12-01-01-0019.description
Var DrinkDescription = $12-01-01-0019.descriptionE
Var PriceDrink = $12-01-01-0019.Price
Var PictureDrink = "ROOT/taobin_project/image/page_drink_select/" + $12-01-01-0019.image
Topping "Load" SelectDrink
SAVELOG NameDrink
Var PriceShowValue = charOfBaht + PriceDrink
Var OpenFromXML = CurrentXMLFileName2
Open "ROOT/taobin_project/xml/page_topping_alter.xml"
</EventOnClick>
</Button>
<Text>
<X> 182 </X>
<Y> 12 </Y>
<State> ShowPrice </State>
<Align> "Hurr" </Align>
<Width>150</Width>
<Size> 27 </Size>
<Font> KanitTTF </Font>
<Color> 0xB78F24 </Color>
<Value> $12-01-01-0019.Price </Value>
</Text>
<Text>
<X> 164 </X>
<Y> 12 </Y>
<State> ShowPrice </State>
<Width>20</Width>
<Size> 27 </Size>
<Font> KanitTTF </Font>
<Color> 0xB78F24 </Color>
<Value> "฿"" </Value>
</Text>
<Text>
<X> 16 </X>
<Y> 190 </Y>
<Size> 24 </Size>
<Width>220</Width>
<Mode> "multi2" </Mode>
<Font> KanitMediumTTF </Font>
<Color> 0x322B26 </Color>
<State> showthaiText </State>
<Value> $12-01-01-0019.Name </Value>
</Text>
<Text>
<X> 16 </X>
<Y> 246 </Y>
<Size> 14 </Size>
<Width>220</Width>
<Font> KanitMediumTTF </Font>
<Color> 0x6F5F51 </Color>
<State> showthaiText </State>
<Value> $12-01-01-0019.description </Value>
</Text>
<Text>
<X> 16 </X>
<Y> 190 </Y>
<Size> 22 </Size>
<Width>220</Width>
<Mode> "multi2" </Mode>
<Font> KanitMediumTTF </Font>
<Color> 0x322B26 </Color>
<State> showengText </State>
<Value> $12-01-01-0019.NameE </Value>
</Text>
<Text>
<X> 16 </X>
<Y> 246 </Y>
<Size> 14 </Size>
<Width>220</Width>
<Font> KanitMediumTTF </Font>
<Color> 0x6F5F51 </Color>
<State> showengText </State>
<Value> $12-01-01-0019.descriptionE </Value>
</Text>
</Block>
; button i=8 12-01-01-0004
<Block>
<MarginLeft> 33 </MarginLeft>
<MarginTop> 22 </MarginTop>
@ -820,7 +1006,7 @@
<Value> $12-01-01-0004.descriptionE </Value>
</Text>
</Block>
; button i=7 12-01-01-0005
; button i=9 12-01-01-0005
<Block>
<MarginLeft> 33 </MarginLeft>
<MarginTop> 22 </MarginTop>
@ -913,7 +1099,7 @@
<Value> $12-01-01-0005.descriptionE </Value>
</Text>
</Block>
; button i=8 12-01-01-0006
; button i=10 12-01-01-0006
<Block>
<MarginLeft> 33 </MarginLeft>
<MarginTop> 22 </MarginTop>
@ -1006,7 +1192,7 @@
<Value> $12-01-01-0006.descriptionE </Value>
</Text>
</Block>
; button i=9 12-01-01-0007
; button i=11 12-01-01-0007
<Block>
<MarginLeft> 33 </MarginLeft>
<MarginTop> 22 </MarginTop>
@ -1099,7 +1285,7 @@
<Value> $12-01-01-0007.descriptionE </Value>
</Text>
</Block>
; button i=10 12-01-01-0009
; button i=12 12-01-01-0009
<Block>
<MarginLeft> 33 </MarginLeft>
<MarginTop> 22 </MarginTop>
@ -1192,7 +1378,7 @@
<Value> $12-01-01-0009.descriptionE </Value>
</Text>
</Block>
; button i=11 12-01-01-0010
; button i=13 12-01-01-0010
<Block>
<MarginLeft> 33 </MarginLeft>
<MarginTop> 22 </MarginTop>
@ -1285,7 +1471,7 @@
<Value> $12-01-01-0010.descriptionE </Value>
</Text>
</Block>
; button i=12 12-01-01-0011
; button i=14 12-01-01-0011
<Block>
<MarginLeft> 33 </MarginLeft>
<MarginTop> 22 </MarginTop>
@ -1378,7 +1564,7 @@
<Value> $12-01-01-0011.descriptionE </Value>
</Text>
</Block>
; button i=13 12-01-01-0012
; button i=15 12-01-01-0012
<Block>
<MarginLeft> 33 </MarginLeft>
<MarginTop> 22 </MarginTop>
@ -1471,7 +1657,7 @@
<Value> $12-01-01-0012.descriptionE </Value>
</Text>
</Block>
; button i=14 12-01-01-0017
; button i=16 12-01-01-0017
<Block>
<MarginLeft> 33 </MarginLeft>
<MarginTop> 22 </MarginTop>
@ -1564,7 +1750,7 @@
<Value> $12-01-01-0017.descriptionE </Value>
</Text>
</Block>
; button i=15 12-01-02-0018
; button i=17 12-01-02-0018
<Block>
<MarginLeft> 33 </MarginLeft>
<MarginTop> 22 </MarginTop>
@ -1657,7 +1843,100 @@
<Value> $12-01-02-0018.descriptionE </Value>
</Text>
</Block>
; button i=16 12-11-02-0001
; button i=18 12-01-02-0020
<Block>
<MarginLeft> 33 </MarginLeft>
<MarginTop> 22 </MarginTop>
<Width> 225 </Width>
<Height> 296 </Height>
<State> $12-01-02-0020.Button </State>
<Button>
<State> $12-01-02-0020.Button </State>
<Filename> Var( "ROOT/taobin_project/image/page_drink/" + $12-01-02-0020.image ) </Filename>
<FilenamePress> Var( "ROOT/taobin_project/image/page_drink_press/" + $12-01-02-0020.image ) " </FilenamePress>
<FilenameDisable> Var( "ROOT/taobin_project/image/page_drink_disable/" + $12-01-02-0020.image ) " </FilenameDisable>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventOnClick>
Var SelectDrink = $12-01-02-0020.Self
Var NameDrink = $12-01-02-0020.NameE
Var NameDrinkTH = $12-01-02-0020.Name
Var DrinkDescriptionTH = $12-01-02-0020.description
Var DrinkDescription = $12-01-02-0020.descriptionE
Var PriceDrink = $12-01-02-0020.Price
Var PictureDrink = "ROOT/taobin_project/image/page_drink_select/" + $12-01-02-0020.image
Topping "Load" SelectDrink
SAVELOG NameDrink
Var PriceShowValue = charOfBaht + PriceDrink
Var OpenFromXML = CurrentXMLFileName2
Open "ROOT/taobin_project/xml/page_topping_alter.xml"
</EventOnClick>
</Button>
<Text>
<X> 182 </X>
<Y> 12 </Y>
<State> ShowPrice </State>
<Align> "Hurr" </Align>
<Width>150</Width>
<Size> 27 </Size>
<Font> KanitTTF </Font>
<Color> 0xB78F24 </Color>
<Value> $12-01-02-0020.Price </Value>
</Text>
<Text>
<X> 164 </X>
<Y> 12 </Y>
<State> ShowPrice </State>
<Width>20</Width>
<Size> 27 </Size>
<Font> KanitTTF </Font>
<Color> 0xB78F24 </Color>
<Value> "฿"" </Value>
</Text>
<Text>
<X> 16 </X>
<Y> 190 </Y>
<Size> 24 </Size>
<Width>220</Width>
<Mode> "multi2" </Mode>
<Font> KanitMediumTTF </Font>
<Color> 0x322B26 </Color>
<State> showthaiText </State>
<Value> $12-01-02-0020.Name </Value>
</Text>
<Text>
<X> 16 </X>
<Y> 246 </Y>
<Size> 14 </Size>
<Width>220</Width>
<Font> KanitMediumTTF </Font>
<Color> 0x6F5F51 </Color>
<State> showthaiText </State>
<Value> $12-01-02-0020.description </Value>
</Text>
<Text>
<X> 16 </X>
<Y> 190 </Y>
<Size> 22 </Size>
<Width>220</Width>
<Mode> "multi2" </Mode>
<Font> KanitMediumTTF </Font>
<Color> 0x322B26 </Color>
<State> showengText </State>
<Value> $12-01-02-0020.NameE </Value>
</Text>
<Text>
<X> 16 </X>
<Y> 246 </Y>
<Size> 14 </Size>
<Width>220</Width>
<Font> KanitMediumTTF </Font>
<Color> 0x6F5F51 </Color>
<State> showengText </State>
<Value> $12-01-02-0020.descriptionE </Value>
</Text>
</Block>
; button i=19 12-11-02-0001
<Block>
<MarginLeft> 33 </MarginLeft>
<MarginTop> 22 </MarginTop>
@ -1750,7 +2029,7 @@
<Value> $12-11-02-0001.descriptionE </Value>
</Text>
</Block>
; button i=17 12-01-02-0001
; button i=20 12-01-02-0001
<Block>
<MarginLeft> 33 </MarginLeft>
<MarginTop> 22 </MarginTop>
@ -1843,7 +2122,7 @@
<Value> $12-01-02-0001.descriptionE </Value>
</Text>
</Block>
; button i=18 12-01-02-0011
; button i=21 12-01-02-0011
<Block>
<MarginLeft> 33 </MarginLeft>
<MarginTop> 22 </MarginTop>
@ -1936,7 +2215,100 @@
<Value> $12-01-02-0011.descriptionE </Value>
</Text>
</Block>
; button i=19 12-01-02-0002
; button i=22 12-01-02-0019
<Block>
<MarginLeft> 33 </MarginLeft>
<MarginTop> 22 </MarginTop>
<Width> 225 </Width>
<Height> 296 </Height>
<State> $12-01-02-0019.Button </State>
<Button>
<State> $12-01-02-0019.Button </State>
<Filename> Var( "ROOT/taobin_project/image/page_drink/" + $12-01-02-0019.image ) </Filename>
<FilenamePress> Var( "ROOT/taobin_project/image/page_drink_press/" + $12-01-02-0019.image ) " </FilenamePress>
<FilenameDisable> Var( "ROOT/taobin_project/image/page_drink_disable/" + $12-01-02-0019.image ) " </FilenameDisable>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventOnClick>
Var SelectDrink = $12-01-02-0019.Self
Var NameDrink = $12-01-02-0019.NameE
Var NameDrinkTH = $12-01-02-0019.Name
Var DrinkDescriptionTH = $12-01-02-0019.description
Var DrinkDescription = $12-01-02-0019.descriptionE
Var PriceDrink = $12-01-02-0019.Price
Var PictureDrink = "ROOT/taobin_project/image/page_drink_select/" + $12-01-02-0019.image
Topping "Load" SelectDrink
SAVELOG NameDrink
Var PriceShowValue = charOfBaht + PriceDrink
Var OpenFromXML = CurrentXMLFileName2
Open "ROOT/taobin_project/xml/page_topping_alter.xml"
</EventOnClick>
</Button>
<Text>
<X> 182 </X>
<Y> 12 </Y>
<State> ShowPrice </State>
<Align> "Hurr" </Align>
<Width>150</Width>
<Size> 27 </Size>
<Font> KanitTTF </Font>
<Color> 0xB78F24 </Color>
<Value> $12-01-02-0019.Price </Value>
</Text>
<Text>
<X> 164 </X>
<Y> 12 </Y>
<State> ShowPrice </State>
<Width>20</Width>
<Size> 27 </Size>
<Font> KanitTTF </Font>
<Color> 0xB78F24 </Color>
<Value> "฿"" </Value>
</Text>
<Text>
<X> 16 </X>
<Y> 190 </Y>
<Size> 24 </Size>
<Width>220</Width>
<Mode> "multi2" </Mode>
<Font> KanitMediumTTF </Font>
<Color> 0x322B26 </Color>
<State> showthaiText </State>
<Value> $12-01-02-0019.Name </Value>
</Text>
<Text>
<X> 16 </X>
<Y> 246 </Y>
<Size> 14 </Size>
<Width>220</Width>
<Font> KanitMediumTTF </Font>
<Color> 0x6F5F51 </Color>
<State> showthaiText </State>
<Value> $12-01-02-0019.description </Value>
</Text>
<Text>
<X> 16 </X>
<Y> 190 </Y>
<Size> 22 </Size>
<Width>220</Width>
<Mode> "multi2" </Mode>
<Font> KanitMediumTTF </Font>
<Color> 0x322B26 </Color>
<State> showengText </State>
<Value> $12-01-02-0019.NameE </Value>
</Text>
<Text>
<X> 16 </X>
<Y> 246 </Y>
<Size> 14 </Size>
<Width>220</Width>
<Font> KanitMediumTTF </Font>
<Color> 0x6F5F51 </Color>
<State> showengText </State>
<Value> $12-01-02-0019.descriptionE </Value>
</Text>
</Block>
; button i=23 12-01-02-0002
<Block>
<MarginLeft> 33 </MarginLeft>
<MarginTop> 22 </MarginTop>
@ -2029,7 +2401,7 @@
<Value> $12-01-02-0002.descriptionE </Value>
</Text>
</Block>
; button i=20 12-11-02-0002
; button i=24 12-11-02-0002
<Block>
<MarginLeft> 33 </MarginLeft>
<MarginTop> 22 </MarginTop>
@ -2122,7 +2494,7 @@
<Value> $12-11-02-0002.descriptionE </Value>
</Text>
</Block>
; button i=21 12-01-02-0003
; button i=25 12-01-02-0003
<Block>
<MarginLeft> 33 </MarginLeft>
<MarginTop> 22 </MarginTop>
@ -2215,7 +2587,7 @@
<Value> $12-01-02-0003.descriptionE </Value>
</Text>
</Block>
; button i=22 12-01-02-0004
; button i=26 12-01-02-0004
<Block>
<MarginLeft> 33 </MarginLeft>
<MarginTop> 22 </MarginTop>
@ -2308,7 +2680,7 @@
<Value> $12-01-02-0004.descriptionE </Value>
</Text>
</Block>
; button i=23 12-01-02-0005
; button i=27 12-01-02-0005
<Block>
<MarginLeft> 33 </MarginLeft>
<MarginTop> 22 </MarginTop>
@ -2401,7 +2773,7 @@
<Value> $12-01-02-0005.descriptionE </Value>
</Text>
</Block>
; button i=24 12-01-02-0007
; button i=28 12-01-02-0007
<Block>
<MarginLeft> 33 </MarginLeft>
<MarginTop> 22 </MarginTop>
@ -2494,7 +2866,7 @@
<Value> $12-01-02-0007.descriptionE </Value>
</Text>
</Block>
; button i=25 12-01-02-0008
; button i=29 12-01-02-0008
<Block>
<MarginLeft> 33 </MarginLeft>
<MarginTop> 22 </MarginTop>
@ -2587,7 +2959,7 @@
<Value> $12-01-02-0008.descriptionE </Value>
</Text>
</Block>
; button i=26 12-01-02-0009
; button i=30 12-01-02-0009
<Block>
<MarginLeft> 33 </MarginLeft>
<MarginTop> 22 </MarginTop>
@ -2680,7 +3052,7 @@
<Value> $12-01-02-0009.descriptionE </Value>
</Text>
</Block>
; button i=27 12-01-02-0017
; button i=31 12-01-02-0017
<Block>
<MarginLeft> 33 </MarginLeft>
<MarginTop> 22 </MarginTop>
@ -2773,7 +3145,7 @@
<Value> $12-01-02-0017.descriptionE </Value>
</Text>
</Block>
; button i=28 11-01-02-0009
; button i=32 11-01-02-0009
<Block>
<MarginLeft> 33 </MarginLeft>
<MarginTop> 22 </MarginTop>