added support for dynamically sized (and placed) editor palette
authorHolger Schemel <info@artsoft.org>
Sat, 1 Dec 2018 10:50:32 +0000 (11:50 +0100)
committerHolger Schemel <info@artsoft.org>
Sat, 1 Dec 2018 11:03:40 +0000 (12:03 +0100)
When using the value "-1" for columns or rows of the editor palette
(that is, values "editor.palette.cols" and "editor.palette.rows"),
these numbers are dynamically calculated according to the size of the
editor playfield area.

When setting "editor.palette.x" or "editor.palette.y" to "-1", also
the position of the editor palette is dynamically calculated (to be
centered within the playfield area).

(As these values for columns and rows are used at a very early stage
in the level editor to allocate memory for palette buttons, make sure
that no negative numbers are used here for memory calculations.)


No differences found