taobin_project/inter/aus/xml/page_remove_cup.lxml

173 lines
3.5 KiB
Text
Raw Normal View History

2023-10-17 10:19:27 +07:00
<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"
2023-10-17 10:19:27 +07:00
DEBUGVAR "AUS Remove Cup"
2023-10-17 10:19:27 +07:00
Var DirImage = "ROOT/taobin_project/inter/common/image/user_take_cup_en/"
LED LedDoorDoor 5 255 255 255 255
2025-02-18 13:22:27 +07:00
;include=ROOT/taobin_project/inc/remove_cup_event_open.inc
2023-10-25 18:02:34 +07:00
2025-02-18 13:22:27 +07:00
Var ShowMenuNameAndImage = "Invisible"
Var RemoveCupOnArmID = -1
Var remove_cup_name = ""
Var remove_cup_image = ""
RootLayoutVisible 3 "show"
2023-10-25 18:02:34 +07:00
2023-10-17 10:19:27 +07:00
</EventOpen>
2023-10-25 18:02:34 +07:00
<Timeout> 1000 </Timeout>
2023-10-17 10:19:27 +07:00
<EventTimeout>
2023-10-25 18:02:34 +07:00
2023-10-17 10:19:27 +07:00
;SAVELOG MachineErrorDetail
2025-02-18 13:22:27 +07:00
Var MachineErrorDetailAll = MachineErrorDetail + " / "
Var MachineErrorDetailAll = MachineErrorDetailAll + MachineErrorDetailEng
2023-10-17 10:19:27 +07:00
2025-02-18 13:22:27 +07:00
If InternationalEnable = 1 Then
Var MachineErrorDetailAll = MachineErrorDetailEng
2023-10-17 10:19:27 +07:00
EndIf
2023-10-25 18:02:34 +07:00
2025-02-18 13:22:27 +07:00
; 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"
2023-10-25 18:02:34 +07:00
EndIf
EndIf
2025-02-18 13:22:27 +07:00
If CupOnArm = "true" Then
If MachineStage = "show-menu" Then
Open "ROOT/taobin_project/xml/page_board.xml"
2023-10-25 18:02:34 +07:00
2025-02-18 13:22:27 +07:00
EndIf
2023-10-17 10:19:27 +07:00
EndIf
2025-02-18 13:22:27 +07:00
If MachineStage = "close-maintenance" Then
Open "ROOT/taobin_project/xml/page_show_error.xml"
2023-10-17 10:19:27 +07:00
2025-02-18 13:22:27 +07:00
EndIf
2023-10-25 18:02:34 +07:00
2025-02-18 13:22:27 +07:00
;include=ROOT/taobin_project/inc/remove_cup_step.inc
2023-10-17 10:19:27 +07:00
2025-02-18 13:22:27 +07:00
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"
2023-10-17 10:19:27 +07:00
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>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<State> buttonRemoveCup </State>
<EventClick>
2025-02-18 13:22:27 +07:00
;include=ROOT/taobin_project/inc/remove_cup_button.inc
2023-10-17 10:19:27 +07:00
</EventClick>
<Language>
<ID> 000411 </ID>
<X> 80 </X>
<Y> 40 </Y>
<Width> 500 </Width>
<Height> 50 <Height>
</Language>
</Button>
2025-02-18 13:22:27 +07:00
<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>
2023-10-17 10:19:27 +07:00
<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>