281 lines
6.4 KiB
XML
281 lines
6.4 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
|
|
|
|
; Don't forget
|
|
; This file can open before page_board.xml
|
|
If StrCountryShort = "MYS" Then
|
|
Open "ROOT/taobin_project/inter/mys/xml/page_remove_cup.lxml"
|
|
EndIf
|
|
|
|
If StrCountryShort = "AUS" Then
|
|
Open "ROOT/taobin_project/inter/aus/xml/page_remove_cup.lxml"
|
|
EndIf
|
|
|
|
If StrCountryShort = "SGP" Then
|
|
Open "ROOT/taobin_project/inter/sgp/xml/page_remove_cup.lxml"
|
|
EndIf
|
|
|
|
If StrCountryShort = "UAE_DUBAI" Then
|
|
Open "ROOT/taobin_project/inter/uae_dubai/xml/page_remove_cup.lxml"
|
|
EndIf
|
|
|
|
|
|
|
|
;inter-image
|
|
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"
|
|
|
|
;inter-multi
|
|
If LanguageShow = "MSC" Then
|
|
SetLanguage "MSC"
|
|
Else
|
|
If LanguageShow = "MTC" Then
|
|
SetLanguage "MTC"
|
|
Else
|
|
If LanguageShow = "MYANMAR" Then
|
|
SetLanguage "MYANMAR"
|
|
Else
|
|
SetLanguage "ENG"
|
|
EndIf
|
|
EndIf
|
|
EndIf
|
|
Else
|
|
SetLanguage "THAI"
|
|
EndIf
|
|
|
|
|
|
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 = ""
|
|
|
|
RootLayoutVisible 3 "show"
|
|
|
|
</EventOpen>
|
|
<EventLanguageOnChange>
|
|
DEBUGVAR LanguageShow
|
|
DEBUGVAR InternationalEnable
|
|
|
|
;inter-image
|
|
If LanguageShow = "ENG" 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"
|
|
EndIf
|
|
If LanguageShow = "THAI" Then
|
|
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
|
|
If LanguageShow = "MYANMAR" Then
|
|
Var DirImage = "ROOT/taobin_project/image/user_take_cup_mmr/"
|
|
EndIf
|
|
If LanguageShow = "MSC" Then
|
|
Var DirImage = "ROOT/taobin_project/inter/hkg/image/user_take_cup_msc/"
|
|
EndIf
|
|
If LanguageShow = "MTC" Then
|
|
Var DirImage = "ROOT/taobin_project/inter/hkg/image/user_take_cup_mtc/"
|
|
EndIf
|
|
|
|
SAVELOG "EventLanguageOnChange menu -list"
|
|
|
|
Var ButtonLanguageCurrentXPosition = 990
|
|
Var ButtonLanguageCurrentYPosition = 648
|
|
|
|
Var ButtonLanguageListXPosition = 970
|
|
Var ButtonLanguageListYPosition = 640
|
|
|
|
If InternationalEnable = 1 Then
|
|
If CountryName = "Thailand" Then
|
|
Var show_eng_button_stage = "Invisible"
|
|
Var LanguageButtonEnable = "Enable"
|
|
EndIf
|
|
If CountryName = "HongKong" Then
|
|
Var CurrentPageShowError = 1
|
|
Var show_eng_button_stage = "Invisible"
|
|
Var LanguageButtonEnable = "Invisible"
|
|
Var BtnLangToggleIndex = "Enable"
|
|
EndIf
|
|
Else
|
|
Var LanguageButtonEnable = "Invisible"
|
|
Var show_eng_button_stage = "Enable"
|
|
EndIf
|
|
|
|
DEBUGVAR LanguageButtonEnable
|
|
DEBUGVAR show_eng_button_stage
|
|
|
|
OpenInst 3 "ROOT/taobin_project/xml/topview2.xml"
|
|
RefreshAll
|
|
</EventLanguageOnChange>
|
|
<Timeout> 1000 </Timeout>
|
|
<EventTimeout>
|
|
;SAVELOG MachineErrorDetail
|
|
Var MachineErrorDetailAll = MachineErrorDetail + " / "
|
|
Var MachineErrorDetailAll = MachineErrorDetailAll + MachineErrorDetailEng
|
|
|
|
If InternationalEnable = 1 Then
|
|
Var MachineErrorDetailAll = MachineErrorDetailEng
|
|
EndIf
|
|
|
|
|
|
; 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>
|
|
|
|
;include=ROOT/taobin_project/inc/remove_cup_tag_event.inc
|
|
|
|
<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>
|
|
<FilenameDisable> Var( DirImage + "/bd_door_open.png" ) </FilenameDisable>
|
|
<FilenameDisable2> Var( DirImage + "/bd_door_open_rem.png" ) </FilenameDisable2>
|
|
<FilenamePress> Var( DirImage + "/bp_door_open.png" )</FilenamePress>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<State> buttonRemoveCup </State>
|
|
<EventClick>
|
|
|
|
|
|
;include=ROOT/taobin_project/inc/remove_cup_button.inc
|
|
|
|
Refresh
|
|
</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>
|
|
|
|
|
|
|
|
|
|
|
|
<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>
|