mirror of
https://github.com/refactorinqq/SLC-1.8.9.git
synced 2024-11-10 07:01:32 +01:00
Scroll Problems Fix
This commit is contained in:
parent
7aaa3c8d04
commit
09e8dbf8d8
@ -110,6 +110,7 @@ public class CosmeticsGui extends SilentScreen {
|
||||
((Button) button).setTheme(new SelectedButtonTheme());
|
||||
selectedCategory = "capes";
|
||||
rotate = 144;
|
||||
scrollHelper.resetScroll();
|
||||
break;
|
||||
case 2:
|
||||
this.buttonList.forEach(oldButton -> {
|
||||
@ -120,6 +121,7 @@ public class CosmeticsGui extends SilentScreen {
|
||||
((Button) button).setTheme(new SelectedButtonTheme());
|
||||
selectedCategory = "wings";
|
||||
rotate = 144;
|
||||
scrollHelper.resetScroll();
|
||||
break;
|
||||
case 3:
|
||||
this.buttonList.forEach(oldButton -> {
|
||||
@ -130,6 +132,7 @@ public class CosmeticsGui extends SilentScreen {
|
||||
((Button) button).setTheme(new SelectedButtonTheme());
|
||||
selectedCategory = "bandanas";
|
||||
rotate = 340;
|
||||
scrollHelper.resetScroll();
|
||||
break;
|
||||
case 4:
|
||||
this.buttonList.forEach(oldButton -> {
|
||||
@ -140,6 +143,7 @@ public class CosmeticsGui extends SilentScreen {
|
||||
((Button) button).setTheme(new SelectedButtonTheme());
|
||||
selectedCategory = "hats";
|
||||
rotate = 340;
|
||||
scrollHelper.resetScroll();
|
||||
break;
|
||||
case 5:
|
||||
this.buttonList.forEach(oldButton -> {
|
||||
@ -150,6 +154,7 @@ public class CosmeticsGui extends SilentScreen {
|
||||
((Button) button).setTheme(new SelectedButtonTheme());
|
||||
selectedCategory = "shields";
|
||||
rotate = 340;
|
||||
scrollHelper.resetScroll();
|
||||
break;
|
||||
case 6:
|
||||
this.buttonList.forEach(oldButton -> {
|
||||
@ -159,6 +164,7 @@ public class CosmeticsGui extends SilentScreen {
|
||||
});
|
||||
((Button) button).setTheme(new SelectedButtonTheme());
|
||||
selectedCategory = "icons";
|
||||
scrollHelper.resetScroll();
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -70,7 +70,7 @@ public class OutfitsGui extends SilentScreen {
|
||||
int x = this.width / 2 - (width / 2);
|
||||
int y = this.height / 2 - (height / 2);
|
||||
scrollHelper.setStep(5);
|
||||
scrollHelper.setElementsHeight((float) Math.ceil((Outfits.getOutfits().size() + 2) / 3) * 85);
|
||||
scrollHelper.setElementsHeight((float) Math.ceil((Outfits.getOutfits().size() + 3) / 3) * 85);
|
||||
scrollHelper.setMaxScroll(height - 20);
|
||||
scrollHelper.setSpeed(100);
|
||||
scrollHelper.setFlag(true);
|
||||
|
Loading…
Reference in New Issue
Block a user