script: "/example/examples/custom/rich_text/rich_text.gui_script" fonts { name: "game" font: "/example/assets/fonts/game.font" } textures { name: "kenney" texture: "/example/assets/images/kenney.atlas" } background_color { x: 0.0 y: 0.0 z: 0.0 w: 0.0 } nodes { position { x: 300.0 y: 415.0 z: 0.0 w: 1.0 } rotation { x: 0.0 y: 0.0 z: 0.0 w: 1.0 } scale { x: 1.0 y: 1.0 z: 1.0 w: 1.0 } size { x: 600.0 y: 830.0 z: 0.0 w: 1.0 } color { x: 1.0 y: 1.0 z: 1.0 w: 1.0 } type: TYPE_BOX blend_mode: BLEND_MODE_ALPHA texture: "kenney/empty" id: "root" xanchor: XANCHOR_NONE yanchor: YANCHOR_NONE pivot: PIVOT_CENTER adjust_mode: ADJUST_MODE_FIT layer: "" inherit_alpha: true slice9 { x: 0.0 y: 0.0 z: 0.0 w: 0.0 } clipping_mode: CLIPPING_MODE_NONE clipping_visible: true clipping_inverted: false alpha: 1.0 template_node_child: false size_mode: SIZE_MODE_MANUAL custom_type: 0 enabled: true visible: true } nodes { position { x: 0.0 y: 300.0 z: 0.0 w: 1.0 } rotation { x: 0.0 y: 0.0 z: 0.0 w: 1.0 } scale { x: 1.0 y: 1.0 z: 1.0 w: 1.0 } size { x: 400.0 y: 150.0 z: 0.0 w: 1.0 } color { x: 0.101960786 y: 0.3019608 z: 0.3019608 w: 1.0 } type: TYPE_BOX blend_mode: BLEND_MODE_ALPHA texture: "" id: "case1" xanchor: XANCHOR_NONE yanchor: YANCHOR_NONE pivot: PIVOT_CENTER adjust_mode: ADJUST_MODE_FIT parent: "root" layer: "" inherit_alpha: true slice9 { x: 0.0 y: 0.0 z: 0.0 w: 0.0 } clipping_mode: CLIPPING_MODE_NONE clipping_visible: true clipping_inverted: false alpha: 1.0 template_node_child: false size_mode: SIZE_MODE_MANUAL custom_type: 0 enabled: true visible: true } nodes { position { x: 0.0 y: 0.0 z: 0.0 w: 1.0 } rotation { x: 0.0 y: 0.0 z: 0.0 w: 1.0 } scale { x: 1.0 y: 1.0 z: 1.0 w: 1.0 } size { x: 200.0 y: 100.0 z: 0.0 w: 1.0 } color { x: 1.0 y: 1.0 z: 1.0 w: 1.0 } type: TYPE_TEMPLATE id: "rich_text_1" parent: "case1" layer: "" inherit_alpha: true alpha: 1.0 template: "/druid/custom/rich_text/rich_text.gui" template_node_child: false custom_type: 0 enabled: true } nodes { position { x: 0.0 y: 0.0 z: 0.0 w: 1.0 } rotation { x: 0.0 y: 0.0 z: 0.0 w: 1.0 } scale { x: 1.0 y: 1.0 z: 1.0 w: 1.0 } size { x: 400.0 y: 150.0 z: 0.0 w: 1.0 } color { x: 1.0 y: 1.0 z: 1.0 w: 1.0 } type: TYPE_BOX blend_mode: BLEND_MODE_ALPHA texture: "" id: "rich_text_1/root" xanchor: XANCHOR_NONE yanchor: YANCHOR_NONE pivot: PIVOT_CENTER adjust_mode: ADJUST_MODE_FIT parent: "rich_text_1" layer: "" inherit_alpha: true slice9 { x: 0.0 y: 0.0 z: 0.0 w: 0.0 } clipping_mode: CLIPPING_MODE_NONE clipping_visible: true clipping_inverted: false alpha: 1.0 overridden_fields: 4 template_node_child: true size_mode: SIZE_MODE_MANUAL custom_type: 0 enabled: true visible: false } nodes { position { x: 0.0 y: 0.0 z: 0.0 w: 1.0 } rotation { x: 0.0 y: 0.0 z: 0.0 w: 1.0 } scale { x: 1.0 y: 1.0 z: 1.0 w: 1.0 } size { x: 400.0 y: 150.0 z: 0.0 w: 1.0 } color { x: 1.0 y: 1.0 z: 1.0 w: 1.0 } type: TYPE_TEXT blend_mode: BLEND_MODE_ALPHA text: "Rich text" font: "game" id: "rich_text_1/text_prefab" xanchor: XANCHOR_NONE yanchor: YANCHOR_NONE pivot: PIVOT_CENTER outline { x: 0.0 y: 0.0 z: 0.0 w: 1.0 } shadow { x: 0.0 y: 0.0 z: 0.0 w: 1.0 } adjust_mode: ADJUST_MODE_FIT line_break: true parent: "rich_text_1/root" layer: "" inherit_alpha: true alpha: 1.0 outline_alpha: 0.75 shadow_alpha: 0.0 overridden_fields: 4 overridden_fields: 18 overridden_fields: 31 template_node_child: true text_leading: 1.0 text_tracking: 0.0 custom_type: 0 enabled: true visible: true } nodes { position { x: 110.0 y: 0.0 z: 0.0 w: 1.0 } rotation { x: 0.0 y: 0.0 z: 0.0 w: 1.0 } scale { x: 1.0 y: 1.0 z: 1.0 w: 1.0 } size { x: 21.0 y: 20.0 z: 0.0 w: 1.0 } color { x: 1.0 y: 1.0 z: 1.0 w: 1.0 } type: TYPE_BOX blend_mode: BLEND_MODE_ALPHA texture: "items/checkmark" id: "rich_text_1/icon_prefab" xanchor: XANCHOR_NONE yanchor: YANCHOR_NONE pivot: PIVOT_CENTER adjust_mode: ADJUST_MODE_FIT parent: "rich_text_1/root" layer: "" inherit_alpha: true slice9 { x: 0.0 y: 0.0 z: 0.0 w: 0.0 } clipping_mode: CLIPPING_MODE_NONE clipping_visible: true clipping_inverted: false alpha: 1.0 template_node_child: true size_mode: SIZE_MODE_AUTO custom_type: 0 enabled: true visible: true } nodes { position { x: 0.0 y: 180.0 z: 0.0 w: 1.0 } rotation { x: 0.0 y: 0.0 z: 0.0 w: 1.0 } scale { x: 1.0 y: 1.0 z: 1.0 w: 1.0 } size { x: 400.0 y: 50.0 z: 0.0 w: 1.0 } color { x: 0.101960786 y: 0.3019608 z: 0.3019608 w: 1.0 } type: TYPE_BOX blend_mode: BLEND_MODE_ALPHA texture: "" id: "case2" xanchor: XANCHOR_NONE yanchor: YANCHOR_NONE pivot: PIVOT_CENTER adjust_mode: ADJUST_MODE_FIT parent: "root" layer: "" inherit_alpha: true slice9 { x: 0.0 y: 0.0 z: 0.0 w: 0.0 } clipping_mode: CLIPPING_MODE_NONE clipping_visible: true clipping_inverted: false alpha: 1.0 template_node_child: false size_mode: SIZE_MODE_MANUAL custom_type: 0 enabled: true visible: true } nodes { position { x: 0.0 y: 0.0 z: 0.0 w: 1.0 } rotation { x: 0.0 y: 0.0 z: 0.0 w: 1.0 } scale { x: 1.0 y: 1.0 z: 1.0 w: 1.0 } size { x: 200.0 y: 100.0 z: 0.0 w: 1.0 } color { x: 1.0 y: 1.0 z: 1.0 w: 1.0 } type: TYPE_TEMPLATE id: "rich_text_2" parent: "case2" layer: "" inherit_alpha: true alpha: 1.0 template: "/druid/custom/rich_text/rich_text.gui" template_node_child: false custom_type: 0 enabled: true } nodes { position { x: 0.0 y: 0.0 z: 0.0 w: 1.0 } rotation { x: 0.0 y: 0.0 z: 0.0 w: 1.0 } scale { x: 1.0 y: 1.0 z: 1.0 w: 1.0 } size { x: 400.0 y: 50.0 z: 0.0 w: 1.0 } color { x: 1.0 y: 1.0 z: 1.0 w: 1.0 } type: TYPE_BOX blend_mode: BLEND_MODE_ALPHA texture: "" id: "rich_text_2/root" xanchor: XANCHOR_NONE yanchor: YANCHOR_NONE pivot: PIVOT_CENTER adjust_mode: ADJUST_MODE_FIT parent: "rich_text_2" layer: "" inherit_alpha: true slice9 { x: 0.0 y: 0.0 z: 0.0 w: 0.0 } clipping_mode: CLIPPING_MODE_NONE clipping_visible: true clipping_inverted: false alpha: 1.0 overridden_fields: 4 template_node_child: true size_mode: SIZE_MODE_MANUAL custom_type: 0 enabled: true visible: false } nodes { position { x: 0.0 y: 0.0 z: 0.0 w: 1.0 } rotation { x: 0.0 y: 0.0 z: 0.0 w: 1.0 } scale { x: 0.75 y: 0.75 z: 1.0 w: 1.0 } size { x: 550.0 y: 50.0 z: 0.0 w: 1.0 } color { x: 1.0 y: 0.9019608 z: 0.6 w: 1.0 } type: TYPE_TEXT blend_mode: BLEND_MODE_ALPHA text: "Rich text" font: "game" id: "rich_text_2/text_prefab" xanchor: XANCHOR_NONE yanchor: YANCHOR_NONE pivot: PIVOT_CENTER outline { x: 0.0 y: 0.0 z: 0.0 w: 1.0 } shadow { x: 0.5019608 y: 0.7019608 z: 0.7019608 w: 1.0 } adjust_mode: ADJUST_MODE_FIT line_break: true parent: "rich_text_2/root" layer: "" inherit_alpha: true alpha: 1.0 outline_alpha: 0.0 shadow_alpha: 0.0 overridden_fields: 3 overridden_fields: 4 overridden_fields: 5 overridden_fields: 16 overridden_fields: 18 overridden_fields: 32 template_node_child: true text_leading: 1.0 text_tracking: 0.0 custom_type: 0 enabled: true visible: true } nodes { position { x: 110.0 y: 0.0 z: 0.0 w: 1.0 } rotation { x: 0.0 y: 0.0 z: 0.0 w: 1.0 } scale { x: 0.75 y: 0.75 z: 1.0 w: 1.0 } size { x: 21.0 y: 20.0 z: 0.0 w: 1.0 } color { x: 1.0 y: 1.0 z: 1.0 w: 1.0 } type: TYPE_BOX blend_mode: BLEND_MODE_ALPHA texture: "items/checkmark" id: "rich_text_2/icon_prefab" xanchor: XANCHOR_NONE yanchor: YANCHOR_NONE pivot: PIVOT_CENTER adjust_mode: ADJUST_MODE_FIT parent: "rich_text_2/root" layer: "" inherit_alpha: true slice9 { x: 0.0 y: 0.0 z: 0.0 w: 0.0 } clipping_mode: CLIPPING_MODE_NONE clipping_visible: true clipping_inverted: false alpha: 1.0 overridden_fields: 3 template_node_child: true size_mode: SIZE_MODE_AUTO custom_type: 0 enabled: true visible: true } nodes { position { x: 0.0 y: 110.0 z: 0.0 w: 1.0 } rotation { x: 0.0 y: 0.0 z: 0.0 w: 1.0 } scale { x: 1.0 y: 1.0 z: 1.0 w: 1.0 } size { x: 400.0 y: 50.0 z: 0.0 w: 1.0 } color { x: 0.101960786 y: 0.3019608 z: 0.3019608 w: 1.0 } type: TYPE_BOX blend_mode: BLEND_MODE_ALPHA texture: "" id: "case3" xanchor: XANCHOR_NONE yanchor: YANCHOR_NONE pivot: PIVOT_CENTER adjust_mode: ADJUST_MODE_FIT parent: "root" layer: "" inherit_alpha: true slice9 { x: 0.0 y: 0.0 z: 0.0 w: 0.0 } clipping_mode: CLIPPING_MODE_NONE clipping_visible: true clipping_inverted: false alpha: 1.0 template_node_child: false size_mode: SIZE_MODE_MANUAL custom_type: 0 enabled: true visible: true } nodes { position { x: 0.0 y: 0.0 z: 0.0 w: 1.0 } rotation { x: 0.0 y: 0.0 z: 0.0 w: 1.0 } scale { x: 1.0 y: 1.0 z: 1.0 w: 1.0 } size { x: 200.0 y: 100.0 z: 0.0 w: 1.0 } color { x: 1.0 y: 1.0 z: 1.0 w: 1.0 } type: TYPE_TEMPLATE id: "rich_text_3" parent: "case3" layer: "" inherit_alpha: true alpha: 1.0 template: "/druid/custom/rich_text/rich_text.gui" template_node_child: false custom_type: 0 enabled: true } nodes { position { x: 0.0 y: 0.0 z: 0.0 w: 1.0 } rotation { x: 0.0 y: 0.0 z: 0.0 w: 1.0 } scale { x: 1.0 y: 1.0 z: 1.0 w: 1.0 } size { x: 400.0 y: 50.0 z: 0.0 w: 1.0 } color { x: 1.0 y: 1.0 z: 1.0 w: 1.0 } type: TYPE_BOX blend_mode: BLEND_MODE_ALPHA texture: "" id: "rich_text_3/root" xanchor: XANCHOR_NONE yanchor: YANCHOR_NONE pivot: PIVOT_CENTER adjust_mode: ADJUST_MODE_FIT parent: "rich_text_3" layer: "" inherit_alpha: true slice9 { x: 0.0 y: 0.0 z: 0.0 w: 0.0 } clipping_mode: CLIPPING_MODE_NONE clipping_visible: true clipping_inverted: false alpha: 1.0 overridden_fields: 4 template_node_child: true size_mode: SIZE_MODE_MANUAL custom_type: 0 enabled: true visible: false } nodes { position { x: 0.0 y: 0.0 z: 0.0 w: 1.0 } rotation { x: 0.0 y: 0.0 z: 0.0 w: 1.0 } scale { x: 0.75 y: 0.75 z: 1.0 w: 1.0 } size { x: 550.0 y: 50.0 z: 0.0 w: 1.0 } color { x: 1.0 y: 0.9019608 z: 0.6 w: 1.0 } type: TYPE_TEXT blend_mode: BLEND_MODE_ALPHA text: "Rich text" font: "game" id: "rich_text_3/text_prefab" xanchor: XANCHOR_NONE yanchor: YANCHOR_NONE pivot: PIVOT_CENTER outline { x: 0.0 y: 0.0 z: 0.0 w: 1.0 } shadow { x: 0.5019608 y: 0.7019608 z: 0.7019608 w: 1.0 } adjust_mode: ADJUST_MODE_FIT line_break: true parent: "rich_text_3/root" layer: "" inherit_alpha: true alpha: 1.0 outline_alpha: 0.0 shadow_alpha: 0.0 overridden_fields: 3 overridden_fields: 4 overridden_fields: 5 overridden_fields: 16 overridden_fields: 18 overridden_fields: 32 template_node_child: true text_leading: 1.0 text_tracking: 0.0 custom_type: 0 enabled: true visible: true } nodes { position { x: 110.0 y: 0.0 z: 0.0 w: 1.0 } rotation { x: 0.0 y: 0.0 z: 0.0 w: 1.0 } scale { x: 0.75 y: 0.75 z: 1.0 w: 1.0 } size { x: 21.0 y: 20.0 z: 0.0 w: 1.0 } color { x: 1.0 y: 1.0 z: 1.0 w: 1.0 } type: TYPE_BOX blend_mode: BLEND_MODE_ALPHA texture: "items/checkmark" id: "rich_text_3/icon_prefab" xanchor: XANCHOR_NONE yanchor: YANCHOR_NONE pivot: PIVOT_CENTER adjust_mode: ADJUST_MODE_FIT parent: "rich_text_3/root" layer: "" inherit_alpha: true slice9 { x: 0.0 y: 0.0 z: 0.0 w: 0.0 } clipping_mode: CLIPPING_MODE_NONE clipping_visible: true clipping_inverted: false alpha: 1.0 overridden_fields: 3 template_node_child: true size_mode: SIZE_MODE_AUTO custom_type: 0 enabled: true visible: true } nodes { position { x: 0.0 y: 40.0 z: 0.0 w: 1.0 } rotation { x: 0.0 y: 0.0 z: 0.0 w: 1.0 } scale { x: 1.0 y: 1.0 z: 1.0 w: 1.0 } size { x: 400.0 y: 50.0 z: 0.0 w: 1.0 } color { x: 0.101960786 y: 0.3019608 z: 0.3019608 w: 1.0 } type: TYPE_BOX blend_mode: BLEND_MODE_ALPHA texture: "" id: "case4" xanchor: XANCHOR_NONE yanchor: YANCHOR_NONE pivot: PIVOT_CENTER adjust_mode: ADJUST_MODE_FIT parent: "root" layer: "" inherit_alpha: true slice9 { x: 0.0 y: 0.0 z: 0.0 w: 0.0 } clipping_mode: CLIPPING_MODE_NONE clipping_visible: true clipping_inverted: false alpha: 1.0 template_node_child: false size_mode: SIZE_MODE_MANUAL custom_type: 0 enabled: true visible: true } nodes { position { x: 0.0 y: 0.0 z: 0.0 w: 1.0 } rotation { x: 0.0 y: 0.0 z: 0.0 w: 1.0 } scale { x: 0.75 y: 0.75 z: 1.0 w: 1.0 } size { x: 550.0 y: 50.0 z: 0.0 w: 1.0 } color { x: 1.0 y: 0.9019608 z: 0.6 w: 1.0 } type: TYPE_TEXT blend_mode: BLEND_MODE_ALPHA text: "Energy is full to restore" font: "game" id: "usual_text" xanchor: XANCHOR_NONE yanchor: YANCHOR_NONE pivot: PIVOT_CENTER outline { x: 0.0 y: 0.0 z: 0.0 w: 1.0 } shadow { x: 0.5019608 y: 0.7019608 z: 0.7019608 w: 1.0 } adjust_mode: ADJUST_MODE_FIT line_break: true parent: "case4" layer: "" inherit_alpha: true alpha: 1.0 outline_alpha: 0.0 shadow_alpha: 0.0 template_node_child: false text_leading: 1.0 text_tracking: 0.0 custom_type: 0 enabled: true visible: true } layers { name: "image" } layers { name: "text" } material: "/builtins/materials/gui.material" adjust_reference: ADJUST_REFERENCE_PARENT max_nodes: 512