Browse Source

Add Tune -> Advanced Settings to FTDI EVE (#20532)

LinFor 4 years ago
parent
commit
9b3e16cdd0
No account linked to committer's email address

+ 6
- 2
Marlin/src/lcd/extui/lib/ftdi_eve_touch_ui/screens/tune_menu.cpp View File

49
     #define PAUSE_POS       BTN_POS(1,6), BTN_SIZE(2,1)
49
     #define PAUSE_POS       BTN_POS(1,6), BTN_SIZE(2,1)
50
     #define STOP_POS        BTN_POS(1,7), BTN_SIZE(2,1)
50
     #define STOP_POS        BTN_POS(1,7), BTN_SIZE(2,1)
51
     #define CASE_LIGHT_POS  BTN_POS(1,8), BTN_SIZE(2,1)
51
     #define CASE_LIGHT_POS  BTN_POS(1,8), BTN_SIZE(2,1)
52
-    #define BACK_POS        BTN_POS(1,9), BTN_SIZE(2,1)
52
+    #define ADVANCED_SETTINGS_POS BTN_POS(1,9), BTN_SIZE(1,1)
53
+    #define BACK_POS        BTN_POS(2,9), BTN_SIZE(1,1)
53
   #else
54
   #else
54
     #define GRID_ROWS 5
55
     #define GRID_ROWS 5
55
     #define GRID_COLS 2
56
     #define GRID_COLS 2
61
     #define STOP_POS        BTN_POS(2,3), BTN_SIZE(1,1)
62
     #define STOP_POS        BTN_POS(2,3), BTN_SIZE(1,1)
62
     #define FILAMENT_POS    BTN_POS(1,4), BTN_SIZE(1,1)
63
     #define FILAMENT_POS    BTN_POS(1,4), BTN_SIZE(1,1)
63
     #define CASE_LIGHT_POS  BTN_POS(2,4), BTN_SIZE(1,1)
64
     #define CASE_LIGHT_POS  BTN_POS(2,4), BTN_SIZE(1,1)
64
-    #define BACK_POS        BTN_POS(1,5), BTN_SIZE(2,1)
65
+    #define ADVANCED_SETTINGS_POS BTN_POS(1,5), BTN_SIZE(1,1)
66
+    #define BACK_POS        BTN_POS(2,5), BTN_SIZE(2,1)
65
   #endif
67
   #endif
66
 
68
 
67
   if (what & FOREGROUND) {
69
   if (what & FOREGROUND) {
86
        .tag(8).button(STOP_POS, GET_TEXT_F(MSG_STOP_PRINT))
88
        .tag(8).button(STOP_POS, GET_TEXT_F(MSG_STOP_PRINT))
87
        .enabled(ENABLED(CASE_LIGHT_ENABLE))
89
        .enabled(ENABLED(CASE_LIGHT_ENABLE))
88
        .tag(10).button(CASE_LIGHT_POS, GET_TEXT_F(MSG_CASE_LIGHT))
90
        .tag(10).button(CASE_LIGHT_POS, GET_TEXT_F(MSG_CASE_LIGHT))
91
+       .tag(11).button(ADVANCED_SETTINGS_POS, GET_TEXT_F(MSG_ADVANCED_SETTINGS))
89
        .tag(1).colors(action_btn)
92
        .tag(1).colors(action_btn)
90
              .button(BACK_POS, GET_TEXT_F(MSG_BACK));
93
              .button(BACK_POS, GET_TEXT_F(MSG_BACK));
91
   }
94
   }
121
     #if ENABLED(CASE_LIGHT_ENABLE)
124
     #if ENABLED(CASE_LIGHT_ENABLE)
122
     case 10: GOTO_SCREEN(CaseLightScreen); break;
125
     case 10: GOTO_SCREEN(CaseLightScreen); break;
123
     #endif
126
     #endif
127
+    case 11: GOTO_SCREEN(AdvancedSettingsMenu); break;
124
     default:
128
     default:
125
       return false;
129
       return false;
126
   }
130
   }

Loading…
Cancel
Save