script: "/example/examples/custom/rich_input/rich_input.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 } nodes { position { x: 0.0 y: 370.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: 700.0 y: 60.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 Input custom component" font: "game" id: "text_hint_horizontal" xanchor: XANCHOR_NONE yanchor: YANCHOR_NONE pivot: PIVOT_CENTER outline { x: 0.0 y: 0.0 z: 0.0 w: 1.0 } shadow { x: 1.0 y: 1.0 z: 1.0 w: 1.0 } adjust_mode: ADJUST_MODE_FIT line_break: false parent: "root" layer: "" inherit_alpha: true alpha: 1.0 outline_alpha: 1.0 shadow_alpha: 0.0 template_node_child: false text_leading: 1.0 text_tracking: 0.0 } nodes { position { x: 0.0 y: 230.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_input" parent: "root" layer: "" inherit_alpha: true alpha: 1.0 template: "/druid/custom/rich_input/rich_input.gui" template_node_child: 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: 1.0 y: 1.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: "rich_input/root" xanchor: XANCHOR_NONE yanchor: YANCHOR_NONE pivot: PIVOT_CENTER adjust_mode: ADJUST_MODE_FIT parent: "rich_input" 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 } 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: 190.0 y: 45.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/progress_back" id: "rich_input/button" xanchor: XANCHOR_NONE yanchor: YANCHOR_NONE pivot: PIVOT_CENTER adjust_mode: ADJUST_MODE_FIT parent: "rich_input/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 } 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.5 y: 0.5 z: 1.0 w: 1.0 } size { x: 300.0 y: 60.0 z: 0.0 w: 1.0 } color { x: 0.9490196 y: 0.9490196 z: 0.9490196 w: 1.0 } type: TYPE_TEXT blend_mode: BLEND_MODE_ALPHA text: "Placeholder" font: "game" id: "rich_input/placeholder_text" xanchor: XANCHOR_NONE yanchor: YANCHOR_NONE pivot: PIVOT_CENTER outline { x: 0.4 y: 0.4 z: 0.4 w: 1.0 } shadow { x: 1.0 y: 1.0 z: 1.0 w: 1.0 } adjust_mode: ADJUST_MODE_FIT line_break: false parent: "rich_input/button" layer: "" inherit_alpha: true alpha: 1.0 outline_alpha: 1.0 shadow_alpha: 0.0 template_node_child: true text_leading: 1.0 text_tracking: 0.0 } 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.6 y: 0.6 z: 1.0 w: 1.0 } size { x: 300.0 y: 60.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: "User input" font: "game" id: "rich_input/input_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: 1.0 y: 1.0 z: 1.0 w: 1.0 } adjust_mode: ADJUST_MODE_FIT line_break: false parent: "rich_input/button" layer: "" inherit_alpha: true alpha: 1.0 outline_alpha: 1.0 shadow_alpha: 0.0 template_node_child: true text_leading: 1.0 text_tracking: 0.0 } nodes { position { x: 67.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.6 y: 0.6 z: 1.0 w: 1.0 } size { x: 1.0 y: 1.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: "rich_input/cursor_node" xanchor: XANCHOR_NONE yanchor: YANCHOR_NONE pivot: PIVOT_CENTER adjust_mode: ADJUST_MODE_FIT parent: "rich_input/button" 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 } nodes { position { x: 0.0 y: 2.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: 20.0 y: 40.0 z: 0.0 w: 1.0 } color { x: 0.2 y: 0.2 z: 0.2 w: 1.0 } type: TYPE_TEXT blend_mode: BLEND_MODE_ALPHA text: "|" font: "game" id: "rich_input/cursor_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: 1.0 y: 1.0 z: 1.0 w: 1.0 } adjust_mode: ADJUST_MODE_FIT line_break: false parent: "rich_input/cursor_node" layer: "" inherit_alpha: true alpha: 1.0 outline_alpha: 0.0 shadow_alpha: 0.0 template_node_child: true text_leading: 1.0 text_tracking: 0.0 } layers { name: "image" } layers { name: "text" } material: "/builtins/materials/gui.material" adjust_reference: ADJUST_REFERENCE_PARENT max_nodes: 512