File tree Expand file tree Collapse file tree
java/com/terraformersmc/modmenu
resources/assets/modmenu/lang Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -89,8 +89,9 @@ public static SimpleOption<?>[] asOptions() {
8989 }
9090
9191 public enum Sorting {
92- ASCENDING (Comparator .comparing (mod -> mod .getTranslatedName ()
93- .toLowerCase (Locale .ROOT ))), DESCENDING (ASCENDING .getComparator ().reversed ());
92+ ASCENDING (Comparator .comparing (mod -> mod .getTranslatedName ().toLowerCase (Locale .ROOT ))),
93+ DESCENDING (ASCENDING .getComparator ().reversed ()),
94+ HAS_UPDATE (Comparator .comparing (Mod ::hasUpdate ).reversed ());
9495
9596 private final Comparator <Mod > comparator ;
9697
Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ protected void init() {
141141 Text sortingText = ModMenuConfig .SORTING .getButtonText ();
142142 Text librariesText = ModMenuConfig .SHOW_LIBRARIES .getButtonText ();
143143
144- int sortingWidth = textRenderer .getWidth (sortingText ) + 20 ;
144+ int sortingWidth = textRenderer .getWidth (sortingText ) + 28 ;
145145 int librariesWidth = textRenderer .getWidth (librariesText ) + 20 ;
146146
147147 this .filtersWidth = librariesWidth + sortingWidth + 2 ;
Original file line number Diff line number Diff line change 109109 "option.modmenu.sorting" : " Sort" ,
110110 "option.modmenu.sorting.ascending" : " A-Z" ,
111111 "option.modmenu.sorting.descending" : " Z-A" ,
112+ "option.modmenu.sorting.has_update" : " Has Update" ,
112113 "option.modmenu.show_libraries" : " Libraries" ,
113114 "option.modmenu.show_libraries.true" : " Shown" ,
114115 "option.modmenu.show_libraries.false" : " Hidden" ,
You can’t perform that action at this time.
0 commit comments