Cosmetics fade remove of sidebar
This commit is contained in:
@@ -38,20 +38,20 @@ public class CloakMenu extends SaturnScreen {
|
||||
if (player != null) {
|
||||
// for (String cloak : Cloaks.availableCloaks) {
|
||||
|
||||
// stagger.draw(
|
||||
// new CosmeticPreview(
|
||||
// cloak == player.cloak,
|
||||
// Textures.getCloakPreview(cloak),
|
||||
// () -> Cloaks.setCloak(cloak))
|
||||
// .position((50 + g) * col, (111 + g) * row)
|
||||
// .animation(new SlideY(AnimationConfig.cosmeticsMenu, 14)));
|
||||
// stagger.draw(
|
||||
// new CosmeticPreview(
|
||||
// cloak == player.cloak,
|
||||
// Textures.getCloakPreview(cloak),
|
||||
// () -> Cloaks.setCloak(cloak))
|
||||
// .position((50 + g) * col, (111 + g) * row)
|
||||
// .animation(new SlideY(AnimationConfig.cosmeticsMenu, 14)));
|
||||
|
||||
// if (col == 5) {
|
||||
// col = 0;
|
||||
// row++;
|
||||
// } else {
|
||||
// col++;
|
||||
// }
|
||||
// if (col == 5) {
|
||||
// col = 0;
|
||||
// row++;
|
||||
// } else {
|
||||
// col++;
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
||||
@@ -69,8 +69,7 @@ public class CloakMenu extends SaturnScreen {
|
||||
.animation(new Fade(500)));
|
||||
|
||||
draw(new Sidebar(2, this.provider::close)
|
||||
.centerOffset(width, height, -(scrollWidth / 2 + 20), 0)
|
||||
.animation(new Fade(400)));
|
||||
.centerOffset(width, height, -(scrollWidth / 2 + 20), 0));
|
||||
|
||||
draw(new TabMenu(0,
|
||||
new TabMenuComponent(Textures.CLOAK, () -> {
|
||||
|
||||
@@ -70,8 +70,7 @@ public class HatMenu extends SaturnScreen {
|
||||
.animation(new Fade(500)));
|
||||
|
||||
draw(new Sidebar(2, this.provider::close)
|
||||
.centerOffset(width, height, -(scrollWidth / 2 + 20), 0)
|
||||
.animation(new Fade(400)));
|
||||
.centerOffset(width, height, -(scrollWidth / 2 + 20), 0));
|
||||
|
||||
draw(new TabMenu(1,
|
||||
new TabMenuComponent(Textures.CLOAK, () -> {
|
||||
|
||||
@@ -98,8 +98,7 @@ public class CloakStore extends SaturnScreen {
|
||||
.centerOffset(width, height, 15, 0));
|
||||
|
||||
draw(new Sidebar(5, this.provider::close)
|
||||
.centerOffset(width, height, -((scrollWidth - 30) / 2 + 20), 0)
|
||||
.animation(new Fade(400)));
|
||||
.centerOffset(width, height, -((scrollWidth - 30) / 2 + 20), 0));
|
||||
|
||||
draw(new TabMenu(0,
|
||||
new TabMenuComponent(Textures.CLOAK, () -> {
|
||||
|
||||
@@ -99,8 +99,7 @@ public class HatStore extends SaturnScreen {
|
||||
.centerOffset(width, height, 15, 0));
|
||||
|
||||
draw(new Sidebar(5, this.provider::close)
|
||||
.centerOffset(width, height, -((scrollWidth - 30) / 2 + 20), 0)
|
||||
.animation(new Fade(400)));
|
||||
.centerOffset(width, height, -((scrollWidth - 30) / 2 + 20), 0));
|
||||
|
||||
draw(new TabMenu(1,
|
||||
new TabMenuComponent(Textures.CLOAK, () -> {
|
||||
|
||||
Reference in New Issue
Block a user