Closed Jessypet closed 10 years ago
What about resizing the scroll pane so that the level fits? And when scrolling vertically, the weapons are not placed correctly.
Yeah I forgot to add the weapons - well Cave needs a scrollpane that big, don't know if it's pretty to resize the scrollpane depending on what level is chosen
I created a scrollpane
branch. For aa70aaddb7bf32ada1f7973f67186c89f273fc04, I re-used some parts of your code, and got some inspirations from scroll pane can't align it's content.
ScrollPane is tricky. You can't set the alignment of the nodes, it always puts it to TOP_LEFT. The problem is that it needs a height of 520 so that the Cave Level fits in, but then Board is up in the air. Possible solution: fill Board up with spaces, so that it is as high as Cave.