UI.Link
| Name |
Mandatory |
Description |
Default |
Type |
⬅️ Input |
|
The value that will be passed to the Action shards of the link. |
|
Any |
Output ➡️ |
|
Indicates whether the link was clicked during this frame. |
|
Bool |
Label |
No |
Optional label for the link. |
none |
StringNone |
Action |
No |
The shards to execute when the link is clicked. |
none |
NoneShard[Shard] |
Style |
No |
The text style. |
none |
{Any}Var({Any}) |
A clickable link.
Examples
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 | GFX.MainWindow(Contents: {
// Setup
GFX.DrawQueue = ui-draw-queue
GFX.UIPass(ui-draw-queue) >> render-steps
// UI
UI({
UI.CentralPanel({
UI.Link("Click here" {Msg("Hello")})
})
})
UI.Render(ui-draw-queue)
GFX.Render(Steps: render-steps)
})
|
[warning] Context has 2 buffers at release (2 released, 2 kept)
[warning] Context has 5 textures at release (1 released, 5 kept)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 | GFX.MainWindow(Contents: {
// Setup
GFX.DrawQueue = ui-draw-queue
GFX.UIPass(ui-draw-queue) >> render-steps
// UI
UI({
UI.CentralPanel({
UI.Link(
Label: "Click here"
Style: {italics: true}
Action: {Msg("Hello")}
)
})
})
UI.Render(ui-draw-queue)
GFX.Render(Steps: render-steps)
})
|
[warning] Context has 2 buffers at release (2 released, 2 kept)
[warning] Context has 5 textures at release (1 released, 5 kept)