Modding:GUIs: Difference between revisions
From Vintage Story Wiki
(→Mode 1: Element and Composer Outlines: display the image in frame mode so that the caption is shown) |
(→Dialog Outline Modes: show the image in frame mode so that the caption is included) |
||
Line 23: | Line 23: | ||
In addition to the mode 2 rectangles around GuiElements (explained below), bold white rectangles are drawn around GuiComposers. | In addition to the mode 2 rectangles around GuiElements (explained below), bold white rectangles are drawn around GuiComposers. | ||
[[File:Settings-controls tab-mode 1.png|class=pixelated|frame| | [[File:Settings-controls tab-mode 1.png|class=pixelated|frame|none|Controls dialog in outline mode 1<br>The outer, bold white rectangle is from a GuiComposer.]] | ||
=== Mode 2: Element Outlines === | === Mode 2: Element Outlines === | ||
The bounding boxes of GuiElements are drawn as rectangles. The rectangle color is determined by the possibly overridden implementation of [https://apidocs.vintagestory.at/api/Vintagestory.API.Client.GuiElement.html#Vintagestory_API_Client_GuiElement_OutlineColor GuiElement.OutlineColor], which returns a color in [https://github.com/anegostudios/vsapi/blob/9bf26b71970ff2168d6f8534cf6ee4a914087511/Math/ColorUtil.cs#L505 0xAARRGGBB format]. | The bounding boxes of GuiElements are drawn as rectangles. The rectangle color is determined by the possibly overridden implementation of [https://apidocs.vintagestory.at/api/Vintagestory.API.Client.GuiElement.html#Vintagestory_API_Client_GuiElement_OutlineColor GuiElement.OutlineColor], which returns a color in [https://github.com/anegostudios/vsapi/blob/9bf26b71970ff2168d6f8534cf6ee4a914087511/Math/ColorUtil.cs#L505 0xAARRGGBB format]. | ||
[[File:Settings-controls tab-mode 2.png|class=pixelated|Controls dialog in outline mode 2]] | [[File:Settings-controls tab-mode 2.png|class=pixelated|frame|none|Controls dialog in outline mode 2]] | ||
{| class="wikitable" | {| class="wikitable" |