This commit is contained in:
kong 2021-11-24 23:28:56 +07:00
parent eb69f897ae
commit 6fdda57c4a
74 changed files with 174 additions and 81 deletions

View file

@ -363,9 +363,11 @@
<Y> 1769 </Y>
<State> showCart </State>
<Filename> cart_image_bn </Filename>
<Filename> cart_image_bp </Filename>
<FilenamePress> cart_image_bp </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<Interval> 400</Interval>
<EventClick>

View file

@ -57,7 +57,10 @@
product_code.append('12-01-02-0009')
product_code.append('12-01-02-0017')
product_code.append('11-01-02-0009')
#product_code.append('11-01-02-0009')
product_code.append('12-01-02-0006')
#product_code.append('')
menu_count = len( product_code)

View file

@ -3981,33 +3981,33 @@
<Filename> "ROOT/taobin_project/image/topping2/blender_icon.png" </Filename>
</Image>
</Block>
; button i=36 11-01-02-0009
; button i=36 12-01-02-0006
<Block>
<MarginLeft> 33 </MarginLeft>
<MarginTop> 22 </MarginTop>
<Width> 225 </Width>
<Height> 296 </Height>
<State> $11-01-02-0009.Button </State>
<State> $12-01-02-0006.Button </State>
<Button>
<State> $11-01-02-0009.Button </State>
<Filename> Var( "ROOT/taobin_project/image/page_drink/" + $11-01-02-0009.image ) </Filename>
<FilenamePress> Var( "ROOT/taobin_project/image/page_drink_press/" + $11-01-02-0009.image ) " </FilenamePress>
<FilenameDisable> Var( "ROOT/taobin_project/image/page_drink_disable/" + $11-01-02-0009.image ) " </FilenameDisable>
<State> $12-01-02-0006.Button </State>
<Filename> Var( "ROOT/taobin_project/image/page_drink/" + $12-01-02-0006.image ) </Filename>
<FilenamePress> Var( "ROOT/taobin_project/image/page_drink_press/" + $12-01-02-0006.image ) " </FilenamePress>
<FilenameDisable> Var( "ROOT/taobin_project/image/page_drink_disable/" + $12-01-02-0006.image ) " </FilenameDisable>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventOnClick>
Var SelectDrink = $11-01-02-0009.Self
Var NameDrink = $11-01-02-0009.NameE
Var NameDrinkTH = $11-01-02-0009.Name
Var DrinkDescriptionTH = $11-01-02-0009.description
Var DrinkDescription = $11-01-02-0009.descriptionE
Var PriceDrink = $11-01-02-0009.Price
Var PictureDrink = "ROOT/taobin_project/image/page_drink_select/" + $11-01-02-0009.image
Var SelectDrink = $12-01-02-0006.Self
Var NameDrink = $12-01-02-0006.NameE
Var NameDrinkTH = $12-01-02-0006.Name
Var DrinkDescriptionTH = $12-01-02-0006.description
Var DrinkDescription = $12-01-02-0006.descriptionE
Var PriceDrink = $12-01-02-0006.Price
Var PictureDrink = "ROOT/taobin_project/image/page_drink_select/" + $12-01-02-0006.image
Topping "Load" SelectDrink
SAVELOG NameDrink
Var PriceShowValue = charOfBaht + PriceDrink
Var OpenFromXML = CurrentXMLFileName2
STRCONTAIN "Smoothie" $11-01-02-0009.Button IsSmoRet
STRCONTAIN "Smoothie" $12-01-02-0006.Button IsSmoRet
Open "ROOT/taobin_project/xml/page_topping_alter.xml"
</EventOnClick>
</Button>
@ -4020,7 +4020,7 @@
<Size> 27 </Size>
<Font> KanitTTF </Font>
<Color> 0xB78F24 </Color>
<Value> $11-01-02-0009.Price </Value>
<Value> $12-01-02-0006.Price </Value>
</Text>
<Text>
<X> 164 </X>
@ -4041,7 +4041,7 @@
<Font> KanitMediumTTF </Font>
<Color> 0x322B26 </Color>
<State> showthaiText </State>
<Value> $11-01-02-0009.Name </Value>
<Value> $12-01-02-0006.Name </Value>
</Text>
<Text>
<X> 16 </X>
@ -4051,7 +4051,7 @@
<Font> KanitMediumTTF </Font>
<Color> 0x6F5F51 </Color>
<State> showthaiText </State>
<Value> $11-01-02-0009.description </Value>
<Value> $12-01-02-0006.description </Value>
</Text>
<Text>
<X> 16 </X>
@ -4062,7 +4062,7 @@
<Font> KanitMediumTTF </Font>
<Color> 0x322B26 </Color>
<State> showengText </State>
<Value> $11-01-02-0009.NameE </Value>
<Value> $12-01-02-0006.NameE </Value>
</Text>
<Text>
<X> 16 </X>
@ -4072,12 +4072,12 @@
<Font> KanitMediumTTF </Font>
<Color> 0x6F5F51 </Color>
<State> showengText </State>
<Value> $11-01-02-0009.descriptionE </Value>
<Value> $12-01-02-0006.descriptionE </Value>
</Text>
<Image>
<X> 2 </X>
<Y> 2 </Y>
<State> eval( STRCONTAIN "Smoothie" $11-01-02-0009.Button SmoRet
<State> eval( STRCONTAIN "Smoothie" $12-01-02-0006.Button SmoRet
If SmoRet = "true" Then
Var return = "Enable"
Else

View file

@ -11,8 +11,8 @@
Var countClick2 = 0
;DEBUGVAR MachineStage
;DEBUGVAR stop_now
DEBUGVAR MachineStage
DEBUGVAR stop_now
Var show_error_normal = "Invisible"
Var show_error_sp1 = "Enable"
@ -55,6 +55,26 @@
EndIf
EndIf
If MachineStage = "drink-failed" Then
If stop_now = "true" Then
If show_eng = "true" Then
Var DirImage = "ROOT/taobin_project/image/vending_error_en/"
Else
Var DirImage = "ROOT/taobin_project/image/vending_error"
EndIf
Else
Var show_error_normal = "Enable"
Var show_error_sp1 = "Invisible"
If show_eng = "true" Then
Var DirImage = "ROOT/taobin_project/image/close_en/"
Else
Var DirImage = "ROOT/taobin_project/image/close_th"
EndIf
EndIf
EndIf
StopLongPlay
@ -78,7 +98,7 @@
EndIf
</EventOpen>
<Timeout> 5000 </Timeout>
<EventTimeout>
@ -100,6 +120,23 @@
EndIf
If MachineStage = "drink-failed" Then
Var FirstOpen = 1
Var LEDSet = "true"
Open "ROOT/taobin_project/xml/page_show_error.xml"
EndIf
If FirstOpen = 1 Then
Var FirstOpen = 0
If MachineStage = "close-maintenance" Then
Var LEDSet = "true"
Open "ROOT/taobin_project/xml/page_show_error.xml"
EndIf
EndIf
Refresh
TimerReset