#Expected variable not found in ancestor tree: '$toggle_name'

1 messages · Page 1 of 1 (latest)

lament geyser
#

How to fix this?

[UI][warning]-UI Control: hud_screen | UI Control: variables_button_mappings_and_controls | UI Control: safezone_screen_matrix | UI Control: inner_matrix | UI Control: safezone_screen_panel | UI Control: root_screen_panel | UI Control: debug | UI Control: switch | On Control Path: /hud_screen/variables_button_mappings_and_controls/safezone_screen_matrix/inner_matrix/safezone_screen_panel/root_screen_panel/debug/switch/debug_switch | Expected variable not found in ancestor tree: '$toggle_name'

past topaz
#

Expected variable not found in ancestor tree: '$toggle_name'

#

@lament geyser no problem I always like to help other people

lament geyser
#

How to fix this?
Where I have to use this variable?

File 1, with namespace "debug"

  "debug_panel": {
    "type": "stack_panel",
    "orientation": "vertical",
    "controls": [
      { "[email protected]": {} },
      { "[email protected]_what_aux_id": {} },
      { "[email protected]_image": { "alpha": 0 } },
      { "[email protected]_what_item_id": {} },
      { "[email protected]_image": { "alpha": 0 } },
      // { "[email protected]_position": {} },
      { "[email protected]": {} }
    ],
    "bindings": [
      {
        "binding_type": "view",
        "source_control_name": "debug_switch",
        "source_property_name": "#toggle_state",
        "target_property_name": "#visible"
      }
    ]
  }

File 2, with namespace "buttons"

  "switch@common_toggles.light_ui_toggle": {
    "$toggle_view_binding_name": "debug_switch",
    "$template_toggle|default": "templates.light_template_toggle",
    "bindings": [
      {
        "binding_name": "#hud_visible",
        "binding_name_override": "#visible",
        "binding_type": "global"
      }
    ]
  },

  "[email protected]": {
    "$pressed_view_binding_name": "debug_switch",
    "$button_content": "buttons.icon_debug",
    "$pressed_button_name": "nothing",
    "$focus_id": "debug_focus_id",
    "$button_tts_header": "accessibility.gui.tts.debug",
    "controls": [
      { "[email protected]": {} }
    ]
  }
#

@past topaz sorry for disturbing, I need help with this.