mirror of
https://github.com/Insality/druid
synced 2025-09-27 10:02:19 +02:00
Update rich text example
This commit is contained in:
@@ -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
|
||||
|
@@ -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")
|
||||
|
Reference in New Issue
Block a user