Bootstrap Chameleon Logo

SOverlay

SOverlay

Property Type Note
Aka String Name for the widget
Slots Array The array which contain children widgets
ToolTipText String
Visibility Enum: EVisibility: Visible, Collapsed, Hidden, HitTestInvisible, SelfHitTestInvisible, All

functions what can be called from ChameleonData

FunctionName Description
append_slot_from_json Add a child widget through the content of the JSON string. It's for the widget which has 'Slots'.
remove_widget_at Remove a child widget at Specified slot or widget.

Examples

Example 1:

    "SOverlay": {
        "Slots":
        [
            {
                "SImage": {
                        "Aka": "AImage",
                        "ImagePathInPlugin": "Resources/cartoon_game_map.png"
                }
            },
            {
                "SUniformGridPanel": {
                    "Slots": [
                        {
                            "Column_Row": [0, 0],
                            "SButton": {
                                "Text": "Tile 0_0",
                                "ButtonColorAndOpacity": [1, 1, 1, 0.5]
                            }
                        },
                        {
                            "Column_Row": [1, 0],
                            "SButton": {
                                "Text": "Tile 1_0",
                                "ButtonColorAndOpacity": [1, 1, 1, 0.5]
                            }
                        },
                        {
                            "Column_Row": [2, 0],
                            "SButton": {
                                "Text": "Tile 2_0",
                                "ButtonColorAndOpacity": [1, 1, 1, 0.5]
                            }
                        }
                    ]
                }
            }
        ]
    }