Add image picture

This commit is contained in:
wanlop run 2024-09-23 18:44:54 +07:00
parent 903e17f5d2
commit 35b11f8276
41 changed files with 13570 additions and 12518 deletions

View file

@ -123,6 +123,8 @@
Var Timeout2 = 0
Var SlientRefreshEnable = 0
;include=ROOT/taobin_project/inc/remove_cup_event_open.inc
</EventOpen>
<Timeout> 1000 </Timeout>
<EventTimeout>
@ -187,65 +189,7 @@
EndIf
If HaveCup = "true" Then
Var Timeout = 0
Else
If CupOnArm = "true" Then
Var Timeout = 0
Else
If MaybeHaveCup = "true" Then
Var Timeout = 0
Else
Var Timeout = Timeout + 1
EndIf
EndIf
EndIf
; detect cup
If DoorCupPosition = "bottom" Then
If HaveCup = "true" Then
If MaybeHaveCup = "true" Then
Else
If CupChecking = "true" Then
Else
Var buttonRemoveCup = "Enable"
Var txtDrinkOKState = "Enable"
EndIf
EndIf
EndIf
If CupOnArm = "true" Then
If MaybeHaveCup = "true" Then
Else
If CupChecking = "true" Then
Else
Var buttonRemoveCup = "Enable"
Var txtDrinkOKState = "Enable"
EndIf
EndIf
EndIf
Else
Var buttonRemoveCup = "Invisible"
Var Timeout = 0
Var CountUpDoorCupOpen = CountUpDoorCupOpen + 1
If CountUpDoorCupOpen > 80 Then
Var CountUpDoorCupOpen = 60
Machine DoorClose
EndIf
EndIf
If MachineStage = "remove-cup" Then
Var buttonRemoveCup = "Enable"
Var txtDrinkOKState = "Enable"
EndIf
;include=ROOT/taobin_project/inc/remove_cup_step.inc
If MachineStage = "close-maintenance" Then
@ -342,17 +286,10 @@
TimerReset
</EventTimeout>
;<Image>
;<X> 0 </X>
;<Y> 0 </Y>
;<Filename> "ROOT/taobin_project/image/ad_medium_2.png" </Filename>
;</Image>
;include=ROOT/taobin_project/inc/remove_cup_tag_event.inc
@ -401,10 +338,7 @@
<Filename> Var( DirImage2 + "/bn_open_door.png" ) </Filename>
<FilenamePress> Var( DirImage2 + "/bp_open_door.png" ) </FilenamePress>
<EventClick>
Var buttonRemoveCup = "Invisible"
Machine RemoveCup
Machine DoorLidOpen
Refresh
;include=ROOT/taobin_project/inc/remove_cup_button.inc
</EventClick>
</Button>
@ -422,4 +356,17 @@
</Text>
<Text>
<X> 1 </X>
<Y> 1 </Y>
<Font> KanitTTF </Font>
<Size> 22 </Size>
<Width> 1080 </Width>
<Align> end </Align>
<Color> 0xFF0000 </Color>
<Value> "THK"</Value>
</Text>
</Popup>