Merge branch 'master' of forthrd.ddns.net:/1TBHDD/ikong/taobin_project

This commit is contained in:
miggaze 2020-12-30 14:20:20 +07:00
commit c810007e28
264 changed files with 9349 additions and 4963 deletions

25
xml/adv_play.xml Normal file
View file

@ -0,0 +1,25 @@
<Page>
<Scale> "ALL" </Scale>
<Width> HeadScreenWidth </Width>
<Height> HeadScreenHeight </Height>
<Background> AdvImageFile </Background>
<EventOpen>
;
Var FileNumber = FileNumber + 1
If FileNumber > 2 Then
Var FileNumber = 1
EndIf
</EventOpen>
<Timeout> AdvImageTimeout </Timeout>
<EventTimeout>
Open "/mnt/sdcard/coffeevending/taobin_project/xml/test_video_loop.xml"
</EventTimeout>
<EventSecurity>
Open "/mnt/sdcard/coffeevending/xml/security_alarm.xml"
</EventSecurity>
</Page>

View file

@ -122,7 +122,7 @@
<Button>
<X> 696 </X>
<Y> 395 </Y>
<State> Menu5Selected </State>
<State> Menu7Selected </State>
<Filename> Var( DirImage + "/bn_protein.png") </Filename>
<FilenamePress> Var( DirImage + "/bp_protein.png") </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
@ -132,6 +132,21 @@
</EventClick>
</Button>
<Button>
<X> 696 </X>
<Y> 395 </Y>
<State> Menu8Selected </State>
<Filename> Var( DirImage + "/bn_cocktail.png") </Filename>
<FilenamePress> Var( DirImage + "/bp_cocktail.png") </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Open "ROOT/taobin_project/xml/page_catalog_choose_drink8.xml"
</EventClick>
</Button>
; obselete
;<Button>
;<X> 696 </X>
;<Y> 395 </Y>

View file

@ -1,25 +1,24 @@
if menu_count >= 16:
scroll_height = 1670
else:
scroll_height = 1400
out_xml('<FrameScroll> \r\n')
out_xml('<X> 0 </X>\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> 1500 </Height>\r\n')
out_xml('<ScrollHeight> ' + str(scroll_height) + ' </ScrollHeight>\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<State> $' + product_code[i] + '.Button </State> \r\n')
out_xml( '\t<Button>\r\n')
out_xml( '\t<X> ' + str(x_button[i]) + ' </X> \r\n')
out_xml( '\t<Y> ' + str(y_button[i]) + ' </Y> \r\n')
out_xml( '\t<State> $' + product_code[i] + '.Button </State> \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')
@ -36,30 +35,18 @@
out_xml( '\t\tVar PriceDrink = $' + product_code[i] + '.Price\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\tSAVELOG NameDrink\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')
for i in range( menu_count):
if RoadShow :
out_xml( '\t<Text>\r\n')
out_xml( '\t<X> ' + str(x_button[i] + 164) + ' </X>\r\n')
out_xml( '\t<Y> ' + str(y_button[i] + 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')
out_xml( '\t<Text>\r\n')
else:
out_xml( '\t<Text>\r\n')
out_xml( '\t<X> ' + str(x_button[i] + 182) + ' </X>\r\n')
out_xml( '\t<Y> ' + str(y_button[i] + 12) + ' </Y>\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')
@ -69,62 +56,64 @@
out_xml( '\t</Text>\r\n')
out_xml( '\t<Text>\r\n')
out_xml( '\t<X> ' + str(x_button[i] + 164) + ' </X>\r\n')
out_xml( '\t<Y> ' + str(y_button[i] + 12) + ' </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( '\t<Text>\r\n')
out_xml( '\t<X> ' + str(x_button[i] + 16) + ' </X>\r\n')
out_xml( '\t<Y> ' + str(y_button[i] + 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> ' + str(x_button[i] + 16) + ' </X>\r\n')
out_xml( '\t<Y> ' + str(y_button[i] + 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> ' + str(x_button[i] + 16) + ' </X>\r\n')
out_xml( '\t<Y> ' + str(y_button[i] + 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> ' + str(x_button[i] + 16) + ' </X>\r\n')
out_xml( '\t<Y> ' + str(y_button[i] + 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')
out_xml('</FrameScroll>\r\n')

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')

132
xml/menu_gen_org.py Normal file
View file

@ -0,0 +1,132 @@
if menu_count >= 16:
scroll_height = 1670
else:
scroll_height = 1400
out_xml('<FrameScroll> \r\n')
out_xml('<X> 0 </X>\r\n')
out_xml('<Y> 497 </Y>\r\n')
out_xml('<Width> 1080 </Width>\r\n')
out_xml('<Height> 1500 </Height>\r\n')
out_xml('<ScrollHeight> ' + str(scroll_height) + ' </ScrollHeight>\r\n')
out_xml('<Scroll> "Vertical" </Scroll>\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( '\t<Button>\r\n')
out_xml( '\t<X> ' + str(x_button[i]) + ' </X> \r\n')
out_xml( '\t<Y> ' + str(y_button[i]) + ' </Y> \r\n')
out_xml( '\t<State> $' + product_code[i] + '.Button </State> \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')
out_xml( '\t\tVar SelectDrink = "'+ product_code[i] +'"\r\n')
out_xml( '\t\tVar NameDrink = $' + product_code[i] + '.NameE\r\n')
out_xml( '\t\tVar NameDrinkTH = $' + product_code[i] + '.Name\r\n')
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 + '" + $'+ 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 = "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')
for i in range( menu_count):
if RoadShow :
out_xml( '\t<Text>\r\n')
out_xml( '\t<X> ' + str(x_button[i] + 164) + ' </X>\r\n')
out_xml( '\t<Y> ' + str(y_button[i] + 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')
out_xml( '\t<Text>\r\n')
else:
out_xml( '\t<Text>\r\n')
out_xml( '\t<X> ' + str(x_button[i] + 182) + ' </X>\r\n')
out_xml( '\t<Y> ' + str(y_button[i] + 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> ' + str(x_button[i] + 164) + ' </X>\r\n')
out_xml( '\t<Y> ' + str(y_button[i] + 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> ' + str(x_button[i] + 16) + ' </X>\r\n')
out_xml( '\t<Y> ' + str(y_button[i] + 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> ' + str(x_button[i] + 16) + ' </X>\r\n')
out_xml( '\t<Y> ' + str(y_button[i] + 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> ' + str(x_button[i] + 16) + ' </X>\r\n')
out_xml( '\t<Y> ' + str(y_button[i] + 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> ' + str(x_button[i] + 16) + ' </X>\r\n')
out_xml( '\t<Y> ' + str(y_button[i] + 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('</FrameScroll>\r\n')

View file

@ -9,10 +9,9 @@
<EventOpen>
TopView "hide"
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/xml/topview_button_back_main.xml"
Var FileNumber = 1
Var sub_profile = "whey"
Var taobin_version = "1.05"
Var taobin_version = "1.11"
; 1.00 is
; On open
@ -35,6 +34,8 @@
Var KanitSemiBoldTTF = "ROOT/taobin_project/font/Kanit/Kanit-Medium.ttf"
Var BlinkStar = "ROOT/taobin_project/image/animation/blink_star.gif"
Var countClick = 0
Var RoadShow = "false"
@ -58,13 +59,37 @@
EndIf
If MachineStage = "mcu-upgrade" Then
Open "ROOT/taobin_project/xml/page_show_error.xml"
EndIf
Var TestLoopMakeDrink = 0
Var TestLoopSuccess = 0
Var TestLoopFailed = 0
Var IgnoreNetCore = "false"
SAVELOG SaleProfile
STRCONTAIN "whey" SaleProfile WheyShow
STRCONTAIN "cocktail" SaleProfile CocktailShow
STRCONTAIN "roadshow" SaleProfile RoadShow
Var ShowPrice = "Enable"
If RoadShow = "true" Then
Var ShowPrice = "Invisible"
EndIf
SAVELOG WheyShow
SAVELOG CocktailShow
SAVELOG RoadShow
SAVELOG ShowPrice
Var CountDownShowButton = 35
</EventOpen>
<Timeout> 1000 </Timeout>
@ -77,15 +102,19 @@
EndIf
If NetworkStatus = "DEACTIVE" Then
Open "/ROOT/xml/offline.xml"
EndIf
EndIf
If MachineStage = "close-maintenance" Then
Open "ROOT/taobin_project/xml/page_show_error.xml"
EndIf
If MachineStage = "mcu-upgrade" Then
Open "ROOT/taobin_project/xml/page_show_error.xml"
EndIf
EndIf
If MachineStage = "drink-failed" Then
@ -97,9 +126,6 @@
Open "ROOT/taobin_project/xml/page_remove_cup.xml"
EndIf
SAVELOG MachineStage
Var CountDownShowButton = CountDownShowButton - 1
@ -108,13 +134,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"
@ -127,15 +153,18 @@
<EventEnd>
SAVELOG ShowButtonClick
Var CountDownShowButton = 30
Var CountDownShowButton = 35
Refresh
</EventEnd>
<EventNetDown>
SAVELOG NetworkStatus
Open "/mnt/sdcard/coffeevending/xml/main.xml"
</EventNetDown>
<EventNetDeactive>
SAVELOG NetworkStatus
Open "/mnt/sdcard/coffeevending/xml/main.xml"
</EventNetDeactive>
@ -182,8 +211,12 @@
<Volume> SoundVolume </Volume>
<EventClick>
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert.xml"
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/xml/page_catalog.xml"
If CocktailShow = "true" Then
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/xml/page_catalog_cocktail.xml"
Else
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/xml/page_catalog.xml"
EndIf
TopView "show"
Open "/mnt/sdcard/coffeevending/taobin_project/xml/page_main_blank.xml"
</EventClick>

View file

@ -9,6 +9,9 @@
TopView "show"
; On open
If CocktailShow = "true" Then
Open "/mnt/sdcard/coffeevending/taobin_project/xml/page_catalog_cocktail.xml"
EndIf
Var GetPayInfoFlag = 0
Var countDownRetrun = 30
@ -44,20 +47,6 @@
Open "ROOT/taobin_project/xml/page_back_to_main.xml"
EndIf
;If CancelFlag = 1 Then
; If ChangeOK = 1 Then
; Var VendingDiscount = 0
; Var VendingCampaign = 0
; Var ServiceType = "credit"
; Var SessionID2 = SelectDrink
; Var ServiceCredit = "coffee"
; Pay ServiceType TelephoneNumber ServiceCredit SuggestID SessionID2 ServiceAmount2 ServiceCharge Donate
; Var ChangeOK = 0
; Var CancelFlag = 0
; EndIf
;EndIf
Refresh
TimerReset
@ -218,17 +207,6 @@
</EventClick>
</Button>
;<Text>
;<X> 0 </X>
;<Y> 1886 </Y>
;<Size> 20 </Size>
;<Width> 1080</Width>
;<Align> Center </Align>
;<Font> RobotoBlack </Font>
;<Color> 0x513C2F </Color>
;<Value> countDownRetrun </Value>
;</Text>
<Button>
<X> 392 </X>

View file

@ -6,24 +6,24 @@
product_code = []
product_code.append('11-99-01-0001')
product_code.append('11-99-01-0002')
product_code.append('11-99-01-0003')
product_code.append('11-99-02-0005')
product_code.append('12-01-01-0001')
product_code.append('12-01-01-0003')
product_code.append('12-01-01-0004')
product_code.append('12-01-02-0003')
product_code.append('11-99-02-0013')
product_code.append('11-99-02-0014')
product_code.append('11-99-02-0018')
product_code.append('11-99-02-0020')
product_code.append('12-03-02-0002')
product_code.append('12-03-02-0004')
product_code.append('12-02-02-0002')
product_code.append('12-02-02-0004')
product_code.append('11-99-02-0017')
product_code.append('11-99-02-0023')
product_code.append('11-99-02-0024')
product_code.append('11-99-02-0033')
product_code.append('11-99-02-0051')
product_code.append('11-99-02-0039')
product_code.append('11-99-02-0038')
product_code.append('11-99-02-0035')
product_code.append('12-02-02-0001')
product_code.append('12-02-02-0007')
product_code.append('12-02-02-0008')
product_code.append('12-05-02-0007')
product_code.append('12-05-02-0021')
product_code.append('12-05-02-0013')
product_code.append('12-05-02-0012')
product_code.append('12-05-02-0009')
menu_count = len( product_code)
?>
@ -58,9 +58,17 @@
Var Menu2Selected = "Enable"
Var Menu3Selected = "Enable"
Var Menu4Selected = "Enable"
Var Menu5Selected = "Enable"
Var Menu5Selected = "Invisible"
Var Menu6Selected = "Enable"
Var Menu7Selected = "Enable"
Var Menu8Selected = "Invisible"
If CocktailShow = "true" Then
Var Menu7Selected = "Invisible"
Var Menu8Selected = "Enable"
EndIf
SAVELOG PreviseXMLFileName2
</EventOpen>
<Timeout> 60000 </Timeout>

File diff suppressed because it is too large Load diff

View file

@ -7,34 +7,33 @@
product_code = []
product_code.append('11-99-01-0001')
product_code.append('11-99-01-0101')
product_code.append('11-99-01-0002')
product_code.append('11-99-01-0003')
product_code.append('12-01-01-0001')
product_code.append('12-11-01-0001')
product_code.append('12-01-01-0003')
product_code.append('12-01-01-0004')
product_code.append('11-99-01-0004')
product_code.append('12-01-01-0005')
product_code.append('11-99-01-0005')
product_code.append('11-99-01-0006')
#product_code.append('11-99-01-0007')
product_code.append('12-01-01-0006')
product_code.append('12-01-01-0007')
product_code.append('11-99-01-0008')
#product_code.append('11-99-01-0009')
product_code.append('11-99-01-0010')
product_code.append('11-99-01-0011')
product_code.append('12-01-01-0009')
product_code.append('12-01-01-0010')
product_code.append('12-01-01-0011')
product_code.append('12-01-01-0012')
product_code.append('11-99-02-0001')
product_code.append('11-99-02-0002')
product_code.append('11-99-02-0003')
product_code.append('11-99-02-0004')
product_code.append('12-11-02-0001')
product_code.append('12-01-02-0001')
product_code.append('12-01-02-0002')
product_code.append('12-11-02-0002')
product_code.append('11-99-02-0005')
product_code.append('11-99-02-0006')
product_code.append('11-99-02-0007')
#product_code.append('11-99-02-0000')
product_code.append('12-01-02-0003')
product_code.append('12-01-02-0004')
product_code.append('12-01-02-0005')
product_code.append('11-99-02-0009')
product_code.append('11-99-02-0011')
product_code.append('12-01-02-0007')
product_code.append('12-01-02-0008')
product_code.append('12-01-02-0009')
#product_code.append('')
menu_count = len( product_code)
@ -70,8 +69,16 @@
Var Menu2Selected = "PressForever"
Var Menu3Selected = "Enable"
Var Menu4Selected = "Enable"
Var Menu5Selected = "Enable"
Var Menu5Selected = "Invisible"
Var Menu6Selected = "Enable"
Var Menu7Selected = "Enable"
Var Menu8Selected = "Invisible"
If CocktailShow = "true" Then
Var Menu7Selected = "Invisible"
Var Menu8Selected = "Enable"
EndIf
</EventOpen>

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -5,32 +5,32 @@
product_code = []
product_code.append('11-99-01-0017')
#product_code.append('11-99-01-0009')
product_code.append('12-02-01-0001')
product_code.append('12-02-01-0002')
product_code.append('11-99-01-0019')
product_code.append('11-99-01-0020')
product_code.append('12-02-01-0003')
product_code.append('12-02-01-0004')
#product_code.append('hot-black-tea')
product_code.append('11-99-01-0022')
product_code.append('12-02-01-0005')
product_code.append('12-02-01-0006')
product_code.append('11-99-01-0023')
product_code.append('11-99-01-0024')
product_code.append('11-99-01-0025')
product_code.append('11-99-01-0026')
product_code.append('12-02-01-0007')
product_code.append('12-02-01-0008')
product_code.append('12-02-01-0009')
product_code.append('12-02-01-0010')
product_code.append('11-99-02-0017')
product_code.append('11-99-02-0018')
product_code.append('11-99-02-0019')
product_code.append('11-99-02-0020')
#product_code.append('11-99-02-0021')
product_code.append('11-99-02-0022')
product_code.append('11-99-02-0023')
product_code.append('12-02-02-0001')
product_code.append('12-02-02-0002')
product_code.append('12-02-02-0003')
product_code.append('12-02-02-0004')
product_code.append('12-02-02-0005')
product_code.append('12-02-02-0006')
product_code.append('12-02-02-0007')
product_code.append('11-99-02-0024')
product_code.append('11-99-02-0025')
product_code.append('11-99-02-0026')
product_code.append('12-02-02-0008')
product_code.append('12-02-02-0009')
product_code.append('12-02-02-0010')
menu_count = len( product_code)
@ -62,12 +62,22 @@
Var show_btn = "ROOT/taobin_project/image/bn_eng_lang.png"
EndIf
Var Menu1Selected = "Enable"
Var Menu1Selected = "Enable"
Var Menu2Selected = "Enable"
Var Menu3Selected = "PressForever"
Var Menu4Selected = "Enable"
Var Menu5Selected = "Enable"
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>

File diff suppressed because it is too large Load diff

View file

@ -7,18 +7,20 @@
product_code = []
product_code.append('11-99-01-0012')
product_code.append('11-99-01-0013')
product_code.append('11-99-01-0014')
product_code.append('11-99-01-0015')
product_code.append('12-03-01-0001')
product_code.append('12-03-01-0002')
product_code.append('12-03-01-0003')
product_code.append('12-03-01-0004')
product_code.append('11-99-01-0016')
product_code.append('11-99-02-0012')
product_code.append('11-99-02-0013')
product_code.append('11-99-02-0014')
product_code.append('12-03-01-0005')
product_code.append('12-03-02-0001')
product_code.append('12-03-02-0002')
product_code.append('12-03-02-0003')
product_code.append('11-99-02-0016')
#product_code.append('11-99-02-0013')
product_code.append('12-03-02-0004')
product_code.append('12-03-02-0006')
product_code.append('12-03-02-0005')
#product_code.append('12-03-02-0002')
menu_count = len( product_code)
@ -54,8 +56,18 @@
Var Menu2Selected = "Enable"
Var Menu3Selected = "Enable"
Var Menu4Selected = "PressForever"
Var Menu5Selected = "Enable"
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>

File diff suppressed because it is too large Load diff

View file

@ -5,14 +5,14 @@
product_code = []
product_code.append('11-99-01-0027')
product_code.append('11-99-02-0027')
product_code.append('11-99-02-0030')
product_code.append('11-99-02-0031')
product_code.append('12-05-01-0001')
product_code.append('12-05-02-0001')
product_code.append('12-05-02-0002')
product_code.append('12-05-02-0003')
product_code.append('12-05-02-0004')
product_code.append('12-05-02-0005')
product_code.append('12-05-02-0006')
product_code.append('11-99-02-0032')
product_code.append('11-99-02-0028')
product_code.append('11-99-02-0029')
menu_count = len( product_code)
?>
@ -48,8 +48,16 @@
Var Menu2Selected = "Enable"
Var Menu3Selected = "Enable"
Var Menu4Selected = "Enable"
Var Menu5Selected = "PressForever"
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

@ -32,8 +32,16 @@
Var Menu2Selected = "Enable"
Var Menu3Selected = "Enable"
Var Menu4Selected = "Enable"
Var Menu5Selected = "PressForever"
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>
@ -166,7 +174,7 @@
<Button>
<X> 696 </X>
<Y> 395 </Y>
<State> Menu5Selected </State>
<State> Menu7Selected </State>
<Filename> Var( DirImage + "/bn_protein.png") </Filename>
<FilenamePress> Var( DirImage + "/bp_protein.png") </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
@ -176,6 +184,21 @@
</EventClick>
</Button>
<Button>
<X> 696 </X>
<Y> 395 </Y>
<State> Menu8Selected </State>
<Filename> Var( DirImage + "/bn_cocktail.png") </Filename>
<FilenamePress> Var( DirImage + "/bp_cocktail.png") </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Open "ROOT/taobin_project/xml/page_catalog_choose_drink8.xml"
</EventClick>
</Button>
; obselete
;<Button>
;<X> 696 </X>
;<Y> 395 </Y>
@ -207,186 +230,55 @@
<FrameScroll>
<X> 0 </X>
<X> 10 </X>
<Y> 497 </Y>
<Width> 1080 </Width>
<Height> 1500 </Height>
<ScrollHeight> 1400 </ScrollHeight>
<ScrollHeight> "auto" </ScrollHeight>
<Scroll> "Vertical" </Scroll>
; button i=1 11-99-01-0027
<Column> 4 </Column>
; button i=1 12-05-01-0001
<Block>
<MarginLeft> 33 </MarginLeft>
<MarginTop> 22 </MarginTop>
<Width> 225 </Width>
<Height> 296 </Height>
<State> $12-05-01-0001.Button </State>
<Button>
<X> 44 </X>
<Y> 20 </Y>
<State> $11-99-01-0027.Button </State>
<Filename> Var( "ROOT/taobin_project/image/page_drink/" + $11-99-01-0027.image ) </Filename>
<FilenamePress> Var( "ROOT/taobin_project/image/page_drink_press/" + $11-99-01-0027.image ) " </FilenamePress>
<FilenameDisable> Var( "ROOT/taobin_project/image/page_drink_disable/" + $11-99-01-0027.image ) " </FilenameDisable>
<State> $12-05-01-0001.Button </State>
<Filename> Var( "ROOT/taobin_project/image/page_drink/" + $12-05-01-0001.image ) </Filename>
<FilenamePress> Var( "ROOT/taobin_project/image/page_drink_press/" + $12-05-01-0001.image ) " </FilenamePress>
<FilenameDisable> Var( "ROOT/taobin_project/image/page_drink_disable/" + $12-05-01-0001.image ) " </FilenameDisable>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventOnClick>
Var SelectDrink = "11-99-01-0027"
Var NameDrink = $11-99-01-0027.NameE
Var NameDrinkTH = $11-99-01-0027.Name
Var DrinkDescriptionTH = $11-99-01-0027.description
Var DrinkDescription = $11-99-01-0027.descriptionE
Var PriceDrink = $11-99-01-0027.Price
Var PictureDrink = "ROOT/taobin_project/image/page_drink_select/" + $11-99-01-0027.image
Topping "Load" SelectDrink
Var PriceShowValue = charOfBaht + PriceDrink
Open "ROOT/taobin_project/xml/page_topping_alter.xml"
</EventOnClick>
</Button>
; button i=2 11-99-02-0027
<Button>
<X> 301 </X>
<Y> 20 </Y>
<State> $11-99-02-0027.Button </State>
<Filename> Var( "ROOT/taobin_project/image/page_drink/" + $11-99-02-0027.image ) </Filename>
<FilenamePress> Var( "ROOT/taobin_project/image/page_drink_press/" + $11-99-02-0027.image ) " </FilenamePress>
<FilenameDisable> Var( "ROOT/taobin_project/image/page_drink_disable/" + $11-99-02-0027.image ) " </FilenameDisable>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventOnClick>
Var SelectDrink = "11-99-02-0027"
Var NameDrink = $11-99-02-0027.NameE
Var NameDrinkTH = $11-99-02-0027.Name
Var DrinkDescriptionTH = $11-99-02-0027.description
Var DrinkDescription = $11-99-02-0027.descriptionE
Var PriceDrink = $11-99-02-0027.Price
Var PictureDrink = "ROOT/taobin_project/image/page_drink_select/" + $11-99-02-0027.image
Topping "Load" SelectDrink
Var PriceShowValue = charOfBaht + PriceDrink
Open "ROOT/taobin_project/xml/page_topping_alter.xml"
</EventOnClick>
</Button>
; button i=3 11-99-02-0030
<Button>
<X> 558 </X>
<Y> 20 </Y>
<State> $11-99-02-0030.Button </State>
<Filename> Var( "ROOT/taobin_project/image/page_drink/" + $11-99-02-0030.image ) </Filename>
<FilenamePress> Var( "ROOT/taobin_project/image/page_drink_press/" + $11-99-02-0030.image ) " </FilenamePress>
<FilenameDisable> Var( "ROOT/taobin_project/image/page_drink_disable/" + $11-99-02-0030.image ) " </FilenameDisable>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventOnClick>
Var SelectDrink = "11-99-02-0030"
Var NameDrink = $11-99-02-0030.NameE
Var NameDrinkTH = $11-99-02-0030.Name
Var DrinkDescriptionTH = $11-99-02-0030.description
Var DrinkDescription = $11-99-02-0030.descriptionE
Var PriceDrink = $11-99-02-0030.Price
Var PictureDrink = "ROOT/taobin_project/image/page_drink_select/" + $11-99-02-0030.image
Topping "Load" SelectDrink
Var PriceShowValue = charOfBaht + PriceDrink
Open "ROOT/taobin_project/xml/page_topping_alter.xml"
</EventOnClick>
</Button>
; button i=4 11-99-02-0031
<Button>
<X> 815 </X>
<Y> 20 </Y>
<State> $11-99-02-0031.Button </State>
<Filename> Var( "ROOT/taobin_project/image/page_drink/" + $11-99-02-0031.image ) </Filename>
<FilenamePress> Var( "ROOT/taobin_project/image/page_drink_press/" + $11-99-02-0031.image ) " </FilenamePress>
<FilenameDisable> Var( "ROOT/taobin_project/image/page_drink_disable/" + $11-99-02-0031.image ) " </FilenameDisable>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventOnClick>
Var SelectDrink = "11-99-02-0031"
Var NameDrink = $11-99-02-0031.NameE
Var NameDrinkTH = $11-99-02-0031.Name
Var DrinkDescriptionTH = $11-99-02-0031.description
Var DrinkDescription = $11-99-02-0031.descriptionE
Var PriceDrink = $11-99-02-0031.Price
Var PictureDrink = "ROOT/taobin_project/image/page_drink_select/" + $11-99-02-0031.image
Topping "Load" SelectDrink
Var PriceShowValue = charOfBaht + PriceDrink
Open "ROOT/taobin_project/xml/page_topping_alter.xml"
</EventOnClick>
</Button>
; button i=5 11-99-02-0032
<Button>
<X> 44 </X>
<Y> 348 </Y>
<State> $11-99-02-0032.Button </State>
<Filename> Var( "ROOT/taobin_project/image/page_drink/" + $11-99-02-0032.image ) </Filename>
<FilenamePress> Var( "ROOT/taobin_project/image/page_drink_press/" + $11-99-02-0032.image ) " </FilenamePress>
<FilenameDisable> Var( "ROOT/taobin_project/image/page_drink_disable/" + $11-99-02-0032.image ) " </FilenameDisable>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventOnClick>
Var SelectDrink = "11-99-02-0032"
Var NameDrink = $11-99-02-0032.NameE
Var NameDrinkTH = $11-99-02-0032.Name
Var DrinkDescriptionTH = $11-99-02-0032.description
Var DrinkDescription = $11-99-02-0032.descriptionE
Var PriceDrink = $11-99-02-0032.Price
Var PictureDrink = "ROOT/taobin_project/image/page_drink_select/" + $11-99-02-0032.image
Topping "Load" SelectDrink
Var PriceShowValue = charOfBaht + PriceDrink
Open "ROOT/taobin_project/xml/page_topping_alter.xml"
</EventOnClick>
</Button>
; button i=6 11-99-02-0028
<Button>
<X> 301 </X>
<Y> 348 </Y>
<State> $11-99-02-0028.Button </State>
<Filename> Var( "ROOT/taobin_project/image/page_drink/" + $11-99-02-0028.image ) </Filename>
<FilenamePress> Var( "ROOT/taobin_project/image/page_drink_press/" + $11-99-02-0028.image ) " </FilenamePress>
<FilenameDisable> Var( "ROOT/taobin_project/image/page_drink_disable/" + $11-99-02-0028.image ) " </FilenameDisable>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventOnClick>
Var SelectDrink = "11-99-02-0028"
Var NameDrink = $11-99-02-0028.NameE
Var NameDrinkTH = $11-99-02-0028.Name
Var DrinkDescriptionTH = $11-99-02-0028.description
Var DrinkDescription = $11-99-02-0028.descriptionE
Var PriceDrink = $11-99-02-0028.Price
Var PictureDrink = "ROOT/taobin_project/image/page_drink_select/" + $11-99-02-0028.image
Topping "Load" SelectDrink
Var PriceShowValue = charOfBaht + PriceDrink
Open "ROOT/taobin_project/xml/page_topping_alter.xml"
</EventOnClick>
</Button>
; button i=7 11-99-02-0029
<Button>
<X> 558 </X>
<Y> 348 </Y>
<State> $11-99-02-0029.Button </State>
<Filename> Var( "ROOT/taobin_project/image/page_drink/" + $11-99-02-0029.image ) </Filename>
<FilenamePress> Var( "ROOT/taobin_project/image/page_drink_press/" + $11-99-02-0029.image ) " </FilenamePress>
<FilenameDisable> Var( "ROOT/taobin_project/image/page_drink_disable/" + $11-99-02-0029.image ) " </FilenameDisable>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventOnClick>
Var SelectDrink = "11-99-02-0029"
Var NameDrink = $11-99-02-0029.NameE
Var NameDrinkTH = $11-99-02-0029.Name
Var DrinkDescriptionTH = $11-99-02-0029.description
Var DrinkDescription = $11-99-02-0029.descriptionE
Var PriceDrink = $11-99-02-0029.Price
Var PictureDrink = "ROOT/taobin_project/image/page_drink_select/" + $11-99-02-0029.image
Var SelectDrink = "12-05-01-0001"
Var NameDrink = $12-05-01-0001.NameE
Var NameDrinkTH = $12-05-01-0001.Name
Var DrinkDescriptionTH = $12-05-01-0001.description
Var DrinkDescription = $12-05-01-0001.descriptionE
Var PriceDrink = $12-05-01-0001.Price
Var PictureDrink = "ROOT/taobin_project/image/page_drink_select/" + $12-05-01-0001.image
Topping "Load" SelectDrink
SAVELOG NameDrink
Var PriceShowValue = charOfBaht + PriceDrink
Open "ROOT/taobin_project/xml/page_topping_alter.xml"
</EventOnClick>
</Button>
<Text>
<X> 226 </X>
<Y> 32 </Y>
<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> $11-99-01-0027.Price </Value>
<Value> $12-05-01-0001.Price </Value>
</Text>
<Text>
<X> 208 </X>
<Y> 32 </Y>
<X> 164 </X>
<Y> 12 </Y>
<State> ShowPrice </State>
<Width>20</Width>
<Size> 27 </Size>
<Font> KanitTTF </Font>
@ -394,60 +286,91 @@
<Value> "฿"" </Value>
</Text>
<Text>
<X> 60 </X>
<Y> 210 </Y>
<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> $11-99-01-0027.Name </Value>
<Value> $12-05-01-0001.Name </Value>
</Text>
<Text>
<X> 60 </X>
<Y> 266 </Y>
<X> 16 </X>
<Y> 246 </Y>
<Size> 14 </Size>
<Width>220</Width>
<Font> KanitMediumTTF </Font>
<Color> 0x6F5F51 </Color>
<State> showthaiText </State>
<Value> $11-99-01-0027.description </Value>
<Value> $12-05-01-0001.description </Value>
</Text>
<Text>
<X> 60 </X>
<Y> 210 </Y>
<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> $11-99-01-0027.NameE </Value>
<Value> $12-05-01-0001.NameE </Value>
</Text>
<Text>
<X> 60 </X>
<Y> 266 </Y>
<X> 16 </X>
<Y> 246 </Y>
<Size> 14 </Size>
<Width>220</Width>
<Font> KanitMediumTTF </Font>
<Color> 0x6F5F51 </Color>
<State> showengText </State>
<Value> $11-99-01-0027.descriptionE </Value>
<Value> $12-05-01-0001.descriptionE </Value>
</Text>
</Block>
; button i=2 12-05-02-0001
<Block>
<MarginLeft> 33 </MarginLeft>
<MarginTop> 22 </MarginTop>
<Width> 225 </Width>
<Height> 296 </Height>
<State> $12-05-02-0001.Button </State>
<Button>
<State> $12-05-02-0001.Button </State>
<Filename> Var( "ROOT/taobin_project/image/page_drink/" + $12-05-02-0001.image ) </Filename>
<FilenamePress> Var( "ROOT/taobin_project/image/page_drink_press/" + $12-05-02-0001.image ) " </FilenamePress>
<FilenameDisable> Var( "ROOT/taobin_project/image/page_drink_disable/" + $12-05-02-0001.image ) " </FilenameDisable>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventOnClick>
Var SelectDrink = "12-05-02-0001"
Var NameDrink = $12-05-02-0001.NameE
Var NameDrinkTH = $12-05-02-0001.Name
Var DrinkDescriptionTH = $12-05-02-0001.description
Var DrinkDescription = $12-05-02-0001.descriptionE
Var PriceDrink = $12-05-02-0001.Price
Var PictureDrink = "ROOT/taobin_project/image/page_drink_select/" + $12-05-02-0001.image
Topping "Load" SelectDrink
SAVELOG NameDrink
Var PriceShowValue = charOfBaht + PriceDrink
Open "ROOT/taobin_project/xml/page_topping_alter.xml"
</EventOnClick>
</Button>
<Text>
<X> 483 </X>
<Y> 32 </Y>
<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> $11-99-02-0027.Price </Value>
<Value> $12-05-02-0001.Price </Value>
</Text>
<Text>
<X> 465 </X>
<Y> 32 </Y>
<X> 164 </X>
<Y> 12 </Y>
<State> ShowPrice </State>
<Width>20</Width>
<Size> 27 </Size>
<Font> KanitTTF </Font>
@ -455,60 +378,91 @@
<Value> "฿"" </Value>
</Text>
<Text>
<X> 317 </X>
<Y> 210 </Y>
<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> $11-99-02-0027.Name </Value>
<Value> $12-05-02-0001.Name </Value>
</Text>
<Text>
<X> 317 </X>
<Y> 266 </Y>
<X> 16 </X>
<Y> 246 </Y>
<Size> 14 </Size>
<Width>220</Width>
<Font> KanitMediumTTF </Font>
<Color> 0x6F5F51 </Color>
<State> showthaiText </State>
<Value> $11-99-02-0027.description </Value>
<Value> $12-05-02-0001.description </Value>
</Text>
<Text>
<X> 317 </X>
<Y> 210 </Y>
<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> $11-99-02-0027.NameE </Value>
<Value> $12-05-02-0001.NameE </Value>
</Text>
<Text>
<X> 317 </X>
<Y> 266 </Y>
<X> 16 </X>
<Y> 246 </Y>
<Size> 14 </Size>
<Width>220</Width>
<Font> KanitMediumTTF </Font>
<Color> 0x6F5F51 </Color>
<State> showengText </State>
<Value> $11-99-02-0027.descriptionE </Value>
<Value> $12-05-02-0001.descriptionE </Value>
</Text>
</Block>
; button i=3 12-05-02-0002
<Block>
<MarginLeft> 33 </MarginLeft>
<MarginTop> 22 </MarginTop>
<Width> 225 </Width>
<Height> 296 </Height>
<State> $12-05-02-0002.Button </State>
<Button>
<State> $12-05-02-0002.Button </State>
<Filename> Var( "ROOT/taobin_project/image/page_drink/" + $12-05-02-0002.image ) </Filename>
<FilenamePress> Var( "ROOT/taobin_project/image/page_drink_press/" + $12-05-02-0002.image ) " </FilenamePress>
<FilenameDisable> Var( "ROOT/taobin_project/image/page_drink_disable/" + $12-05-02-0002.image ) " </FilenameDisable>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventOnClick>
Var SelectDrink = "12-05-02-0002"
Var NameDrink = $12-05-02-0002.NameE
Var NameDrinkTH = $12-05-02-0002.Name
Var DrinkDescriptionTH = $12-05-02-0002.description
Var DrinkDescription = $12-05-02-0002.descriptionE
Var PriceDrink = $12-05-02-0002.Price
Var PictureDrink = "ROOT/taobin_project/image/page_drink_select/" + $12-05-02-0002.image
Topping "Load" SelectDrink
SAVELOG NameDrink
Var PriceShowValue = charOfBaht + PriceDrink
Open "ROOT/taobin_project/xml/page_topping_alter.xml"
</EventOnClick>
</Button>
<Text>
<X> 740 </X>
<Y> 32 </Y>
<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> $11-99-02-0030.Price </Value>
<Value> $12-05-02-0002.Price </Value>
</Text>
<Text>
<X> 722 </X>
<Y> 32 </Y>
<X> 164 </X>
<Y> 12 </Y>
<State> ShowPrice </State>
<Width>20</Width>
<Size> 27 </Size>
<Font> KanitTTF </Font>
@ -516,60 +470,91 @@
<Value> "฿"" </Value>
</Text>
<Text>
<X> 574 </X>
<Y> 210 </Y>
<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> $11-99-02-0030.Name </Value>
<Value> $12-05-02-0002.Name </Value>
</Text>
<Text>
<X> 574 </X>
<Y> 266 </Y>
<X> 16 </X>
<Y> 246 </Y>
<Size> 14 </Size>
<Width>220</Width>
<Font> KanitMediumTTF </Font>
<Color> 0x6F5F51 </Color>
<State> showthaiText </State>
<Value> $11-99-02-0030.description </Value>
<Value> $12-05-02-0002.description </Value>
</Text>
<Text>
<X> 574 </X>
<Y> 210 </Y>
<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> $11-99-02-0030.NameE </Value>
<Value> $12-05-02-0002.NameE </Value>
</Text>
<Text>
<X> 574 </X>
<Y> 266 </Y>
<X> 16 </X>
<Y> 246 </Y>
<Size> 14 </Size>
<Width>220</Width>
<Font> KanitMediumTTF </Font>
<Color> 0x6F5F51 </Color>
<State> showengText </State>
<Value> $11-99-02-0030.descriptionE </Value>
<Value> $12-05-02-0002.descriptionE </Value>
</Text>
</Block>
; button i=4 12-05-02-0003
<Block>
<MarginLeft> 33 </MarginLeft>
<MarginTop> 22 </MarginTop>
<Width> 225 </Width>
<Height> 296 </Height>
<State> $12-05-02-0003.Button </State>
<Button>
<State> $12-05-02-0003.Button </State>
<Filename> Var( "ROOT/taobin_project/image/page_drink/" + $12-05-02-0003.image ) </Filename>
<FilenamePress> Var( "ROOT/taobin_project/image/page_drink_press/" + $12-05-02-0003.image ) " </FilenamePress>
<FilenameDisable> Var( "ROOT/taobin_project/image/page_drink_disable/" + $12-05-02-0003.image ) " </FilenameDisable>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventOnClick>
Var SelectDrink = "12-05-02-0003"
Var NameDrink = $12-05-02-0003.NameE
Var NameDrinkTH = $12-05-02-0003.Name
Var DrinkDescriptionTH = $12-05-02-0003.description
Var DrinkDescription = $12-05-02-0003.descriptionE
Var PriceDrink = $12-05-02-0003.Price
Var PictureDrink = "ROOT/taobin_project/image/page_drink_select/" + $12-05-02-0003.image
Topping "Load" SelectDrink
SAVELOG NameDrink
Var PriceShowValue = charOfBaht + PriceDrink
Open "ROOT/taobin_project/xml/page_topping_alter.xml"
</EventOnClick>
</Button>
<Text>
<X> 997 </X>
<Y> 32 </Y>
<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> $11-99-02-0031.Price </Value>
<Value> $12-05-02-0003.Price </Value>
</Text>
<Text>
<X> 979 </X>
<Y> 32 </Y>
<X> 164 </X>
<Y> 12 </Y>
<State> ShowPrice </State>
<Width>20</Width>
<Size> 27 </Size>
<Font> KanitTTF </Font>
@ -577,60 +562,91 @@
<Value> "฿"" </Value>
</Text>
<Text>
<X> 831 </X>
<Y> 210 </Y>
<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> $11-99-02-0031.Name </Value>
<Value> $12-05-02-0003.Name </Value>
</Text>
<Text>
<X> 831 </X>
<Y> 266 </Y>
<X> 16 </X>
<Y> 246 </Y>
<Size> 14 </Size>
<Width>220</Width>
<Font> KanitMediumTTF </Font>
<Color> 0x6F5F51 </Color>
<State> showthaiText </State>
<Value> $11-99-02-0031.description </Value>
<Value> $12-05-02-0003.description </Value>
</Text>
<Text>
<X> 831 </X>
<Y> 210 </Y>
<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> $11-99-02-0031.NameE </Value>
<Value> $12-05-02-0003.NameE </Value>
</Text>
<Text>
<X> 831 </X>
<Y> 266 </Y>
<X> 16 </X>
<Y> 246 </Y>
<Size> 14 </Size>
<Width>220</Width>
<Font> KanitMediumTTF </Font>
<Color> 0x6F5F51 </Color>
<State> showengText </State>
<Value> $11-99-02-0031.descriptionE </Value>
<Value> $12-05-02-0003.descriptionE </Value>
</Text>
</Block>
; button i=5 12-05-02-0004
<Block>
<MarginLeft> 33 </MarginLeft>
<MarginTop> 22 </MarginTop>
<Width> 225 </Width>
<Height> 296 </Height>
<State> $12-05-02-0004.Button </State>
<Button>
<State> $12-05-02-0004.Button </State>
<Filename> Var( "ROOT/taobin_project/image/page_drink/" + $12-05-02-0004.image ) </Filename>
<FilenamePress> Var( "ROOT/taobin_project/image/page_drink_press/" + $12-05-02-0004.image ) " </FilenamePress>
<FilenameDisable> Var( "ROOT/taobin_project/image/page_drink_disable/" + $12-05-02-0004.image ) " </FilenameDisable>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventOnClick>
Var SelectDrink = "12-05-02-0004"
Var NameDrink = $12-05-02-0004.NameE
Var NameDrinkTH = $12-05-02-0004.Name
Var DrinkDescriptionTH = $12-05-02-0004.description
Var DrinkDescription = $12-05-02-0004.descriptionE
Var PriceDrink = $12-05-02-0004.Price
Var PictureDrink = "ROOT/taobin_project/image/page_drink_select/" + $12-05-02-0004.image
Topping "Load" SelectDrink
SAVELOG NameDrink
Var PriceShowValue = charOfBaht + PriceDrink
Open "ROOT/taobin_project/xml/page_topping_alter.xml"
</EventOnClick>
</Button>
<Text>
<X> 226 </X>
<Y> 360 </Y>
<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> $11-99-02-0032.Price </Value>
<Value> $12-05-02-0004.Price </Value>
</Text>
<Text>
<X> 208 </X>
<Y> 360 </Y>
<X> 164 </X>
<Y> 12 </Y>
<State> ShowPrice </State>
<Width>20</Width>
<Size> 27 </Size>
<Font> KanitTTF </Font>
@ -638,60 +654,91 @@
<Value> "฿"" </Value>
</Text>
<Text>
<X> 60 </X>
<Y> 538 </Y>
<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> $11-99-02-0032.Name </Value>
<Value> $12-05-02-0004.Name </Value>
</Text>
<Text>
<X> 60 </X>
<Y> 594 </Y>
<X> 16 </X>
<Y> 246 </Y>
<Size> 14 </Size>
<Width>220</Width>
<Font> KanitMediumTTF </Font>
<Color> 0x6F5F51 </Color>
<State> showthaiText </State>
<Value> $11-99-02-0032.description </Value>
<Value> $12-05-02-0004.description </Value>
</Text>
<Text>
<X> 60 </X>
<Y> 538 </Y>
<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> $11-99-02-0032.NameE </Value>
<Value> $12-05-02-0004.NameE </Value>
</Text>
<Text>
<X> 60 </X>
<Y> 594 </Y>
<X> 16 </X>
<Y> 246 </Y>
<Size> 14 </Size>
<Width>220</Width>
<Font> KanitMediumTTF </Font>
<Color> 0x6F5F51 </Color>
<State> showengText </State>
<Value> $11-99-02-0032.descriptionE </Value>
<Value> $12-05-02-0004.descriptionE </Value>
</Text>
</Block>
; button i=6 12-05-02-0005
<Block>
<MarginLeft> 33 </MarginLeft>
<MarginTop> 22 </MarginTop>
<Width> 225 </Width>
<Height> 296 </Height>
<State> $12-05-02-0005.Button </State>
<Button>
<State> $12-05-02-0005.Button </State>
<Filename> Var( "ROOT/taobin_project/image/page_drink/" + $12-05-02-0005.image ) </Filename>
<FilenamePress> Var( "ROOT/taobin_project/image/page_drink_press/" + $12-05-02-0005.image ) " </FilenamePress>
<FilenameDisable> Var( "ROOT/taobin_project/image/page_drink_disable/" + $12-05-02-0005.image ) " </FilenameDisable>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventOnClick>
Var SelectDrink = "12-05-02-0005"
Var NameDrink = $12-05-02-0005.NameE
Var NameDrinkTH = $12-05-02-0005.Name
Var DrinkDescriptionTH = $12-05-02-0005.description
Var DrinkDescription = $12-05-02-0005.descriptionE
Var PriceDrink = $12-05-02-0005.Price
Var PictureDrink = "ROOT/taobin_project/image/page_drink_select/" + $12-05-02-0005.image
Topping "Load" SelectDrink
SAVELOG NameDrink
Var PriceShowValue = charOfBaht + PriceDrink
Open "ROOT/taobin_project/xml/page_topping_alter.xml"
</EventOnClick>
</Button>
<Text>
<X> 483 </X>
<Y> 360 </Y>
<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> $11-99-02-0028.Price </Value>
<Value> $12-05-02-0005.Price </Value>
</Text>
<Text>
<X> 465 </X>
<Y> 360 </Y>
<X> 164 </X>
<Y> 12 </Y>
<State> ShowPrice </State>
<Width>20</Width>
<Size> 27 </Size>
<Font> KanitTTF </Font>
@ -699,60 +746,91 @@
<Value> "฿"" </Value>
</Text>
<Text>
<X> 317 </X>
<Y> 538 </Y>
<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> $11-99-02-0028.Name </Value>
<Value> $12-05-02-0005.Name </Value>
</Text>
<Text>
<X> 317 </X>
<Y> 594 </Y>
<X> 16 </X>
<Y> 246 </Y>
<Size> 14 </Size>
<Width>220</Width>
<Font> KanitMediumTTF </Font>
<Color> 0x6F5F51 </Color>
<State> showthaiText </State>
<Value> $11-99-02-0028.description </Value>
<Value> $12-05-02-0005.description </Value>
</Text>
<Text>
<X> 317 </X>
<Y> 538 </Y>
<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> $11-99-02-0028.NameE </Value>
<Value> $12-05-02-0005.NameE </Value>
</Text>
<Text>
<X> 317 </X>
<Y> 594 </Y>
<X> 16 </X>
<Y> 246 </Y>
<Size> 14 </Size>
<Width>220</Width>
<Font> KanitMediumTTF </Font>
<Color> 0x6F5F51 </Color>
<State> showengText </State>
<Value> $11-99-02-0028.descriptionE </Value>
<Value> $12-05-02-0005.descriptionE </Value>
</Text>
</Block>
; button i=7 12-05-02-0006
<Block>
<MarginLeft> 33 </MarginLeft>
<MarginTop> 22 </MarginTop>
<Width> 225 </Width>
<Height> 296 </Height>
<State> $12-05-02-0006.Button </State>
<Button>
<State> $12-05-02-0006.Button </State>
<Filename> Var( "ROOT/taobin_project/image/page_drink/" + $12-05-02-0006.image ) </Filename>
<FilenamePress> Var( "ROOT/taobin_project/image/page_drink_press/" + $12-05-02-0006.image ) " </FilenamePress>
<FilenameDisable> Var( "ROOT/taobin_project/image/page_drink_disable/" + $12-05-02-0006.image ) " </FilenameDisable>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventOnClick>
Var SelectDrink = "12-05-02-0006"
Var NameDrink = $12-05-02-0006.NameE
Var NameDrinkTH = $12-05-02-0006.Name
Var DrinkDescriptionTH = $12-05-02-0006.description
Var DrinkDescription = $12-05-02-0006.descriptionE
Var PriceDrink = $12-05-02-0006.Price
Var PictureDrink = "ROOT/taobin_project/image/page_drink_select/" + $12-05-02-0006.image
Topping "Load" SelectDrink
SAVELOG NameDrink
Var PriceShowValue = charOfBaht + PriceDrink
Open "ROOT/taobin_project/xml/page_topping_alter.xml"
</EventOnClick>
</Button>
<Text>
<X> 740 </X>
<Y> 360 </Y>
<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> $11-99-02-0029.Price </Value>
<Value> $12-05-02-0006.Price </Value>
</Text>
<Text>
<X> 722 </X>
<Y> 360 </Y>
<X> 164 </X>
<Y> 12 </Y>
<State> ShowPrice </State>
<Width>20</Width>
<Size> 27 </Size>
<Font> KanitTTF </Font>
@ -760,47 +838,48 @@
<Value> "฿"" </Value>
</Text>
<Text>
<X> 574 </X>
<Y> 538 </Y>
<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> $11-99-02-0029.Name </Value>
<Value> $12-05-02-0006.Name </Value>
</Text>
<Text>
<X> 574 </X>
<Y> 594 </Y>
<X> 16 </X>
<Y> 246 </Y>
<Size> 14 </Size>
<Width>220</Width>
<Font> KanitMediumTTF </Font>
<Color> 0x6F5F51 </Color>
<State> showthaiText </State>
<Value> $11-99-02-0029.description </Value>
<Value> $12-05-02-0006.description </Value>
</Text>
<Text>
<X> 574 </X>
<Y> 538 </Y>
<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> $11-99-02-0029.NameE </Value>
<Value> $12-05-02-0006.NameE </Value>
</Text>
<Text>
<X> 574 </X>
<Y> 594 </Y>
<X> 16 </X>
<Y> 246 </Y>
<Size> 14 </Size>
<Width>220</Width>
<Font> KanitMediumTTF </Font>
<Color> 0x6F5F51 </Color>
<State> showengText </State>
<Value> $11-99-02-0029.descriptionE </Value>
<Value> $12-05-02-0006.descriptionE </Value>
</Text>
</Block>
</FrameScroll>

View file

@ -6,35 +6,36 @@
product_code = []
product_code.append('11-99-02-0033')
product_code.append('11-99-02-0051')
product_code.append('12-05-02-0007')
#product_code.append('11-99-02-0052')
product_code.append('12-05-02-0021')
#product_code.append('11-99-02-0045')
#product_code.append('11-99-02-0046')
product_code.append('11-99-02-0036')
product_code.append('11-99-02-0037')
product_code.append('12-05-02-0010')
product_code.append('12-05-02-0011')
product_code.append('11-99-02-0038')
product_code.append('11-99-02-0039')
product_code.append('11-99-02-0034')
product_code.append('11-99-02-0035')
product_code.append('12-05-02-0012')
product_code.append('12-05-02-0013')
product_code.append('12-05-02-0008')
product_code.append('12-05-02-0009')
product_code.append('11-99-02-0040')
product_code.append('11-99-02-0041')
product_code.append('12-05-02-0014')
product_code.append('12-05-02-0015')
product_code.append('11-99-01-0027')
product_code.append('11-99-02-0027')
product_code.append('11-99-02-0030')
product_code.append('11-99-02-0031')
product_code.append('12-05-01-0001')
product_code.append('12-05-02-0001')
product_code.append('12-05-02-0004')
product_code.append('12-05-02-0005')
product_code.append('11-99-02-0032')
product_code.append('11-99-02-0028')
product_code.append('11-99-02-0029')
product_code.append('11-99-01-0042')
product_code.append('11-99-02-0043')
product_code.append('11-99-02-0044')
product_code.append('12-05-02-0006')
product_code.append('12-05-02-0002')
product_code.append('12-05-02-0003')
product_code.append('12-05-02-0016')
product_code.append('12-05-02-0017')
product_code.append('12-05-02-0018')
product_code.append('11-99-01-0045')
product_code.append('12-05-01-0002')
menu_count = len( product_code)
@ -70,8 +71,17 @@
Var Menu2Selected = "Enable"
Var Menu3Selected = "Enable"
Var Menu4Selected = "Enable"
Var Menu5Selected = "Enable"
Var Menu5Selected = "Invisible"
Var Menu6Selected = "PressForever"
Var Menu7Selected = "Enable"
Var Menu8Selected = "Invisible"
If CocktailShow = "true" Then
Var Menu7Selected = "Invisible"
Var Menu8Selected = "Enable"
EndIf
</EventOpen>
<Timeout> 60000 </Timeout>
<EventTimeout>

File diff suppressed because it is too large Load diff

View file

@ -6,16 +6,18 @@
product_code = []
product_code.append('11-99-04-0000')
product_code.append('11-99-04-0001')
product_code.append('11-99-04-0002')
product_code.append('11-99-04-0003')
product_code.append('11-99-04-0004')
product_code.append('11-99-04-0005')
product_code.append('11-99-04-0006')
product_code.append('11-99-04-0007')
product_code.append('11-99-04-0008')
product_code.append('11-99-04-0009')
product_code.append('12-04-02-0001')
product_code.append('12-04-02-0002')
product_code.append('12-04-02-0003')
product_code.append('12-04-02-0004')
product_code.append('12-04-02-0005')
product_code.append('12-04-02-0006')
product_code.append('12-04-02-0007')
product_code.append('12-04-02-0008')
product_code.append('12-04-02-0009')
product_code.append('12-04-02-0010')
product_code.append('12-04-02-0011')
menu_count = len( product_code)
@ -47,12 +49,20 @@
Var show_btn = "ROOT/taobin_project/image/bn_eng_lang.png"
EndIf
Var Menu1Selected = "Enable"
Var Menu1Selected = "Enable"
Var Menu2Selected = "Enable"
Var Menu3Selected = "Enable"
Var Menu4Selected = "Enable"
Var Menu5Selected = "PressForever"
Var Menu5Selected = "Invisible"
Var Menu6Selected = "Enable"
Var Menu7Selected = "PressForever"
Var Menu8Selected = "Invisible"
If CocktailShow = "true" Then
Var Menu7Selected = "Invisible"
Var Menu8Selected = "Enable"
EndIf
</EventOpen>
<Timeout> 60000 </Timeout>
<EventTimeout>

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,89 @@
<?hurr
#include=menu_head.py
?>
<?hurr
product_code = []
product_code.append('11-99-05-0001')
product_code.append('11-99-05-0002')
product_code.append('11-99-05-0003')
product_code.append('11-99-05-0004')
product_code.append('11-99-05-0005')
product_code.append('11-99-05-0006')
product_code.append('11-99-05-0007')
product_code.append('11-99-05-0008')
product_code.append('11-99-05-0009')
product_code.append('11-99-05-0010')
menu_count = len( product_code)
?>
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
<Background> "0xeae6e1" </Background>
<Volume> SoundVolume </Volume>
<Sound> "ROOT/sounds/selectDrink.wav" </Sound>
<EventOpen>
; On open
If show_eng = "true" Then
Var showthaiText = "Invisible"
Var showengText = "Enable"
Var DirImage = "ROOT/taobin_project/image/page3_en"
Var show_btp = "ROOT/taobin_project/image/bn_thai_lang_press.png"
Var show_btn = "ROOT/taobin_project/image/bn_thai_lang.png"
Else
Var showengText = "Invisible"
Var showthaiText = "Enable"
Var DirImage = "ROOT/taobin_project/image/page3"
Var show_btp = "ROOT/taobin_project/image/bn_eng_lang_press.png"
Var show_btn = "ROOT/taobin_project/image/bn_eng_lang.png"
EndIf
Var Menu1Selected = "Enable"
Var Menu2Selected = "Enable"
Var Menu3Selected = "Enable"
Var Menu4Selected = "Enable"
Var Menu5Selected = "Invisible"
Var Menu6Selected = "Enable"
Var Menu7Selected = "Invisible"
Var Menu8Selected = "Invisible"
If CocktailShow = "true" Then
Var Menu7Selected = "Invisible"
Var Menu8Selected = "PressForever"
EndIf
</EventOpen>
<Timeout> 60000 </Timeout>
<EventTimeout>
Open "ROOT/taobin_project/xml/page_back_to_main.xml"
TimerReset
</EventTimeout>
<?hurr
#include=menu_catalog.xml
?>
<?hurr
#include=menu_gen.py
?>
</Popup>

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,235 @@
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
<Background> "0xeae6e1" </Background>
<Volume> SoundVolume </Volume>
<Sound> "ROOT/sounds/selectDrink.wav" </Sound>
<EventOpen>
TopView "show"
; On open
Var GetPayInfoFlag = 0
Var countDownRetrun = 30
CoinVending OFF
; Clear value
Topping "clear" "-"
If show_eng = "true" Then
Var DirImage = "ROOT/taobin_project/image/page2_en/page2"
Var show_btp = "ROOT/taobin_project/image/bn_thai_lang_press.png"
Var show_btn = "ROOT/taobin_project/image/bn_thai_lang.png"
Else
Var DirImage = "ROOT/taobin_project/image/page2"
Var show_btp = "ROOT/taobin_project/image/bn_eng_lang_press.png"
Var show_btn = "ROOT/taobin_project/image/bn_eng_lang.png"
EndIf
</EventOpen>
<Timeout> 1000 </Timeout>
<EventTimeout>
;SAVELOG SoundPlaying
If countDownRetrun > 0 Then
Var countDownRetrun = countDownRetrun - 1
EndIf
If countDownRetrun = 0 Then
Open "ROOT/taobin_project/xml/page_back_to_main.xml"
EndIf
Refresh
TimerReset
</EventTimeout>
<EventChangeStatus>
;If ChangeStatus = "payout-end" Then
; Var ChangeOK = 1
;EndIf
</EventChangeStatus>
;<Image>
;<X> 0 </X>
;<Y> 0 </Y>
;<Filename> "ROOT/taobin_project/image/ad_medium_2.png" </Filename>
;</Image>
<Video>
<X> 0 </X>
<Y> 0 </Y>
<Width> 1080</Width>
<Height> 380 </Height>
<Loop> "true" </Loop>
<Filename> "ROOT/taobin_project/video/taobin_adv2.mp4" </Filename>
</Video>
; back
<Button>
<X> 19 </X>
<Y> 420 </Y>
<Filename> "ROOT/taobin_project/image/page2/bn_back_arrow.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page2/bn_back_arrow.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Open "ROOT/taobin_project/xml/page_back_to_main.xml"
</EventClick>
</Button>
<Button>
<X> 990 </X>
<Y> 438 </Y>
<Filename> show_btn </Filename>
<FilenamePress> show_btp </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
; eng
If show_eng = "true" Then
Var show_eng = "false"
Else
Var show_eng = "true"
EndIf
Open CurrentXMLFileName2
</EventClick>
</Button>
<Image>
<X> 70 </X>
<Y> 583 </Y>
<Filename> Var(DirImage + "/text1.png") </Filename>
</Image>
; menu row 1
<Button>
<X> 205 </X>
<Y> 849 </Y>
<Filename> Var(DirImage + "/bn_diy.png") </Filename>
<FilenamePress> Var(DirImage + "/bp_diy.png") </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
; eng
Open "ROOT/taobin_project/xml/page_catalog_choose_drink1.xml"
</EventClick>
</Button>
<Button>
<X> 579 </X>
<Y> 849 </Y>
<Filename> Var(DirImage + "/bn_coffee.png") </Filename>
<FilenamePress> Var(DirImage + "/bp_coffee.png") </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Open "ROOT/taobin_project/xml/page_catalog_choose_drink2.xml"
</EventClick>
</Button>
; menu row 2
<Button>
<X> 205 </X>
<Y> 1191 </Y>
<Filename> Var(DirImage + "/bn_tea.png") </Filename>
<FilenamePress> Var(DirImage + "/bp_tea.png") </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Open "ROOT/taobin_project/xml/page_catalog_choose_drink3.xml"
</EventClick>
</Button>
<Button>
<X> 579 </X>
<Y> 1191 </Y>
<Filename> Var(DirImage + "/bn_cho_caramel.png") </Filename>
<FilenamePress> Var(DirImage + "/bp_cho_caramel.png") </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Open "ROOT/taobin_project/xml/page_catalog_choose_drink4.xml"
</EventClick>
</Button>
<Button>
<X> 205 </X>
<Y> 1533 </Y>
<Filename> Var(DirImage + "/bn_cocktail.png") </Filename>
<FilenamePress> Var(DirImage + "/bp_cocktail.png") </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Open "ROOT/taobin_project/xml/page_catalog_choose_drink8.xml"
</EventClick>
</Button>
<Button>
<X> 579 </X>
<Y> 1533 </Y>
<Filename> Var(DirImage + "/bn_soda.png") </Filename>
<FilenamePress> Var(DirImage + "/bp_soda.png") </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Open "ROOT/taobin_project/xml/page_catalog_choose_drink6.xml"
</EventClick>
</Button>
;<Text>
;<X> 0 </X>
;<Y> 1886 </Y>
;<Size> 20 </Size>
;<Width> 1080</Width>
;<Align> Center </Align>
;<Font> RobotoBlack </Font>
;<Color> 0x513C2F </Color>
;<Value> countDownRetrun </Value>
;</Text>
<Button>
<X> 392 </X>
<Y> 424 </Y>
<Filename> Var(DirImage + "/bn_main_page_member.png") </Filename>
<FilenamePress> Var(DirImage + "/bp_main_page_member.png") </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
; eng
;Open "ROOT/xml/service_menu.xml"
</EventClick>
</Button>
<Button>
<X> 696 </X>
<Y> 424 </Y>
<Filename> Var(DirImage + "/bn_main_page_topup.png") </Filename>
<FilenamePress> Var(DirImage + "/bp_main_page_topup.png") </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
; eng
Open "ROOT/taobin_project/xml/page_back_to_topup.xml"
</EventClick>
</Button>
</Popup>

View file

@ -22,7 +22,7 @@
Var VideoPlayFile = VideoPlayFile + "24"
Var VideoPlayFile = VideoPlayFile + VideoFileEnd
</EventOpen>
<Timeout> 1000 </Timeout>
<Timeout> 500 </Timeout>
<EventTimeout>
If HaveCup = "false" Then

View file

@ -7,7 +7,8 @@
<Sound> "ROOT/sounds/pleaseWait.wav" </Sound>
<EventOpen>
; On open
Var LidState = Lid1Status
Var LidState = "Invisible"
;Lid1Status
Var StarwState = "Enable"
Var LidStrawCountDown = 15
@ -24,10 +25,23 @@
Var DirImage = "ROOT/taobin_project/image/page_lid_straw_en"
Var PictureEnd = "_en.png"
Var BottomText = PicturePath + "text_bottom_eng.png"
Var lid_straw_bg_iamge = DirImage + "/img4.png"
If LidState = "Enable"
Var lid_straw_bg_iamge = DirImage + "/img3.png"
EndIf
Else
Var DirImage = "ROOT/taobin_project/image/page_lid_straw"
Var PictureEnd = ".png"
Var BottomText = PicturePath + "text_bottom_thai2.png"
Var lid_straw_bg_iamge = DirImage + "/img4.png"
If LidState = "Enable"
Var lid_straw_bg_iamge = DirImage + "/img3.png"
EndIf
EndIf
@ -61,6 +75,8 @@
Var PictureFile = PictureFile + PictureEnd
</EventOpen>
<Timeout> 1000 </Timeout>
<EventTimeout>
@ -76,7 +92,7 @@
; count down
If LidStrawCountDown = 1 Then
Var LidStrawCountDown = 10
;Open "ROOT/taobin_project/xml/page_brewing2.xml"
Open "ROOT/taobin_project/xml/page_brewing3.xml"
EndIf
@ -193,7 +209,7 @@
<Image>
<X> 78 </X>
<Y> 1425 </Y>
<Filename> Var( DirImage + "/img3.png" ) </Filename>
<Filename> lid_straw_bg_iamge </Filename>
</Image>

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
@ -198,8 +198,12 @@
EndIf
;Var RemainAmount = 0
Var showRemaining = charOfBaht + RemainAmountStr
If RoadShow = "true" Then
Var showRemaining = "Free"
EndIf
EndIf
If show_eng = "true" Then
@ -242,11 +246,13 @@
If ReqPayInfoFlag = 1 Then
Var QRCODE99 = SessionID
Var QRCODE99 = QRCODE99 + Ext1a
SAVELOG Ext1a
SAVELOG QRCODE99
Var QRCODE99 = QRCODE99 + Ext21
Var QRCODETMP = QRCODE99
Var ReqPayInfoFlag = 0
SAVELOG QRCODE99
SAVELOG Ext21
EndIf
Else
Var PayInfoCFlag = 1

View file

@ -78,18 +78,21 @@
;Open "ROOT/taobin_project/xml/page_lid_straw.xml"
;Open "ROOT/taobin_project/xml/page_brewing.xml"
<<<<<<< HEAD
If TestLoopMakeDrink = 1 Then
Open "ROOT/taobin_project/xml/page_brewing2.xml"
EndIf
=======
Var CountDownBrewing = BrewTime
Var CountUpBrewing = 0
SAVELOG BrewTime
Var ShowCountDownBrewing = CountDownBrewing
>>>>>>> f36bbe70987e89d48bcc2837537db37c4f90c33b
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

View file

@ -43,17 +43,32 @@
Var showdesc = DrinkDescription
Else
Var DirImage = "ROOT/taobin_project/image/topping"
Var show_btp = "ROOT/taobin_project/image/bn_eng_lang_press.png"
Var show_btn = "ROOT/taobin_project/image/bn_eng_lang.png"
Var showname = NameDrinkTH
Var showdesc = DrinkDescriptionTH
EndIf
Var backGroundAddExtra = DirImage + "/extra_img_1.png"
CRLFToSpace showname
CRLFToSpace showdesc
;- Begin
Var PriceDrinkNoTop = PriceDrink
Var PriceDrinkTmp = PriceDrink
Var PriceDrinkTmpShow = charOfBaht + PriceDrinkTmp
Var Timeout = 0
;SAVELOG showname
SAVELOG PriceDrinkTmp
;- End
If RoadShow = "true" Then
Var PriceDrinkTmp = "Free"
EndIf
Var ToppingGotoPayment = "true"
@ -100,6 +115,9 @@
Var showname = NameDrinkTH
Var showdesc = DrinkDescriptionTH
EndIf
Var backGroundAddExtra = DirImage + "/extra_img_1.png"
CRLFToSpace showname
CRLFToSpace showdesc
@ -144,6 +162,15 @@
SAVELOG TOPPING2
SAVELOG TOPPING3
SAVELOG TOPPING4
SAVELOG toppingID1index1
SAVELOG toppingID1index2
SAVELOG toppingID1index3
SAVELOG toppingID1index4
SAVELOG toppingID1index5
SAVELOG toppingID2index1
SAVELOG toppingID2index2
SAVELOG MenuCodeName
;SAVELOG toppingID1Default
@ -157,31 +184,7 @@
Var ToppingGotoPayment = "false"
EndIf
If TOPPING1 = "Powder Sugar" Then
Var SugarState1 = "PressForever"
Var SugarState2 = "Enable"
Var SugarState3 = "Enable"
Var SugarState4 = "Enable"
Var SugarState5 = "Enable"
Var BGSugar = "Enable"
Var BugFlag = 1
Var topping1 = toppingID1Default
Var ToppingGotoPayment = "false"
Refresh
EndIf
If TOPPING2 = "shot coffee" Then
Var backGroundAddExtra = DirImage + "/extra_img_1.png"
SAVELOG backGroundAddExtra
Var ShotCoffeeBG = "Enable"
Var y_shot_coffee_bg = y2_topping_bg
Var y_shot_coffee_bt = y_shot_coffee_bg + 100
Var showShotEnable = "Enable"
Refresh
EndIf
If TOPPING1 = "Powder Sugar Premix 25" Then
Var ToppingGotoPayment = "false"
Open "ROOT/taobin_project/xml/page_topping_premix25percent.xml"
@ -203,7 +206,34 @@
Open "ROOT/taobin_project/xml/page_topping_premix25percent_no.xml"
EndIf
If TOPPING1 = "Powder Sugar" Then
Var SugarState1 = "PressForever"
Var SugarState2 = "Enable"
Var SugarState3 = "Enable"
Var SugarState4 = "Enable"
Var SugarState5 = "Enable"
Var BGSugar = "Enable"
Var BugFlag = 1
Var topping1 = toppingID1Default
Var ToppingGotoPayment = "false"
Refresh
EndIf
;-BEGIN shot layout
If TOPPING2 = "shot coffee" Then
Var y_shot_coffee_bg = y2_topping_bg
Var y_shot_coffee_bt = y_shot_coffee_bg + 100
Var ShotCoffeeBG = "Enable"
Var showShotEnable = "Enable"
;Var ShotCoffeeBG = "Invisible"
;Var showShotEnable = "Invisible"
Refresh
EndIf
;-END
SAVELOG ToppingGotoPayment
If ToppingGotoPayment = "true" Then
@ -284,7 +314,10 @@
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var PriceDrink = PriceDrinkTmp
SAVELOG topping2
; Set drink
Topping "Select" SelectDrink
@ -310,13 +343,18 @@
<Size> 36 </Size>
<Width> 1080 </Width>
<Color> 0xFFFFFF </Color>
<Value> PriceShowValue </Value>
<Animation>
<Style> "shake-text" </Style>
<OnEvent> "OnValueChange" </OnEvent>
</Animation>
<Value> PriceDrinkTmpShow </Value>
</Text>
; shot layout
;-BEGIN shot layout
<Image>
<X> 52 </X>
<X> 44 </X>
<Y> y_shot_coffee_bg </Y>
<State> ShotCoffeeBG </State>
<Filename> backGroundAddExtra </Filename>
@ -327,13 +365,29 @@
<X> 100 </X>
<Y> y_shot_coffee_bt </Y>
<State> showShotEnable </Stage>
<Mode> "No" </Mode>
<Filename> Var( DirImage + "/add_shot_img.png" ) </Filename>
<FilenamePress> Var( DirImage + "/add_shot_img_2.png" ) </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
SAVELOG showShotEnable
If showShotEnable = "Press" Then
Var showShotEnable = "Enable"
Var PriceDrinkTmp = PriceDrinkNoTop
Var topping2 = toppingID2index1
Else
Var showShotEnable = "Press"
Var PriceDrinkTmp = PriceDrinkNoTop + toppingID2price2
Var topping2 = toppingID2index2
EndIf
Var PriceDrinkTmpShow = charOfBaht + PriceDrinkTmp
SAVELOG PriceDrinkTmp
Refresh
</EventClick>
</Button>
@ -342,16 +396,33 @@
<X> 925 </X>
<Y> y_shot_coffee_bt </Y>
<State> showShotEnable </Stage>
<Mode> "No" </Mode>
<Filename> Var( DirImage + "/cb_nch.png" ) </Filename>
<FilenamePress> Var( DirImage + "/cb_ch.png" ) </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
SAVELOG showShotEnable
If showShotEnable = "Press" Then
Var showShotEnable = "Enable"
Var PriceDrinkTmp = PriceDrinkNoTop
Var topping2 = toppingID2index1
Else
Var showShotEnable = "Press"
Var PriceDrinkTmp = PriceDrinkNoTop + toppingID2price2
Var topping2 = toppingID2index2
EndIf
Var PriceDrinkTmpShow = charOfBaht + PriceDrinkTmp
SAVELOG PriceDrinkTmp
Refresh
</EventClick>
</Button>
;-END
; sugar layout
@ -377,7 +448,7 @@
Var SugarState3 = "Enable"
Var SugarState4 = "Enable"
Var SugarState5 = "Enable"
Var topping1 = "1"
Var topping1 = toppingID1index1
Refresh
</EventClick>
</Button>
@ -397,7 +468,7 @@
Var SugarState3 = "Enable"
Var SugarState4 = "Enable"
Var SugarState5 = "Enable"
Var topping1 = "2"
Var topping1 = toppingID1index2
Refresh
</EventClick>
</Button>
@ -418,7 +489,7 @@
Var SugarState3 = "PressForever"
Var SugarState4 = "Enable"
Var SugarState5 = "Enable"
Var topping1 = "3"
Var topping1 = toppingID1index3
Refresh
</EventClick>
</Button>
@ -438,7 +509,7 @@
Var SugarState3 = "Enable"
Var SugarState4 = "PressForever"
Var SugarState5 = "Enable"
Var topping1 = "4"
Var topping1 = toppingID1index4
Refresh
</EventClick>
</Button>
@ -458,7 +529,7 @@
Var SugarState3 = "Enable"
Var SugarState4 = "Enable"
Var SugarState5 = "PressForever"
Var topping1 = "5"
Var topping1 = toppingID1index5
Refresh
</EventClick>
</Button>

View file

@ -66,8 +66,37 @@
CRLFToSpace showname
CRLFToSpace showdesc
;-BEGIN shot layout
Var backGroundAddExtra = DirImage + "/extra_img_1.png"
If TOPPING2 = "shot coffee" Then
Var backGroundAddExtra = DirImage + "/extra_img_1.png"
Var y_shot_coffee_bg = y2_topping_bg
Var y_shot_coffee_bt = y_shot_coffee_bg + 100
Var ShotCoffeeBG = "Enable"
Var showShotEnable = "Enable"
;Var ShotCoffeeBG = "Invisible"
;Var showShotEnable = "Invisible"
Refresh
EndIf
;-END
;- Begin Price
Var PriceDrinkNoTop = PriceDrink
Var PriceDrinkTmp = PriceDrink
Var PriceDrinkTmpShow = charOfBaht + PriceDrinkTmp
Var Timeout = 0
SAVELOG PriceDrinkTmp
;- End
;SAVELOG showname
If RoadShow = "true" Then
Var PriceShowValue = "Free"
EndIf
</EventOpen>
<Timeout> 30000 </Timeout>
@ -107,6 +136,7 @@
Var showdesc = DrinkDescriptionTH
EndIf
CRLFToSpace showname
CRLFToSpace showdesc
RefreshAll
</EventClick>
@ -251,9 +281,85 @@
<Size> 36 </Size>
<Width> 1080 </Width>
<Color> 0xFFFFFF </Color>
<Value> PriceShowValue </Value>
<Animation>
<Style> "shake-text" </Style>
<OnEvent> "OnValueChange" </OnEvent>
</Animation>
<Value> PriceDrinkTmpShow </Value>
</Text>
;-BEGIN shot layout
<Image>
<X> 44 </X>
<Y> y_shot_coffee_bg </Y>
<State> ShotCoffeeBG </State>
<Filename> backGroundAddExtra </Filename>
</Image>
;
<Button>
<X> 100 </X>
<Y> y_shot_coffee_bt </Y>
<State> showShotEnable </Stage>
<Mode> "No" </Mode>
<Filename> Var( DirImage + "/add_shot_img.png" ) </Filename>
<FilenamePress> Var( DirImage + "/add_shot_img_2.png" ) </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
SAVELOG showShotEnable
If showShotEnable = "Press" Then
Var showShotEnable = "Enable"
Var PriceDrinkTmp = PriceDrinkNoTop
Var topping2 = toppingID2index1
Else
Var showShotEnable = "Press"
Var PriceDrinkTmp = PriceDrinkNoTop + toppingID2price2
Var topping2 = toppingID2index2
EndIf
Var PriceDrinkTmpShow = charOfBaht + PriceDrinkTmp
SAVELOG PriceDrinkTmp
Refresh
</EventClick>
</Button>
;
<Button>
<X> 925 </X>
<Y> y_shot_coffee_bt </Y>
<State> showShotEnable </Stage>
<Mode> "No" </Mode>
<Filename> Var( DirImage + "/cb_nch.png" ) </Filename>
<FilenamePress> Var( DirImage + "/cb_ch.png" ) </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
SAVELOG showShotEnable
If showShotEnable = "Press" Then
Var showShotEnable = "Enable"
Var PriceDrinkTmp = PriceDrinkNoTop
Var topping2 = toppingID2index1
Else
Var showShotEnable = "Press"
Var PriceDrinkTmp = PriceDrinkNoTop + toppingID2price2
Var topping2 = toppingID2index2
EndIf
Var PriceDrinkTmpShow = charOfBaht + PriceDrinkTmp
SAVELOG PriceDrinkTmp
Refresh
</EventClick>
</Button>
;-END
; sugar layout
@ -261,7 +367,7 @@
<X> 44 </X>
<Y> y_topping_bg </Y>
<State> BGSugar </State>
<Filename> "ROOT/taobin_project/image/topping/img1.png" </Filename>
<Filename> Var( DirImage + "/img_sugar.png" )</Filename>
</Image>
; sugar1
@ -269,8 +375,8 @@
<X> 181 </X>
<Y> y_topping </Y>
<State> SugarState1 </Stage>
<Filename> "ROOT/taobin_project/image/topping/bn_sugar1.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/topping/bp_sugar1.png" </FilenamePress>
<Filename> Var( DirImage + "/bn_sugar1.png" ) </Filename>
<FilenamePress> Var( DirImage + "/bp_sugar1.png" ) </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
@ -284,8 +390,8 @@
<X> 327 </X>
<Y> y_topping </Y>
<State> SugarState2 </Stage>
<Filename> "ROOT/taobin_project/image/topping/bn_sugar2.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/topping/bp_sugar2.png" </FilenamePress>
<Filename> Var( DirImage + "/bn_sugar2.png" ) </Filename>
<FilenamePress> Var( DirImage + "/bp_sugar2.png" ) </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
@ -310,8 +416,8 @@
<X> 503 </X>
<Y> y_topping </Y>
<State> SugarState3 </Stage>
<Filename> "ROOT/taobin_project/image/topping/bn_sugar3.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/topping/bp_sugar3.png" </FilenamePress>
<Filename> Var( DirImage + "/bn_sugar3.png" ) </Filename>
<FilenamePress> Var( DirImage + "/bp_sugar3.png" ) </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
@ -335,8 +441,8 @@
<X> 664 </X>
<Y> y_topping </Y>
<State> SugarState4 </Stage>
<Filename> "ROOT/taobin_project/image/topping/bn_sugar4.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/topping/bp_sugar4.png" </FilenamePress>
<Filename> Var( DirImage + "/bn_sugar4.png" ) </Filename>
<FilenamePress> Var( DirImage + "/bp_sugar4.png" ) </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
@ -360,8 +466,8 @@
<X> 836 </X>
<Y> y_topping </Y>
<State> SugarState5 </Stage>
<Filename> "ROOT/taobin_project/image/topping/bn_sugar5.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/topping/bp_sugar5.png" </FilenamePress>
<Filename> Var( DirImage + "/bn_sugar5.png" ) </Filename>
<FilenamePress> Var( DirImage + "/bp_sugar5.png" ) </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
@ -372,7 +478,7 @@
Var SugarState3 = "Enable"
Var SugarState4 = "Enable"
Var SugarState5 = "PressForever"
Var topping1 = toppingID1index4
Var topping1 = toppingID1index5
SAVELOG topping1
Refresh

View file

@ -68,12 +68,81 @@
CRLFToSpace showdesc
;SAVELOG showname
;-BEGIN shot layout
Var backGroundAddExtra = DirImage + "/extra_img_1.png"
If TOPPING2 = "shot coffee" Then
Var backGroundAddExtra = DirImage + "/extra_img_1.png"
Var y_shot_coffee_bg = y2_topping_bg
Var y_shot_coffee_bt = y_shot_coffee_bg + 100
Var ShotCoffeeBG = "Enable"
Var showShotEnable = "Enable"
;Var ShotCoffeeBG = "Invisible"
;Var showShotEnable = "Invisible"
Refresh
EndIf
;-END
;- Begin Price
Var PriceDrinkNoTop = PriceDrink
Var PriceDrinkTmp = PriceDrink
Var PriceDrinkTmpShow = charOfBaht + PriceDrinkTmp
Var Timeout = 0
SAVELOG PriceDrinkTmp
;- End
If RoadShow = "true" Then
Var PriceShowValue = "Free"
EndIf
</EventOpen>
<Timeout> 30000 </Timeout>
<EventTimeout>
Open "ROOT/taobin_project/xml/page_back_to_main.xml"
</EventTimeout>
<Button>
<X> 990 </X>
<Y> 438 </Y>
<Filename> show_btn </Filename>
<FilenamePress> show_btp </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
; eng
If show_eng = "true" Then
Var show_eng = "false"
Else
Var show_eng = "true"
EndIf
If show_eng = "true" Then
Var DirImage = "ROOT/taobin_project/image/topping_en/"
Var show_btp = "ROOT/taobin_project/image/bn_thai_lang_press.png"
Var show_btn = "ROOT/taobin_project/image/bn_thai_lang.png"
Var showname = NameDrink
Var showdesc = DrinkDescription
Else
Var DirImage = "ROOT/taobin_project/image/topping/"
Var show_btp = "ROOT/taobin_project/image/bn_eng_lang_press.png"
Var show_btn = "ROOT/taobin_project/image/bn_eng_lang.png"
Var showname = NameDrinkTH
Var showdesc = DrinkDescriptionTH
EndIf
Var backGroundAddExtra = DirImage + "/extra_img_1.png"
CRLFToSpace showname
CRLFToSpace showdesc
RefreshAll
</EventClick>
</Button>
<Button>
<X> 990 </X>
@ -242,7 +311,6 @@
</EventClick>
</Button>
<Text>
<X> 924 </X>
<Y> 1804 </Y>
@ -250,9 +318,85 @@
<Size> 36 </Size>
<Width> 1080 </Width>
<Color> 0xFFFFFF </Color>
<Value> PriceShowValue </Value>
<Animation>
<Style> "shake-text" </Style>
<OnEvent> "OnValueChange" </OnEvent>
</Animation>
<Value> PriceDrinkTmpShow </Value>
</Text>
;-BEGIN shot layout
<Image>
<X> 44 </X>
<Y> y_shot_coffee_bg </Y>
<State> ShotCoffeeBG </State>
<Filename> backGroundAddExtra </Filename>
</Image>
;
<Button>
<X> 100 </X>
<Y> y_shot_coffee_bt </Y>
<State> showShotEnable </Stage>
<Mode> "No" </Mode>
<Filename> Var( DirImage + "/add_shot_img.png" ) </Filename>
<FilenamePress> Var( DirImage + "/add_shot_img_2.png" ) </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
SAVELOG showShotEnable
If showShotEnable = "Press" Then
Var showShotEnable = "Enable"
Var PriceDrinkTmp = PriceDrinkNoTop
Var topping2 = toppingID2index1
Else
Var showShotEnable = "Press"
Var PriceDrinkTmp = PriceDrinkNoTop + toppingID2price2
Var topping2 = toppingID2index2
EndIf
Var PriceDrinkTmpShow = charOfBaht + PriceDrinkTmp
SAVELOG PriceDrinkTmp
Refresh
</EventClick>
</Button>
;
<Button>
<X> 925 </X>
<Y> y_shot_coffee_bt </Y>
<State> showShotEnable </Stage>
<Mode> "No" </Mode>
<Filename> Var( DirImage + "/cb_nch.png" ) </Filename>
<FilenamePress> Var( DirImage + "/cb_ch.png" ) </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
SAVELOG showShotEnable
If showShotEnable = "Press" Then
Var showShotEnable = "Enable"
Var PriceDrinkTmp = PriceDrinkNoTop
Var topping2 = toppingID2index1
Else
Var showShotEnable = "Press"
Var PriceDrinkTmp = PriceDrinkNoTop + toppingID2price2
Var topping2 = toppingID2index2
EndIf
Var PriceDrinkTmpShow = charOfBaht + PriceDrinkTmp
SAVELOG PriceDrinkTmp
Refresh
</EventClick>
</Button>
;-END
; sugar layout
@ -260,7 +404,7 @@
<X> 44 </X>
<Y> y_topping_bg </Y>
<State> BGSugar </State>
<Filename> "ROOT/taobin_project/image/topping/img1.png" </Filename>
<Filename> Var( DirImage + "/img_sugar.png" )</Filename>
</Image>
; sugar1
@ -268,8 +412,8 @@
<X> 181 </X>
<Y> y_topping </Y>
<State> SugarState1 </Stage>
<Filename> "ROOT/taobin_project/image/topping/bn_sugar1.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/topping/bp_sugar1.png" </FilenamePress>
<Filename> Var( DirImage + "/bn_sugar1.png" ) </Filename>
<FilenamePress> Var( DirImage + "/bp_sugar1.png" ) </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
@ -283,8 +427,8 @@
<X> 327 </X>
<Y> y_topping </Y>
<State> SugarState2 </Stage>
<Filename> "ROOT/taobin_project/image/topping/bn_sugar2.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/topping/bp_sugar2.png" </FilenamePress>
<Filename> Var( DirImage + "/bn_sugar2.png" ) </Filename>
<FilenamePress> Var( DirImage + "/bp_sugar2.png" ) </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
@ -307,8 +451,8 @@
<X> 503 </X>
<Y> y_topping </Y>
<State> SugarState3 </Stage>
<Filename> "ROOT/taobin_project/image/topping/bn_sugar3.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/topping/bp_sugar3.png" </FilenamePress>
<Filename> Var( DirImage + "/bn_sugar3.png" ) </Filename>
<FilenamePress> Var( DirImage + "/bp_sugar3.png" ) </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
@ -330,8 +474,8 @@
<X> 664 </X>
<Y> y_topping </Y>
<State> SugarState4 </Stage>
<Filename> "ROOT/taobin_project/image/topping/bn_sugar4.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/topping/bp_sugar4.png" </FilenamePress>
<Filename> Var( DirImage + "/bn_sugar4.png" ) </Filename>
<FilenamePress> Var( DirImage + "/bp_sugar4.png" ) </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
@ -354,8 +498,8 @@
<X> 836 </X>
<Y> y_topping </Y>
<State> SugarState5 </Stage>
<Filename> "ROOT/taobin_project/image/topping/bn_sugar5.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/topping/bp_sugar5.png" </FilenamePress>
<Filename> Var( DirImage + "/bn_sugar5.png" ) </Filename>
<FilenamePress> Var( DirImage + "/bp_sugar5.png" ) </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>

View file

@ -66,6 +66,9 @@
CRLFToSpace showname
;SAVELOG showname
If RoadShow = "true" Then
Var PriceShowValue = "Free"
EndIf
</EventOpen>
<Timeout> 30000 </Timeout>
<EventTimeout>
@ -266,8 +269,8 @@
<X> 181 </X>
<Y> y_topping </Y>
<State> SugarState1 </Stage>
<Filename> "ROOT/taobin_project/image/topping/bn_sugar1.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/topping/bp_sugar1.png" </FilenamePress>
<Filename> Var( DirImage + "/bn_sugar1.png" ) </Filename>
<FilenamePress> Var( DirImage + "/bp_sugar1.png" ) </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
@ -281,8 +284,8 @@
<X> 327 </X>
<Y> y_topping </Y>
<State> SugarState2 </Stage>
<Filename> "ROOT/taobin_project/image/topping/bn_sugar2.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/topping/bp_sugar2.png" </FilenamePress>
<Filename> Var( DirImage + "/bn_sugar2.png" ) </Filename>
<FilenamePress> Var( DirImage + "/bp_sugar2.png" ) </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
@ -305,8 +308,8 @@
<X> 503 </X>
<Y> y_topping </Y>
<State> SugarState3 </Stage>
<Filename> "ROOT/taobin_project/image/topping/bn_sugar3.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/topping/bp_sugar3.png" </FilenamePress>
<Filename> Var( DirImage + "/bn_sugar3.png" ) </Filename>
<FilenamePress> Var( DirImage + "/bp_sugar3.png" ) </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
@ -328,8 +331,8 @@
<X> 664 </X>
<Y> y_topping </Y>
<State> SugarState4 </Stage>
<Filename> "ROOT/taobin_project/image/topping/bn_sugar4.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/topping/bp_sugar4.png" </FilenamePress>
<Filename> Var( DirImage + "/bn_sugar4.png" ) </Filename>
<FilenamePress> Var( DirImage + "/bp_sugar4.png" ) </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
@ -352,8 +355,8 @@
<X> 836 </X>
<Y> y_topping </Y>
<State> SugarState5 </Stage>
<Filename> "ROOT/taobin_project/image/topping/bn_sugar5.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/topping/bp_sugar5.png" </FilenamePress>
<Filename> Var( DirImage + "/bn_sugar5.png" ) </Filename>
<FilenamePress> Var( DirImage + "/bp_sugar5.png" ) </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>

View file

@ -53,7 +53,7 @@
Var SelectSugarID = 3
EndIf
IftoppingID1Default = "4" Then
If toppingID1Default = "4" Then
Var SweetState1 = "Enable"
Var SweetState2 = "Enable"
Var SweetState3 = "Enable"
@ -84,7 +84,9 @@
EndIf
If RoadShow = "true" Then
Var PriceShowValue = "Free"
EndIf
</EventOpen>
<Timeout> 2000 </Timeout>
<EventTimeout>

View file

@ -55,6 +55,10 @@
CRLFToSpace showname
CRLFToSpace showdesc
If RoadShow = "true" Then
Var PriceShowValue = "Free"
EndIf
;SAVELOG showname
</EventOpen>

View file

@ -17,11 +17,9 @@
Var SugarState4 = "Invisible"
Var SugarState5 = "Invisible"
Var BGSubmenu = "Invisible"
Var NormalMenu = "Invisible"
Var BaristaMenu = "Invisible"
Var BGSubmenu = "Invisible"
Var BaristaMenu = "Invisible"
Var NormalMenu = "Invisible"
@ -42,15 +40,17 @@
;
Var y_sugar_block = 105
Var y_block = 175
Var y_block = 206
Var y_topping_bg = 912
Var y_topping = 912 + y_sugar_block
Var y2_topping_bg = y_topping_bg + y_block
Var y2_topping = y_topping + y_block
Var y_topping_bg = y2_topping_bg
Var y_topping = y2_topping
Var y_shot_coffee_bg = y2_topping_bg
Var y_shot_coffee_bt = y2_topping + 100
Var BugFlag = 0
@ -69,6 +69,7 @@
Var BGSugar = "Enable"
Var topping1 = toppingID1Default
EndIf
If TOPPING1 = "Sugar Premix 25" Then
Var SugarState1 = "Invisible"
@ -97,8 +98,37 @@
Var showname = NameDrinkTH
Var showdesc = DrinkDescriptionTH
EndIf
CRLFToSpace showname
;-BEGIN shot layout
Var backGroundAddExtra = DirImage + "/extra_img_1.png"
If TOPPING2 = "shot coffee" Then
Var backGroundAddExtra = DirImage + "/extra_img_1.png"
Var y_shot_coffee_bg = y2_topping_bg
Var y_shot_coffee_bt = y_shot_coffee_bg + 100
Var ShotCoffeeBG = "Enable"
Var showShotEnable = "Enable"
;Var ShotCoffeeBG = "Invisible"
;Var showShotEnable = "Invisible"
Refresh
EndIf
;-END
;- Begin Price
Var PriceDrinkNoTop = PriceDrink
Var PriceDrinkTmp = PriceDrink
Var PriceDrinkTmpShow = charOfBaht + PriceDrinkTmp
Var Timeout = 0
SAVELOG PriceDrinkTmp
;- End
If RoadShow = "true" Then
Var PriceShowValue = "Free"
EndIf
</EventOpen>
<Timeout> 30000 </Timeout>
@ -106,6 +136,45 @@
Open "ROOT/taobin_project/xml/page_back_to_main.xml"
</EventTimeout>
<Button>
<X> 990 </X>
<Y> 438 </Y>
<Filename> show_btn </Filename>
<FilenamePress> show_btp </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
; eng
If show_eng = "true" Then
Var show_eng = "false"
Else
Var show_eng = "true"
EndIf
If show_eng = "true" Then
Var DirImage = "ROOT/taobin_project/image/topping_en/"
Var show_btp = "ROOT/taobin_project/image/bn_thai_lang_press.png"
Var show_btn = "ROOT/taobin_project/image/bn_thai_lang.png"
Var showname = NameDrink
Var showdesc = DrinkDescription
Else
Var DirImage = "ROOT/taobin_project/image/topping/"
Var show_btp = "ROOT/taobin_project/image/bn_eng_lang_press.png"
Var show_btn = "ROOT/taobin_project/image/bn_eng_lang.png"
Var showname = NameDrinkTH
Var showdesc = DrinkDescriptionTH
EndIf
Var backGroundAddExtra = DirImage + "/extra_img_1.png"
CRLFToSpace showname
CRLFToSpace showdesc
RefreshAll
</EventClick>
</Button>
;<Image>
;<X> 0 </X>
@ -122,12 +191,6 @@
<Filename> "ROOT/taobin_project/video/taobin_adv2.mp4" </Filename>
</Video>
<Image>
<X> 44 </X>
<Y> 938 </Y>
<State> BGSubmenu </State>
<Filename> "ROOT/taobin_project/image/topping/img2.png" </Filename>
</Image>
<Button>
<X> 550 </X>
@ -327,9 +390,85 @@
<Size> 36 </Size>
<Width> 1080 </Width>
<Color> 0xFFFFFF </Color>
<Value> PriceShowValue </Value>
<Animation>
<Style> "shake-text" </Style>
<OnEvent> "OnValueChange" </OnEvent>
</Animation>
<Value> PriceDrinkTmpShow </Value>
</Text>
;-BEGIN shot layout
<Image>
<X> 44 </X>
<Y> y_shot_coffee_bg </Y>
<State> ShotCoffeeBG </State>
<Filename> backGroundAddExtra </Filename>
</Image>
;
<Button>
<X> 100 </X>
<Y> y_shot_coffee_bt </Y>
<State> showShotEnable </Stage>
<Mode> "No" </Mode>
<Filename> Var( DirImage + "/add_shot_img.png" ) </Filename>
<FilenamePress> Var( DirImage + "/add_shot_img_2.png" ) </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
SAVELOG showShotEnable
If showShotEnable = "Press" Then
Var showShotEnable = "Enable"
Var PriceDrinkTmp = PriceDrinkNoTop
Var topping2 = toppingID2index1
Else
Var showShotEnable = "Press"
Var PriceDrinkTmp = PriceDrinkNoTop + toppingID2price2
Var topping2 = toppingID2index2
EndIf
Var PriceDrinkTmpShow = charOfBaht + PriceDrinkTmp
SAVELOG PriceDrinkTmp
Refresh
</EventClick>
</Button>
;
<Button>
<X> 925 </X>
<Y> y_shot_coffee_bt </Y>
<State> showShotEnable </Stage>
<Mode> "No" </Mode>
<Filename> Var( DirImage + "/cb_nch.png" ) </Filename>
<FilenamePress> Var( DirImage + "/cb_ch.png" ) </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
SAVELOG showShotEnable
If showShotEnable = "Press" Then
Var showShotEnable = "Enable"
Var PriceDrinkTmp = PriceDrinkNoTop
Var topping2 = toppingID2index1
Else
Var showShotEnable = "Press"
Var PriceDrinkTmp = PriceDrinkNoTop + toppingID2price2
Var topping2 = toppingID2index2
EndIf
Var PriceDrinkTmpShow = charOfBaht + PriceDrinkTmp
SAVELOG PriceDrinkTmp
Refresh
</EventClick>
</Button>
;-END
; sugar layout
@ -337,7 +476,7 @@
<X> 44 </X>
<Y> y_topping_bg </Y>
<State> BGSugar </State>
<Filename> "ROOT/taobin_project/image/topping/img1.png" </Filename>
<Filename> Var( DirImage + "/img_sugar.png" )</Filename>
</Image>
; sugar1
@ -345,8 +484,8 @@
<X> 181 </X>
<Y> y_topping </Y>
<State> SugarState1 </Stage>
<Filename> "ROOT/taobin_project/image/topping/bn_sugar1.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/topping/bp_sugar1.png" </FilenamePress>
<Filename> Var( DirImage + "/bn_sugar1.png" ) </Filename>
<FilenamePress> Var( DirImage + "/bp_sugar1.png" ) </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
@ -375,8 +514,8 @@
<X> 344 </X>
<Y> y_topping </Y>
<State> SugarState2 </Stage>
<Filename> "ROOT/taobin_project/image/topping/bn_sugar2.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/topping/bp_sugar2.png" </FilenamePress>
<Filename> Var( DirImage + "/bn_sugar2.png" ) </Filename>
<FilenamePress> Var( DirImage + "/bp_sugar2.png" ) </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
@ -406,8 +545,8 @@
<X> 507 </X>
<Y> y_topping </Y>
<State> SugarState3 </Stage>
<Filename> "ROOT/taobin_project/image/topping/bn_sugar3.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/topping/bp_sugar3.png" </FilenamePress>
<Filename> Var( DirImage + "/bn_sugar3.png" ) </Filename>
<FilenamePress> Var( DirImage + "/bp_sugar3.png" ) </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
@ -437,8 +576,8 @@
<X> 670 </X>
<Y> y_topping </Y>
<State> SugarState4 </Stage>
<Filename> "ROOT/taobin_project/image/topping/bn_sugar4.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/topping/bp_sugar4.png" </FilenamePress>
<Filename> Var( DirImage + "/bn_sugar4.png" ) </Filename>
<FilenamePress> Var( DirImage + "/bp_sugar4.png" ) </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
@ -468,8 +607,8 @@
<X> 833 </X>
<Y> y_topping </Y>
<State> SugarState5 </Stage>
<Filename> "ROOT/taobin_project/image/topping/bn_sugar5.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/topping/bp_sugar5.png" </FilenamePress>
<Filename> Var( DirImage + "/bn_sugar5.png" ) </Filename>
<FilenamePress> Var( DirImage + "/bp_sugar5.png" ) </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>

View file

@ -1,3 +1,4 @@
<Page>
<Scale> "ALL" </Scale>
<Width> HeadScreenWidth </Width>
@ -16,7 +17,11 @@
Open "/mnt/sdcard/coffeevending/xml/startup_head.xml"
</EventTimeout>
<EventEnd>
Open "/mnt/sdcard/coffeevending/taobin_project/xml/test_video_loop.xml"
Var AdvImageFile = "/mnt/sdcard/coffeevending/taobin_project/image/adv_img_"
Var AdvImageFile = AdvImageFile + FileNumber
Var AdvImageFile = AdvImageFile + ".png"
Var AdvImageTimeout = 10000
Open "/mnt/sdcard/coffeevending/taobin_project/xml/adv_play.xml"
</EventEnd>
<EventSecurity>
Open "/mnt/sdcard/coffeevending/xml/security_alarm.xml"

View file

@ -16,8 +16,8 @@
<Sound> "/ROOT/sounds/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
TopView "hide"
OpenInst 0 "/mnt/sdcard/coffeevending/taobin_project/xml/page_board.xml"
;TopView "hide"
;OpenInst 0 "/mnt/sdcard/coffeevending/taobin_project/xml/page_board.xml"
</EventClick>
</Button>