Update and improve GUI demos

This commit is contained in:
Aaron Franke
2020-02-01 15:04:37 -05:00
parent 691f1d94d6
commit 84c8d6ef69
12 changed files with 119 additions and 195 deletions

View File

@@ -22,7 +22,7 @@ font_data = ExtResource( 4 )
size = 20
font_data = ExtResource( 5 )
[node name="Panel" type="Panel"]
[node name="RichTextBBCode" type="Panel"]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
@@ -55,20 +55,24 @@ custom_fonts/normal_font = SubResource( 4 )
bbcode_enabled = true
bbcode_text = "[b][u]Rich Text Test[/u][/b]
RichTextLabel is a flexible way of adding text to your game, with support for [i]italics[/i], [b]bold[/b] and [i][b]both[/b][/i]. [u]Underline[/u] works too.
RichTextLabel is a flexible way of adding text to your game, with support for [i]italics[/i], [b]bold[/b] and [i][b]both[/b][/i].
[u]Underline[/u] works too, including with [u][i]italics[/i][/u], [u][b]bold[/b][/u] and [u][i][b]both[/b][/i][/u].
It is also possible to include [img]res://unicorn_icon.png[/img] custom images, as well as [color=aqua][url=https://godotengine.org]custom URLs[/url][/color].
Left alignment is default,[center]but center alignment is supported,[/center][right]as well as right alignment.[/right]
[fill]Fill alignment is also supported, and allows writing very long text that will end up fitting the horizontal space entirely with words of joy.[/fill]
For full reference, [color=aqua][url=https://docs.godotengine.org/en/latest/tutorials/gui/bbcode_in_richtextlabel.html]check the documentation.[/url][/color]
"
text = "Rich Text Test
RichTextLabel is a flexible way of adding text to your game, with support for italics, bold and both. Underline works too.
RichTextLabel is a flexible way of adding text to your game, with support for italics, bold and both.
Underline works too, including with italics, bold and both.
It is also possible to include custom images, as well as custom URLs.
Left alignment is default,but center alignment is supported,as well as right alignment.
Fill alignment is also supported, and allows writing very long text that will end up fitting the horizontal space entirely with words of joy.
For full reference, check the documentation.