Driftwood2D / Driftwood

Driftwood 2D Tiling Game Engine and Development Suite
http://tileengine.org/
MIT License
24 stars 1 forks source link

Widget loader margin and padding #177

Open seisatsu opened 7 years ago

seisatsu commented 7 years ago

Add a "padding" property and a "margin" property, each being a list with four values for top, right, bottom, and left.

Padding is the inside border and margin is the outside border.

seisatsu commented 7 years ago

No longer relevant to this repository.

seisatsu commented 7 years ago

This code was moved into the core engine and the issue is again relevant.

pmer commented 7 years ago

Does Driftwood have a widget layout algorithm right now? I.e., do we have something that will use margin yet?

seisatsu commented 7 years ago

Yes, a rudimentary one. That code is now in widgettree.py in the main engine. See the widgets folder in the uitest project for an example of widget tree descriptors.