CocosBuilder icon indicating copy to clipboard operation
CocosBuilder copied to clipboard

Missing "Edit Stage Size"

Open iMobCoding opened this issue 8 years ago • 3 comments

As title says, can you please put back "Edit Stage Size" from the Document menu? I find this option very helpful in some cases...

iMobCoding avatar Jun 07 '16 15:06 iMobCoding

Can you explain your needs ? I was told to remove it by other users, so it's interested to know why you need it

oxeron avatar Jun 07 '16 15:06 oxeron

Hey Oliver

It helps with different Stage Colors and layers/nodes that have relative size.

For example, I want to create a HUD layer that is 100% x 100% of it's parent size. I create the layer with 320x480 points (portrait) so it's easier to see how it looks on smallest device screens. In old SprBuilder it automatically creates a Stage with size 320x480 too, so when I change the layer's size to 100% x 100% it actually adapts to the Stage Size. Now, if I want to check that layer's layout in different resolution, I don't need to add it to any other scene, I just change the Stage Size, and because layer's size is relative, it automatically adapts...

Also, Stage Color is related to the Stage Size. Without Stage Size, if I change Stage Color it always fills just the initial size of the created layer, nevermind if I later change the layer's size

So in my opinion, it's very useful feature... Hope my explanation is clear enough :)

iMobCoding avatar Jun 07 '16 15:06 iMobCoding

I fixed this in my fork. I never used Edit Stage Size menu, but now, when I'm using it, I realise that removing of it was very wrong :) See pull https://github.com/oxeron/CocosBuilder/pull/15 also for other modifications.

Volodymyr-13 avatar Jul 30 '16 12:07 Volodymyr-13