#How to make these buttons work?

1 messages · Page 1 of 1 (latest)

lyric willow
#

Main.json:

{
                "category_panel": {
                    "type": "panel",
                    "layer": 99,
                    "size": [
                        "151px",
                        "38px"
                    ],
                    "offset": [
                        "53px",
                        "9px"
                    ],
                    "anchor_from": "top_left",
                    "anchor_to": "top_left",
                    "controls": [
                        {
                            "store_categories_buttons_panel": {
                                "type": "panel",
                                "size": [
                                    "151px",
                                    "38px"
                                ],
                                "$buy": "xxx.store.buy",
                                "$network": "xxx.store.category.network",
                                "$pworld": "xxx.store.category.pworld",
                                "controls": [
                                    {
                                        "buy_button@store_buttons.buy_button": {
                                            "offset": [
                                                "60px - 1px",
                                                "-2px - 1px"
                                            ]
                                        }
                                    },
                                    {
                                        "network_button@store_buttons.network_button": {
                                            "offset": [
                                                "-1px",
                                                "-1px"
                                            ]
                                        }
                                    },
                                    {
                                        "pworld_button@store_buttons.pworld_button": {
                                            "offset": [
                                                "96px - 1px",
                                                "-1px"
                                            ]
                                        }
                                    }
                                ]
                            }
                        }
                    ]
                }
            }
#

Buttons.json:

{
    "namespace": "store_buttons",
    "buy_button@common_buttons.light_text_button": {
        "type": "button",
        "size": [
            "30px + 2px",
            "38px + 2px"
        ],
        "anchor_from": "top_left",
        "anchor_to": "top_left",
        "$border_visible": false,
        "$default_button_texture": "textures/ui/store/buttons/ui_gems_button",
        "$hover_button_texture": "textures/ui/store/buttons/ui_gems_selected",
        "$pressed_button_texture": "textures/ui/store/buttons/ui_gems_pressed",
        "$pressed_button_name": "button.form_button_click",
        "$button_text": "#form_button_text",
        "collection_name": "form_buttons",
        "bindings": [
            {
                "binding_type": "collection_details",
                "binding_collection_name": "form_buttons"
            },
            {
                "binding_name": "#form_button_text",
                "binding_type": "collection",
                "binding_collection_name": "form_buttons"
            }
        ],
        "collection_index": 1
    },
    "network_button@common_buttons.light_text_button": {
        "size": [
            "54px + 2px",
            "38px + 2px"
        ],
        "anchor_from": "top_left",
        "anchor_to": "top_left",
        "$border_visible": false,
        "$default_button_texture": "textures/ui/store/buttons/ui_ranks_button",
        "$hover_button_texture": "textures/ui/store/buttons/ui_ranks_selected",
        "$pressed_button_texture": "textures/ui/store/buttons/ui_ranks_pressed",
        "$pressed_button_name": "button.form_button_click",
        "$button_text_binding_type": "collection",
        "$button_text_grid_collection_name": "form_buttons",
        "$button_text": "#form_button_text",
        "bindings": [
            {
                "binding_type": "collection_details",
                "binding_collection_name": "form_buttons"
            },
            {
                "binding_name": "#form_button_text",
                "binding_type": "collection",
                "binding_collection_name": "form_buttons"
            }
        ],
        "collection_index": 0
    },
    "pworld_button@common_buttons.light_text_button": {
        "size": [
            "55px + 2px",
            "38px + 2px"
        ],
        "anchor_from": "top_left",
        "anchor_to": "top_left",
        "$border_visible": false,
        "$default_button_texture": "textures/ui/store/buttons/ui_world_button",
        "$hover_button_texture": "textures/ui/store/buttons/ui_world_selected",
        "$pressed_button_texture": "textures/ui/store/buttons/ui_world_pressed",
        "$pressed_button_name": "button.form_button_click",
        "$button_text": "#form_button_text"
    }
}
hybrid crescent
#

You need so specify the "$pressed_button_name".

lyric willow
#

Yeah I finally figured it out