File tree Expand file tree Collapse file tree
resources/assets/quickmenu/lang Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,6 +18,9 @@ public enum DisplayRunText {
1818 @ RangeConstraint (min = 60 , max = 150 *3 )
1919 public int menuHeight = 114 ;
2020
21+ @ RangeConstraint (min = 1 , max = 14 )
22+ public int buttonsPerRow = 5 ;
23+
2124 public boolean closeOnKeyReleased = false ;
2225
2326 public boolean hideEditIcon = false ;
Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ private void createActionButtons(FlowLayout parent) {
150150 double actionsCount = ActionButtonDataHandler .actions .size ();
151151
152152 int curAction = 0 ;
153- double rowSize = 5 ;
153+ double rowSize = QuickMenu . CONFIG . buttonsPerRow () ;
154154
155155 if (actionsCount > 0 ) {
156156 for (int y = 0 ; y < Math .ceil (actionsCount / rowSize ); y ++) {
Original file line number Diff line number Diff line change 3131
3232 "text.config.quickmenu.option.menuWidth" : " Menu Width" ,
3333 "text.config.quickmenu.option.menuHeight" : " Menu Height" ,
34+ "text.config.quickmenu.option.buttonsPerRow" : " Buttons per Row" ,
3435 "text.config.quickmenu.option.closeOnAction" : " Close on Action" ,
3536 "text.config.quickmenu.option.closeOnKeyReleased" : " Close on Key Released" ,
3637 "text.config.quickmenu.option.hideEditIcon" : " Hide Edit Icon" ,
You can’t perform that action at this time.
0 commit comments