Singapore started with sgp
This commit is contained in:
parent
3f9c4361a5
commit
b3e6705aad
75 changed files with 146636 additions and 0 deletions
149
inter/sgp/xml/page_remove_cup.lxml
Normal file
149
inter/sgp/xml/page_remove_cup.lxml
Normal file
|
|
@ -0,0 +1,149 @@
|
|||
<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
|
||||
|
||||
Var CountryName = "Australia"
|
||||
|
||||
DEBUGVAR "AUS Remove Cup"
|
||||
|
||||
Var DirImage = "ROOT/taobin_project/inter/common/image/user_take_cup_en/"
|
||||
|
||||
LED LedDoorDoor 5 255 255 255 255
|
||||
|
||||
Var CheckCupStateDoorCupClose = ""
|
||||
Var CheckCupStateDoorCupCloseCnt = 0
|
||||
|
||||
DEBUGVAR DoorCupPosition
|
||||
If DoorCupPosition = "bottom" Then
|
||||
Var buttonRemoveCup = "Enable"
|
||||
EndIf
|
||||
|
||||
</EventOpen>
|
||||
<Timeout> 1000 </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.lxml"
|
||||
EndIf
|
||||
|
||||
Var Timeout = Timeout + 1
|
||||
DEBUGVAR Timeout
|
||||
If Timeout > 5 Then
|
||||
Var Timeout = 0
|
||||
|
||||
DEBUGVAR DoorCupPosition
|
||||
If DoorCupPosition = "bottom" Then
|
||||
Var buttonRemoveCup = "Enable"
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
; Logic have differrent drinkfail3.xml
|
||||
; protect lock
|
||||
;
|
||||
|
||||
If CheckCupStateDoorCupCloseCnt > 0 Then
|
||||
Var CheckCupStateDoorCupCloseCnt = CheckCupStateDoorCupCloseCnt - 1
|
||||
EndIf
|
||||
|
||||
If CheckCupStateDoorCupCloseCnt = 0 Then
|
||||
Var CheckCupStateDoorCupClose = ""
|
||||
EndIf
|
||||
|
||||
DEBUGVAR HaveCup
|
||||
|
||||
If HaveCup = "true" Then
|
||||
|
||||
|
||||
Else
|
||||
If buttonRemoveCup = "Enable" Then
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
DEBUGVAR buttonRemoveCup
|
||||
DEBUGVAR CheckCupStateDoorCupClose
|
||||
|
||||
|
||||
Refresh
|
||||
TimerReset
|
||||
|
||||
|
||||
</EventTimeout>
|
||||
|
||||
<Text>
|
||||
<X> 50 </X>
|
||||
<Y> 852 </Y>
|
||||
<Width> 1000 </Width>
|
||||
<Height> 300 </Height>
|
||||
<Language>
|
||||
<ID> 000409 </ID>
|
||||
</Language>
|
||||
</Text>
|
||||
|
||||
<Text>
|
||||
<X> 50 </X>
|
||||
<Y> 1200 </Y>
|
||||
<Width> 1000 </Width>
|
||||
<Height> 200 </Height>
|
||||
<Language>
|
||||
<ID> 000410 </ID>
|
||||
</Language>
|
||||
</Text>
|
||||
|
||||
<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>
|
||||
<State> buttonRemoveCup </State>
|
||||
<EventClick>
|
||||
|
||||
|
||||
Machine RemoveCup
|
||||
Machine DoorLidOpen
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
Var CheckCupStateDoorCupClose = "reset"
|
||||
Var CheckCupStateDoorCupCloseCnt = 30
|
||||
</EventClick>
|
||||
<Language>
|
||||
<ID> 000411 </ID>
|
||||
<X> 80 </X>
|
||||
<Y> 40 </Y>
|
||||
<Width> 500 </Width>
|
||||
<Height> 50 <Height>
|
||||
</Language>
|
||||
</Button>
|
||||
|
||||
|
||||
<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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue