launcher: get viewing config options for plugins working (no saving yet, but they do trigger the save prompt)

This commit is contained in:
somewhatlurker
2019-08-30 00:16:34 +10:00
parent de1eba2582
commit 066208bcda
3 changed files with 153 additions and 13 deletions
+3 -9
View File
@@ -123,16 +123,10 @@ namespace Launcher {
this->panel_Plugins->SuspendLayout();
int pluginsY = 3;
for (PluginInfo &plugin : AllPlugins)
for (ConfigOptionBase* option : AllPluginOpts)
{
Label^ lbl = gcnew Label;
lbl->AutoSize = true;
lbl->Text = gcnew String(plugin.name.c_str());
lbl->Left = 12;
lbl->Top = pluginsY;
panel_Plugins->Controls->Add(lbl);
toolTip1->SetToolTip(lbl, gcnew String(plugin.description.c_str()));
pluginsY += lbl->Font->Height + 6;
option->hasChanged = ConfigHasChanged;
pluginsY += option->AddToPanel(panel_Plugins, 12, pluginsY, toolTip1);
}
this->panel_Plugins->ResumeLayout(false);
this->panel_Plugins->PerformLayout();