#Expected variable not found in ancestor tree

1 messages · Page 1 of 1 (latest)

near pagoda
#

Hi all,
I've started on the path of learning Json UI today,
I have finally gotten something to load on screen (Hooray) though I can't seem to access the actionbar message variable to change the text:

    "namespace": "hud",
    "clouds_image": {
        "type": "image",
        "texture": "textures/ui/Black",
        "size": [
            40,
            40
        ],
        "anchor_from": "center",
        "anchor_to": "center",
        "offset": [
            0,
            5
        ]
    },

        "answerstext": {
        "type": "label",
        "text" : "$actionbar_text",
        
        "anchor_from": "center",
        "anchor_to": "center",
        "offset": [
            0,
            5
        ]
    },


    "root_panel": {
        "modifications": [
            {
                "array_name": "controls",
                "operation": "insert_front",
                "value": [
                        {"[email protected]_image": {}    },

                        {"[email protected]": {}    }
                ]
            }
        ]
    }
}```
Apparently accessing $actionbar_text is not an option here for me,
Is there a resource I can learn about accessing this variable from?
I assume i might have missed something basic about accessing global variables.
Thanks!
glossy gazelle
#

Did you found out how ?