i am currently trying to hide a message if it conditionally contains a certain symbol. (!)
"messages_text": {
"type": "panel",
"size": [ "100%", "100%c" ],
"controls": [
{
"text": {
"type": "label",
"color": "$chat_text_color",
"enable_profanity_filter": false,
"localize": false,
"size": [ "100%", "default" ],
"text": "#text",
"text_tts": "#text_tts",
"font_type": "$chat_font_type",
"font_scale_factor": "$chat_font_scale_factor",
"line_padding": "$chat_line_spacing",
"bindings": [
{
"binding_type": "view",
"source_property_name": "(not ((#text - '!') = #text))",
"target_property_name": "#visible"
}
]
}
}
],
"bindings": [
{
"binding_name": "#chat_visible",
"binding_name_override": "#visible"
}
]
},
this is chat_screen.json btw in case anyone is wondering.
this reminds me of actionbar_text where the binds are inaccessible, could it be a similar situation or am i just doing it wrong?