Skip to content

Commit

Permalink
part padding issues
Browse files Browse the repository at this point in the history
  • Loading branch information
seleb committed Jul 18, 2024
1 parent 42779b3 commit 115121f
Show file tree
Hide file tree
Showing 12 changed files with 21 additions and 3 deletions.
Binary file modified public/assets/textures/arm Predatory Pincers.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/assets/textures/arm Sone ka Sparsh.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/assets/textures/arm Swift of Swipe.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/assets/textures/arm Tallboy 0020.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/assets/textures/arm Tarless Feather.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/assets/textures/arm The White Knuckles.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/assets/textures/arm Year 0717.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/assets/textures/chest Whet Appetite.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/assets/textures/head Peckish Lump.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/assets/textures/head The Crooked.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 20 additions & 2 deletions src/GameScene.ts
Original file line number Diff line number Diff line change
Expand Up @@ -616,13 +616,19 @@ SPACE: ${formatCount(freeCells, allCells)}
const scrollerChests = new Scroller({
width: 300,
height: size.y,
gap: 10,
gap: 20,
});
const scrollerArms = new Scroller({
width: 300,
height: size.y,
gap: 10,
gap: -50,
});

{
const sprPadding = new Sprite(tex('blank'));
sprPadding.height = 150;
scrollerArms.addChild(sprPadding);
}
const scrollerLegs = new Scroller({
width: 300,
height: size.y,
Expand Down Expand Up @@ -741,8 +747,20 @@ SPACE: ${formatCount(freeCells, allCells)}
if (i === `${type} ${current}`) spr.tint = greenHalf;
scroller.addChild(spr);
});

{
const sprPadding = new Sprite(tex('blank'));
sprPadding.height = 50;
scroller.addChild(sprPadding);
}
});

{
const sprPadding = new Sprite(tex('blank'));
sprPadding.height = 150;
scrollerArms.addChild(sprPadding);
}

const textInfo = new BitmapText({ text: '', style: fontDialogue });
textInfo.style.wordWrapWidth = size.x / 3 - 32;
const panelInfo = new Spr9('panel');
Expand Down
2 changes: 1 addition & 1 deletion src/scroller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export class Scroller {
this.containerScroll.removeChild(this.sprBg);
let r!: U[0];
children.forEach((child) => {
r = r || this.containerScroll.addChild(child);
r = r || this.containerScroll.addChildAt(child, 0);
child.y += this.scrollHeight;
this.scrollHeight += child.height + this.scrollGap;
});
Expand Down

0 comments on commit 115121f

Please sign in to comment.