0 608 "Enable" 1080 1312 "0xEFEDEA" SoundVolume 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 Open "ROOT/taobin_project/inter/aus/xml/page_remove_cup.lxml" 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 2000 ;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 0 852 Var(DirImage + "/img5.png") 5 1868 24 Center 1080 RobotoRegular 0xDE794E MachineErrorDetailAll