launcher: further improve config groups (size to allow scrolling)
This commit is contained in:
@@ -1088,7 +1088,7 @@ public:
|
||||
if (_configopts.size() > 0)
|
||||
{
|
||||
ToolTip^ paneltooltip = gcnew ToolTip();
|
||||
Panel^ configPanel = MakePanel((Col2Left + Col2Width + 64), 250, _configopts, paneltooltip, hasChanged);
|
||||
Panel^ configPanel = MakePanel((Col2Left + Col2Width + 76), 250, _configopts, paneltooltip, hasChanged);
|
||||
configPanel->Scale(ScaleWidth, ScaleHeight);
|
||||
PluginConfigHandler^ confighandler = gcnew PluginConfigHandler(configPanel, gcnew String(_friendlyName) + " Options");
|
||||
button->Click += gcnew System::EventHandler(confighandler, &PluginConfigHandler::OpenForm);
|
||||
@@ -1143,7 +1143,7 @@ Panel^ MakePanel(int width, int height, std::vector<ConfigOptionBase*> &cfg, Too
|
||||
{
|
||||
OptionMetaGroupStart* groupData = (OptionMetaGroupStart*)(cfg[i]);
|
||||
GroupBox^ groupbox = gcnew GroupBox();
|
||||
groupbox->Width = width - (ScaleWidth * 32);
|
||||
groupbox->Width = width - (ScaleWidth * 28);
|
||||
groupbox->Height = ScaleHeight * (groupData->_height);
|
||||
groupbox->Left = ScaleWidth * 4;
|
||||
groupbox->Top = ScaleHeight * curY;
|
||||
@@ -1164,7 +1164,7 @@ Panel^ MakePanel(int width, int height, std::vector<ConfigOptionBase*> &cfg, Too
|
||||
break;
|
||||
}
|
||||
|
||||
Panel^ groupPanel = MakePanel(groupbox->Width - (ScaleWidth * 16), groupbox->Height - (ScaleHeight * 20), std::vector<ConfigOptionBase*>(&(cfg[i + 1]), &(cfg[endidx])), tooltip, hasChanged);
|
||||
Panel^ groupPanel = MakePanel(groupbox->Width - (ScaleWidth * 12), groupbox->Height - (ScaleHeight * 20), std::vector<ConfigOptionBase*>(&(cfg[i + 1]), &(cfg[endidx])), tooltip, hasChanged);
|
||||
groupPanel->Left = ScaleWidth * 2;
|
||||
groupPanel->Top = ScaleHeight * 14;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user