-
-
Notifications
You must be signed in to change notification settings - Fork 19.5k
Change options header remove from M600 #4236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
See if this fixes the issue with the cursor being stuck on the top item: #define STATIC_ITEM(label, args...) \
if (_menuItemNr == _lineNr) { \
- if (encoderLine == _menuItemNr && _menuItemNr < LCD_HEIGHT - 1) \
+ if (encoderLine == _menuItemNr && _menuItemNr < LCD_HEIGHT - 1) { \
encoderPosition += ENCODER_STEPS_PER_MENU_ITEM; \
+ lcdDrawUpdate = LCDVIEW_CALL_REDRAW_NEXT; \
+ } \
if (lcdDrawUpdate) \
lcd_implementation_drawmenu_static(_drawLineNr, PSTR(label), ## args); \
} \ …which is … #define STATIC_ITEM(label, args...) \
if (_menuItemNr == _lineNr) { \
if (encoderLine == _menuItemNr && _menuItemNr < LCD_HEIGHT - 1) { \
encoderPosition += ENCODER_STEPS_PER_MENU_ITEM; \
lcdDrawUpdate = LCDVIEW_CALL_REDRAW_NEXT; \
} \
if (lcdDrawUpdate) \
lcd_implementation_drawmenu_static(_drawLineNr, PSTR(label), ## args); \
} \
_menuItemNr++ |
@thinkyhead Oh, thank you, yesterday we did some tests and couldn't achieve this, but your solution is working! So maybe we can keep the options menu as it is and don't merge it. I'm just not sure, if this behaviour is good for |
I agree that the ability to scroll is not obvious at all. On the other hand, all menus suffer from this same issue. After all, no menu that fills the screen can be assumed to be complete, so it's natural to scroll. Right now all these I've also been concerned about screens like The only (universal) way to fix this is to note the direction moved and apply different cursor corrections depending on that. (i.e., when scrolling down, make sure "Fiddly" stuff… |
Feel free to try #4243 to see if it scrolls better with the About Printer screens. It scrolls in a simpler way on screens that only have |
On graphical displays the first |
I tried #4243 and the scrolling looks much better. but sadly it breaks the other menus. They are all moved one line down, so the first line (where should return be) is empty (and return is on line 2). You must either reset or find long menu to scroll down. |
@petrzjunior Do you mean that the normal menus are moved down, or that only the menus that have a static item above them are moved down? Remind me, are you using a character display or a graphical display? Meanwhile, I made some additional changes today that may or may not make a difference. I couldn't find the exact logical change that would draw on the wrong lines. But maybe the var I changed from unsigned to signed will do the trick. |
@thinkyhead I tested it right now and it worked! There is only one bug left: If you enter the static menu (eg. EDIT: Found out it only happens on |
That makes sense, perhaps. There are a couple of things I can imagine being involved. I've added some more commits to #4243 that I think may help. Let me know if it works any better with the added tweaks. |
Great! Now everything works perfectly and as expected. 👏 static void lcd_filament_change_option_menu() {
START_MENU();
#if LCD_HEIGHT > 2
- STATIC_ITEM(MSG_FILAMENT_CHANGE_OPTION_HEADER, true, true);
+ STATIC_ITEM(MSG_FILAMENT_CHANGE_OPTION_HEADER, true, false);
#endif
MENU_ITEM(function, MSG_FILAMENT_CHANGE_OPTION_RESUME, lcd_filament_change_resume_print);
MENU_ITEM(function, MSG_FILAMENT_CHANGE_OPTION_EXTRUDE, lcd_filament_change_extrude_more);
END_MENU();
} Then we will close this PR, since it's redundant. |
We removed optins header text for auto filament change from display to stay only two menu options without question due to problem with invisible cursor on static text.
MSG_FILAMENT_CHANGE_OPTION_HEADER in translate file removed
@MarlinFirmware/language-team