mabre / team61

Other
2 stars 4 forks source link

ScrollPane/size of levels #76

Closed Jessypet closed 10 years ago

Jessypet commented 10 years ago

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.

mabre commented 10 years ago

What about resizing the scroll pane so that the level fits? And when scrolling vertically, the weapons are not placed correctly.

43

Jessypet commented 10 years ago

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

mabre commented 10 years ago

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.