This commit is contained in:
kong 2020-12-05 22:46:39 +07:00
parent f36bbe7098
commit 87132cde6c
75 changed files with 1770 additions and 191 deletions

View file

@ -121,15 +121,28 @@
<X> 696 </X>
<Y> 395 </Y>
<State> Menu5Selected </State>
<Filename> Var( DirImage + "/bn_fruit.png") </Filename>
<FilenamePress> Var( DirImage + "/bp_fruit.png") </FilenamePress>
<Filename> Var( DirImage + "/bn_protein.png") </Filename>
<FilenamePress> Var( DirImage + "/bp_protein.png") </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Open "ROOT/taobin_project/xml/page_catalog_choose_drink5.xml"
Open "ROOT/taobin_project/xml/page_catalog_choose_drink7.xml"
</EventClick>
</Button>
;<Button>
;<X> 696 </X>
;<Y> 395 </Y>
;<State> Menu5Selected </State>
;<Filename> Var( DirImage + "/bn_fruit.png") </Filename>
;<FilenamePress> Var( DirImage + "/bp_fruit.png") </FilenamePress>
;<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
;<Volume> SoundVolume </Volume>
;<EventClick>
; Open "ROOT/taobin_project/xml/page_catalog_choose_drink5.xml"
;</EventClick>
;</Button>
<Button>
<X> 847 </X>

View file

@ -11,7 +11,9 @@
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/xml/topview_button_back_main.xml"
Var taobin_version = "1.00"
Var sub_profile = "whey"
Var taobin_version = "1.03"
; 1.00 is
; On open
Var menu_back_to_main = "ROOT/taobin_project/xml/page_back_to_main.xml"
@ -56,14 +58,16 @@
EndIf
Var IgnoreNetCore = "true"
Var IgnoreNetCore = "false"
</EventOpen>
<Timeout> 800 </Timeout>
<Timeout> 1000 </Timeout>
<EventTimeout>
If IgnoreNetCore = "true" Then
Else
If NetworkStatus = "DOWN" Then
Open "/ROOT/xml/outservice.xml"
EndIf
@ -82,6 +86,13 @@
Open "ROOT/taobin_project/xml/page_show_error.xml"
EndIf
If MachineStage = "remove-cup" Then
Open "ROOT/taobin_project/xml/page_remove_cup.xml"
EndIf
SAVELOG MachineStage
@ -232,7 +243,8 @@
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Open "//mnt/sdcard/coffeevending/taobin_project/xml/vending_info.xml"
;Open "//mnt/sdcard/coffeevending/taobin_project/xml/vending_info.xml"
Open "//mnt/sdcard/coffeevending/taobin_project/xml/page_remove_cup.xml"
</EventClick>
</Button>

View file

@ -119,7 +119,7 @@
</EventActionError>
<Timeout> 600 </Timeout>
<Timeout> 1000 </Timeout>
<EventTimeout>
Var Timeout = Timeout + 1
@ -439,19 +439,35 @@
If StepVideo = 7 Then
Var videoID = VideoID7
EndIf
If StepVideo = 8 Then
Var videoID = VideoID8
EndIf
If StepVideo = 9 Then
Var videoID = VideoID9
EndIf
SAVELOG videoID
If videoID = 0 Then
Else
If videoID = "---" Then
Var VideoPlayFile = VideoPath
Var VideoPlayFile = VideoPlayFile + VideoFileBegin
Var VideoPlayFile = VideoPlayFile + videoID
Var VideoPlayFile = VideoPlayFile + VideoFileEnd
Else
SAVELOG VideoPlayFile
Var VideoPlayFile = VideoPath
Var VideoPlayFile = VideoPlayFile + VideoFileBegin
Var VideoPlayFile = VideoPlayFile + videoID
Var VideoPlayFile = VideoPlayFile + VideoFileEnd
Var PictureFile = PicturePath
Var PictureFile = PictureFile + PictureBegin
Var PictureFile = PictureFile + videoID
Var PictureFile = PictureFile + PictureEnd
SAVELOG VideoPlayFile
SAVELOG PictureFile
EndIf
EndIf
EndIf
EndIf
@ -522,11 +538,18 @@
;<Image>
;<X> 140 </X>
;<Y> 1124 </Y>
;<Filename> "ROOT/taobin_project/image/page_doing/text2.png" </Filename>
;</Image>
<Image>
<X> 60 </X>
<Y> 1290 </Y>
<Filename> PictureFile</Filename>
</Image>
<Image>
<X> 60 </X>
<Y> 1649 </Y>
<Filename> BottomText </Filename>
</Image>
;
@ -560,80 +583,80 @@
;
<Text>
<X> 0 </X>
<Y> 1880 </Y>
<Size> 30 </Size>
<Align> Center </Align>
<Width> 1080 </Width>
<Font> RobotoBlack </Font>
<Color> 0x513C2F </Color>
<Value> MachineStage </Value>
</Text>
;<Text>
;<X> 0 </X>
;<Y> 1880 </Y>
;<Size> 30 </Size>
;<Align> Center </Align>
;<Width> 1080 </Width>
;<Font> KanitThinTTF </Font>
;<Color> 0x513C2F </Color>
;<Value> MachineStage </Value>
;</Text>
<Button>
<X> 0 </X>
<Y> 1860 </Y>
<Width> 200 </Width>
<Height> 50 </Height>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var countClick = countClick + 1
If countClick = 3 Then
EndIf
;<Button>
;<X> 0 </X>
;<Y> 1860 </Y>
;<Width> 200 </Width>
;<Height> 50 </Height>
;<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
;<Volume> SoundVolume </Volume>
;<EventClick>
; Var countClick = countClick + 1
; If countClick = 3 Then
;
; EndIf
;
; If countClick = 5 Then
; Var countClick = 0
; MainMenu
; EndIf
; Refresh
;</EventClick>
;</Button>
If countClick = 5 Then
Var countClick = 0
MainMenu
EndIf
Refresh
</EventClick>
</Button>
<Button>
<X> 870 </X>
<Y> 1860 </Y>
<Width> 200 </Width>
<Height> 50 </Height>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var countClick2 = countClick2 + 1
If countClick2 = 3 Then
EndIf
If countClick2 = 5 Then
Var countClick2 = 0
Var HaveCup = "true"
Var MachineStage = "drink-success"
EndIf
Refresh
</EventClick>
</Button>
<Text>
<X> 0 </X>
<Y> 1886 </Y>
<Size> 20 </Size>
<Width> 1080</Width>
<Align> Start </Align>
<Font> RobotoBlack </Font>
<Color> 0x513C2F </Color>
<Value> countClick </Value>
</Text>
<Text>
<X> 0 </X>
<Y> 1886 </Y>
<Size> 20 </Size>
<Width> 1080</Width>
<Align> end </Align>
<Font> RobotoBlack </Font>
<Color> 0x513C2F </Color>
<Value> countClick2 </Value>
</Text>
;<Button>
;<X> 870 </X>
;<Y> 1860 </Y>
;<Width> 200 </Width>
;<Height> 50 </Height>
;<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
;<Volume> SoundVolume </Volume>
;<EventClick>
; Var countClick2 = countClick2 + 1
; If countClick2 = 3 Then
;
; EndIf
;
; If countClick2 = 5 Then
; Var countClick2 = 0
; Var HaveCup = "true"
; Var MachineStage = "drink-success"
; EndIf
; Refresh
;</EventClick>
;</Button>
;
;<Text>
;<X> 0 </X>
;<Y> 1886 </Y>
;<Size> 20 </Size>
;<Width> 1080</Width>
;<Align> Start </Align>
;<Font> KanitThinTTF </Font>
;<Color> 0x513C2F </Color>
;<Value> countClick </Value>
;</Text>
;<Text>
;<X> 0 </X>
;<Y> 1886 </Y>
;<Size> 20 </Size>
;<Width> 1080</Width>
;<Align> end </Align>
;<Font> KanitThinTTF </Font>
;<Color> 0x513C2F </Color>
;<Value> countClick2 </Value>
;</Text>
</Popup>

View file

@ -181,18 +181,31 @@
; menu row 3
;<Button>
;<X> 205 </X>
;<Y> 1533 </Y>
;<Filename> Var(DirImage + "/bn_fruit.png") </Filename>
;<FilenamePress> Var(DirImage + "/bp_fruit.png") </FilenamePress>
;<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
;<Volume> SoundVolume </Volume>
;<EventClick>
; Open "ROOT/taobin_project/xml/page_catalog_choose_drink5.xml"
;</EventClick>
;</Button>
<Button>
<X> 205 </X>
<Y> 1533 </Y>
<Filename> Var(DirImage + "/bn_fruit.png") </Filename>
<FilenamePress> Var(DirImage + "/bp_fruit.png") </FilenamePress>
<Filename> Var(DirImage + "/bn_protein.png") </Filename>
<FilenamePress> Var(DirImage + "/bp_protein.png") </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Open "ROOT/taobin_project/xml/page_catalog_choose_drink5.xml"
Open "ROOT/taobin_project/xml/page_catalog_choose_drink7.xml"
</EventClick>
</Button>
<Button>
<X> 579 </X>
<Y> 1533 </Y>

View file

@ -166,15 +166,28 @@
<X> 696 </X>
<Y> 395 </Y>
<State> Menu5Selected </State>
<Filename> Var( DirImage + "/bn_fruit.png") </Filename>
<FilenamePress> Var( DirImage + "/bp_fruit.png") </FilenamePress>
<Filename> Var( DirImage + "/bn_protein.png") </Filename>
<FilenamePress> Var( DirImage + "/bp_protein.png") </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Open "ROOT/taobin_project/xml/page_catalog_choose_drink5.xml"
Open "ROOT/taobin_project/xml/page_catalog_choose_drink7.xml"
</EventClick>
</Button>
;<Button>
;<X> 696 </X>
;<Y> 395 </Y>
;<State> Menu5Selected </State>
;<Filename> Var( DirImage + "/bn_fruit.png") </Filename>
;<FilenamePress> Var( DirImage + "/bp_fruit.png") </FilenamePress>
;<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
;<Volume> SoundVolume </Volume>
;<EventClick>
; Open "ROOT/taobin_project/xml/page_catalog_choose_drink5.xml"
;</EventClick>
;</Button>
<Button>
<X> 847 </X>

View file

@ -167,15 +167,28 @@
<X> 696 </X>
<Y> 395 </Y>
<State> Menu5Selected </State>
<Filename> Var( DirImage + "/bn_fruit.png") </Filename>
<FilenamePress> Var( DirImage + "/bp_fruit.png") </FilenamePress>
<Filename> Var( DirImage + "/bn_protein.png") </Filename>
<FilenamePress> Var( DirImage + "/bp_protein.png") </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Open "ROOT/taobin_project/xml/page_catalog_choose_drink5.xml"
Open "ROOT/taobin_project/xml/page_catalog_choose_drink7.xml"
</EventClick>
</Button>
;<Button>
;<X> 696 </X>
;<Y> 395 </Y>
;<State> Menu5Selected </State>
;<Filename> Var( DirImage + "/bn_fruit.png") </Filename>
;<FilenamePress> Var( DirImage + "/bp_fruit.png") </FilenamePress>
;<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
;<Volume> SoundVolume </Volume>
;<EventClick>
; Open "ROOT/taobin_project/xml/page_catalog_choose_drink5.xml"
;</EventClick>
;</Button>
<Button>
<X> 847 </X>

View file

@ -164,15 +164,28 @@
<X> 696 </X>
<Y> 395 </Y>
<State> Menu5Selected </State>
<Filename> Var( DirImage + "/bn_fruit.png") </Filename>
<FilenamePress> Var( DirImage + "/bp_fruit.png") </FilenamePress>
<Filename> Var( DirImage + "/bn_protein.png") </Filename>
<FilenamePress> Var( DirImage + "/bp_protein.png") </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Open "ROOT/taobin_project/xml/page_catalog_choose_drink5.xml"
Open "ROOT/taobin_project/xml/page_catalog_choose_drink7.xml"
</EventClick>
</Button>
;<Button>
;<X> 696 </X>
;<Y> 395 </Y>
;<State> Menu5Selected </State>
;<Filename> Var( DirImage + "/bn_fruit.png") </Filename>
;<FilenamePress> Var( DirImage + "/bp_fruit.png") </FilenamePress>
;<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
;<Volume> SoundVolume </Volume>
;<EventClick>
; Open "ROOT/taobin_project/xml/page_catalog_choose_drink5.xml"
;</EventClick>
;</Button>
<Button>
<X> 847 </X>

View file

@ -164,15 +164,28 @@
<X> 696 </X>
<Y> 395 </Y>
<State> Menu5Selected </State>
<Filename> Var( DirImage + "/bn_fruit.png") </Filename>
<FilenamePress> Var( DirImage + "/bp_fruit.png") </FilenamePress>
<Filename> Var( DirImage + "/bn_protein.png") </Filename>
<FilenamePress> Var( DirImage + "/bp_protein.png") </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Open "ROOT/taobin_project/xml/page_catalog_choose_drink5.xml"
Open "ROOT/taobin_project/xml/page_catalog_choose_drink7.xml"
</EventClick>
</Button>
;<Button>
;<X> 696 </X>
;<Y> 395 </Y>
;<State> Menu5Selected </State>
;<Filename> Var( DirImage + "/bn_fruit.png") </Filename>
;<FilenamePress> Var( DirImage + "/bp_fruit.png") </FilenamePress>
;<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
;<Volume> SoundVolume </Volume>
;<EventClick>
; Open "ROOT/taobin_project/xml/page_catalog_choose_drink5.xml"
;</EventClick>
;</Button>
<Button>
<X> 847 </X>

View file

@ -165,15 +165,28 @@
<X> 696 </X>
<Y> 395 </Y>
<State> Menu5Selected </State>
<Filename> Var( DirImage + "/bn_fruit.png") </Filename>
<FilenamePress> Var( DirImage + "/bp_fruit.png") </FilenamePress>
<Filename> Var( DirImage + "/bn_protein.png") </Filename>
<FilenamePress> Var( DirImage + "/bp_protein.png") </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Open "ROOT/taobin_project/xml/page_catalog_choose_drink5.xml"
Open "ROOT/taobin_project/xml/page_catalog_choose_drink7.xml"
</EventClick>
</Button>
;<Button>
;<X> 696 </X>
;<Y> 395 </Y>
;<State> Menu5Selected </State>
;<Filename> Var( DirImage + "/bn_fruit.png") </Filename>
;<FilenamePress> Var( DirImage + "/bp_fruit.png") </FilenamePress>
;<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
;<Volume> SoundVolume </Volume>
;<EventClick>
; Open "ROOT/taobin_project/xml/page_catalog_choose_drink5.xml"
;</EventClick>
;</Button>
<Button>
<X> 847 </X>

View file

@ -19,7 +19,7 @@
product_code.append('11-99-02-0040')
product_code.append('11-99-02-0041')
product_code.append('11-99-02-0042')
product_code.append('11-99-01-0042')
product_code.append('11-99-02-0043')
product_code.append('11-99-02-0044')
product_code.append('11-99-02-0045')

View file

@ -164,15 +164,28 @@
<X> 696 </X>
<Y> 395 </Y>
<State> Menu5Selected </State>
<Filename> Var( DirImage + "/bn_fruit.png") </Filename>
<FilenamePress> Var( DirImage + "/bp_fruit.png") </FilenamePress>
<Filename> Var( DirImage + "/bn_protein.png") </Filename>
<FilenamePress> Var( DirImage + "/bp_protein.png") </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Open "ROOT/taobin_project/xml/page_catalog_choose_drink5.xml"
Open "ROOT/taobin_project/xml/page_catalog_choose_drink7.xml"
</EventClick>
</Button>
;<Button>
;<X> 696 </X>
;<Y> 395 </Y>
;<State> Menu5Selected </State>
;<Filename> Var( DirImage + "/bn_fruit.png") </Filename>
;<FilenamePress> Var( DirImage + "/bp_fruit.png") </FilenamePress>
;<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
;<Volume> SoundVolume </Volume>
;<EventClick>
; Open "ROOT/taobin_project/xml/page_catalog_choose_drink5.xml"
;</EventClick>
;</Button>
<Button>
<X> 847 </X>
@ -429,24 +442,24 @@
Open "ROOT/taobin_project/xml/page_topping_alter.xml"
</EventOnClick>
</Button>
; button i=11 11-99-02-0042
; button i=11 11-99-01-0042
<Button>
<X> 558 </X>
<Y> 676 </Y>
<State> $11-99-02-0042.Button </State>
<Filename> Var( "ROOT/taobin_project/image/page_drink/" + $11-99-02-0042.image ) </Filename>
<FilenamePress> Var( "ROOT/taobin_project/image/page_drink_press/" + $11-99-02-0042.image ) " </FilenamePress>
<FilenameDisable> Var( "ROOT/taobin_project/image/page_drink_disable/" + $11-99-02-0042.image ) " </FilenameDisable>
<State> $11-99-01-0042.Button </State>
<Filename> Var( "ROOT/taobin_project/image/page_drink/" + $11-99-01-0042.image ) </Filename>
<FilenamePress> Var( "ROOT/taobin_project/image/page_drink_press/" + $11-99-01-0042.image ) " </FilenamePress>
<FilenameDisable> Var( "ROOT/taobin_project/image/page_drink_disable/" + $11-99-01-0042.image ) " </FilenameDisable>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventOnClick>
Var SelectDrink = "11-99-02-0042"
Var NameDrink = $11-99-02-0042.NameE
Var NameDrinkTH = $11-99-02-0042.Name
Var DrinkDescriptionTH = $11-99-02-0042.description
Var DrinkDescription = $11-99-02-0042.descriptionE
Var PriceDrink = $11-99-02-0042.Price
Var PictureDrink = "ROOT/taobin_project/image/page_drink_select/" + $11-99-02-0042.image
Var SelectDrink = "11-99-01-0042"
Var NameDrink = $11-99-01-0042.NameE
Var NameDrinkTH = $11-99-01-0042.Name
Var DrinkDescriptionTH = $11-99-01-0042.description
Var DrinkDescription = $11-99-01-0042.descriptionE
Var PriceDrink = $11-99-01-0042.Price
Var PictureDrink = "ROOT/taobin_project/image/page_drink_select/" + $11-99-01-0042.image
Topping "Load" SelectDrink
Var PriceShowValue = charOfBaht + PriceDrink
Open "ROOT/taobin_project/xml/page_topping_alter.xml"
@ -1139,7 +1152,7 @@
<Size> 27 </Size>
<Font> KanitTTF </Font>
<Color> 0xB78F24 </Color>
<Value> $11-99-02-0042.Price </Value>
<Value> $11-99-01-0042.Price </Value>
</Text>
<Text>
<X> 722 </X>
@ -1159,7 +1172,7 @@
<Font> KanitMediumTTF </Font>
<Color> 0x322B26 </Color>
<State> showthaiText </State>
<Value> $11-99-02-0042.Name </Value>
<Value> $11-99-01-0042.Name </Value>
</Text>
<Text>
<X> 574 </X>
@ -1169,7 +1182,7 @@
<Font> KanitMediumTTF </Font>
<Color> 0x6F5F51 </Color>
<State> showthaiText </State>
<Value> $11-99-02-0042.description </Value>
<Value> $11-99-01-0042.description </Value>
</Text>
<Text>
<X> 574 </X>
@ -1180,7 +1193,7 @@
<Font> KanitMediumTTF </Font>
<Color> 0x322B26 </Color>
<State> showengText </State>
<Value> $11-99-02-0042.NameE </Value>
<Value> $11-99-01-0042.NameE </Value>
</Text>
<Text>
<X> 574 </X>
@ -1190,7 +1203,7 @@
<Font> KanitMediumTTF </Font>
<Color> 0x6F5F51 </Color>
<State> showengText </State>
<Value> $11-99-02-0042.descriptionE </Value>
<Value> $11-99-01-0042.descriptionE </Value>
</Text>
<Text>
<X> 997 </X>

View file

@ -0,0 +1,80 @@
<?hurr
#include=menu_head.py
?>
<?hurr
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')
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 = "PressForever"
Var Menu6Selected = "Enable"
</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

@ -22,12 +22,17 @@
Var VideoPlayFile = VideoPlayFile + "24"
Var VideoPlayFile = VideoPlayFile + VideoFileEnd
</EventOpen>
<Timeout> 800 </Timeout>
<Timeout> 1000 </Timeout>
<EventTimeout>
If HaveCup = "false" Then
Open "ROOT/taobin_project/xml/page_back_to_main.xml"
EndIf
If MachineStage = "remove-cup" Then
Open "ROOT/taobin_project/xml/page_back_to_main.xml"
EndIf
TimerReset
</EventTimeout>
@ -50,15 +55,6 @@
</Video>
; Old
;<Video>
;<X> 82 </X>
;<Y> 717 </Y>
;<Width> 917 </Width>
;<Height> 917 </Height>
;<Loop> "true" </Loop>
;<Filename> "ROOT/taobin_project/video/taobin_drink_ok.mov" </Filename>
;</Video>
<Video>
<X> 0 </X>

View file

@ -11,26 +11,35 @@
Var StarwState = "Enable"
Var LidStrawCountDown = 15
Var VideoPath = "/mnt/sdcard/coffeevending/taobin_project/animation01/"
Var VideoFileBegin = "TaoBin2_draft02_art"
Var VideoFileEnd = ".mp4"
Var PicturePath = "/mnt/sdcard/coffeevending/taobin_project/image/page_doing/"
Var PictureBegin = "txt_"
If show_eng = "true" Then
Var DirImage = "ROOT/taobin_project/image/page_lid_straw_en"
Var PictureEnd = "_en.png"
Var BottomText = PicturePath + "text_bottom_eng.png"
Else
Var DirImage = "ROOT/taobin_project/image/page_lid_straw"
Var PictureEnd = ".png"
Var BottomText = PicturePath + "text_bottom_thai2.png"
EndIf
Var VideoPath = "/mnt/sdcard/coffeevending/taobin_project/animation01/"
Var VideoFileBegin = "TaoBin2_draft02_art"
Var VideoFileEnd = ".mp4"
Var CountUpBrewing = BrewTime - CountDownBrewing
;Var CountUpBrewing = 0
Var CountDownVideoTimeReload = AnimationVideoPlayTime
Var CountDownVideoTime = 1
Var StepVideo = 1
Var PreviseStepVideo = 90
SAVELOG CountUpBrewing
SAVELOG AnimationOn
SAVELOG AnimationVideoPlayTime
SAVELOG VideoID1
@ -39,17 +48,21 @@
SAVELOG VideoID4
SAVELOG VideoID5
SAVELOG VideoID6
SAVELOG VideoAnimationCount
Var VideoPlayFile = VideoPath
Var VideoPlayFile = VideoPlayFile + VideoFileBegin
Var VideoPlayFile = VideoPlayFile + "1"
Var VideoPlayFile = VideoPlayFile + VideoFileEnd
Var CountUpBrewing = CountUpBrewing + 4
Var PictureFile = PicturePath
Var PictureFile = PictureFile + PictureBegin
Var PictureFile = PictureFile + "1"
Var PictureFile = PictureFile + PictureEnd
</EventOpen>
<Timeout> 600 </Timeout>
<Timeout> 1000 </Timeout>
<EventTimeout>
Var CountDownBrewing = CountDownBrewing - 1
@ -74,55 +87,69 @@
Var CountUpBrewing = CountUpBrewing + 1
Var SlotVideo = CountUpBrewing / AnimationVideoPlayTime
If PreviseStepVideo = SlotVideo Then
SAVELOG SlotVideo
If CountUpBrewing < 4 Then
Else
Var PreviseStepVideo = SlotVideo
SAVELOG PreviseStepVideo
SAVELOG SlotVideo
SAVELOG CountUpBrewing
;Var CountDownVideoTime = CountDownVideoTimeReload
Var StepVideo = SlotVideo + 2
SAVELOG StepVideo
If StepVideo = 1 Then
Var videoID = VideoID1
EndIf
If StepVideo = 2 Then
Var videoID = VideoID2
EndIf
If StepVideo = 3 Then
Var videoID = VideoID3
EndIf
If StepVideo = 4 Then
Var videoID = VideoID4
EndIf
If StepVideo = 5 Then
Var videoID = VideoID5
EndIf
If StepVideo = 6 Then
Var videoID = VideoID6
EndIf
If StepVideo = 7 Then
Var videoID = VideoID7
EndIf
SAVELOG videoID
If videoID = 0 Then
If PreviseStepVideo = SlotVideo Then
SAVELOG SlotVideo
Else
Var PreviseStepVideo = SlotVideo
SAVELOG PreviseStepVideo
SAVELOG SlotVideo
SAVELOG CountUpBrewing
Var VideoPlayFile = VideoPath
Var VideoPlayFile = VideoPlayFile + VideoFileBegin
Var VideoPlayFile = VideoPlayFile + videoID
Var VideoPlayFile = VideoPlayFile + VideoFileEnd
;Var CountDownVideoTime = CountDownVideoTimeReload
Var StepVideo = SlotVideo + 2
SAVELOG StepVideo
SAVELOG VideoPlayFile
If StepVideo = 1 Then
Var videoID = VideoID1
EndIf
If StepVideo = 2 Then
Var videoID = VideoID2
EndIf
If StepVideo = 3 Then
Var videoID = VideoID3
EndIf
If StepVideo = 4 Then
Var videoID = VideoID4
EndIf
If StepVideo = 5 Then
Var videoID = VideoID5
EndIf
If StepVideo = 6 Then
Var videoID = VideoID6
EndIf
If StepVideo = 7 Then
Var videoID = VideoID7
EndIf
SAVELOG videoID
If videoID = 0 Then
Else
If videoID = "---" Then
Else
Var VideoPlayFile = VideoPath
Var VideoPlayFile = VideoPlayFile + VideoFileBegin
Var VideoPlayFile = VideoPlayFile + videoID
Var VideoPlayFile = VideoPlayFile + VideoFileEnd
Var PictureFile = PicturePath
Var PictureFile = PictureFile + PictureBegin
Var PictureFile = PictureFile + videoID
Var PictureFile = PictureFile + PictureEnd
SAVELOG VideoPlayFile
SAVELOG PictureFile
EndIf
EndIf
EndIf
EndIf
EndIf

View file

@ -0,0 +1,168 @@
<Page>
<X> 0 </X>
<Y> 608 </Y>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1312 </Height>
<Background> "0xEFEDEA" </Background>
<Volume> SoundVolume </Volume>
<EventOpen>
Var countClick = 0
Var countClick2 = 0
If show_eng = "true" Then
Var DirImage = "ROOT/taobin_project/image/user_take_cup_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 DirImage = "ROOT/taobin_project/image/user_take_cup_th/"
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> 5000 </Timeout>
<EventTimeout>
;SAVELOG MachineErrorDetail
Var MachineErrorDetailAll = MachineErrorDetail + " / "
Var MachineErrorDetailAll = MachineErrorDetailAll + MachineErrorDetailEng
If MachineStage = "show-menu" Then
Open "ROOT/taobin_project/xml/page_board.xml"
EndIf
If MachineStage = "close-maintenance" Then
Open "ROOT/taobin_project/xml/page_show_error.xml"
EndIf
Refresh
TimerReset
</EventTimeout>
<Image>
<X> 0 </X>
<Y> 852 </Y>
<Filename> Var(DirImage + "/img5.png") </Filename>
</Image>
<Button>
<X> 212 </X>
<Y> 1661 </Y>
<Filename> Var( DirImage + "/bn_door_open.png" ) </Filename>
<FilenamePress> Var( DirImage + "/bp_door_open.png" )</FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Machine RemoveCup
</EventClick>
</Button>
<Button>
<X> 990 </X>
<Y> 400 </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>
<Button>
<X> 0 </X>
<Y> 1860 </Y>
<Width> 200 </Width>
<Height> 50 </Height>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var countClick = countClick + 1
If countClick = 3 Then
EndIf
If countClick = 5 Then
Var countClick = 0
MainMenu
EndIf
Refresh
</EventClick>
</Button>
<Button>
<X> 870 </X>
<Y> 1860 </Y>
<Width> 200 </Width>
<Height> 50 </Height>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var countClick2 = countClick2 + 1
If countClick2 = 3 Then
EndIf
If countClick2 = 5 Then
Var MachineStage = "show-menu"
Open "/mnt/sdcard/coffeevending/taobin_project/xml/page_board.xml"
EndIf
Refresh
</EventClick>
</Button>
<Text>
<X> 0 </X>
<Y> 1860 </Y>
<Size> 20 </Size>
<Width> 1080</Width>
<Align> Start </Align>
<Font> RobotoBlack </Font>
<Color> 0x513C2F </Color>
<Value> countClick </Value>
</Text>
<Text>
<X> 0 </X>
<Y> 1876 </Y>
<Size> 20 </Size>
<Width> 1080</Width>
<Align> end </Align>
<Font> RobotoBlack </Font>
<Color> 0x513C2F </Color>
<Value> countClick2 </Value>
</Text>
<Text>
<X> 5 </X>
<Y> 1868 </Y>
<Size> 24 </Size>
<Align> Center </Align>
<Width> 1080 </Width>
<Font> RobotoRegular </Font>
<Color> 0xDE794E </Color>
<Value> MachineErrorDetailAll </Value>
</Text>
</Page>

View file

@ -29,6 +29,10 @@
If MachineStage = "show-menu" Then
Open "ROOT/taobin_project/xml/page_board.xml"
EndIf
If MachineStage = "remove-cup" Then
Open "ROOT/taobin_project/xml/page_remove_cup.xml"
EndIf
;Refresh

View file

@ -19,8 +19,21 @@
Var ChangeTimeout = 0
Var ChangeFlag2 = 0
If show_eng = "true" Then
Var ImageDoing = "ROOT/taobin_project/image/page_doing/img2_eng.png"
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 ImageDoing = "ROOT/taobin_project/image/page_doing/img2.png"
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> 600 </Timeout>
<Timeout> 1000 </Timeout>
<EventTimeout>
Var CountDownBrewing = CountDownBrewing - 1
Var CountDownThankyou = CountDownThankyou - 1