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

Method SetText

plugins/scripting/utils/inline-script.cpp:187–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185}
186
187void InlineScript::SetText(const std::string &text)
188{
189 switch (_language) {
190 case OBS_SCRIPT_LANG_UNKNOWN:
191 break;
192 case OBS_SCRIPT_LANG_LUA:
193 _textLUA = text;
194 break;
195 case OBS_SCRIPT_LANG_PYTHON:
196 _textPython = text;
197 break;
198 default:
199 break;
200 }
201 Setup();
202}
203
204const StringVariable &InlineScript::GetText() const
205{

Callers 1

SetScriptMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected