This commit is contained in:
Wanlop 2020-09-17 19:08:21 +07:00
parent dfa49d284a
commit 4aeb5f35b0
11 changed files with 198 additions and 254 deletions

View file

@ -15,6 +15,7 @@
Var KanitMediaTTF = "ROOT/taobin_project/font/Kanit/Kanit-Medium.ttf"
Var RobotoBold = "ROOT/taobin_project/font/Roboto/Roboto-Bold.ttf"
Var RobotoBlack = "ROOT/taobin_project/font/Roboto/Roboto-Black.ttf"
</EventOpen>
<Timeout> 1000 </Timeout>
<EventTimeout>

View file

@ -16,19 +16,53 @@
Var CountDownBrewing = CountDownBrewing - 1
; run test;
If CountDownBrewing = 40 Then
Open "ROOT/taobin_project/xml/menu_drinkok.xml"
EndIf
;If CountDownBrewing = 40 Then
; Open "ROOT/taobin_project/xml/menu_drinkok.xml"
;EndIf
Var ShowCountDownBrewing = CountDownBrewing
Refresh
If MachineStage = "drink-success" Then
Open "ROOT/taobin_project/xml/menu_drinkok.xml"
EndIf
Refresh
TimerReset
</EventTimeout>
<EventMachine>
If MachineStage = "make-drink" Then
Var Timeout = 0
Var ProcessText = ""
EndIf
If MachineStage = "prepar-cup" Then
Var Timeout = 0
Var ProcessText = ""
EndIf
If MachineStage = "ice-out" Then
Var Timeout = 0
Var ProcessText = ""
EndIf
If MachineStage = "brewing" Then
Var Timeout = 0
Var ProcessText = ""
EndIf
If MachineStage = "drink-success" Then
Open "ROOT/taobin_project/xml/menu_drinkok.xml"
EndIf
If MachineStage = "drink-failed" Then
Open "ROOT/taobin_project/xml/menu_drinkfail.xml"
EndIf
</EventMachine>
<Image>
<X> 0 </X>
<Y> 0 </Y>
@ -39,9 +73,16 @@
<Image>
<X> 751 </X>
<Y> 413 </Y>
<Filename> "ROOT/taobin_project/image/page_thankyou/img2.png" </Filename>
<Filename> "ROOT/taobin_project/image/page_doing/img2.png" </Filename>
</Image>
<Image>
<X> 237 </X>
<Y> 1323 </Y>
<Filename> "ROOT/taobin_project/image/page_doing/text1.png" </Filename>
</Image>
<Text>
<X> 808 </X>
<Y> 480 </Y>
@ -51,6 +92,24 @@
<Value> ShowCountDownBrewing </Value>
</Text>
</Popup>
<Text>
<X> 0 </X>
<Y> 1367 </Y>
<Width> 1080 </Width>
<Size> 72 </Size>
<Align> Center </Align>
<Font> RobotoBlack </Font>
<Color> 0x513C2F </Color>
<Value> MachineStage </Value>
</Text>
;BrewingTextThai
<GIF>
<X> 182 </X>
<Y> 700 </Y>
<Filename> GIFShowProcess </Filename>
</GIF>
</Popup>

View file

@ -10,6 +10,7 @@
bt_pic.append('b#_sala.png')
bt_pic.append('b#_iced_lemonade_soda.png')
bt_pic.append('b#_hot_milk_caramel.png')
bt_pic.append('b#_iced_cola.png')
@ -18,6 +19,7 @@
product_code.append('11-99-02-0020')
product_code.append('11-99-02-0017')
product_code.append('11-99-01-0017')
product_code.append('11-99-02-0018')
menu_count = len( bt_pic)
?>

View file

@ -308,6 +308,50 @@
<Color> 0x322B26 </Color>
<Value> $11-99-01-0017.Name2 </Value>
</Text>
; button i=5 11-99-02-0018
<Button>
<X> 44 </X>
<Y> 899 </Y>
<Filename> "ROOT/taobin_project/image/menu_drink/bn_iced_cola.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/menu_drink/bp_iced_cola.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var SelectDrink = "11-99-02-0018"
Var NameDrink = $11-99-02-0018.Name2
Var NameDrinkTH = $11-99-02-0018.Name
Var PriceDrink = $11-99-02-0018.Price
Var PictureDrink = "ROOT/taobin_project/image/menu_drink_select//bn_iced_cola.png"
Topping "Load" SelectDrink
SAVELOG NameDrink
Var PriceShowValue = charOfBaht + PriceDrink
Open "ROOT/taobin_project/xml/menu_topping_alter.xml"
</EventClick>
</Button>
<Text>
<X> 226 </X>
<Y> 911 </Y>
<Size> 27 </Size>
<Font> KanitTTF </Font>
<Color> 0xB78F24 </Color>
<Value> $11-99-02-0018.Price </Value>
</Text>
<Text>
<X> 208 </X>
<Y> 911 </Y>
<Size> 27 </Size>
<Font> KanitTTF </Font>
<Color> 0xB78F24 </Color>
<Value> "฿"" </Value>
</Text>
<Text>
<X> 60 </X>
<Y> 1113 </Y>
<Size> 24 </Size>
<Font> RobotoBold </Font>
<Color> 0x322B26 </Color>
<Value> $11-99-02-0018.Name2 </Value>
</Text>

47
xml/menu_drinkfail.xml Normal file
View file

@ -0,0 +1,47 @@
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
<Background> "0xeae6e1" </Background>
<Volume> SoundVolume </Volume>
<EventOpen>
; On open
Var LidState = "Enable"
Var StarwState = "Enable"
</EventOpen>
<Timeout> 5000 </Timeout>
<EventTimeout>
Open "ROOT/taobin_project/xml/menu_back_to_main.xml"
</EventTimeout>
<Image>
<X> 0 </X>
<Y> 0 </Y>
<Filename> "ROOT/taobin_project/image/page2/ad_blank1.png" </Filename>
</Image>
<GIF>
<X> 182 </X>
<Y> 700 </Y>
<Filename> GIFShowProcess </Filename>
</GIF>
<Button>
<X> 217 </X>
<Y> 1640 </Y>
<Filename> "ROOT/taobin_project/image/complete/bn_goto_main.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/complete/bp_goto_main.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Open "ROOT/taobin_project/xml/menu_back_to_main.xml"
</EventClick>
</Button>
</Popup>

View file

@ -10,9 +10,14 @@
Var StarwState = "Enable"
</EventOpen>
<Timeout> 5000 </Timeout>
<Timeout> 1000 </Timeout>
<EventTimeout>
Open "ROOT/taobin_project/xml/menu_back_to_main.xml"
If HaveCup = "false" Then
Open "ROOT/taobin_project/xml/menu_back_to_main.xml"
EndIf
TimerReset
</EventTimeout>

View file

@ -63,6 +63,12 @@
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
If StarwState = "Press" Then
Machine Straw
EndIf
If LidState = "Press" Then
Machine Lid
EndIf
Open "ROOT/taobin_project/xml/menu_brewing.xml"
</EventClick>
</Button>
@ -76,8 +82,6 @@
<Filename> "ROOT/taobin_project/image/page_lid_straw/bn_straw.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_lid_straw/bp_straw.png" </FilenamePress>
<EventClick>
Var StarwState = "PressForever"
Refresh
</EventClick>
</Button>
@ -89,8 +93,6 @@
<Filename> "ROOT/taobin_project/image/page_lid_straw/bn_lid.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_lid_straw/bp_lid.png" </FilenamePress>
<EventClick>
Var LidState = "PressForever"
Refresh
</EventClick>
</Button>
@ -102,12 +104,18 @@
<Width> 50 </Width>
<Height> 50 </Height>
<State> StarwState </State>
<Mode> "No" </Mode>
<Filename> "ROOT/taobin_project/image/page_lid_straw/cb_straw_nch.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_lid_straw/cb_straw_ch.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var StarwState = "PressForever"
SAVELOG StarwState
If StarwState = "Press" Then
Var StarwState = "Enable"
Else
Var StarwState = "Press"
EndIf
Refresh
</EventClick>
</Button>
@ -120,12 +128,18 @@
<Width> 50 </Width>
<Height> 50 </Height>
<State> LidState </State>
<Mode> "No" </Mode>
<Filename> "ROOT/taobin_project/image/page_lid_straw/cb_lid_nch.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_lid_straw/cb_lid_ch.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var LidState = "PressForever"
SAVELOG LidState
If LidState = "Press" Then
Var LidState = "Enable"
Else
Var LidState = "Press"
EndIf
Refresh
</EventClick>
</Button>
@ -148,6 +162,11 @@
</Text>
<GIF>
<X> 182 </X>
<Y> 700 </Y>
<Filename> GIFShowProcess </Filename>
</GIF>

View file

@ -4,21 +4,10 @@
<EventOpen>
Var menu_status = "run"
If VendingClass = "coffeeInthanin01" Then
Open "ROOT/xml/menu_list_inthanin.xml"
Else
Open "ROOT/xml/menu_list_original2.xml"
EndIf
</EventOpen>
<Timeout> 10000 </Timeout>
<Timeout> 60000 </Timeout>
<EventTimeout>
;Var menu_status = "stop"

View file

@ -2,231 +2,5 @@
<Width> 1080 </Width>
<Height> 1920 </Height>
<EventOpen>
Var menu_status = "run"
If VendingClass = "coffeeInthanin01" Then
Open "ROOT/xml/menu_list_inthanin.xml"
EndIf
If Menu_list_LN = "TH" Then
Var Menu1BN_FN = "ROOT/image/BN_Drink.bmp"
Var Menu1BP_FN = "ROOT/image/BP_Drink.bmp"
Var Menu2BN_FN = "ROOT/image/BN_Member.bmp"
Var Menu2BP_FN = "ROOT/image/BP_Member.bmp"
Var Menu3BN_FN = "ROOT/image/BN_Topup.bmp"
Var Menu3BP_FN = "ROOT/image/BP_Topup.bmp"
Var Menu4BN_FN = "ROOT/image/BN_Product.bmp"
Var Menu4BP_FN = "ROOT/image/BP_Product.bmp"
Var Menu5BN_FN = "ROOT/image/BN_Etc.bmp"
Var Menu5BP_FN = "ROOT/image/BP_Etc.bmp"
Var Menu6BN_FN = "ROOT/image/BN_Problem.bmp"
Var Menu6BP_FN = "ROOT/image/BP_Problem.bmp"
Else
Var Menu1BN_FN = "ROOT/image/BN_Drink_ENG.bmp"
Var Menu1BP_FN = "ROOT/image/BP_Drink_ENG.bmp"
Var Menu2BN_FN = "ROOT/image/BN_Member_ENG.bmp"
Var Menu2BP_FN = "ROOT/image/BP_Member_ENG.bmp"
Var Menu3BN_FN = "ROOT/image/BN_Topup_ENG.bmp"
Var Menu3BP_FN = "ROOT/image/BP_Topup_ENG.bmp"
Var Menu4BN_FN = "ROOT/image/BN_Product_ENG.bmp"
Var Menu4BP_FN = "ROOT/image/BP_Product_ENG.bmp"
Var Menu5BN_FN = "ROOT/image/BN_Etc_ENG.bmp"
Var Menu5BP_FN = "ROOT/image/BP_Etc_ENG.bmp"
Var Menu6BN_FN = "ROOT/image/BN_Problem_ENG.bmp"
Var Menu6BP_FN = "ROOT/image/BP_Problem_ENG.bmp"
EndIf
</EventOpen>
<Timeout> 60000 </Timeout>
<EventTimeout>
;Var menu_status = "stop"
Open "/mnt/sdcard/coffeevending/xml/menu_list_original.xml"
TimerReset
Refresh
</EventTimeout>
<Button>
<X> 10 </X>
<Y> 618 </Y>
<state>buttonState1</state>
<Filename> Menu1BN_FN </Filename>
<FilenamePress> Menu1BP_FN </FilenamePress>
<FilenameDisable> Menu1BD_FN </FilenameDisable>
<Sound> "ROOT/sounds/Mainbuttom.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
OpenInst 0 "/mnt/sdcard/coffeevending/xml/menu_main_blank.xml"
OpenInst 1 "/mnt/sdcard/coffeevending/xml/menu_advert.xml"
Open "/mnt/sdcard/coffeevending/xml/menu_list_show_less.xml"
</EventClick>
</Button>
<Button>
<X> 163 </X>
<Y> 618 </Y>
<state>buttonState2</state>
<Filename> Menu2BN_FN </Filename>
<FilenamePress> Menu2BP_FN </FilenamePress>
<Sound> "ROOT/sounds/Mainbuttom.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
;Var TelephoneNumber = ""
;Var Tel_Confirm_State = "Disable"
;MainOpen "ROOT/xml/menu_CollectPoint_Page1.xml"
MainOpen "/var/menu_board_original.xml"
</EventClick>
</Button>
<Button>
<X> 317 </X>
<Y> 618 </Y>
<Filename> Menu3BN_FN </Filename>
<FilenamePress> Menu3BP_FN </FilenamePress>
<Sound> "ROOT/sounds/Mainbuttom.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var ServiceAmountLine = ""
Var CheckTypeLine = "o/"
Var SalePackage = 0
Var ServiceGroup = ""
Var AccTeleNumber = ""
Var Donate = "L1"
Var GetScore = ""
Var AccountType = ""
Var SuggestID = ""
Var ServiceType = ""
Var SessionID = ""
Var ServiceParameter = ""
Var OperatorName = ""
Var TelephoneNumber = ""
If Menu_list_LN = "TH" Then
MainOpen "ROOT/xml/service_menu.xml"
Else
MainOpen "ROOT/xml/eng_mobile_telnum.xml"
EndIf
</EventClick>
</Button>
<Button>
<X> 470 </X>
<Y> 618 </Y>
<Filename> Menu4BN_FN </Filename>
<FilenamePress> Menu4BP_FN </FilenamePress>
<Sound> "ROOT/sounds/Mainbuttom.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
</EventClick>
</Button>
<Button>
<X> 623 </X>
<Y> 618 </Y>
<Filename> Menu5BN_FN </Filename>
<FilenamePress> Menu5BP_FN </FilenamePress>
<Sound> "ROOT/sounds/Mainbuttom.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
</EventClick>
</Button>
<Button>
<X> 775 </X>
<Y> 618 </Y>
<Filename> "ROOT/image/BN_Thai.bmp" </Filename>
<FilenamePress> "ROOT/image/BP_Thai.bmp" </FilenamePress>
<Sound> "ROOT/sounds/Mainbuttom.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var Menu_list_LN = "TH"
Var Menu1BN_FN = "ROOT/image/BN_Drink.bmp"
Var Menu1BP_FN = "ROOT/image/BP_Drink.bmp"
Var Menu1BD_FN = "ROOT/image/BD_Drink.bmp"
Var Menu2BN_FN = "ROOT/image/BN_Member.bmp"
Var Menu2BP_FN = "ROOT/image/BP_Member.bmp"
Var Menu3BN_FN = "ROOT/image/BN_Topup.bmp"
Var Menu3BP_FN = "ROOT/image/BP_Topup.bmp"
Var Menu4BN_FN = "ROOT/image/BN_Product.bmp"
Var Menu4BP_FN = "ROOT/image/BP_Product.bmp"
Var Menu5BN_FN = "ROOT/image/BN_Etc.bmp"
Var Menu5BP_FN = "ROOT/image/BP_Etc.bmp"
Var Menu6BN_FN = "ROOT/image/BN_Problem.bmp"
Var Menu6BP_FN = "ROOT/image/BP_Problem.bmp"
Open "ROOT/xml/menu_list.xml"
</EventClick>
</Button>
<Button>
<X> 853 </X>
<Y> 618 </Y>
<Filename> "ROOT/image/BN_ENG.bmp" </Filename>
<FilenamePress> "ROOT/image/BP_ENG.bmp" </FilenamePress>
<Sound> "ROOT/sounds/Mainbuttom.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var Menu_list_LN = "ENG"
Var Menu1BN_FN = "ROOT/image/BN_Drink_ENG.bmp"
Var Menu1BP_FN = "ROOT/image/BP_Drink_ENG.bmp"
Var Menu1BD_FN = "ROOT/image/BD_Drink_ENG.bmp"
Var Menu2BN_FN = "ROOT/image/BN_Member_ENG.bmp"
Var Menu2BP_FN = "ROOT/image/BP_Member_ENG.bmp"
Var Menu3BN_FN = "ROOT/image/BN_Topup_ENG.bmp"
Var Menu3BP_FN = "ROOT/image/BP_Topup_ENG.bmp"
Var Menu4BN_FN = "ROOT/image/BN_Product_ENG.bmp"
Var Menu4BP_FN = "ROOT/image/BP_Product_ENG.bmp"
Var Menu5BN_FN = "ROOT/image/BN_Etc_ENG.bmp"
Var Menu5BP_FN = "ROOT/image/BP_Etc_ENG.bmp"
Var Menu6BN_FN = "ROOT/image/BN_Problem_ENG.bmp"
Var Menu6BP_FN = "ROOT/image/BP_Problem_ENG.bmp"
Open "ROOT/xml/menu_list.xml"
</EventClick>
</Button>
<Button>
<X> 930 </X>
<Y> 618 </Y>
<Filename> Menu6BN_FN </Filename>
<FilenamePress> Menu6BP_FN </FilenamePress>
<Sound> "ROOT/sounds/Mainbuttom.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClickLong>
;MainOpen "ROOT/xml/test_font.xml"
VendingAccess
</EventClickLong>
<EventClick>
;MainOpen "ROOT/xml/test_font.xml"
Var TelephoneNumber = ""
If Menu_list_LN = "TH" Then
MainOpen "ROOT/xml/tellproblem_telnum.xml"
Else
MainOpen "ROOT/xml/eng_tellproblem_telnum.xml"
EndIf
;MainOpen "ROOT/xml/menu_problem.xml"
</EventClick>
</Button>
</Popup>

View file

@ -335,6 +335,9 @@
<Y> 0 </Y>
<Filename> "ROOT/taobin_project/image/page2/ad_blank1.png" </Filename>
<EventClick>
Var GIFShowProcess = "ROOT/ui/page_05_loading/pic_loading_cup.gif"
Var MachineStage = "make-drink"
Var BrewingTextThai = "เตรียมแก้ว"
Open "ROOT/taobin_project/xml/menu_thankyou.xml"
</EventClick>
</Image>

1
xml/z_android.pml Normal file
View file

@ -0,0 +1 @@
<?hurr #system=/Users/wanloprunsiyangkul/Library/Android/sdk/platform-tools/adb push ~/thai02/coffeevending/taobin_project/xml /mnt/sdcard/coffeevending/taobin_project; ?>