do invisiable

This commit is contained in:
kong 2020-12-20 20:21:22 +07:00
parent 7a57379f94
commit 06a3e648ca
194 changed files with 2333 additions and 1582 deletions

View file

@ -1,32 +1,27 @@
if menu_count >= 16:
scroll_height = 1725
else:
scroll_height = 1400
out_xml('<FrameScroll> \r\n')
out_xml('<X> 0 </X>\r\n')
out_xml('<Y> 520 </Y>\r\n')
out_xml('<X> 10 </X>\r\n')
out_xml('<Y> 497 </Y>\r\n')
out_xml('<Width> 1080 </Width>\r\n')
out_xml('<Height> 1400 </Height>\r\n')
out_xml('<ScrollHeight> "auto" </ScrollHeight>\r\n')
out_xml('<Scroll> "Vertical" </Scroll>\r\n')
out_xml('<Column> 4 </Column>\r\n')
for i in range( menu_count):
i_str = str(i + 1)
out_xml( '\t; button i='+ i_str + ' ' + product_code[i]+ ' \r\n')
out_xml( '<Block>\r\n')
out_xml('\t<MarginLeft> 33 </MarginLeft>\r\n')
out_xml('\t<MarginTop> 22 </MarginTop>\r\n')
out_xml('\t<Width> 225 </Width>\r\n')
out_xml('\t<Height> 296 </Height>\r\n')
out_xml( '\t<Button>\r\n')
out_xml( '\t<X> 0 </X> \r\n')
out_xml( '\t<Y> 0 </Y> \r\n')
out_xml( '\t<State> $' + product_code[i] + '.Button </State> \r\n')
out_xml( '\t<Filename> "' + default_dir + ''+ bt_pic[i].replace('#','n') +'" </Filename>\r\n')
out_xml( '\t<FilenamePress> "' + default_dir_press + ''+ bt_pic[i].replace('#','n') +'" </FilenamePress>\r\n')
out_xml( '\t<FilenameDisable> "' + default_dir_disable + ''+ bt_pic[i].replace('#','n') +'" </FilenameDisable>\r\n')
out_xml( '\t<Button>\r\n')
out_xml( '\t<Filename> Var( "' + default_dir + '" + $'+ product_code[i] +'.image ) </Filename>\r\n')
out_xml( '\t<FilenamePress> Var( "' + default_dir_press + '" + $'+ product_code[i] +'.image ) " </FilenamePress>\r\n')
out_xml( '\t<FilenameDisable> Var( "' + default_dir_disable + '" + $'+ product_code[i] +'.image ) " </FilenameDisable>\r\n')
out_xml( '\t<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>\r\n')
out_xml( '\t<Volume> SoundVolume </Volume>\r\n')
out_xml( '\t<EventOnClick> \r\n')
@ -37,68 +32,85 @@
out_xml( '\t\tVar DrinkDescriptionTH = $' + product_code[i] + '.description\r\n')
out_xml( '\t\tVar DrinkDescription = $' + product_code[i] + '.descriptionE\r\n')
out_xml( '\t\tVar PriceDrink = $' + product_code[i] + '.Price\r\n')
out_xml( '\t\tVar PictureDrink = "' + default_dir2 + '/' + bt_pic[i].replace('#','n') + '"\r\n')
out_xml( '\t\tVar PictureDrink = "' + default_dir2 + '" + $'+ product_code[i] +'.image\r\n')
out_xml( '\t\tTopping "Load" SelectDrink\r\n')
out_xml( '\t\tSAVELOG NameDrink\r\n')
out_xml( '\t\tVar PriceShowValue = charOfBaht + PriceDrink\r\n')
out_xml( '\t\tVar PriceShowValue = charOfBaht + PriceDrink\r\n')
#out_xml( '\t\tVar PriceShowValue = "Free"\r\n')
out_xml( '\t\tOpen "ROOT/taobin_project/xml/page_topping_alter.xml"\r\n')
out_xml( '\t</EventOnClick>\r\n')
out_xml( '\t</Button>\r\n')
if RoadShow :
out_xml( '\t<Text>\r\n')
out_xml( '\t<X> 164 </X>\r\n')
out_xml( '\t<Y> 12 </Y>\r\n')
out_xml( '\t<Width>200</Width>\r\n')
out_xml( '\t<Size> 27 </Size>\r\n')
out_xml( '\t<Font> KanitTTF </Font>\r\n')
out_xml( '\t<Color> 0xB78F24 </Color>\r\n')
out_xml( '\t<Value> "Free!" </Value>\r\n')
out_xml( '\t</Text>\r\n')
else:
out_xml( '\t<Text>\r\n')
out_xml( '\t<X> 182 </X>\r\n')
out_xml( '\t<Y> 12 </Y>\r\n')
out_xml( '\t<Align> "Hurr" </Align>\r\n')
out_xml( '\t<Width>150</Width>\r\n')
out_xml( '\t<Size> 27 </Size>\r\n')
out_xml( '\t<Font> KanitTTF </Font>\r\n')
out_xml( '\t<Color> 0xB78F24 </Color>\r\n')
out_xml( '\t<Value> $' + product_code[i] + '.Price </Value>\r\n')
out_xml( '\t</Text>\r\n')
out_xml( '\t<Text>\r\n')
out_xml( '\t<X> 164 </X>\r\n')
out_xml( '\t<Y> 12 </Y>\r\n')
out_xml( '\t<Width>20</Width>\r\n')
out_xml( '\t<Size> 27 </Size>\r\n')
out_xml( '\t<Font> KanitTTF </Font>\r\n')
out_xml( '\t<Color> 0xB78F24 </Color>\r\n')
out_xml( '\t<Value> "฿"" </Value>\r\n')
out_xml( '\t</Text>\r\n')
out_xml( '\t<Text>\r\n')
out_xml( '\t<X> 16 </X>\r\n')
out_xml( '\t<Y> 214 </Y>\r\n')
out_xml( '\t<Size> 26 </Size>\r\n')
out_xml( '\t<Width>220</Width>\r\n')
out_xml( '\t<Mode> "bound" </Mode>\r\n')
out_xml( '\t<Font> KanitMediumTTF </Font>\r\n')
out_xml( '\t<Color> 0x322B26 </Color>\r\n')
out_xml( '\t<Value> $' + product_code[i] + '.Name </Value>\r\n')
out_xml( '\t<X> 182 </X>\r\n')
out_xml( '\t<Y> 12 </Y>\r\n')
out_xml( '\t<State> ShowPrice </State>\r\n')
out_xml( '\t<Align> "Hurr" </Align>\r\n')
out_xml( '\t<Width>150</Width>\r\n')
out_xml( '\t<Size> 27 </Size>\r\n')
out_xml( '\t<Font> KanitTTF </Font>\r\n')
out_xml( '\t<Color> 0xB78F24 </Color>\r\n')
out_xml( '\t<Value> $' + product_code[i] + '.Price </Value>\r\n')
out_xml( '\t</Text>\r\n')
out_xml( '\t<Text>\r\n')
out_xml( '\t<X> 16 </X>\r\n')
out_xml( '\t<Y> 246 </Y>\r\n')
out_xml( '\t<X> 164 </X>\r\n')
out_xml( '\t<Y> 12 </Y>\r\n')
out_xml( '\t<State> ShowPrice </State>\r\n')
out_xml( '\t<Width>20</Width>\r\n')
out_xml( '\t<Size> 27 </Size>\r\n')
out_xml( '\t<Font> KanitTTF </Font>\r\n')
out_xml( '\t<Color> 0xB78F24 </Color>\r\n')
out_xml( '\t<Value> "฿"" </Value>\r\n')
out_xml( '\t</Text>\r\n')
out_xml( '\t<Text>\r\n')
out_xml( '\t<X> 16 </X>\r\n')
out_xml( '\t<Y> 190 </Y>\r\n')
out_xml( '\t<Size> 24 </Size>\r\n')
out_xml( '\t<Width>220</Width>\r\n')
out_xml( '\t<Mode> "multi2" </Mode>\r\n')
out_xml( '\t<Font> KanitMediumTTF </Font>\r\n')
out_xml( '\t<Color> 0x322B26 </Color>\r\n')
out_xml( '\t<State> showthaiText </State>\r\n')
out_xml( '\t<Value> $' + product_code[i] + '.Name </Value>\r\n')
out_xml( '\t</Text>\r\n')
out_xml( '\t<Text>\r\n')
out_xml( '\t<X> 16 </X>\r\n')
out_xml( '\t<Y> 246 </Y>\r\n')
out_xml( '\t<Size> 14 </Size>\r\n')
out_xml( '\t<Width>220</Width>\r\n')
out_xml( '\t<Font> KanitMediumTTF </Font>\r\n')
out_xml( '\t<Color> 0x6F5F51 </Color>\r\n')
out_xml( '\t<State> showthaiText </State>\r\n')
out_xml( '\t<Value> $' + product_code[i] + '.description </Value>\r\n')
out_xml( '\t</Text>\r\n')
out_xml( '\t<Text>\r\n')
out_xml( '\t<X> 16 </X>\r\n')
out_xml( '\t<Y> 190 </Y>\r\n')
out_xml( '\t<Size> 22 </Size>\r\n')
out_xml( '\t<Width>220</Width>\r\n')
out_xml( '\t<Mode> "multi2" </Mode>\r\n')
out_xml( '\t<Font> KanitMediumTTF </Font>\r\n')
out_xml( '\t<Color> 0x322B26 </Color>\r\n')
out_xml( '\t<State> showengText </State>\r\n')
out_xml( '\t<Value> $' + product_code[i] + '.NameE </Value>\r\n')
out_xml( '\t</Text>\r\n')
out_xml( '\t<Text>\r\n')
out_xml( '\t<X> 16 </X>\r\n')
out_xml( '\t<Y> 246 </Y>\r\n')
out_xml( '\t<Size> 14 </Size>\r\n')
out_xml( '\t<Width>220</Width>\r\n')
out_xml( '\t<Font> KanitMediumTTF </Font>\r\n')
out_xml( '\t<Color> 0x6F5F51 </Color>\r\n')
out_xml( '\t<State> showengText </State>\r\n')
out_xml( '\t<Value> $' + product_code[i] + '.descriptionE </Value>\r\n')
out_xml( '\t</Text>\r\n')
out_xml( '</Block>\r\n')

View file

@ -83,7 +83,7 @@
SAVELOG ShowPrice
Var CountDownShowButton = 35
</EventOpen>
<Timeout> 1000 </Timeout>
@ -127,13 +127,13 @@
;SAVELOG CountDownShowButton
;SAVELOG ShowButtonClickFull
If CountDownShowButton = 28 Then
If CountDownShowButton = 31 Then
Var ShowButtonClickFull = "Enable"
Var ShowButtonClick = "Invisible"
Refresh
EndIf
If CountDownShowButton = 10 Then
If CountDownShowButton = 9 Then
Var ShowButtonClick = "Enable"
Var ShowButtonClickFull = "Invisible"
@ -146,7 +146,7 @@
<EventEnd>
SAVELOG ShowButtonClick
Var CountDownShowButton = 30
Var CountDownShowButton = 35
Refresh
</EventEnd>

View file

@ -61,7 +61,7 @@
Var Menu5Selected = "Invisible"
Var Menu6Selected = "Enable"
Var Menu7Selected = "Enable"
Var Menu8Selected = "Invisible"
If CocktailShow = "true" Then
Var Menu7Selected = "Invisible"

View file

@ -35,7 +35,7 @@
Var Menu5Selected = "Invisible"
Var Menu6Selected = "Enable"
Var Menu7Selected = "Enable"
Var Menu8Selected = "Invisible"
If CocktailShow = "true" Then
Var Menu7Selected = "Invisible"

View file

@ -73,6 +73,7 @@
Var Menu5Selected = "Invisible"
Var Menu6Selected = "Enable"
Var Menu7Selected = "Enable"
Var Menu8Selected = "Invisible"
If CocktailShow = "true" Then
Var Menu7Selected = "Invisible"
@ -95,7 +96,7 @@
<?hurr
#include=menu_gen.py
#include=menu_gen_alter.py
?>

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -69,12 +69,15 @@
Var Menu5Selected = "Invisible"
Var Menu6Selected = "Enable"
Var Menu7Selected = "Enable"
Var Menu8Selected = "Invisible"
If CocktailShow = "true" Then
Var Menu7Selected = "Invisible"
Var Menu8Selected = "Enable"
EndIf
</EventOpen>
<Timeout> 60000 </Timeout>
<EventTimeout>

View file

@ -34,12 +34,15 @@
Var Menu5Selected = "Invisible"
Var Menu6Selected = "Enable"
Var Menu7Selected = "Enable"
Var Menu8Selected = "Invisible"
If CocktailShow = "true" Then
Var Menu7Selected = "Invisible"
Var Menu8Selected = "Enable"
EndIf
</EventOpen>
<Timeout> 60000 </Timeout>
<EventTimeout>

View file

@ -17,6 +17,8 @@
product_code.append('11-99-02-0013')
product_code.append('11-99-02-0014')
product_code.append('11-99-02-0015')
product_code.append('11-99-03-0002')
product_code.append('11-99-02-0016')
#product_code.append('11-99-02-0013')
@ -57,6 +59,7 @@
Var Menu5Selected = "Invisible"
Var Menu6Selected = "Enable"
Var Menu7Selected = "Enable"
Var Menu8Selected = "Invisible"
If CocktailShow = "true" Then

View file

@ -34,6 +34,7 @@
Var Menu5Selected = "Invisible"
Var Menu6Selected = "Enable"
Var Menu7Selected = "Enable"
Var Menu8Selected = "Invisible"
If CocktailShow = "true" Then
@ -420,10 +421,56 @@
Open "ROOT/taobin_project/xml/page_topping_alter.xml"
</EventOnClick>
</Button>
; button i=9 11-99-02-0016
; button i=9 11-99-02-0015
<Button>
<X> 44 </X>
<Y> 676 </Y>
<State> $11-99-02-0015.Button </State>
<Filename> Var( "ROOT/taobin_project/image/page_drink/" + $11-99-02-0015.image ) </Filename>
<FilenamePress> Var( "ROOT/taobin_project/image/page_drink_press/" + $11-99-02-0015.image ) " </FilenamePress>
<FilenameDisable> Var( "ROOT/taobin_project/image/page_drink_disable/" + $11-99-02-0015.image ) " </FilenameDisable>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventOnClick>
Var SelectDrink = "11-99-02-0015"
Var NameDrink = $11-99-02-0015.NameE
Var NameDrinkTH = $11-99-02-0015.Name
Var DrinkDescriptionTH = $11-99-02-0015.description
Var DrinkDescription = $11-99-02-0015.descriptionE
Var PriceDrink = $11-99-02-0015.Price
Var PictureDrink = "ROOT/taobin_project/image/page_drink_select/" + $11-99-02-0015.image
Topping "Load" SelectDrink
Var PriceShowValue = charOfBaht + PriceDrink
Open "ROOT/taobin_project/xml/page_topping_alter.xml"
</EventOnClick>
</Button>
; button i=10 11-99-03-0002
<Button>
<X> 301 </X>
<Y> 676 </Y>
<State> $11-99-03-0002.Button </State>
<Filename> Var( "ROOT/taobin_project/image/page_drink/" + $11-99-03-0002.image ) </Filename>
<FilenamePress> Var( "ROOT/taobin_project/image/page_drink_press/" + $11-99-03-0002.image ) " </FilenamePress>
<FilenameDisable> Var( "ROOT/taobin_project/image/page_drink_disable/" + $11-99-03-0002.image ) " </FilenameDisable>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventOnClick>
Var SelectDrink = "11-99-03-0002"
Var NameDrink = $11-99-03-0002.NameE
Var NameDrinkTH = $11-99-03-0002.Name
Var DrinkDescriptionTH = $11-99-03-0002.description
Var DrinkDescription = $11-99-03-0002.descriptionE
Var PriceDrink = $11-99-03-0002.Price
Var PictureDrink = "ROOT/taobin_project/image/page_drink_select/" + $11-99-03-0002.image
Topping "Load" SelectDrink
Var PriceShowValue = charOfBaht + PriceDrink
Open "ROOT/taobin_project/xml/page_topping_alter.xml"
</EventOnClick>
</Button>
; button i=11 11-99-02-0016
<Button>
<X> 558 </X>
<Y> 676 </Y>
<State> $11-99-02-0016.Button </State>
<Filename> Var( "ROOT/taobin_project/image/page_drink/" + $11-99-02-0016.image ) </Filename>
<FilenamePress> Var( "ROOT/taobin_project/image/page_drink_press/" + $11-99-02-0016.image ) " </FilenamePress>
@ -956,7 +1003,7 @@
<Size> 27 </Size>
<Font> KanitTTF </Font>
<Color> 0xB78F24 </Color>
<Value> $11-99-02-0016.Price </Value>
<Value> $11-99-02-0015.Price </Value>
</Text>
<Text>
<X> 208 </X>
@ -977,7 +1024,7 @@
<Font> KanitMediumTTF </Font>
<Color> 0x322B26 </Color>
<State> showthaiText </State>
<Value> $11-99-02-0016.Name </Value>
<Value> $11-99-02-0015.Name </Value>
</Text>
<Text>
<X> 60 </X>
@ -987,7 +1034,7 @@
<Font> KanitMediumTTF </Font>
<Color> 0x6F5F51 </Color>
<State> showthaiText </State>
<Value> $11-99-02-0016.description </Value>
<Value> $11-99-02-0015.description </Value>
</Text>
<Text>
<X> 60 </X>
@ -998,7 +1045,7 @@
<Font> KanitMediumTTF </Font>
<Color> 0x322B26 </Color>
<State> showengText </State>
<Value> $11-99-02-0016.NameE </Value>
<Value> $11-99-02-0015.NameE </Value>
</Text>
<Text>
<X> 60 </X>
@ -1008,6 +1055,132 @@
<Font> KanitMediumTTF </Font>
<Color> 0x6F5F51 </Color>
<State> showengText </State>
<Value> $11-99-02-0015.descriptionE </Value>
</Text>
<Text>
<X> 483 </X>
<Y> 688 </Y>
<State> ShowPrice </State>
<Align> "Hurr" </Align>
<Width>150</Width>
<Size> 27 </Size>
<Font> KanitTTF </Font>
<Color> 0xB78F24 </Color>
<Value> $11-99-03-0002.Price </Value>
</Text>
<Text>
<X> 465 </X>
<Y> 688 </Y>
<State> ShowPrice </State>
<Width>20</Width>
<Size> 27 </Size>
<Font> KanitTTF </Font>
<Color> 0xB78F24 </Color>
<Value> "฿"" </Value>
</Text>
<Text>
<X> 317 </X>
<Y> 866 </Y>
<Size> 24 </Size>
<Width>220</Width>
<Mode> "multi2" </Mode>
<Font> KanitMediumTTF </Font>
<Color> 0x322B26 </Color>
<State> showthaiText </State>
<Value> $11-99-03-0002.Name </Value>
</Text>
<Text>
<X> 317 </X>
<Y> 922 </Y>
<Size> 14 </Size>
<Width>220</Width>
<Font> KanitMediumTTF </Font>
<Color> 0x6F5F51 </Color>
<State> showthaiText </State>
<Value> $11-99-03-0002.description </Value>
</Text>
<Text>
<X> 317 </X>
<Y> 866 </Y>
<Size> 22 </Size>
<Width>220</Width>
<Mode> "multi2" </Mode>
<Font> KanitMediumTTF </Font>
<Color> 0x322B26 </Color>
<State> showengText </State>
<Value> $11-99-03-0002.NameE </Value>
</Text>
<Text>
<X> 317 </X>
<Y> 922 </Y>
<Size> 14 </Size>
<Width>220</Width>
<Font> KanitMediumTTF </Font>
<Color> 0x6F5F51 </Color>
<State> showengText </State>
<Value> $11-99-03-0002.descriptionE </Value>
</Text>
<Text>
<X> 740 </X>
<Y> 688 </Y>
<State> ShowPrice </State>
<Align> "Hurr" </Align>
<Width>150</Width>
<Size> 27 </Size>
<Font> KanitTTF </Font>
<Color> 0xB78F24 </Color>
<Value> $11-99-02-0016.Price </Value>
</Text>
<Text>
<X> 722 </X>
<Y> 688 </Y>
<State> ShowPrice </State>
<Width>20</Width>
<Size> 27 </Size>
<Font> KanitTTF </Font>
<Color> 0xB78F24 </Color>
<Value> "฿"" </Value>
</Text>
<Text>
<X> 574 </X>
<Y> 866 </Y>
<Size> 24 </Size>
<Width>220</Width>
<Mode> "multi2" </Mode>
<Font> KanitMediumTTF </Font>
<Color> 0x322B26 </Color>
<State> showthaiText </State>
<Value> $11-99-02-0016.Name </Value>
</Text>
<Text>
<X> 574 </X>
<Y> 922 </Y>
<Size> 14 </Size>
<Width>220</Width>
<Font> KanitMediumTTF </Font>
<Color> 0x6F5F51 </Color>
<State> showthaiText </State>
<Value> $11-99-02-0016.description </Value>
</Text>
<Text>
<X> 574 </X>
<Y> 866 </Y>
<Size> 22 </Size>
<Width>220</Width>
<Mode> "multi2" </Mode>
<Font> KanitMediumTTF </Font>
<Color> 0x322B26 </Color>
<State> showengText </State>
<Value> $11-99-02-0016.NameE </Value>
</Text>
<Text>
<X> 574 </X>
<Y> 922 </Y>
<Size> 14 </Size>
<Width>220</Width>
<Font> KanitMediumTTF </Font>
<Color> 0x6F5F51 </Color>
<State> showengText </State>
<Value> $11-99-02-0016.descriptionE </Value>
</Text>
</FrameScroll>

View file

@ -51,7 +51,8 @@
Var Menu5Selected = "Invisible"
Var Menu6Selected = "Enable"
Var Menu7Selected = "Enable"
Var Menu8Selected = "Invisible"
If CocktailShow = "true" Then
Var Menu7Selected = "Invisible"

View file

@ -35,7 +35,8 @@
Var Menu5Selected = "Invisible"
Var Menu6Selected = "Enable"
Var Menu7Selected = "Enable"
Var Menu8Selected = "Invisible"
If CocktailShow = "true" Then
Var Menu7Selected = "Invisible"

View file

@ -54,7 +54,7 @@
Var Menu5Selected = "Invisible"
Var Menu6Selected = "Enable"
Var Menu7Selected = "PressForever"
Var Menu8Selected = "Invisible"
If CocktailShow = "true" Then
Var Menu7Selected = "Invisible"

View file

@ -34,7 +34,7 @@
Var Menu5Selected = "Invisible"
Var Menu6Selected = "Enable"
Var Menu7Selected = "PressForever"
Var Menu8Selected = "Invisible"
If CocktailShow = "true" Then
Var Menu7Selected = "Invisible"

View file

@ -54,7 +54,8 @@
Var Menu5Selected = "Invisible"
Var Menu6Selected = "Enable"
Var Menu7Selected = "Invisible"
Var Menu8Selected = "Invisible"
If CocktailShow = "true" Then
Var Menu7Selected = "Invisible"

View file

@ -34,7 +34,8 @@
Var Menu5Selected = "Invisible"
Var Menu6Selected = "Enable"
Var Menu7Selected = "Invisible"
Var Menu8Selected = "Invisible"
If CocktailShow = "true" Then
Var Menu7Selected = "Invisible"

View file

@ -61,8 +61,10 @@
SAVELOG ExtendData
If GetPayInfoFlag = 0 Then
If RoadShow = "false" Then
CoinVending ON
EndIf
CoinVending ON
Var RemainAmount = 0

View file

@ -110,8 +110,8 @@
If RoadShow = "true" Then
Var PayState1 = "Enable"
Var PayState2 = "Disable"
Var PayState3 = "Disable"
Var PayState2 = "Invisible"
Var PayState3 = "Invisible"
Var showRemaining = "Free"
Else

View file

@ -87,8 +87,12 @@
SAVELOG BrewTime
Var ShowCountDownBrewing = CountDownBrewing
Open "ROOT/taobin_project/xml/page_collect_point_1.xml"
If RoadShow = "true" Then
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
Else
Open "ROOT/taobin_project/xml/page_collect_point_1.xml"
EndIf
EndIf
Var ShowCountDownBrewing = CountDownBrewing