mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-05-09 04:32:13 -05:00
Show variable mapping for "Source" and "Twitch" action
This commit is contained in:
parent
925202eaa0
commit
0791da1a3a
|
|
@ -794,6 +794,8 @@ void MacroActionSourceEdit::SetWidgetVisibility()
|
|||
action == MacroActionSource::Action::CLOSE_FILTER_DIALOG ||
|
||||
action == MacroActionSource::Action::CLOSE_PROPERTIES_DIALOG);
|
||||
|
||||
emit ShowVariableMappings(isGetSetting || isGetSettings);
|
||||
|
||||
adjustSize();
|
||||
updateGeometry();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -113,6 +113,7 @@ private slots:
|
|||
|
||||
signals:
|
||||
void HeaderInfoChanged(const QString &);
|
||||
void ShowVariableMappings(bool show);
|
||||
|
||||
private:
|
||||
void SetWidgetVisibility();
|
||||
|
|
|
|||
|
|
@ -1840,7 +1840,10 @@ void MacroActionTwitchEdit::SetWidgetLayout()
|
|||
|
||||
const char *layoutText;
|
||||
const char *layout2Text = nullptr;
|
||||
switch (_entryData->GetAction()) {
|
||||
|
||||
const auto action = _entryData->GetAction();
|
||||
|
||||
switch (action) {
|
||||
case MacroActionTwitch::Action::SEND_CHAT_MESSAGE:
|
||||
layoutText = obs_module_text(
|
||||
"AdvSceneSwitcher.action.twitch.layout.chat");
|
||||
|
|
@ -1892,6 +1895,12 @@ void MacroActionTwitchEdit::SetWidgetLayout()
|
|||
|
||||
_layout->setContentsMargins(0, 0, 0, 0);
|
||||
_layout2->setContentsMargins(0, 0, 0, 0);
|
||||
|
||||
const bool showVariableMapping =
|
||||
action == MacroActionTwitch::Action::CHANNEL_GET_INFO ||
|
||||
action == MacroActionTwitch::Action::USER_GET_INFO ||
|
||||
action == MacroActionTwitch::Action::POINTS_REWARD_GET_INFO;
|
||||
emit ShowVariableMappings(showVariableMapping);
|
||||
}
|
||||
|
||||
void MacroActionTwitchEdit::UpdateEntryData()
|
||||
|
|
|
|||
|
|
@ -267,6 +267,7 @@ private slots:
|
|||
|
||||
signals:
|
||||
void HeaderInfoChanged(const QString &);
|
||||
void ShowVariableMappings(bool show);
|
||||
|
||||
protected:
|
||||
std::shared_ptr<MacroActionTwitch> _entryData;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user