Update rich text example

This commit is contained in:
Insality
2023-02-08 21:54:32 +02:00
parent 5e92cf5ffc
commit a1d138522e
4 changed files with 40 additions and 46 deletions

View File

@@ -2599,7 +2599,7 @@ nodes {
id: "rich_text_5_NW/icon_prefab"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
pivot: PIVOT_N
adjust_mode: ADJUST_MODE_FIT
parent: "rich_text_5_NW/root"
layer: ""
@@ -2615,6 +2615,7 @@ nodes {
clipping_inverted: false
alpha: 1.0
overridden_fields: 3
overridden_fields: 14
template_node_child: true
size_mode: SIZE_MODE_AUTO
custom_type: 0
@@ -2893,7 +2894,7 @@ nodes {
id: "rich_text_5_N/icon_prefab"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
pivot: PIVOT_N
adjust_mode: ADJUST_MODE_FIT
parent: "rich_text_5_N/root"
layer: ""
@@ -2909,6 +2910,7 @@ nodes {
clipping_inverted: false
alpha: 1.0
overridden_fields: 3
overridden_fields: 14
template_node_child: true
size_mode: SIZE_MODE_AUTO
custom_type: 0
@@ -3187,7 +3189,7 @@ nodes {
id: "rich_text_5_NE/icon_prefab"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
pivot: PIVOT_N
adjust_mode: ADJUST_MODE_FIT
parent: "rich_text_5_NE/root"
layer: ""
@@ -3203,6 +3205,7 @@ nodes {
clipping_inverted: false
alpha: 1.0
overridden_fields: 3
overridden_fields: 14
template_node_child: true
size_mode: SIZE_MODE_AUTO
custom_type: 0
@@ -4362,7 +4365,7 @@ nodes {
id: "rich_text_5_SW/icon_prefab"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
pivot: PIVOT_S
adjust_mode: ADJUST_MODE_FIT
parent: "rich_text_5_SW/root"
layer: ""
@@ -4378,6 +4381,7 @@ nodes {
clipping_inverted: false
alpha: 1.0
overridden_fields: 3
overridden_fields: 14
template_node_child: true
size_mode: SIZE_MODE_AUTO
custom_type: 0
@@ -4656,7 +4660,7 @@ nodes {
id: "rich_text_5_S/icon_prefab"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
pivot: PIVOT_S
adjust_mode: ADJUST_MODE_FIT
parent: "rich_text_5_S/root"
layer: ""
@@ -4672,6 +4676,7 @@ nodes {
clipping_inverted: false
alpha: 1.0
overridden_fields: 3
overridden_fields: 14
template_node_child: true
size_mode: SIZE_MODE_AUTO
custom_type: 0
@@ -4950,7 +4955,7 @@ nodes {
id: "rich_text_5_SE/icon_prefab"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
pivot: PIVOT_S
adjust_mode: ADJUST_MODE_FIT
parent: "rich_text_5_SE/root"
layer: ""
@@ -4966,6 +4971,7 @@ nodes {
clipping_inverted: false
alpha: 1.0
overridden_fields: 3
overridden_fields: 14
template_node_child: true
size_mode: SIZE_MODE_AUTO
custom_type: 0

View File

@@ -48,15 +48,16 @@ function init(self)
self.druid:new(RichText, "rich_text_4_2"):set_text("Text with image <img=logo,48/>scaled in GUI")
self.druid:new(RichText, "rich_text_4_3"):set_text("Text with image <img=logo,48,48/>with fixed height")
self.druid:new(RichText, "rich_text_5_NW"):set_text("Example text for pivots <img=logo,24/>")
self.druid:new(RichText, "rich_text_5_N"):set_text("Example text for pivots <img=logo,24/>")
self.druid:new(RichText, "rich_text_5_NE"):set_text("Example text for pivots <img=logo,24/>")
self.druid:new(RichText, "rich_text_5_W"):set_text("Example text for pivots <img=logo,24/>")
self.druid:new(RichText, "rich_text_5_C"):set_text("Example text for pivots <img=logo,24/>")
self.druid:new(RichText, "rich_text_5_E"):set_text("Example text for pivots <img=logo,24/>")
self.druid:new(RichText, "rich_text_5_SW"):set_text("Example text for pivots <img=logo,24/>")
self.druid:new(RichText, "rich_text_5_S"):set_text("Example text for pivots <img=logo,24/>")
self.druid:new(RichText, "rich_text_5_SE"):set_text("Example text for pivots <img=logo,24/>")
-- Docs: For images vertical anchor takes from ImagePrefab
self.druid:new(RichText, "rich_text_5_NW"):set_text("Example text for pivots <img=logo,32/>")
self.druid:new(RichText, "rich_text_5_N"):set_text("Example text for pivots <img=logo,32/>")
self.druid:new(RichText, "rich_text_5_NE"):set_text("Example text for pivots <img=logo,32/>")
self.druid:new(RichText, "rich_text_5_W"):set_text("Example text for pivots <img=logo,32/>")
self.druid:new(RichText, "rich_text_5_C"):set_text("Example text for pivots <img=logo,32/>")
self.druid:new(RichText, "rich_text_5_E"):set_text("Example text for pivots <img=logo,32/>")
self.druid:new(RichText, "rich_text_5_SW"):set_text("Example text for pivots <img=logo,32/>")
self.druid:new(RichText, "rich_text_5_S"):set_text("Example text for pivots <img=logo,32/>")
self.druid:new(RichText, "rich_text_5_SE"):set_text("Example text for pivots <img=logo,32/>")
--self.rich_text_3 = self.druid:new(RichText, "rich_text_3")
--local words3 = self.rich_text_3:set_text("Energy is full. To restore")