167 lines
3.3 KiB
XML
167 lines
3.3 KiB
XML
<Page>
|
|
<X> 0 </X>
|
|
<Y> 608 </Y>
|
|
<Cache> "Enable" </Cache>
|
|
<Width> 1080 </Width>
|
|
<Height> 1312 </Height>
|
|
<Background> "0xEFEDEA" </Background>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventOpen>
|
|
Var Timeout = 0
|
|
Var countClick = 0
|
|
Var countClick2 = 0
|
|
|
|
READ_FILE "/mnt/sdcard/coffeevending/country/short" StrCountryShort
|
|
DEBUGVAR StrCountryShort
|
|
If StrCountryShort = "MYS" Then
|
|
Open "ROOT/taobin_project/inter/mys/xml/page_remove_cup.lxml"
|
|
EndIf
|
|
|
|
If StrCountryShort = "AUS" Then
|
|
Var CountryName = "Australia"
|
|
Var show_eng = "true"
|
|
EndIf
|
|
|
|
|
|
|
|
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
|
|
|
|
LED LedDoorDoor 5 255 255 255 255
|
|
|
|
|
|
</EventOpen>
|
|
<Timeout> 2000 </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
|
|
|
|
If Timeout = 0 Then
|
|
Play "/mnt/sdcard/coffeevending/taobin_project/sound_thai/remove_cup.mp3"
|
|
EndIf
|
|
|
|
Var Timeout = Timeout + 1
|
|
|
|
If Timeout > 15 Then
|
|
Var Timeout = 0
|
|
|
|
|
|
EndIf
|
|
|
|
; Logic have differrent drinkfail3.xml
|
|
; protect lock
|
|
;
|
|
|
|
If CheckCupStateDoorCupCloseCnt > 0 Then
|
|
Var CheckCupStateDoorCupCloseCnt = CheckCupStateDoorCupCloseCnt - 1
|
|
EndIf
|
|
|
|
If CheckCupStateDoorCupCloseCnt = 0 Then
|
|
Var CheckCupStateDoorCupClose = ""
|
|
EndIf
|
|
|
|
If HaveCup = "true" Then
|
|
|
|
If CheckCupStateDoorCupClose = "" Then
|
|
Var buttonRemoveCup = "Enable"
|
|
EndIf
|
|
|
|
If CheckCupStateDoorCupClose = "done" Then
|
|
Var buttonRemoveCup = "Enable"
|
|
EndIf
|
|
Else
|
|
If buttonRemoveCup = "Enable" Then
|
|
Var buttonRemoveCup = "Invisible"
|
|
EndIf
|
|
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>
|
|
<State> buttonRemoveCup </State>
|
|
<EventClick>
|
|
|
|
|
|
Machine RemoveCup
|
|
Machine DoorLidOpen
|
|
Var buttonRemoveCup = "Invisible"
|
|
Var CheckCupStateDoorCupClose = "reset"
|
|
Var CheckCupStateDoorCupCloseCnt = 30
|
|
</EventClick>
|
|
</Button>
|
|
|
|
|
|
|
|
<Button>
|
|
<X> 990 </X>
|
|
<Y> 400 </Y>
|
|
<State> show_eng_button_stage </State>
|
|
<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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<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>
|