MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / SetVisibility

Method SetVisibility

plugins/twitch/chat-message-pattern.cpp:367–375  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

365}
366
367void ChatMessagePropertyEdit::SetVisibility()
368{
369 auto defaultValue = _property.GetDefaultValue();
370 _boolValue->setVisible(std::holds_alternative<bool>(defaultValue));
371 const bool isTextValue =
372 std::holds_alternative<StringVariable>(defaultValue);
373 _textValue->setVisible(isTextValue);
374 _regex->setVisible(isTextValue);
375}
376
377void ChatMessageProperty::Save(obs_data_t *obj) const
378{

Callers

nothing calls this directly

Calls 1

GetDefaultValueMethod · 0.45

Tested by

no test coverage detected