Modding:GUIs: Difference between revisions

From Vintage Story Wiki
→‎Sizing: formatting
(→‎Alignment: formatting)
(→‎Sizing: formatting)
Line 144: Line 144:
=== Sizing ===
=== Sizing ===


`ElementSizing.FitToChildren` tells a parent to automatically size itself so that it contains the bottom-right corner of the padding box for all of its children. Note that unlike the HTML flow layout, the VS layout does not prevent the children from overlapping. So the sizing algorithm more or less sizing the parent to fit its largest child.
<code>ElementSizing.FitToChildren</code> tells a parent to automatically size itself so that it contains the bottom-right corner of the padding box for all of its children. Note that unlike the HTML flow layout, the VS layout does not prevent the children from overlapping. So the sizing algorithm is more or less sizing the parent to fit its largest child.


== GUI Basics == <!--T:11-->
== GUI Basics == <!--T:11-->
Confirmedusers
261

edits