StyleBoxTexture

    Category: Core

    Texture Based 3x3 scale style.

    Properties

    void ( float size )
    void ( float size_left, size_top, float size_right, size_bottom )

    Signals

    • texture_changed ( )

    enum AxisStretchMode:

    • AXIS_STRETCH_MODE_TILE = 1
    • AXIS_STRETCH_MODE_TILE_FIT = 2

    Description

    Texture Based 3x3 scale style. This stylebox performs a 3x3 scaling of a texture, where only the center cell is fully stretched. This allows for the easy creation of bordered styles.

    Setterset_h_axis_stretch_mode(value)
    Getterget_h_axis_stretch_mode()

    • axis_stretch_vertical
    Setterset_v_axis_stretch_mode(value)
    Getterget_v_axis_stretch_mode()

    Setterset_draw_center(value)
    Getteris_draw_center_enabled()

    • expand_margin_bottom

    Expands the bottom margin of this style box when drawing, causing it be drawn larger than requested.


    • float expand_margin_left
    Setterset_expand_margin_size(value)
    Getterget_expand_margin_size()

    Expands the left margin of this style box when drawing, causing it be drawn larger than requested.


    • expand_margin_right
    Setterset_expand_margin_size(value)
    Getterget_expand_margin_size()

    Expands the right margin of this style box when drawing, causing it be drawn larger than requested.


    Setterset_expand_margin_size(value)
    Getterget_expand_margin_size()

    Setterset_margin_size(value)
    Getterget_margin_size()

    Increases the bottom margin of the 3x3 texture box.

    A higher value means more of the source texture is considered to be part of the bottom border of the 3x3 box.

    This is also the value used as fallback for if it is negative.


    Increases the left margin of the 3x3 texture box.

    A higher value means more of the source texture is considered to be part of the left border of the 3x3 box.

    This is also the value used as fallback for if it is negative.


    Setterset_margin_size(value)
    Getterget_margin_size()

    Increases the right margin of the 3x3 texture box.

    This is also the value used as fallback for if it is negative.


    Setterset_margin_size(value)
    Getterget_margin_size()

    Increases the top margin of the 3x3 texture box.

    A higher value means more of the source texture is considered to be part of the top border of the 3x3 box.

    This is also the value used as fallback for if it is negative.


    Setterset_modulate(value)
    Getterget_modulate()

    Modulates the color of the texture when this style box is drawn.


    • normal_map
    Setterset_normal_map(value)
    Getterget_normal_map()

    The normal map to use when drawing this style box.


    Species a sub region of the texture to use.


    • texture
    Setterset_texture(value)
    Getterget_texture()

    The texture to use when drawing this style box.

    Method Descriptions

    • void set_expand_margin_all ( float size )

    • void set_expand_margin_individual ( size_left, float size_top, size_right, float size_bottom )