taobin_project/xml/page_board.xml

368 lines
7.9 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>
2020-09-16 15:32:44 +07:00
<Background> "0xEFEDEA" </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-03-12 15:39:02 +07:00
Var taobin_version = "1.28"
2020-12-05 22:46:39 +07:00
; 1.00 is
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"
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
STRCONTAIN "roadshow" SaleProfile RoadShow
2020-10-27 16:25:17 +07:00
2020-10-16 16:40:36 +07:00
2020-12-16 09:50:26 +07:00
Var ShowPrice = "Enable"
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
2020-12-20 20:21:22 +07:00
Var CountDownShowButton = 35
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"
; TODO: remove when release
;Var IgnoreNetCore = "true"
2021-03-12 15:39:02 +07:00
Var buttonRemoveCup = "Invisible"
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
Open "/ROOT/xml/outservice.xml"
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
2020-10-12 19:09:05 +07:00
2020-12-20 20:21:22 +07:00
If CountDownShowButton = 31 Then
2020-10-12 19:09:05 +07:00
Var ShowButtonClickFull = "Enable"
Var ShowButtonClick = "Invisible"
Refresh
EndIf
2021-02-05 13:53:17 +07:00
If CountDownShowButton = 3 Then
2020-10-12 19:09:05 +07:00
Var ShowButtonClick = "Enable"
Var ShowButtonClickFull = "Invisible"
Refresh
EndIf
2021-01-19 23:43:43 +07:00
If CountDownPauseVideo > 0 Then
2021-01-22 13:12:30 +07:00
; ignore
;Var CountDownPauseVideo = CountDownPauseVideo - 1
2021-01-19 23:43:43 +07:00
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/taobin_project/xml/page_catalog_choose_drink1.xml"
TopView "show"
Open "/mnt/sdcard/coffeevending/taobin_project/xml/page_main_blank.xml"
EndIf
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-03-12 15:39:02 +07:00
If CountUpReloadAll > 120 Then
2021-02-05 13:53:17 +07:00
Var StartUpExt = "-"
Var CountUpReloadAll = 0
ReloadAll
EndIf
EndIf
2021-03-12 15:39:02 +07:00
If CupOnArm = "true" Then
Var buttonRemoveCup = "Enable"
Else
Var buttonRemoveCup = "Invisible"
EndIf
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-01-27 13:52:22 +07:00
Var CountDownShowButton = 35
2021-01-19 23:43:43 +07:00
Var CountDownPauseVideo = 6
2021-02-05 13:53:17 +07:00
TouchTapClose
2021-03-12 15:39:02 +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
2020-10-12 19:09:05 +07:00
Open "/mnt/sdcard/coffeevending/xml/main.xml"
</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>
2020-10-12 19:09:05 +07:00
<Filename> "ROOT/taobin_project/video/main_page.mp4" </Filename>
</Video>
<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
2020-12-04 13:35:13 +07:00
2020-12-14 12:59:56 +07:00
;Var TestLoopMakeDrink = 1
2020-12-04 13:35:13 +07:00
2020-10-12 19:09:05 +07:00
EndIf
If countClick = 5 Then
Var countClick = 0
MainMenu
EndIf
Refresh
</EventClick>
</Button>
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
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/xml/page_catalog.xml"
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>
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_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>
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_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"
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/xml/page_catalog.xml"
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>
<X> 868 </X>
<Y> 634 </Y>
<State> buttonRemoveCup </State>
;<Color> "0x00BDFF" </Color>
<Interval> 300 </Interval>
<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
</EventClick>
</Button>
2020-09-18 15:24:35 +07:00
2020-09-14 15:09:29 +07:00
</Page>