Skip to content

Commit

Permalink
Add GH Component icons; remove extraneous files from C# soln
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-fink committed Jul 3, 2023
1 parent ea18535 commit e397df7
Show file tree
Hide file tree
Showing 18 changed files with 6,019 additions and 786 deletions.
135 changes: 0 additions & 135 deletions grasshopper/Components/AddProperties.cs

This file was deleted.

3 changes: 2 additions & 1 deletion grasshopper/Components/AddRelationships.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using System.Drawing;
using System.Collections.Generic;
using System.Linq;
using Grasshopper.Kernel;
Expand All @@ -19,7 +20,7 @@ public AddRelationships()
)
{ }

// protected override Bitmap Icon => Resources.CreateAssemblyIcon;
protected override Bitmap Icon => Resources.AddRelationshipsIcon;

public override Guid ComponentGuid => new("F7297015-6047-4003-B205-D4918FE0A63A");

Expand Down
3 changes: 2 additions & 1 deletion grasshopper/Components/AssemblyParam.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using System.Drawing;
using Grasshopper.Kernel;

namespace Rangekeeper.Components;
Expand Down Expand Up @@ -33,7 +34,7 @@ public AssemblyParam() : this(

public override Guid ComponentGuid => new("8C4EB9A5-A658-49B9-B1E8-3982A524CAE2");

// protected override Bitmap Icon => Resources.AssemblyParamIcon;
protected override Bitmap Icon => Resources.AssemblyParamIcon;

public override GH_Exposure Exposure => GH_Exposure.tertiary;

Expand Down
15 changes: 15 additions & 0 deletions grasshopper/Components/Components.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,19 @@
<ProjectReference Include="..\Model\Model.csproj" />
</ItemGroup>

<ItemGroup>
<EmbeddedResource Update="Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
</ItemGroup>

<ItemGroup>
<Compile Update="Resources.Designer.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion grasshopper/Components/CreateEntity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public CreateEntity()
)
{ }

// protected override Bitmap Icon => Resources.CreateEntityIcon;
protected override Bitmap Icon => Resources.CreateEntityIcon;

public override Guid ComponentGuid => new("5B115630-2F5A-4E82-BEB2-1E86768B1893");

Expand Down
2 changes: 1 addition & 1 deletion grasshopper/Components/EntityParam.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public EntityParam() : this(

public override Guid ComponentGuid => new("8316B1CC-A04B-4276-85B9-C0A987A9F6BD");

// protected override Bitmap Icon => Resources.EntityParamIcon;
protected override Bitmap Icon => Resources.EntityParamIcon;

public override GH_Exposure Exposure => GH_Exposure.tertiary;
}
181 changes: 0 additions & 181 deletions grasshopper/Components/Parasite.cs

This file was deleted.

Loading

0 comments on commit e397df7

Please sign in to comment.