Skip to content

Commit

Permalink
Remove resources.resx
Browse files Browse the repository at this point in the history
  • Loading branch information
visose committed Jan 1, 2022
1 parent cbcac93 commit 6c42190
Show file tree
Hide file tree
Showing 59 changed files with 51 additions and 604 deletions.
2 changes: 1 addition & 1 deletion src/Extensions.Grasshopper/Discrete/CurveSnap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace Extensions.Grasshopper;
public class CurveSnap : GH_Component
{
public CurveSnap() : base("Curve Snap", "CrvSnap", "Snaps curves to discrete intervals and directions.", "Extensions", "Discrete") { }
protected override System.Drawing.Bitmap Icon => Properties.Resources.Polyline;
protected override System.Drawing.Bitmap Icon => Util.GetIcon("Polyline");
public override Guid ComponentGuid => new Guid("{4F45F86C-6B7E-4327-9475-467CB82DAF13}");

protected override void RegisterInputParams(GH_InputParamManager pManager)
Expand Down
2 changes: 1 addition & 1 deletion src/Extensions.Grasshopper/Discrete/UnityExport.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace Extensions.Grasshopper;
public class UnityExport : GH_Component
{
public UnityExport() : base("Unity Export", "UnityExport", "Exports block instances to Unity 3D.", "Extensions", "Discrete") { }
protected override System.Drawing.Bitmap Icon => Properties.Resources.Puzzle;
protected override System.Drawing.Bitmap Icon => Util.GetIcon("Puzzle");
public override Guid ComponentGuid => new Guid("{09694580-A4BB-4CD8-B061-E158BC83478F}");

protected override void RegisterInputParams(GH_InputParamManager pManager)
Expand Down
2 changes: 1 addition & 1 deletion src/Extensions.Grasshopper/Discrete/VoxelTiles.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace Extensions.Grasshopper;
public class VoxelTiles : GH_Component
{
public VoxelTiles() : base("Voxel Tiles", "VoxelTiles", "Voxelizes a boundary shape and places discrete elements on each voxel based on guide curves and points.", "Extensions", "Discrete") { }
protected override System.Drawing.Bitmap Icon => Properties.Resources.Cube;
protected override System.Drawing.Bitmap Icon => Util.GetIcon("Cube");
public override Guid ComponentGuid => new Guid("{769FB3B8-6C88-4130-AA32-FB9D0D1BC6AA}");

protected override void RegisterInputParams(GH_InputParamManager pManager)
Expand Down
2 changes: 1 addition & 1 deletion src/Extensions.Grasshopper/Document/DisplayGeometry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace Extensions.Grasshopper;
public class CreateDisplayGeometry : GH_Component
{
public CreateDisplayGeometry() : base("Display Geometry", "DisGeo", "Attaches display attributes to geometry.", "Extensions", "Document") { }
protected override Bitmap Icon => Properties.Resources.Eye;
protected override Bitmap Icon => Util.GetIcon("Eye");
public override Guid ComponentGuid => new Guid("{07955694-55A9-4AC6-88B8-A0F37632634B}");

protected override void RegisterInputParams(GH_InputParamManager pManager)
Expand Down
2 changes: 1 addition & 1 deletion src/Extensions.Grasshopper/Document/Export.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Extensions.Grasshopper;
public class Export : GH_Component
{
public Export() : base("Export Geometry", "Export", "Export Grasshopper geometry.", "Extensions", "Document") { }
protected override Bitmap Icon => Properties.Resources.Save;
protected override Bitmap Icon => Util.GetIcon("Save");
public override Guid ComponentGuid => new Guid("{B1DF48A5-8BC1-4FB1-B284-7EA22725CABA}");

protected override void RegisterInputParams(GH_InputParamManager pManager)
Expand Down
2 changes: 1 addition & 1 deletion src/Extensions.Grasshopper/Document/Upload.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace Extensions.Grasshopper;
public class Upload : GH_Component
{
public Upload() : base("Upload File", "Upload", "Upload a file to the web.", "Extensions", "Document") { }
protected override Bitmap Icon => Properties.Resources.CloudUpload;
protected override Bitmap Icon => Util.GetIcon("CloudUpload");
public override Guid ComponentGuid => new Guid("{DCA98559-B42A-4FEB-9226-E182977D8228}");

protected override void RegisterInputParams(GH_InputParamManager pManager)
Expand Down
28 changes: 12 additions & 16 deletions src/Extensions.Grasshopper/Extensions.Grasshopper.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,38 +3,34 @@
<PropertyGroup>
<TargetFramework>net48</TargetFramework>
<GenerateResourceUsePreserializedResources>true</GenerateResourceUsePreserializedResources>
<AssemblyTitle>Extensions Grasshopper</AssemblyTitle>
<AssemblyTitle>$(Product) Grasshopper</AssemblyTitle>
<TargetExt>.gha</TargetExt>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Grasshopper" Version="7.13.21348.13001" />
<PackageReference Include="System.Resources.Extensions" Version="6.0.0" />
<PackageReference Include="Grasshopper" Version="7.13.21348.13001" />
<ProjectReference Include="..\Extensions\Extensions.csproj" />
<Reference Include="Robots">
<HintPath>..\..\lib\Robots.dll</HintPath>
</Reference>
<Reference Include="Robots">
<Reference Include="Robots.Grasshopper">
<HintPath>..\..\lib\Robots.gha</HintPath>
</Reference>
</ItemGroup>

<ItemGroup>
<Compile Update="Properties\Resources.Designer.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<EmbeddedResource Include="Assets\Embed\**\*" />
</ItemGroup>

<ItemGroup>
<EmbeddedResource Update="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
</ItemGroup>
<PropertyGroup Condition="$([MSBuild]::IsOSPlatform(Windows))">
<StartProgram>C:\Program Files\Rhino 7\System\Rhino.exe</StartProgram>
<StartArguments>/nosplash /runscript="-grasshopper window show _enter"</StartArguments>
<StartAction>Program</StartAction>
</PropertyGroup>

<Target Name="Rename" AfterTargets="AfterBuild">
<Move SourceFiles="$(TargetPath)" DestinationFiles="$(TargetDir)Extensions.gha" />
<Move SourceFiles="$(TargetPath)" DestinationFiles="$(TargetDir)$(Product)$(TargetExt)" />
</Target>


</Project>
2 changes: 1 addition & 1 deletion src/Extensions.Grasshopper/ExtensionsInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public ExtensionsInfo()

public override string Name => GetInfo<AssemblyProductAttribute>().Product;
public override string AssemblyVersion => GetInfo<AssemblyInformationalVersionAttribute>().InformationalVersion;
public override Bitmap Icon => Properties.Resources.Cube;
public override Bitmap Icon => Util.GetIcon("Cube");
public override string Description => GetInfo<AssemblyDescriptionAttribute>().Description;
public override GH_LibraryLicense License => GH_LibraryLicense.opensource;
public override string AuthorName => GetCompany()[0];
Expand Down
2 changes: 1 addition & 1 deletion src/Extensions.Grasshopper/Geometry/DifferentialGrowth.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace Extensions.Grasshopper;
public class DifferentialGrowth : GH_Component
{
public DifferentialGrowth() : base("Differential Growth", "DiffGrowth", "Grows a polyline using a differential growth algorithm.", "Extensions", "Geometry") { }
protected override System.Drawing.Bitmap Icon => Properties.Resources.Virus;
protected override System.Drawing.Bitmap Icon => Util.GetIcon("Virus");
public override Guid ComponentGuid => new Guid("{64C4B469-E923-4B7E-B746-C2599F7ED0A0}");

protected override void RegisterInputParams(GH_InputParamManager pManager)
Expand Down
2 changes: 1 addition & 1 deletion src/Extensions.Grasshopper/Geometry/FlipMesh.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace Extensions.Grasshopper;
public class FlipMesh : GH_Component
{
public FlipMesh() : base("Flip mesh", "MeshFlip", "Flips the direction of a mesh.", "Extensions", "Geometry") { }
protected override System.Drawing.Bitmap Icon => Properties.Resources.Undo;
protected override System.Drawing.Bitmap Icon => Util.GetIcon("Undo");
public override Guid ComponentGuid => new Guid("{65433478-f2d7-4cd0-808f-b1d1834270c3}");

protected override void RegisterInputParams(GH_InputParamManager pManager)
Expand Down
2 changes: 1 addition & 1 deletion src/Extensions.Grasshopper/Geometry/Remesher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace Extensions.Grasshopper;
public class RemesherComponent : GH_Component
{
public RemesherComponent() : base("Remesher", "Remesher", "Triangular remeshing trying to keep edge lengths as equal as possible.", "Extensions", "Geometry") { }
protected override System.Drawing.Bitmap Icon => Properties.Resources.Triangle;
protected override System.Drawing.Bitmap Icon => Util.GetIcon("Triangle");
public override Guid ComponentGuid => new Guid("{55D4CA7D-D9C7-485A-BC7A-BFDA387D4163}");

protected override void RegisterInputParams(GH_InputParamManager pManager)
Expand Down
2 changes: 1 addition & 1 deletion src/Extensions.Grasshopper/Geometry/StraightSkeleton.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace Extensions.Grasshopper;
public class StraightSkeleton : GH_Component
{
public StraightSkeleton() : base("Straight Skeleton", "StrSkel", "Returns the straight skeleton of a polygon.", "Extensions", "Geometry") { }
protected override System.Drawing.Bitmap Icon => Properties.Resources.Graph;
protected override System.Drawing.Bitmap Icon => Util.GetIcon("Graph");
public override Guid ComponentGuid => new Guid("{d529efd9-2fdd-4751-a6b4-307c8f82390b}");

protected override void RegisterInputParams(GH_InputParamManager pManager)
Expand Down
6 changes: 3 additions & 3 deletions src/Extensions.Grasshopper/Goo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public class DisplayGeometryParameter : GH_PersistentParam<GH_DisplayGeometry>,
{
public DisplayGeometryParameter() : base("Display Geometry", "DisGeo", "Display geometry.", "Extensions", "Parameters") { }
public override GH_Exposure Exposure => GH_Exposure.primary;
protected override Bitmap Icon => Properties.Resources.EyeParam;
protected override Bitmap Icon => Util.GetIcon("EyeParam");
public override Guid ComponentGuid => new Guid("{9F90313D-5776-471C-9922-29D4F59A70C4}");

protected override GH_GetterResult Prompt_Singular(ref GH_DisplayGeometry value)
Expand Down Expand Up @@ -202,7 +202,7 @@ public class ExtrusionAttributesParameter : GH_PersistentParam<GH_ExtrusionAttri
{
public ExtrusionAttributesParameter() : base("Extrusion Attributes", "ExtrAtt", "Extrusion attributes.", "Extensions", "Parameters") { }
public override GH_Exposure Exposure => GH_Exposure.primary;
protected override Bitmap Icon => Properties.Resources.LayersConfigParam;
protected override Bitmap Icon => Util.GetIcon("LayersConfigParam");
public override Guid ComponentGuid => new Guid("{D63464DC-BBAB-4A88-923A-8D9381FB1D0B}");

protected override GH_GetterResult Prompt_Singular(ref GH_ExtrusionAttributes value)
Expand All @@ -222,7 +222,7 @@ public class MillingAttributesParameter : GH_PersistentParam<GH_MillingAttribute
{
public MillingAttributesParameter() : base("Milling Attributes", "MillAtt", "Milling attributes.", "Extensions", "Parameters") { }
public override GH_Exposure Exposure => GH_Exposure.primary;
protected override Bitmap Icon => Properties.Resources.LayersConfigParam;
protected override Bitmap Icon => Util.GetIcon("LayersConfigParam");
public override Guid ComponentGuid => new Guid("{21255B77-9E3D-43BD-8FE5-9A77D4A4D575}");
protected override GH_GetterResult Prompt_Singular(ref GH_MillingAttributes value)
{
Expand Down
Loading

0 comments on commit 6c42190

Please sign in to comment.