@@ -93,6 +93,9 @@ public class SettingsGui extends SkyblockAddonsScreen {
9393 private int cachedTrackX ;
9494 private int cachedTrackHeight ;
9595
96+ private int lastEnchantX ;
97+ private double lastEnchantY ;
98+
9699 public SettingsGui (Feature feature , int page , int lastPage , EnumUtils .GuiTab lastTab , EnumUtils .GUIType lastGUI ) {
97100 super (Component .empty ());
98101 this .feature = feature ;
@@ -357,7 +360,7 @@ private void addButton(FeatureSetting setting, Object settingValue) {
357360 return ;
358361 }
359362
360- boxWidth = 31 ;
363+ boxWidth = ButtonSettingToggle . WIDTH ;
361364 x = halfWidth - (boxWidth / 2 );
362365 y = getRowHeightSetting (row );
363366 addRenderableWidget (new ButtonSettingToggle (x , y , Translations .getMessage ("settings.expandDeployableStatus" ), setting ));
@@ -435,7 +438,7 @@ private void addButton(FeatureSetting setting, Object settingValue) {
435438 break ;
436439
437440 case TREVOR_SHOW_QUEST_COOLDOWN :
438- boxWidth = 31 ; // Default size and stuff.
441+ boxWidth = ButtonSettingToggle . WIDTH ;
439442 x = halfWidth - (boxWidth / 2 );
440443 y = getRowHeightSetting (row );
441444 addRenderableWidget (new ButtonSettingToggle (x , y , setting .getMessage (), setting ));
@@ -446,7 +449,7 @@ private void addButton(FeatureSetting setting, Object settingValue) {
446449 break ;
447450
448451 case TREVOR_HIGHLIGHT_TRACKED_ENTITY :
449- boxWidth = 31 ; // Default size and stuff.
452+ boxWidth = ButtonSettingToggle . WIDTH ;
450453 x = halfWidth - (boxWidth / 2 );
451454 y = getRowHeightSetting (row );
452455 addRenderableWidget (new ButtonSettingToggle (x , y , setting .getMessage (), setting ));
@@ -457,7 +460,7 @@ private void addButton(FeatureSetting setting, Object settingValue) {
457460 break ;
458461
459462 case CLASS_COLORED_TEAMMATE :
460- boxWidth = 31 ; // Default size and stuff.
463+ boxWidth = ButtonSettingToggle . WIDTH ;
461464 x = halfWidth - (boxWidth / 2 );
462465 y = getRowHeightSetting (row );
463466 addRenderableWidget (new ButtonSettingToggle (x , y , setting .getMessage (), setting ));
@@ -486,10 +489,40 @@ private void addButton(FeatureSetting setting, Object settingValue) {
486489 case POOR_ENCHANT_COLOR :
487490 case COMMA_ENCHANT_COLOR :
488491 boxWidth = 100 ;
489- x = halfWidth - (boxWidth / 2 );
490- y = getRowHeightSetting (row );
492+ x = lastEnchantX = halfWidth - (boxWidth / 2 ) - ( ButtonSettingToggle . WIDTH * 4 / 2 ) - 45 ;
493+ y = lastEnchantY = getRowHeightSetting (row );
491494 addRenderableWidget (new ButtonOpenColorMenu (x , y , 100 , 20 , setting .getMessage (), setting ));
492- if (setting == FeatureSetting .COMMA_ENCHANT_COLOR ) row += 0.4F ; // Last spacing
495+ row --;
496+ break ;
497+
498+ case PERFECT_ENCHANT_BOLD :
499+ case GREAT_ENCHANT_BOLD :
500+ case GOOD_ENCHANT_BOLD :
501+ case POOR_ENCHANT_BOLD :
502+ case COMMA_ENCHANT_BOLD :
503+ lastEnchantX += 100 + 10 ;
504+ addRenderableWidget (new ButtonSettingToggle (lastEnchantX , lastEnchantY + 2.5 , setting .getMessage (), setting ));
505+ row --;
506+ break ;
507+ case PERFECT_ENCHANT_ITALIC :
508+ case GREAT_ENCHANT_ITALIC :
509+ case GOOD_ENCHANT_ITALIC :
510+ case POOR_ENCHANT_ITALIC :
511+ case COMMA_ENCHANT_ITALIC :
512+ case PERFECT_ENCHANT_UNDERLINED :
513+ case GREAT_ENCHANT_UNDERLINED :
514+ case GOOD_ENCHANT_UNDERLINED :
515+ case POOR_ENCHANT_UNDERLINED :
516+ case COMMA_ENCHANT_UNDERLINED :
517+ lastEnchantX -= 20 ;
518+ case PERFECT_ENCHANT_STRIKETHROUGH :
519+ case GREAT_ENCHANT_STRIKETHROUGH :
520+ case GOOD_ENCHANT_STRIKETHROUGH :
521+ case POOR_ENCHANT_STRIKETHROUGH :
522+ case COMMA_ENCHANT_STRIKETHROUGH :
523+ lastEnchantX += ButtonSettingToggle .WIDTH + 40 ;
524+ addRenderableWidget (new ButtonSettingToggle (lastEnchantX , lastEnchantY + 2.5 , setting .getMessage (), setting ));
525+ if (!setting .name ().endsWith ("_STRIKETHROUGH" )) row --; // Except last one
493526 break ;
494527
495528 case ENCHANT_LAYOUT :
@@ -557,7 +590,7 @@ private void addButton(FeatureSetting setting, Object settingValue) {
557590 default :
558591 if (setting .isUniversal ()) return ; // see addUniversalButton()
559592
560- boxWidth = 31 ; // Default size and stuff.
593+ boxWidth = ButtonSettingToggle . WIDTH ; // Default size and stuff.
561594 x = halfWidth - (boxWidth / 2 );
562595 y = getRowHeightSetting (row );
563596 addRenderableWidget (new ButtonSettingToggle (x , y , setting .getMessage (), setting ));
0 commit comments