#no binding output

1 messages · Page 1 of 1 (latest)

devout helm
#

Hello can anybody help me, #texture is not outputing anything and leaving the button textures textureless,
#form_button_text is properly set and is outputing the proper name of the texture

code:

                    "$pressed_button_name": "button.form_button_click",
                    "$button_offset": [50,0],
                    "$default_button_texture": "#texture",
                    "anchor_from": "top_left",
                    "anchor_to": "top_left",
                    "size": [
                        80,
                        80
                    ],
                    "$button_text": "",
                    "$button_text_binding_type": "collection",
                    "$button_text_grid_collection_name": "form_buttons",
                    "$button_text_max_size": [
                        40,
                        40
                    ],
                    "bindings": [
                        {
                            "binding_type": "collection_details",
                            "binding_collection_name": "form_buttons"
                        },
                        {
                            "binding_name": "#form_button_text"
                        },
                        {
                            "source_property_name": "('textures/Claim_Plot_Button_Texture_' + #form_button_text)",
                            "target_property_name": "#texture"
                        }
                    ]
                }```
fresh ruin
#

Can anyone help on this?

surreal granite
#

I know how to solve

#

that's easy

#
    "$pressed_button_name": "button.form_button_click",
    "$button_offset": [50,0],
    "$default_button_texture": "#texture",
    "anchor_from": "top_left",
    "anchor_to": "top_left",
    "size": [
        80,
        80
    ],
    "$button_text": "",
    "$button_text_binding_type": "collection",
    "$button_text_grid_collection_name": "form_buttons",
    "$button_text_max_size": [
        40,
        40
    ],
    "bindings": [
        {
            "binding_name": "#form_button_text",
            "binding_name_override": "#text",
            "binding_type": "collection",
            "binding_collection_name": "form_buttons"
        },
        {
            "source_property_name": "('textures/Claim_Plot_Button_Texture_' + #form_button_text)",
            "target_property_name": "#texture"
        }
    ]
}```
#

@fresh ruin @devout helm

devout helm
#

It did not work

#

I tried replacing #form_button_text with #text aswell it did not seem to work@surreal granite

surreal granite
#

as it didn't work if i simply copied from my file

#

aaaaaaaa

#

sorry

#
    "$pressed_button_name": "button.form_button_click",
    "$button_offset": [50,0],
    "$default_button_texture": "#texture",
    "anchor_from": "top_left",
    "anchor_to": "top_left",
    "size": [
        80,
        80
    ],
    "$button_text": "",
    "$button_text_binding_type": "collection",
    "$button_text_grid_collection_name": "form_buttons",
    "$button_text_max_size": [
        40,
        40
    ],
    "bindings": [
        {
            "binding_name": "#form_button_text",
            "binding_name_override": "#text",
            "binding_type": "collection",
            "binding_collection_name": "form_buttons"
        },
        {
            "binding_type": "view",
            "source_property_name": "('textures/Claim_Plot_Button_Texture_' + #text)",
            "target_property_name": "#texture"
        }
    ]
}```
#

@devout helm

#

was missing only "binding_type": "view"

crisp pasture