Code: Select all
IPlugView* PLUGIN_API AGainController::createView (const char* name)
{
// someone wants my editor
if (name && strcmp (name, "editor") == 0)
{
auto* view = new VST3Editor (this, "view", "again.uidesc");
return view;
}
return nullptr;
}
The code could then easily do
Code: Select all
IPlugView* PLUGIN_API AGainController::createView (const char* name)
{
if (name && strcmp (name, "editor") == 0)
{
auto xmlFile = getParamNormalized(MyParamIDS::kLayout) == 1 ?
"again.uidesc" :
"again_compact.uidesc";
auto* view = new VST3Editor (this, "view", xmlFile);
return view;
}
return nullptr;
}
Any idea on how to do this?
Thanks
Yan