Modding:GUIs: Difference between revisions

From Vintage Story Wiki
→‎GuiElementDialogTitleBar: mention GuiStyle.TitleBarHeight
(→‎GuiElementDialogTitleBar: mention GuiStyle.TitleBarHeight)
Line 212: Line 212:


GuiComposer factory functions:
GuiComposer factory functions:
* <code>.AddDialogTitleBar(string text, Action onClose = null, CairoFont font = null, ElementBounds bounds = null)</code>: The default null for the bounds will put the title bar in the correct place.
* <code>.AddDialogTitleBar(string text, Action onClose = null, CairoFont font = null, ElementBounds bounds = null)</code>: The default null for the bounds will put the title bar in the correct place. The default title bar height is <code>GuiStyle.TitleBarHeight</code>.


<gallery>
<gallery>
Confirmedusers
261

edits