188 lines
3.9 KiB
Text
188 lines
3.9 KiB
Text
<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 = "United Kingdom"
|
|
|
|
DEBUGVAR "GBR Remove Cup"
|
|
|
|
Var DirImage = "ROOT/taobin_project/inter/common/image/user_take_cup_en/"
|
|
|
|
LED LedDoorDoor 5 255 255 255 255
|
|
|
|
;include=ROOT/taobin_project/inc/remove_cup_event_open.inc
|
|
|
|
Var ShowMenuNameAndImage = "Invisible"
|
|
Var RemoveCupOnArmID = -1
|
|
Var remove_cup_name = ""
|
|
Var remove_cup_image = ""
|
|
|
|
Var remove_cup_button_text = "Press Here"
|
|
|
|
RootLayoutVisible 3 "show"
|
|
|
|
</EventOpen>
|
|
<Timeout> 1000 </Timeout>
|
|
<EventTimeout>
|
|
|
|
;SAVELOG MachineErrorDetail
|
|
Var MachineErrorDetailAll = MachineErrorDetailEng
|
|
|
|
|
|
; Add haveCup false for block display abnormal. Alternate between page_board.xml and this file.
|
|
If HaveCup = "false" Then
|
|
If MachineStage = "show-menu" Then
|
|
Open "ROOT/taobin_project/xml/page_board.xml"
|
|
|
|
EndIf
|
|
EndIf
|
|
If CupOnArm = "true" Then
|
|
If MachineStage = "show-menu" Then
|
|
Open "ROOT/taobin_project/xml/page_board.xml"
|
|
|
|
EndIf
|
|
EndIf
|
|
|
|
If MachineStage = "close-maintenance" Then
|
|
Open "ROOT/taobin_project/xml/page_show_error.xml"
|
|
|
|
EndIf
|
|
|
|
;include=ROOT/taobin_project/inc/remove_cup_step.inc
|
|
|
|
|
|
Var RemoveCupOnArmID = 0
|
|
If RemoveCupOnArmID > 0 Then
|
|
If DoorCupPosition = "bottom" Then
|
|
Var ShowMenuNameAndImage = "Invisible"
|
|
Var RemoveCupOnArmID = -1
|
|
Else
|
|
DEBUGVAR RemoveCupOnArmID
|
|
DEBUGVAR DrinkImageOnArm[RemoveCupOnArmID]
|
|
DEBUGVAR DrinkNameOnArm[RemoveCupOnArmID]
|
|
|
|
Var remove_cup_image = DrinkImageOnArm[RemoveCupOnArmID]
|
|
Var remove_cup_name = DrinkNameOnArm[RemoveCupOnArmID]
|
|
Var ShowMenuNameAndImage = "Enable"
|
|
EndIf
|
|
EndIf
|
|
|
|
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>
|
|
<FilenameDisable> Var( DirImage + "/bd_door_open.png" ) </FilenameDisable>
|
|
<FilenameDisable2> Var( DirImage + "/bd_door_open_rem.png" ) </FilenameDisable2>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<State> buttonRemoveCup </State>
|
|
<EventClick>
|
|
;include=ROOT/taobin_project/inc/remove_cup_button.inc
|
|
|
|
If buttonRemoveCup = "Enable" Then
|
|
Var remove_cup_button_text = "Press Here"
|
|
EndIf
|
|
|
|
If buttonRemoveCup = "Disable" Then
|
|
Var remove_cup_button_text = "Please Wait..."
|
|
EndIf
|
|
|
|
If buttonRemoveCup = "Disable2" Then
|
|
Var remove_cup_button_text = "Please take cup below"
|
|
EndIf
|
|
</EventClick>
|
|
</Button>
|
|
|
|
<Text>
|
|
<X> 212 </X>
|
|
<Y> 1705 </Y>
|
|
<Width> 656 </Width>
|
|
<Font> KanitRegularTTF </Font>
|
|
<Size> 56 </Size>
|
|
<Color> 0xFFFFFF </Color>
|
|
<State> buttonRemoveCup </State>
|
|
<Value> remove_cup_button_text </Value>
|
|
<Align> Center </Align>
|
|
<Text>
|
|
|
|
|
|
<Image>
|
|
<X> 125 </X>
|
|
<Y> 1700 </Y>
|
|
<Height> 300 </Height>
|
|
<Width> 320 </Width>
|
|
<State> ShowMenuNameAndImage </State>
|
|
<Filename> remove_cup_image </Filename>
|
|
</Image>
|
|
|
|
<Text>
|
|
<X> 300 </X>
|
|
<Y> 1750 </Y>
|
|
<State> ShowMenuNameAndImage </State>
|
|
<Width> 1080 </Width>
|
|
<Align> Center </Align>
|
|
<Font> KanitLightTTF </Font>
|
|
<Size> 48 </Size>
|
|
<Color> HeadlineColor </Color>
|
|
<Value>
|
|
eval(
|
|
STRCONTAIN "size" remove_cup_name SizeFromSheet
|
|
If SizeFromSheet = "true" Then
|
|
SPLIT Seeker.showname "###" 1 PureName
|
|
Var return = PureName
|
|
Else
|
|
Var return = Seeker.showname
|
|
EndIf
|
|
)
|
|
</Value>
|
|
</Text>
|
|
|
|
|
|
<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>
|