Editor elements' "tile_size" problem

Found a bug in R'n'D? Report it here!

Moderators: Flumminator, Zomis

Post Reply
User avatar
Eizzoux
Posts: 99
Joined: Wed Oct 30, 2013 5:32 am
Location: Russia
Contact:

Editor elements' "tile_size" problem

Post by Eizzoux » Sat Aug 13, 2016 11:54 am

Maybe it's not a bug, but it really makes a problems for customizing an editor. I just want to change the sizes of elements from editor's palette slots from 16x16 (as default) to 40x40 (needed size). But when I wrote this:

Code: Select all

editor.palette.element_left.tile_size:     40
editor.palette.element_right.tile_size:    40
editor.palette.element_middle.tile_size:   40
editor.palette.button.width:               40
editor.palette.button.height:              40
...I've got them only in size '32x32'. What's the problem? Is that a size limit for palette slots?
Nothing in here...*

User avatar
Holger
Site Admin
Posts: 2657
Joined: Fri Jun 18, 2004 4:13 pm
Location: Germany
Contact:

Re: Editor elements' "tile_size" problem

Post by Holger » Wed Aug 24, 2016 5:46 pm

Unfortunately, there is only support for the values "16" and "32" for ".tile_size" for the elements on the palette buttons in the editor. (Values of 32 or larger will result in 32x32 button elements, other values will result in 16x16 button elements.)

For element sizes during gameplay, also other tile sizes are supported, though...

User avatar
Eizzoux
Posts: 99
Joined: Wed Oct 30, 2013 5:32 am
Location: Russia
Contact:

Re: Editor elements' "tile_size" problem

Post by Eizzoux » Sun Oct 30, 2016 8:36 pm

Holger wrote:Unfortunately, there is only support for the values "16" and "32" for ".tile_size" for the elements on the palette buttons in the editor. (Values of 32 or larger will result in 32x32 button elements, other values will result in 16x16 button elements.)

For element sizes during gameplay, also other tile sizes are supported, though...
Oh, well. Will you add more supported values for editor tile sizes? Or is this nearly impossible?
Nothing in here...*

User avatar
Holger
Site Admin
Posts: 2657
Joined: Fri Jun 18, 2004 4:13 pm
Location: Germany
Contact:

Re: Editor elements' "tile_size" problem

Post by Holger » Mon Oct 31, 2016 4:00 pm

It is possible, of course, but I cannot see a need for it at the moment. Sizes like 8x8 and smaller would be too small, and sizes like 64x64 and larger seem to be a bit too large (as probably too few editor elements would be on the screen for serious level editing).

EDIT: And support for "odd" sizes like 40x40 would indeed need some additional changes, as the game internally scales tiles to power-of-two sizes at the moment.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest