Skip to content

Commit

Permalink
Bug fixes 1.1.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
lin-ycv committed Mar 29, 2024
1 parent c5080a2 commit 8c000d4
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 20 deletions.
22 changes: 11 additions & 11 deletions .github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,30 +8,30 @@

</div>

This is a Grasshopper plugin containing a collection of utilities.
Melanoplus is a large genus of Grasshopper

Melanoplus is a large genus of Grasshopper. From icon design to component and menu placement, it is designed to blend into native Grasshopper and minimize the presence of the plugin.
This Grasshopper plugin comprises a set of utilities designed to enhance the native Grasshopper experience by introducing essential functions that are currently absent.

## Install

- Install using the `_PackageMager` command in Rhino and search for `Melanoplus`

To maximize compatibility, only .NET Framework version is published on PackageManager; while .NET version is offered in the release section.
For compatibility optimization, only the .NET Framework version is published on PackageManager, while the .NET version is provided in the release section.

> Version x.1.x targets .NET 7.0, and only works with Rhino 8 when `_SetDotNetRuntime` is in `/netcore` mode (default).<br>
> Version x.0.x targets .NET Framework 4.8, and works with Rhino 7.19+ and Rhino 8.
The minor version denotes the targeted framework:
- Version x.1.x is tailored for .NET 7.0, functioning exclusively with Rhino 8 when `_SetDotNetRuntime` is in `/netcore` mode, the default setting in Rhino 8.
- Version x.0.x is geared towards .NET Framework 4.8, compatible with Rhino 7.19+ and Rhino 8.

*Ie: 0.1.6 and 0.0.6 is the same version of the plugin*
For instance, 1.1.6 and 1.0.6 represent the same version of the plugin.

[Read more](https://developer.rhino3d.com/guides/rhinocommon/moving-to-dotnet-7/) on .NET and .NET Framework differences.

> Melanoplus is tested against the latest version of Rhino at the time of release. <br>
> While Melanoplus is designed and tested on Windows, Mac users can still install this plugin at their own discretion.
>Melanoplus is tested against the most recent version of Rhino available at the time of its release. While Melanoplus is primarily designed and validated for Windows, Mac users can still choose to install this plugin at their own discretion.
## Support and Feedback

Bug reporting is done through [GitHub Issues](https://github.com/lin-ycv/Melanoplus/issues), or if you're code literate, you can fix the bug and create a [Pull request](https://github.com/lin-ycv/Melanoplus/pulls) for the fix.
You can report bugs via [GitHub Issues](https://github.com/lin-ycv/Melanoplus/issues). Alternatively, if you're familiar with coding, you can address the bug yourself and submit a [Pull Request](https://github.com/lin-ycv/Melanoplus/pulls) with the fix.

If you require support or have feedback, please use [GitHub Discussions](https://github.com/lin-ycv/Melanoplus/discussions).
For support or feedback, please utilize [GitHub Discussions](https://github.com/lin-ycv/Melanoplus/discussions).

There are some functionality demos in the [Wiki Page](https://github.com/lin-ycv/Melanoplus/wiki).
You can find demos of various functionalities on the [Wiki Page](https://github.com/lin-ycv/Melanoplus/wiki).
10 changes: 5 additions & 5 deletions .github/workflows/PUBLISH.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
YAK_TOKEN: ${{ secrets.YAK_TOKEN }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: setup-msbuild
uses: microsoft/setup-msbuild@v1.1
uses: microsoft/setup-msbuild@v2
with:
msbuild-architecture: x64

Expand All @@ -30,10 +30,10 @@ jobs:
cd src\bin\Release\net48
del *.pdb
curl https://raw.githubusercontent.com/lin-ycv/Melanoplus/Docs/manifest.yml -o manifest.yml
curl https://raw.githubusercontent.com/lin-ycv/Melanoplus/main/Resources/MelanoplusSimple.png -o Melanoplus.png
..\yak.exe build --platform 'any'
curl https://raw.githubusercontent.com/lin-ycv/Melanoplus/Docs/MelanoplusSimple.png -o Melanoplus.png
..\..\..\..\yak.exe build --platform 'any'
$YAK_FILENAME = dir *.yak
$name = $YAK_FileNAME.name.Split("-")
$name = $name[0]+"-"+$name[1]+"-any-any.yak"
Rename-Item $YAK_FileNAME.name $name
..\yak.exe push $YAK_FILENAME.Name
..\..\..\..\yak.exe push $name
2 changes: 1 addition & 1 deletion src/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class MelanoplusInfo : GH_AssemblyInfo
#if NET7_0_OR_GREATER
public override string Version => _v.ToString();
#else
public override string Version => $"{_v.Major}.0.{_v.Build}";
public override string Version => $"{_v.Major}.0.{_v.Build}.{_v.Revision}";
#endif
private readonly Version _v = Assembly.GetExecutingAssembly().GetName().Version;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Melanoplus.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<TargetExt>.gha</TargetExt>
<ImplicitUsings>enable</ImplicitUsings>
<FileVersion></FileVersion>
<AssemblyVersion>1.1.6</AssemblyVersion>
<AssemblyVersion>1.1.6.1</AssemblyVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net7.0-windows|AnyCPU'">
<DebugType>portable</DebugType>
Expand Down
4 changes: 4 additions & 0 deletions src/Utils/GroupName.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,14 @@ internal static void Rename()
form.ShowModal(Instances.EtoDocumentEditor);
string name = ((InputForm)form).GetText();
if (((InputForm)form).Result != DialogResult.OK) return;
GH_UndoRecord record = new("Rename Groups");
foreach (GH_Group group in groups.Cast<GH_Group>())
{
GH_NickNameAction action = new(group);
group.NickName = name;
record.AddAction(action);
}
Instances.ActiveCanvas.Document.UndoServer.PushUndoRecord(record);
Instances.ActiveCanvas.Refresh();
}
}
Expand Down
3 changes: 2 additions & 1 deletion src/Utils/GroupPresets.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ public static void Config()
AllowAlpha = true,
Color = Colours[int.Parse(button.ID)],
};
form.Topmost = false;
if (picker.ShowDialog(layout) == EF.DialogResult.Ok)
{
int id = int.Parse(button.ID);
Expand All @@ -100,7 +101,7 @@ public static void Config()
button.BackgroundColor = Colours[id];
button.TextColor = GetContrastColor(Colours[id]);
}
form.BringToFront();
form.Topmost = true;
};
EF.DropDown drop = new()
{
Expand Down
2 changes: 1 addition & 1 deletion src/Widgets/LabelWidget.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public override bool Visible

public override string Name => "Label";

public override string Description => "Display component name/nickname above component\r\nDouble click to toggle between Fullname and Nickname\r\n.\r\nAdditional settings in Grasshopper Preferences";
public override string Description => "Display component name/nickname above component\r\nAdditional settings in Grasshopper Preferences";

public override Bitmap Icon_24x24 => Properties.Resources.Label;
private static readonly StringFormat alignment = new() { Alignment = StringAlignment.Center, LineAlignment = StringAlignment.Far };
Expand Down

0 comments on commit 8c000d4

Please sign in to comment.