#how to make this button double pressed

1 messages · Page 1 of 1 (latest)

carmine vessel
#

I think I know something...

#

unfortunately I couldn't find any example left on my pc. It was deleted a few months ago

#

Let's assume the code would be like this:

  "how_to_play_button@settings_common.section_toggle_base": {
    "$toggle_view_binding_name": "how_to_play_button_toggle",
    "$glyph_texture": "textures/ui/how_to_play_button_default_light",
    "$glyph_color_texture": "textures/ui/how_to_play_button_default",
    "$glyph_size": [ 15, 15 ],
    "$button_text": "menu.howToPlay",
    "$toggle_property_bag": {
      "#panel_title": "menu.howToPlay"
    },
      "$button_mappings": [
        {
          "from_button_id": "button.menu_select",
          "mapping_type": "double_pressed",
          "to_button_id": "button.menu_select"
        },
        {
          "from_button_id": "button.menu_ok",
          "mapping_type": "double_pressed",
          "to_button_id": "button.menu_ok"
        }
     ]
  }