diff --git a/image/page_campaign/text_desc.png b/image/page_campaign/text_desc.png new file mode 100644 index 00000000..8003f281 Binary files /dev/null and b/image/page_campaign/text_desc.png differ diff --git a/image/page_campaign/video_desc.mp4 b/image/page_campaign/video_desc.mp4 new file mode 100644 index 00000000..34c75087 Binary files /dev/null and b/image/page_campaign/video_desc.mp4 differ diff --git a/image/page_campaign_en/text_desc.png b/image/page_campaign_en/text_desc.png new file mode 100644 index 00000000..667f0b8d Binary files /dev/null and b/image/page_campaign_en/text_desc.png differ diff --git a/image/topping2_en/text8.png b/image/topping2_en/text8.png new file mode 100644 index 00000000..0fe9d506 Binary files /dev/null and b/image/topping2_en/text8.png differ diff --git a/xml/menu_new_layout_gen.py b/xml/menu_new_layout_gen.py index 703e37fc..983ac6f7 100644 --- a/xml/menu_new_layout_gen.py +++ b/xml/menu_new_layout_gen.py @@ -331,7 +331,7 @@ #out_xml( '\t Var( "฿" + $' + spl[4] + '.Price ) \r\n') if "inter" in param: - out_xml( '\t IntFormat( $' + spl[4] + '.Price , DisplayFormat, /100) ; test\r\n') + out_xml( '\t IntFormat( $' + spl[4] + '.Price , DisplayFormat, PreScaleConvert) ; test\r\n') else: out_xml( '\t Var( "฿" + $' + spl[4] + '.Price ) \r\n') out_xml( '\t\r\n') @@ -373,7 +373,7 @@ out_xml( '\t 0xEAE6E1 \r\n') out_xml( '\t ' + shw + ' \r\n') if "inter" in param: - out_xml( '\t IntFormat( $' + spl[5] + '.Price , DisplayFormat, /100) ; test\r\n') + out_xml( '\t IntFormat( $' + spl[5] + '.Price , DisplayFormat, PreScaleConvert) ; test\r\n') else: out_xml( '\t Var( "฿" + $' + spl[5] + '.Price ) \r\n') out_xml( '\t\r\n') @@ -417,7 +417,7 @@ out_xml( '\t 0xEAE6E1 \r\n') out_xml( '\t ' + shw + ' \r\n') if "inter" in param: - out_xml( '\t IntFormat( $' + spl[6] + '.Price , DisplayFormat, /100) ; test\r\n') + out_xml( '\t IntFormat( $' + spl[6] + '.Price , DisplayFormat, PreScaleConvert) ; test\r\n') else: out_xml( '\t Var( "฿" + $' + spl[6] + '.Price ) \r\n') out_xml( '\t\r\n') @@ -773,7 +773,7 @@ out_xml( '\t ' + shw + ' \r\n') if "inter" in param: - out_xml( '\t IntFormat( $' + spl[8] + '.Price , DisplayFormat, /100) ; test\r\n') + out_xml( '\t IntFormat( $' + spl[8] + '.Price , DisplayFormat, PreScaleConvert) ; test\r\n') else: out_xml( '\t Var( "฿" + $' + spl[8] + '.Price ) \r\n') @@ -817,7 +817,7 @@ out_xml( '\t 0xEAE6E1 \r\n') out_xml( '\t ' + shw + ' \r\n') if "inter" in param: - out_xml( '\t IntFormat( $' + spl[9] + '.Price , DisplayFormat, /100) ; test\r\n') + out_xml( '\t IntFormat( $' + spl[9] + '.Price , DisplayFormat, PreScaleConvert) ; test\r\n') else: out_xml( '\t Var( "฿" + $' + spl[9] + '.Price ) \r\n') @@ -860,7 +860,7 @@ out_xml( '\t 0xEAE6E1 \r\n') out_xml( '\t ' + shw + ' \r\n') if "inter" in param: - out_xml( '\t IntFormat( $' + spl[10] + '.Price , DisplayFormat, /100) ; test\r\n') + out_xml( '\t IntFormat( $' + spl[10] + '.Price , DisplayFormat, PreScaleConvert) ; test\r\n') else: out_xml( '\t Var( "฿" + $' + spl[10] + '.Price ) \r\n') diff --git a/xml/page_board.xml b/xml/page_board.xml index 3e1e00e7..ff915298 100644 --- a/xml/page_board.xml +++ b/xml/page_board.xml @@ -214,7 +214,11 @@ EndIf - + If SystemDateMonth = 1 Then + If SystemDateDay = 1 Then + WRITE_FILE "/mnt/sdcard/coffeevending/CampaignEnable" "off" + EndIf + EndIf If EventTurnOn = 1 Then @@ -228,6 +232,7 @@ Var VideoMainPage = "ROOT/taobin_project/video/main_page_event_alter.mp4" EndIf + EndIf If TermTemOnline = "true" Then Var CountDownShowButton = 28 @@ -601,6 +606,7 @@ DEBUGVAR LanguageShow DEBUGVAR DisplayFormat DEBUGVAR PreScaleConvert + DEBUGVAR UnitPostDisplay @@ -862,6 +868,7 @@ ;"true" ; 80 VideoMainPage + "ROOT/taobin_project/video/main_page.mp4" diff --git a/xml/page_brewing3.xml b/xml/page_brewing3.xml index 77a7444b..ab11e062 100644 --- a/xml/page_brewing3.xml +++ b/xml/page_brewing3.xml @@ -58,6 +58,8 @@ Var bnStrawProblemReport = "ROOT/taobin_project/image/page_doing/bn_send_report_straw_en.png" Var bpStrawProblemReport = "ROOT/taobin_project/image/page_doing/bp_send_report_straw_en.png" + Var CampaingFilename = "ROOT/taobin_project/image/page_campaign_en" + Var XStraw = 336 Else ;Var DirImage = "ROOT/taobin_project/image/collect_point1" @@ -72,6 +74,8 @@ Var bnStrawProblemReport = "ROOT/taobin_project/image/page_doing/bn_send_report_straw.png" Var bpStrawProblemReport = "ROOT/taobin_project/image/page_doing/bp_send_report_straw.png" + Var CampaingFilename = "ROOT/taobin_project/image/page_campaign" + Var XStraw = 382 EndIf @@ -278,6 +282,18 @@ Var CreditCardVoid = 0 + + READ_FILE "/mnt/sdcard/coffeevending/CampaignEnable" CampaignEnableStr + If CampaignEnableStr = "true" Then + Var CampaignEnable = 1 + Var CampaignVideoTimeCountDown = 14 + Var PictureFile = CampaingFilename + "/text_desc.png" + Var VideoPlayFile = "ROOT/taobin_project/image/page_campaign/video_desc.mp4" + Else + Var CampaignEnable = 0 + EndIf + + @@ -971,76 +987,87 @@ DEBUGVAR CountUpBrewing ; animation video loop If AnimationOn = "true" Then - Var CountUpBrewing = CountUpBrewing + 1 - - Var SlotVideo = CountUpBrewing / AnimationVideoPlayTime - - If PreviseStepVideo = SlotVideo Then - ;SAVELOG SlotVideo + If CampaignEnable = 1 Then + If CampaignVideoTimeCountDown > 0 Then + Var CampaignVideoTimeCountDown = CampaignVideoTimeCountDown - 1 + EndIf + If CampaignVideoTimeCountDown = 0 Then + Var CampaignEnable = 0 + EndIf Else - Var PreviseStepVideo = SlotVideo - ;SAVELOG PreviseStepVideo - ;SAVELOG SlotVideo - ;SAVELOG CountUpBrewing + Var CountUpBrewing = CountUpBrewing + 1 - ;Var CountDownVideoTime = CountDownVideoTimeReload + ;CampaignEnable + Var SlotVideo = CountUpBrewing / AnimationVideoPlayTime - Var StepVideo = SlotVideo + 2 - - ;SAVELOG StepVideo - - If StepVideo = 1 Then - Var videoID = VideoID1 - EndIf - If StepVideo = 2 Then - Var videoID = VideoID2 - EndIf - If StepVideo = 3 Then - Var videoID = VideoID3 - EndIf - If StepVideo = 4 Then - Var videoID = VideoID4 - EndIf - If StepVideo = 5 Then - Var videoID = VideoID5 - EndIf - If StepVideo = 6 Then - Var videoID = VideoID6 - EndIf - If StepVideo = 7 Then - Var videoID = VideoID7 - EndIf - If StepVideo = 8 Then - Var videoID = VideoID8 - EndIf - If StepVideo = 9 Then - Var videoID = VideoID9 - EndIf - - ;SAVELOG videoID - - If videoID = 0 Then - + If PreviseStepVideo = SlotVideo Then + ;SAVELOG SlotVideo Else - If videoID = "---" Then + Var PreviseStepVideo = SlotVideo + ;SAVELOG PreviseStepVideo + ;SAVELOG SlotVideo + ;SAVELOG CountUpBrewing + + ;Var CountDownVideoTime = CountDownVideoTimeReload + + Var StepVideo = SlotVideo + 2 + + ;SAVELOG StepVideo + + If StepVideo = 1 Then + Var videoID = VideoID1 + EndIf + If StepVideo = 2 Then + Var videoID = VideoID2 + EndIf + If StepVideo = 3 Then + Var videoID = VideoID3 + EndIf + If StepVideo = 4 Then + Var videoID = VideoID4 + EndIf + If StepVideo = 5 Then + Var videoID = VideoID5 + EndIf + If StepVideo = 6 Then + Var videoID = VideoID6 + EndIf + If StepVideo = 7 Then + Var videoID = VideoID7 + EndIf + If StepVideo = 8 Then + Var videoID = VideoID8 + EndIf + If StepVideo = 9 Then + Var videoID = VideoID9 + EndIf + + ;SAVELOG videoID + + If videoID = 0 Then Else + If videoID = "---" Then - Var VideoPlayFile = VideoPath - Var VideoPlayFile = VideoPlayFile + VideoFileBegin - Var VideoPlayFile = VideoPlayFile + videoID - Var VideoPlayFile = VideoPlayFile + VideoFileEnd + Else - Var PictureFile = PicturePath - Var PictureFile = PictureFile + PictureBegin - Var PictureFile = PictureFile + videoID - Var PictureFile = PictureFile + PictureEnd - - DEBUGVAR VideoPlayFile - DEBUGVAR PictureFile + Var VideoPlayFile = VideoPath + Var VideoPlayFile = VideoPlayFile + VideoFileBegin + Var VideoPlayFile = VideoPlayFile + videoID + Var VideoPlayFile = VideoPlayFile + VideoFileEnd + + Var PictureFile = PicturePath + Var PictureFile = PictureFile + PictureBegin + Var PictureFile = PictureFile + videoID + Var PictureFile = PictureFile + PictureEnd + + DEBUGVAR VideoPlayFile + DEBUGVAR PictureFile + EndIf EndIf EndIf - EndIf + EndIf + ; CampaignEnable EndIf @@ -1134,12 +1161,6 @@ VideoPlayFile -; -; 0 -; 0 -; "ROOT/taobin_project/image/ad_medium_2.png" -; -