File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
TextEditorExample/Data/Scripts/TextEditorExample Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ protected override void Layout()
7171
7272 protected override void HandleInput ( Vector2 cursorPos )
7373 {
74- /* TextBoard Offsets 101 :
74+ /* TextBoard Offsets:
7575
7676 The TextBoard allows you to set an offset for the text being rendered starting from the
7777 center of the element. Text outside the bounds of the element will not be drawn.
@@ -85,10 +85,6 @@ the opposite direction.
8585
8686 By default, the visible range of text will start at the first line on the first character.
8787 It starts in the upper left hand corner.
88-
89- If you wanted to move to the last line to the top of the element, you'd need to set a Y-offset
90- of TextSize.Y - lineSize.Y. If you wanted to move the last character in a line to the right side
91- of the element, you'd set an X-offset of -charOffset.X + charSize.X / 2f.
9288 */
9389
9490 ITextBoard textBoard = text . TextBoard ;
Original file line number Diff line number Diff line change @@ -128,6 +128,13 @@ public EditorToolBar(HudParentBase parent = null) : base(parent)
128128 Text = "I" ,
129129 } ;
130130
131+ /* HudChain is useful for organizing collections of elements into straight lines with regular spacing,
132+ * either vertically horizontally. In this case, I'm organizing elements horizontally from left to right
133+ * in the same order indicated by the collection initializer below.
134+ *
135+ * HudChain and its related types, like ScrollBox and the SelectionBox types, are powerful tools for
136+ * organizing UI elements, especially when used in conjunction with oneanother.
137+ */
131138 layout = new HudChain ( false , this ) // Set to alignVertical false to align the elements horizontally
132139 {
133140 // Automatically resize the height of the elements to match that of the chain and allow the chain to be
You can’t perform that action at this time.
0 commit comments