taobin_project/xml/page_board.xml

638 lines
15 KiB
XML
Raw Normal View History

2020-09-14 15:09:29 +07:00
<Page>
2020-09-14 19:07:20 +07:00
<X> 0 </X>
<Y> 608 </Y>
2020-09-14 15:09:29 +07:00
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1312 </Height>
2021-08-25 16:59:01 +07:00
<Background> "0xFF0000" </Background>
2020-09-14 15:09:29 +07:00
<Volume> SoundVolume </Volume>
<EventOpen>
2020-09-14 19:07:20 +07:00
TopView "hide"
2020-10-30 18:21:06 +07:00
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/xml/topview_button_back_main.xml"
2020-12-16 09:50:26 +07:00
Var FileNumber = 1
2020-10-28 11:31:11 +07:00
2021-07-23 17:27:25 +07:00
Var GetFreeFromError = 0
2021-10-14 13:53:05 +07:00
Var taobin_version = "1.53"
2020-10-28 11:31:11 +07:00
2020-09-14 15:09:29 +07:00
; On open
2020-10-15 13:14:09 +07:00
Var menu_back_to_main = "ROOT/taobin_project/xml/page_back_to_main.xml"
2020-09-29 17:02:36 +07:00
2020-09-16 18:42:32 +07:00
Var charOfBaht = "฿"
2020-09-16 22:15:42 +07:00
Var KanitTTF = "ROOT/taobin_project/font/Kanit/Kanit-Light.ttf"
2020-09-17 17:35:58 +07:00
Var KanitMediaTTF = "ROOT/taobin_project/font/Kanit/Kanit-Medium.ttf"
2020-10-15 18:29:38 +07:00
Var KanitBoldTTF = "ROOT/taobin_project/font/Kanit/Kanit-Bold.ttf"
2020-09-17 12:39:18 +07:00
Var RobotoBold = "ROOT/taobin_project/font/Roboto/Roboto-Bold.ttf"
2020-09-17 19:08:21 +07:00
Var RobotoBlack = "ROOT/taobin_project/font/Roboto/Roboto-Black.ttf"
2020-10-15 18:29:38 +07:00
Var RobotoRegular = "ROOT/taobin_project/font/Roboto/Roboto-Regular.ttf"
2020-09-18 15:24:35 +07:00
2020-09-25 12:59:30 +07:00
Var KanitMediumTTF = "ROOT/taobin_project/font/Kanit/Kanit-Regular.ttf"
Var KanitRegularTTF = "ROOT/taobin_project/font/Kanit/Kanit-Regular.ttf"
Var KanitThinTTF = "ROOT/taobin_project/font/Kanit/Kanit-Thin.ttf"
Var KanitLightTTF = "ROOT/taobin_project/font/Kanit/Kanit-Light.ttf"
Var KanitSemiBoldTTF = "ROOT/taobin_project/font/Kanit/Kanit-Medium.ttf"
2020-12-15 10:56:08 +07:00
Var BlinkStar = "ROOT/taobin_project/image/animation/blink_star.gif"
2020-09-18 15:24:35 +07:00
Var countClick = 0
2020-10-08 11:54:55 +07:00
2020-11-05 12:56:04 +07:00
Var RoadShow = "false"
2020-10-12 19:09:05 +07:00
Var IgnorePoint = "true"
Var ShowButtonClick = "Enable"
Var ShowButtonClickFull = "Invisible"
2021-08-16 11:24:01 +07:00
Var ShowButtonClick2 = "Enable"
2020-10-14 17:33:55 +07:00
2021-01-19 23:43:43 +07:00
;SAVELOG DisplayType
2020-11-01 22:09:26 +07:00
If DisplayType = "2" Then
Var XPosiShowCountDownBrew = 693
2021-02-05 13:53:17 +07:00
Var WQR = 185
Var HQR = 185
2020-11-01 22:09:26 +07:00
Else
Var XPosiShowCountDownBrew = 768
2021-02-05 13:53:17 +07:00
Var WQR = 290
Var HQR = 290
2020-11-01 22:09:26 +07:00
EndIf
2020-10-15 14:04:35 +07:00
2020-10-20 11:54:27 +07:00
If MachineStage = "close-maintenance" Then
2020-12-03 14:21:46 +07:00
Open "ROOT/taobin_project/xml/page_show_error.xml"
2020-10-20 11:54:27 +07:00
EndIf
2020-10-19 15:27:23 +07:00
2020-12-26 01:33:30 +07:00
If MachineStage = "mcu-upgrade" Then
Open "ROOT/taobin_project/xml/page_show_error.xml"
EndIf
2021-01-19 23:43:43 +07:00
If NeedUpgrade = "true" Then
Open "ROOT/taobin_project/xml/page_show_error.xml"
EndIf
2020-12-26 01:33:30 +07:00
2020-12-04 13:35:13 +07:00
Var TestLoopMakeDrink = 0
Var TestLoopSuccess = 0
Var TestLoopFailed = 0
2021-01-19 23:43:43 +07:00
;Var IgnoreNetCore = "false"
;SAVELOG SaleProfile
2020-12-16 09:50:26 +07:00
STRCONTAIN "whey" SaleProfile WheyShow
STRCONTAIN "cocktail" SaleProfile CocktailShow
2021-09-25 22:27:55 +07:00
;STRCONTAIN "roadshow" SaleProfile RoadShow
2020-10-27 16:25:17 +07:00
2021-04-06 14:50:53 +07:00
Var TermTemOnline = "false"
Var TaobinOnline = "false"
STRCONTAIN "9501" MaterialAvailable TaobinOnline
STRCONTAIN "9505" MaterialAvailable TermTemOnline
2021-08-16 11:24:01 +07:00
Var TaobinOnlineX = "true"
2021-04-06 14:50:53 +07:00
DEBUGVAR TaobinOnline
DEBUGVAR TermTemOnline
2020-10-16 16:40:36 +07:00
2021-05-12 11:53:54 +07:00
; Dtac.
2021-05-24 13:38:59 +07:00
DEBUGVAR ShowDtac1
2021-05-17 22:41:06 +07:00
Var CAMPAIGN1 = "false"
2021-05-12 11:53:54 +07:00
2021-05-24 13:38:59 +07:00
2021-08-16 11:24:01 +07:00
If TaobinOnlineX = "true" Then
2021-07-03 23:19:20 +07:00
Var CountDownShowButton = 35
Var ShowButtonClickFull = "Invisible"
2021-04-21 16:13:29 +07:00
Var VideoMainPage = "ROOT/taobin_project/video/main_page.mp4"
EndIf
If TermTemOnline = "true" Then
2021-07-03 23:19:20 +07:00
Var CountDownShowButton = 28
2021-04-21 16:13:29 +07:00
Var ShowButtonClickFull = "Enable"
2021-04-27 23:13:40 +07:00
Var VideoMainPage = "ROOT/termtem_project/video/termtem01.mp4"
2021-04-21 16:13:29 +07:00
EndIf
2021-08-16 11:24:01 +07:00
If TaobinOnlineX = "false" Then
2021-04-21 18:31:59 +07:00
If TermTemOnline = "false" Then
; TODO
Machine Initial
Open "/ROOT/xml/outservice.xml"
EndIf
EndIf
2021-08-16 11:24:01 +07:00
2021-10-15 15:30:55 +07:00
DEBUGVAR NetworkStatus
2021-08-16 11:24:01 +07:00
If NetworkStatus = "ACTIVATE" Then
2021-08-25 16:59:01 +07:00
Var ShowNetworkProblem = "Invisible"
Var ShowNetworkProblemText = ""
2021-09-10 11:50:59 +07:00
Machine NetworkUp
2021-08-16 11:24:01 +07:00
Else
2021-08-25 16:59:01 +07:00
Var ShowNetworkProblem = "Enable"
2021-08-16 11:24:01 +07:00
Var ShowButtonClick2 = "Invisible"
2021-08-25 16:59:01 +07:00
Var ShowNetworkProblemText = "การสื่อสารขัดข้อง ชำระเงินได้เฉพาะเงินสด"
2021-09-10 11:50:59 +07:00
Machine NetworkDown
2021-08-16 11:24:01 +07:00
EndIf
2021-08-25 16:59:01 +07:00
2021-08-16 11:24:01 +07:00
2021-04-21 18:31:59 +07:00
2021-04-21 16:13:29 +07:00
2021-07-27 13:10:10 +07:00
Var ShowPrice = "Enable"
2020-12-16 09:50:26 +07:00
If RoadShow = "true" Then
Var ShowPrice = "Invisible"
EndIf
2021-01-19 23:43:43 +07:00
;SAVELOG WheyShow
;SAVELOG CocktailShow
;SAVELOG RoadShow
;SAVELOG ShowPrice
2020-12-16 09:50:26 +07:00
2021-01-19 23:43:43 +07:00
Var CountDownPauseVideo = 0
Var NextPage = "-"
If StartUpExt = "false" Then
Else
Machine Initial
Var StartUpExt = "false"
EndIf
StopLongPlay
2021-02-05 13:53:17 +07:00
Var TimerFirst = "true"
2021-03-12 15:39:02 +07:00
Var buttonRemoveCup = "Invisible"
2021-05-10 09:55:03 +07:00
LED LedDoorCup 1 255 255 255 255
2021-05-04 00:40:17 +07:00
LED LedDoorLid Off 255 255 255 255
2021-05-12 11:53:54 +07:00
2021-08-19 11:49:31 +07:00
SPLIT AdvertiseProfile "/" 1 AdvertiseProfile1
SPLIT AdvertiseProfile "/" 2 AdvertiseProfile2
SPLIT AdvertiseProfile "/" 3 AdvertiseProfile3
SPLIT AdvertiseProfile "/" 4 AdvertiseProfile4
SPLIT AdvertiseProfile "/" 5 AdvertiseProfile5
SPLIT AdvertiseProfile "/" 6 AdvertiseProfile6
SPLIT AdvertiseProfile "/" 7 AdvertiseProfile7
SPLIT AdvertiseProfile "/" 8 AdvertiseProfile8
SPLIT AdvertiseProfile "/" 9 AdvertiseProfile9
SPLIT AdvertiseProfile "/" 10 AdvertiseProfile10
SPLIT AdvertiseProfile "/" 11 AdvertiseProfile11
SPLIT AdvertiseProfile "/" 12 AdvertiseProfile12
SPLIT AdvertiseProfile "/" 13 AdvertiseProfile13
SPLIT AdvertiseProfile "/" 14 AdvertiseProfile14
SPLIT AdvertiseProfile "/" 15 AdvertiseProfile15
SPLIT AdvertiseProfile "/" 16 AdvertiseProfile16
SPLIT AdvertiseProfile "/" 17 AdvertiseProfile17
SPLIT AdvertiseProfile "/" 18 AdvertiseProfile18
2021-05-12 11:53:54 +07:00
2021-07-22 14:26:29 +07:00
; Default
Var AdvTaobinHome = "/mnt/sdcard/coffeevending/taobin_project/adv/taobin_adv_"
Var AdvTaobinMenu = "/mnt/sdcard/coffeevending/taobin_project/adv/taobin_adv_menu_"
Var AdvTaobinMenu2 = "/mnt/sdcard/coffeevending/taobin_project/adv/taobin_adv_menu2_"
Var video_main_0 = AdvTaobinHome + AdvertiseProfile7
Var video_main_0 = video_main_0 + ".mp4"
Var video_main_1 = AdvTaobinHome + AdvertiseProfile8
Var video_main_1 = video_main_1 + ".mp4"
Var video_main_2 = AdvTaobinHome + AdvertiseProfile9
Var video_main_2 = video_main_2 + ".mp4"
Var video_main_3 = AdvTaobinHome + AdvertiseProfile10
Var video_main_3 = video_main_3 + ".mp4"
Var video_main_4 = AdvTaobinHome + AdvertiseProfile11
Var video_main_4 = video_main_4 + ".mp4"
Var video_main_5 = AdvTaobinHome + AdvertiseProfile12
Var video_main_5 = video_main_5 + ".mp4"
If AdvertiseProfile7 = "00" Then
Var video_main_count = 1
Else
If AdvertiseProfile8 = "00" Then
Var video_main_count = 1
Else
If AdvertiseProfile9 = "00" Then
Var video_main_count = 2
Else
If AdvertiseProfile10 = "00" Then
Var video_main_count = 3
Else
If AdvertiseProfile11 = "00" Then
Var video_main_count = 4
Else
If AdvertiseProfile12 = "00" Then
Var video_main_count = 5
Else
Var video_main_count = 6
EndIf
EndIf
EndIf
EndIf
EndIf
EndIf
If VideoAdvIndex = 0 Then
Var video_menu_0 = AdvTaobinMenu + AdvertiseProfile7
Var video_menu_0 = video_menu_0 + ".mp4"
EndIf
If VideoAdvIndex = 1 Then
Var video_menu_0 = AdvTaobinMenu + AdvertiseProfile8
Var video_menu_0 = video_menu_0 + ".mp4"
EndIf
If VideoAdvIndex = 2 Then
Var video_menu_0 = AdvTaobinMenu + AdvertiseProfile9
Var video_menu_0 = video_menu_0 + ".mp4"
EndIf
If VideoAdvIndex = 3 Then
Var video_menu_0 = AdvTaobinMenu + AdvertiseProfile10
Var video_menu_0 = video_menu_0 + ".mp4"
EndIf
If VideoAdvIndex = 4 Then
Var video_menu_0 = AdvTaobinMenu + AdvertiseProfile11
Var video_menu_0 = video_menu_0 + ".mp4"
EndIf
If VideoAdvIndex = 5 Then
Var video_menu_0 = AdvTaobinMenu + AdvertiseProfile12
Var video_menu_0 = video_menu_0 + ".mp4"
EndIf
2021-06-25 17:14:12 +07:00
2021-07-22 14:26:29 +07:00
If VideoAdvIndex = 0 Then
Var video_menu_1 = AdvTaobinMenu + AdvertiseProfile7
Var video_menu_1 = video_menu_1 + ".mp4"
EndIf
If VideoAdvIndex = 1 Then
Var video_menu_1 = AdvTaobinMenu + AdvertiseProfile8
Var video_menu_1 = video_menu_1 + ".mp4"
EndIf
If VideoAdvIndex = 2 Then
Var video_menu_1 = AdvTaobinMenu + AdvertiseProfile9
Var video_menu_1 = video_menu_1 + ".mp4"
EndIf
If VideoAdvIndex = 3 Then
Var video_menu_1 = AdvTaobinMenu + AdvertiseProfile10
Var video_menu_1 = video_menu_1 + ".mp4"
EndIf
If VideoAdvIndex = 4 Then
Var video_menu_1 = AdvTaobinMenu + AdvertiseProfile11
Var video_menu_1 = video_menu_1 + ".mp4"
EndIf
If VideoAdvIndex = 5 Then
Var video_menu_1 = AdvTaobinMenu + AdvertiseProfile12
Var video_menu_1 = video_menu_1 + ".mp4"
EndIf
2021-05-12 11:53:54 +07:00
If CAMPAIGN1 = "true" Then
Var video_menu_1 = "ROOT/taobin_project/campaign1/page_catalog_menu.mp4"
Var video_menu_0 = "ROOT/taobin_project/campaign1/page_catalog.mp4"
2021-05-12 23:10:44 +07:00
Var video_main_2 = "/mnt/sdcard/coffeevending/taobin_project/campaign1/page_main.mp4"
2021-05-12 11:53:54 +07:00
Var video_main_count = 3
EndIf
2020-09-14 15:09:29 +07:00
</EventOpen>
2020-10-12 19:09:05 +07:00
2020-12-05 22:46:39 +07:00
<Timeout> 1000 </Timeout>
2020-10-12 19:09:05 +07:00
<EventTimeout>
2020-12-03 14:21:46 +07:00
If IgnoreNetCore = "true" Then
2020-12-05 22:46:39 +07:00
Else
2020-12-03 14:21:46 +07:00
If NetworkStatus = "DOWN" Then
2021-08-16 11:44:14 +07:00
;Open "/ROOT/xml/outservice.xml"
2020-12-03 14:21:46 +07:00
EndIf
If NetworkStatus = "DEACTIVE" Then
Open "/ROOT/xml/offline.xml"
2020-12-26 01:33:30 +07:00
EndIf
2020-12-04 13:35:13 +07:00
2020-12-03 14:21:46 +07:00
If MachineStage = "close-maintenance" Then
Open "ROOT/taobin_project/xml/page_show_error.xml"
2020-10-20 11:54:27 +07:00
2020-12-03 14:21:46 +07:00
EndIf
2020-10-20 11:54:27 +07:00
2020-12-26 01:33:30 +07:00
If MachineStage = "mcu-upgrade" Then
Open "ROOT/taobin_project/xml/page_show_error.xml"
EndIf
2020-12-03 14:21:46 +07:00
EndIf
2020-10-20 11:54:27 +07:00
2020-10-20 13:58:08 +07:00
If MachineStage = "drink-failed" Then
2020-11-16 22:44:13 +07:00
Open "ROOT/taobin_project/xml/page_show_error.xml"
2020-10-20 13:58:08 +07:00
EndIf
2020-12-05 22:46:39 +07:00
If MachineStage = "remove-cup" Then
Open "ROOT/taobin_project/xml/page_remove_cup.xml"
EndIf
2020-10-20 13:58:08 +07:00
2021-01-22 13:12:30 +07:00
2021-01-19 23:43:43 +07:00
If NeedUpgrade = "true" Then
Open "ROOT/taobin_project/xml/page_show_error.xml"
EndIf
2020-10-12 19:09:05 +07:00
2021-01-19 23:43:43 +07:00
If CountDownShowButton > 0 Then
Var CountDownShowButton = CountDownShowButton - 1
EndIf
;SAVELOG MachineStage
2020-11-25 15:27:13 +07:00
;SAVELOG CountDownShowButton
;SAVELOG ShowButtonClickFull
2021-04-21 16:13:29 +07:00
2021-08-16 11:24:01 +07:00
If TaobinOnlineX = "true" Then
2020-10-12 19:09:05 +07:00
2021-04-21 16:13:29 +07:00
If CountDownShowButton = 31 Then
Var ShowButtonClickFull = "Enable"
Var ShowButtonClick = "Invisible"
Refresh
EndIf
2020-10-12 19:09:05 +07:00
2021-04-21 16:13:29 +07:00
If CountDownShowButton = 3 Then
Var ShowButtonClick = "Enable"
Var ShowButtonClickFull = "Invisible"
Refresh
EndIf
2020-10-12 19:09:05 +07:00
2021-04-21 16:13:29 +07:00
If CountDownPauseVideo > 0 Then
; ignore
2021-05-24 13:38:59 +07:00
Var CountDownPauseVideo = CountDownPauseVideo - 1
2021-04-21 16:13:29 +07:00
If CountDownPauseVideo = 0 Then
2021-01-19 23:43:43 +07:00
2021-04-21 16:13:29 +07:00
Var NextPage = "ROOT/taobin_project/xml/page_back_to_main.xml"
2021-01-19 23:43:43 +07:00
2021-04-21 16:13:29 +07:00
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert.xml"
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/xml/page_catalog_choose_drink1.xml"
TopView "show"
Open "/mnt/sdcard/coffeevending/taobin_project/xml/page_main_blank.xml"
EndIf
EndIf
EndIf
If TermTemOnline = "true" Then
2021-01-19 23:43:43 +07:00
2021-07-03 23:19:20 +07:00
If CountDownShowButton = 31 Then
Var ShowButtonClickFull = "Enable"
Var ShowButtonClick = "Invisible"
Refresh
EndIf
2021-04-21 16:13:29 +07:00
If CountDownShowButton = 3 Then
2021-07-03 23:19:20 +07:00
Var ShowButtonClick = "Enable"
Var ShowButtonClickFull = "Invisible"
2021-04-21 16:13:29 +07:00
Refresh
2021-01-19 23:43:43 +07:00
EndIf
2021-07-03 23:19:20 +07:00
If CountDownPauseVideo > 0 Then
; ignore
Var CountDownPauseVideo = CountDownPauseVideo - 1
If CountDownPauseVideo = 0 Then
Var NextPage = "ROOT/taobin_project/xml/page_back_to_main.xml"
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert.xml"
OpenInst 2 "/mnt/sdcard/coffeevending/termtem_project/xml/page_tt__catalog_choose_drink1.xml"
TopView "show"
Open "/mnt/sdcard/coffeevending/taobin_project/xml/page_main_blank.xml"
EndIf
EndIf
2021-01-19 23:43:43 +07:00
EndIf
2020-10-12 19:09:05 +07:00
2021-02-05 13:53:17 +07:00
If TimerFirst = "true" Then
Var TimerFirst = "false"
Var CountUpReloadAll = CountUpReloadAll + 1
DEBUGVAR CountUpReloadAll
2021-07-03 23:19:20 +07:00
If CountUpReloadAll > 80 Then
2021-02-05 13:53:17 +07:00
Var StartUpExt = "-"
Var CountUpReloadAll = 0
ReloadAll
EndIf
EndIf
2021-03-19 08:27:10 +07:00
2021-04-21 16:13:29 +07:00
;DEBUGVAR CupOnArm
2021-08-25 22:42:18 +07:00
;Var CupOnArm = "true"
2021-04-21 16:13:29 +07:00
2021-03-12 15:39:02 +07:00
If CupOnArm = "true" Then
Var buttonRemoveCup = "Enable"
Else
Var buttonRemoveCup = "Invisible"
EndIf
2021-04-21 16:13:29 +07:00
Refresh
2021-02-05 13:53:17 +07:00
2020-09-14 15:09:29 +07:00
TimerReset
</EventTimeout>
2020-09-14 19:07:20 +07:00
2020-10-12 19:09:05 +07:00
<EventEnd>
2021-01-19 23:43:43 +07:00
;SAVELOG ShowButtonClick
2021-07-03 23:19:20 +07:00
2021-08-16 11:24:01 +07:00
If TaobinOnlineX = "true" Then
2021-07-03 23:19:20 +07:00
Var CountDownShowButton = 35
EndIf
If TermTemOnline = "true" Then
Var CountDownShowButton = 28
EndIf
2021-01-19 23:43:43 +07:00
Var CountDownPauseVideo = 6
2021-08-16 11:24:01 +07:00
If TaobinOnlineX = "true" Then
2021-04-21 16:13:29 +07:00
TouchTapClose
EndIf
2021-05-24 13:38:59 +07:00
;Open CurrentXMLFileName0
2020-10-12 19:09:05 +07:00
Refresh
2021-02-05 14:11:05 +07:00
2020-10-12 19:09:05 +07:00
</EventEnd>
<EventNetDown>
2020-12-26 01:33:30 +07:00
SAVELOG NetworkStatus
2021-08-16 11:44:14 +07:00
;Open "/mnt/sdcard/coffeevending/xml/main.xml"
2020-10-12 19:09:05 +07:00
</EventNetDown>
2020-12-26 01:33:30 +07:00
2020-10-12 19:09:05 +07:00
<EventNetDeactive>
2020-12-26 01:33:30 +07:00
SAVELOG NetworkStatus
2020-10-12 19:09:05 +07:00
Open "/mnt/sdcard/coffeevending/xml/main.xml"
</EventNetDeactive>
<Video>
<X> 0 </X>
<Y> 0 </Y>
2021-02-05 13:53:17 +07:00
;<Loop>"true"</Loop>
2020-12-03 14:21:46 +07:00
;<Volume> 80 </Volume>
2021-04-21 16:13:29 +07:00
<Filename> VideoMainPage </Filename>
2020-10-12 19:09:05 +07:00
</Video>
2020-09-14 19:07:20 +07:00
<Button>
<X> 212 </X>
<Y> 1481 </Y>
2020-10-12 19:09:05 +07:00
<State> ShowButtonClick </State>
2021-02-05 13:53:17 +07:00
;<Color> "0x00BDFF" </Color>
2020-09-14 19:07:20 +07:00
<FilenamePress> "ROOT/taobin_project/image/main_page/bp_main_page_start.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
2020-10-15 13:14:09 +07:00
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert.xml"
2020-12-16 09:50:26 +07:00
If CocktailShow = "true" Then
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/xml/page_catalog_cocktail.xml"
Else
2021-04-06 14:50:53 +07:00
If TaobinOnline = "true" Then
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/xml/page_catalog.xml"
2021-04-21 16:13:29 +07:00
EndIf
2021-04-06 14:50:53 +07:00
If TermTemOnline = "true" Then
2021-04-27 23:13:40 +07:00
OpenInst 2 "/mnt/sdcard/coffeevending/termtem_project/xml/page_tt_catalog.xml"
2021-04-21 16:13:29 +07:00
EndIf
2021-04-06 14:50:53 +07:00
2020-12-16 09:50:26 +07:00
EndIf
2020-09-14 19:47:50 +07:00
TopView "show"
2020-10-15 13:14:09 +07:00
Open "/mnt/sdcard/coffeevending/taobin_project/xml/page_main_blank.xml"
2020-09-14 19:07:20 +07:00
</EventClick>
</Button>
<Button>
<X> 212 </X>
<Y> 1695 </Y>
2021-08-25 16:59:01 +07:00
<State> ShowButtonClick2 </State>
2021-02-05 13:53:17 +07:00
;<Color> "0x00BDFF" </Color>
2020-09-14 19:07:20 +07:00
<FilenamePress> "ROOT/taobin_project/image/main_page/bp_main_page_member.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
2021-02-05 13:53:17 +07:00
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert.xml"
2021-02-02 13:33:11 +07:00
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/xml/page_check_member.xml"
2020-09-14 19:07:20 +07:00
2021-02-05 13:53:17 +07:00
TopView "show"
Open "/mnt/sdcard/coffeevending/taobin_project/xml/page_main_blank.xml"
2020-09-14 19:07:20 +07:00
</EventClick>
</Button>
<Button>
<X> 556 </X>
<Y> 1695 </Y>
2021-08-25 16:59:01 +07:00
<State> ShowButtonClick2 </State>
2021-02-05 13:53:17 +07:00
;<Color> "0x00BDFF" </Color>
2020-09-14 19:07:20 +07:00
<FilenamePress> "ROOT/taobin_project/image/main_page/bp_main_page_topup.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
2020-10-27 21:00:50 +07:00
2020-09-14 19:47:50 +07:00
Open "ROOT/xml/service_menu.xml"
2020-09-14 19:07:20 +07:00
</EventClick>
</Button>
2020-09-18 15:24:35 +07:00
<Button>
2020-10-12 19:09:05 +07:00
<X> 2 </X>
2021-02-05 13:53:17 +07:00
<Y> 609 </Y>
2020-10-12 19:09:05 +07:00
<State> ShowButtonClickFull </State>
2021-02-05 13:53:17 +07:00
;<Color> "0x00BDFF" </Color>
2020-10-14 17:33:55 +07:00
<Width> 1070 </Width>
2021-02-05 13:53:17 +07:00
<Height> 1310 </Height>
2020-09-18 15:24:35 +07:00
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
2020-10-15 13:14:09 +07:00
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert.xml"
2021-04-06 14:50:53 +07:00
If TaobinOnline = "true" Then
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/xml/page_catalog.xml"
EndIf
If TermTemOnline = "true" Then
2021-04-27 23:13:40 +07:00
OpenInst 2 "/mnt/sdcard/coffeevending/termtem_project/xml/page_tt_catalog.xml"
2021-04-06 14:50:53 +07:00
EndIf
2020-10-12 19:09:05 +07:00
TopView "show"
2020-10-15 13:14:09 +07:00
Open "/mnt/sdcard/coffeevending/taobin_project/xml/page_main_blank.xml"
2021-03-12 15:39:02 +07:00
</EventClick>
2020-09-18 15:24:35 +07:00
</Button>
2020-11-15 23:14:16 +07:00
2021-03-12 15:39:02 +07:00
<Button>
2021-08-25 22:42:18 +07:00
<X> 780 </X>
<Y> 630 </Y>
2021-03-12 15:39:02 +07:00
<State> buttonRemoveCup </State>
;<Color> "0x00BDFF" </Color>
2021-08-25 22:42:18 +07:00
<Interval> 500 </Interval>
2021-03-12 15:39:02 +07:00
<Filename> "ROOT/taobin_project/image/main_page/bn_remove_cup.png" </Filename>
<Filename> "ROOT/taobin_project/image/main_page/bp_remove_cup.png" </Filename>
<EventClick>
Machine RemoveCup
2021-05-04 00:40:17 +07:00
Machine DoorLidOpen
2021-03-12 15:39:02 +07:00
</EventClick>
</Button>
2020-09-18 15:24:35 +07:00
2021-08-25 16:59:01 +07:00
<Button>
<X> 0 </X>
<Y> 1870 </Y>
<State> ShowNetworkProblem </State>
<Color> "0xFF0000" </Color>
<Width> 1080 </Width>
<Height> 60 </Height>
</Button>
<Text>
<X> 5 </X>
<Y> 1880 </Y>
<Size> 24 </Size>
<Align> Center </Align>
<Width> 1080 </Width>
<Font> RobotoRegular </Font>
<Color> 0xFFFFFF </Color>
<Value> ShowNetworkProblemText </Value>
</Text>
2021-09-15 16:06:13 +07:00
<Button>
<X> 0 </X>
<Y> 1860 </Y>
<Width> 200 </Width>
<Height> 50 </Height>
<Volume> SoundVolume </Volume>
<EventClick>
Var countClick = countClick + 1
If countClick = 3 Then
;Var TestLoopMakeDrink = 1
EndIf
DEBUGVAR countClick
2021-10-15 15:30:55 +07:00
If countClick = 3 Then
2021-09-15 16:06:13 +07:00
Var countClick = 0
2021-10-15 15:30:55 +07:00
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert.xml"
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/xml/page_tel_number_mask.xml"
TopView "show"
Open "/mnt/sdcard/coffeevending/taobin_project/xml/page_main_blank.xml"
2021-09-15 16:06:13 +07:00
EndIf
Refresh
</EventClick>
</Button>
2020-09-14 15:09:29 +07:00
</Page>