script: "/example/examples/texts/texts_adjust/texts_adjust.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: 160.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: "info_texts" 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_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: 250.0 y: 2000.0 z: 0.0 w: 1.0 } color { x: 1.0 y: 0.9019608 z: 0.6 w: 1.0 } type: TYPE_BOX blend_mode: BLEND_MODE_ALPHA texture: "" id: "text_width" xanchor: XANCHOR_NONE yanchor: YANCHOR_NONE pivot: PIVOT_CENTER adjust_mode: ADJUST_MODE_FIT parent: "info_texts" 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: 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: 250.0 y: 80.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: "I\'m text with scale adjust" font: "game" id: "text_scale" 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: "info_texts" 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: 200.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: 250.0 y: 80.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: "I trim all text, what is outside of my zone" font: "game" id: "text_trim" 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: "info_texts" 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: 100.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: 250.0 y: 80.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: "This text is without any adjust, like simple Text node" font: "game" id: "text_no_adjust" 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: "info_texts" 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: 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: 250.0 y: 80.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: "I have limit to downscale, when like no adjust" font: "game" id: "text_scale_limited" 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: "info_texts" 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: -100.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: 250.0 y: 300.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: "stencil_for_text_scroll" xanchor: XANCHOR_NONE yanchor: YANCHOR_NONE pivot: PIVOT_CENTER adjust_mode: ADJUST_MODE_FIT parent: "info_texts" layer: "" inherit_alpha: true slice9 { x: 0.0 y: 0.0 z: 0.0 w: 0.0 } clipping_mode: CLIPPING_MODE_STENCIL clipping_visible: true clipping_inverted: false alpha: 1.0 template_node_child: false size_mode: SIZE_MODE_MANUAL } nodes { position { x: -125.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: 250.0 y: 80.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: "This text scroll horizontally, when size is bigger of defined" font: "game" id: "text_scroll" xanchor: XANCHOR_NONE yanchor: YANCHOR_NONE pivot: PIVOT_W 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: "stencil_for_text_scroll" 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: -125.0 y: -100.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: 250.0 y: 80.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: "I\'m first downscale, then scroll behaviour" font: "game" id: "text_scroll_scale" xanchor: XANCHOR_NONE yanchor: YANCHOR_NONE pivot: PIVOT_W 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: "stencil_for_text_scroll" 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: -160.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: "info_texts_types" 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_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: 250.0 y: 2000.0 z: 0.0 w: 1.0 } color { x: 1.0 y: 0.7019608 z: 0.6 w: 1.0 } type: TYPE_BOX blend_mode: BLEND_MODE_ALPHA texture: "" id: "background_color_text" xanchor: XANCHOR_NONE yanchor: YANCHOR_NONE pivot: PIVOT_CENTER adjust_mode: ADJUST_MODE_FIT parent: "info_texts_types" 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: -125.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: 0.75 y: 0.75 z: 1.0 w: 1.0 } size { x: 250.0 y: 80.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: "Scale (default):" font: "game" id: "text_type_scale" xanchor: XANCHOR_NONE yanchor: YANCHOR_NONE pivot: PIVOT_W 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: "info_texts_types" 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: -125.0 y: 200.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: 250.0 y: 80.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: "Trim:" font: "game" id: "text_type_trim" xanchor: XANCHOR_NONE yanchor: YANCHOR_NONE pivot: PIVOT_W 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: "info_texts_types" 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: -125.0 y: 100.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: 250.0 y: 80.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: "No adjust:" font: "game" id: "text_type_no_adjust" xanchor: XANCHOR_NONE yanchor: YANCHOR_NONE pivot: PIVOT_W 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: "info_texts_types" 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: -125.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: 250.0 y: 80.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: "Scale limited:" font: "game" id: "text_type_scale_limited" xanchor: XANCHOR_NONE yanchor: YANCHOR_NONE pivot: PIVOT_W 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: "info_texts_types" 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: -125.0 y: -100.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: 250.0 y: 80.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: "Scroll:" font: "game" id: "text_type_scroll" xanchor: XANCHOR_NONE yanchor: YANCHOR_NONE pivot: PIVOT_W 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: "info_texts_types" 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: -125.0 y: -200.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: 250.0 y: 80.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: "Scroll then scale:" font: "game" id: "text_type_scroll_scale" xanchor: XANCHOR_NONE yanchor: YANCHOR_NONE pivot: PIVOT_W 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: "info_texts_types" 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 } layers { name: "image" } layers { name: "text" } material: "/builtins/materials/gui.material" adjust_reference: ADJUST_REFERENCE_PARENT max_nodes: 512