gre.set_layer_attrs

gre.set_layer_attrs(
    layer_name,
    tag_table
)
            

Set properties for a layer instance associated with a particular screen.   The layer_name specifies either the fully qualified name of a layer instance using the ScreenName.LayerName naming convention or, if only the layer name is specified, the name will refer to a layer instance associated with the current screen

alpha, hidden, active, x, y, zindex, width, height, xoffset, yoffset, effect

[Note]Note

Any change to the width and height values affect all layers.

The “effect” attribute requires the libgre-plugin-effects-3d.so plugin. This plugin is only available for OpenGL ES 2.0.


Parameters:

        layer_name    The model full path of the layer to change properties on
        tag_table     A table with tags as the keys and the new values stored as the table's key values

Example:
            

function set_layer_hidden()
    local data = {}
    data.hidden = 1
    gre.set_layer_attrs("my_layer", data)       
end