From a35467830fd55bcecc2b35d47008b678dca33cf6 Mon Sep 17 00:00:00 2001 From: joBr99 Date: Sat, 19 Mar 2022 16:06:25 +0000 Subject: [PATCH] bind startup animation to ui element (add nextion2text) --- HMI/n2t-out/nspanel_Stats.txt | 16 ++++++++-------- HMI/n2t-out/pageStartup.txt | 12 ++++++------ 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/HMI/n2t-out/nspanel_Stats.txt b/HMI/n2t-out/nspanel_Stats.txt index a96cc48d..76cae8c3 100644 --- a/HMI/n2t-out/nspanel_Stats.txt +++ b/HMI/n2t-out/nspanel_Stats.txt @@ -6,10 +6,6 @@ pageIcons 6 Component(s) 0 Line(s) of event code 0 Unique line(s) of event code -pageTest - 13 Component(s) - 13 Line(s) of event code - 13 Unique line(s) of event code popupNotify 15 Component(s) 143 Line(s) of event code @@ -22,10 +18,10 @@ cardMedia 22 Component(s) 219 Line(s) of event code 114 Unique line(s) of event code -pageStartup - 19 Component(s) - 140 Line(s) of event code - 107 Unique line(s) of event code +pageTest + 13 Component(s) + 13 Line(s) of event code + 13 Unique line(s) of event code popupShutter 19 Component(s) 148 Line(s) of event code @@ -46,6 +42,10 @@ cardThermo 42 Component(s) 450 Line(s) of event code 220 Unique line(s) of event code +pageStartup + 19 Component(s) + 140 Line(s) of event code + 107 Unique line(s) of event code cardAlarm 28 Component(s) 159 Line(s) of event code diff --git a/HMI/n2t-out/pageStartup.txt b/HMI/n2t-out/pageStartup.txt index 494f5808..e8aa5ee0 100644 --- a/HMI/n2t-out/pageStartup.txt +++ b/HMI/n2t-out/pageStartup.txt @@ -475,7 +475,7 @@ Button bSendStartup prints tSend.txt,0 prints crcval,2 -Hotspot mSpecial +Hotspot mSpinner Attributes ID : 16 Scope : local @@ -483,10 +483,10 @@ Hotspot mSpecial Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 87 - y coordinate : 33 - Width : 288 - Height : 187 + x coordinate : 154 + y coordinate : 49 + Width : 140 + Height : 140 Effect : load Effect Priority : 0 Effect Time : 300 @@ -643,7 +643,7 @@ Timer tmSpinner Events Timer Event - xpic 154,49,spinner_w.val,140,frame_ptr.val,0,11 // draw the current frame + xpic mSpinner.x,mSpinner.y,spinner_w.val,140,frame_ptr.val,0,11 // draw the current frame frame_ptr.val+=spinner_w.val%frapic_w.val // advance the pointer to the next frame in the pic resource and roll over at the end doevents // finish drawing before next timer event triggers if(frame_ptr.val==1820)