#Why is my toggle button not working?

1 messages · Page 1 of 1 (latest)

fierce plaza
#

{
 "inventory_hud@common_buttons.light_glyph_button": {
  "$pressed_view_binding_name": "inventory_hud_toggle",
  "size": [16, 16],
  "offset": [0, 0],
  "focus_enabled": false,
  "default_focus_precedence": 1,
  "$button_content": "hud.elipses_image",
  "$border_visible": false,
  "controls": [
   {
    "inventory_hud_toggle@common_toggles.light_ui_toggle": {
     "$toggle_view_binding_name": "inventory_hud_toggle"
    }
   }
  ],
  "bindings": [
   {
    "binding_type": "#inventory_touch_button",
    "binding_name_override": "#visible",
    "bindong_type": "global"
   }
  ]
 },
 "inventory_hud_panel_right_content": {
  "type": "panel",
  "size": [20, 22],
  "controls": [
   {
    "[email protected]_hud_panel_right_art": {}
   }
  ],
  "bindings": [
   {
    "binding_name": "#hotbar_elipses_left_visible",
    "binding_name_override": "#visible",
    "binding_type": "global"
   }
  ]
 },
 "inventory_hud_panel_right_art": {
  "type": "panel",
  "$inventory_hud_panel_right_art_size|default": [20, 22],
  "size": "$inventory_hud_panel_right_art_size",
  "layer": 4,
  "controls": [
   {
    "[email protected]_slot_image": {
     "$hotbar_slot_image_size": "$inventory_hud_panel_right_art_size",
     "layer": 2,
     "texture": "textures/ui/hotbar_8"
    }
   },
   {
    "[email protected]_hud": {}
   }
  ]
 },
 "inventory_hud_panel_left_content": {
  "type": "panel",
  "size": [20, 22],
  "controls": [
   {
    "[email protected]_hud_panel_left_art": {}
   }
  ],
  "bindings": [
   {
    "binding_name": "#hotbar_elipses_right_visible",
    "binding_name_override": "#visible",
    "binding_type": "global"
   }
  ]
 },
#
"inventory_hud_panel_left_art": {
  "type": "panel",
  "$inventory_hud_panel_left_art_size|default": [20, 22],
  "size": "$inventory_hud_panel_left_art_size",
  "layer": 4,
  "controls": [
   {
    "[email protected]_slot_image": {
     "layer": 2,
     "$hotbar_slot_image_size": "$inventory_hud_panel_left_art_size",
     "texture": "textures/ui/hotbar_0"
    }
   },
   {
    "[email protected]_hud": {
     "$left_enabled": true
    }
   }
  ]
 },
 "hotbar_panel": {
  "modifications": [
   {
    "control_name": "hotbar_grid",
    "operation": "insert_before",
    "value": [
     {
      "[email protected]_hud_panel_left_content": {}
     }
    ]
   },
   {
    "control_name": "hotbar_grid",
    "operation": "insert_after",
    "value": [
     {
      "[email protected]_hud_panel_right_content": {}
     }
    ]
   }
  ]
 },
 "root_panel": {
  "modifications": [
   {
    "array_name": "controls",
    "operation": "insert_back",
    "value": [
     {
      "test_toggle": {
       "type": "image",
       "texture": "textures/ui/Black",
       "size": ["50%", "100%"],
       "alpha": 1,
       "layer": "-99999",
       "bindings": [
        {
         "binding_type": "view",
         "source_control_name": "inventory_hud_toggle",
         "source_property_name": "#toggle_state",
         "target_property_name": "#visible",
         "binding_condition": "always"
        }
       ]
      }
     }
    ]
   }
  ]
 }
}

button toggle = "inventory_hud"
toggled = "test_toggle"

sly bluff
#

ini masalah nya apa, dan buat apa

#

@fierce plaza

fierce plaza
#

helpme

#

nge buat toggle, kan dah ada penjelasan diakhir chat itu

fierce plaza