Skip to content

UI.Area

Name - Description Default Type
<input> Any
<output> Any
Contents The UI contents. None Shard[Shard]
Position Absolute UI position; or when anchor is set, relative offset. (X/Y) None Float2&Float2
Pivot The pivot for the inner UI None Anchor&Anchor
Anchor Side of the screen to anchor the UI to. None Anchor&Anchor
Order Paint layer to be used for this UI. Default is background None Order

Places UI element at a specific position.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
(GFX.MainWindow
 :Contents
 (->
  (Setup
   (GFX.DrawQueue) >= .ui-draw-queue
   (GFX.UIPass .ui-draw-queue) >> .render-steps)
  (UI
   .ui-draw-queue
   (->
    (UI.Area
     :Anchor Anchor.TopLeft
     :Contents
     (->
      "TopLeft" (UI.Label)))
    (UI.Area
     :Anchor Anchor.Top
     :Contents
     (->
      "Top" (UI.Label)))
    (UI.Area
     :Anchor Anchor.TopRight
     :Contents
     (->
      "TopRight" (UI.Label :Wrap false)))
    (UI.Area
     :Anchor Anchor.Left
     :Contents
     (->
      "Left" (UI.Label)))
    (UI.Area
     :Anchor Anchor.Center
     :Contents
     (->
      "Center" (UI.Label)))
    (UI.Area
     :Anchor Anchor.Right
     :Contents
     (->
      "Right" (UI.Label)))
    (UI.Area
     :Anchor Anchor.BottomLeft
     :Contents
     (->
      "BottomLeft" (UI.Label)))
    (UI.Area
     :Anchor Anchor.Bottom
     :Contents
     (->
      "Bottom" (UI.Label)))
    (UI.Area
     :Anchor Anchor.BottomRight
     :Contents
     (->
      "BottomRight" (UI.Label :Wrap false)))))

  (GFX.Render :Steps .render-steps)))