Skip to content

Commit

Permalink
GSAGH-149 SpringPropertyParam
Browse files Browse the repository at this point in the history
  • Loading branch information
Tilman Reinhardt committed Dec 4, 2023
1 parent a92effb commit 7e31369
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 17 deletions.
3 changes: 2 additions & 1 deletion GsaGH/Components/1_Properties/CreateSpringProperty.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using GsaAPI;
using GsaGH.Helpers.GH;
using GsaGH.Parameters;
using GsaGH.Properties;
using OasysGH;
using OasysGH.Components;
using OasysGH.Helpers;
Expand Down Expand Up @@ -55,7 +56,7 @@ public class CreateSpringProperty : GH_OasysDropDownComponent {
public override Guid ComponentGuid => new Guid("f48965a0-00e7-4de8-9839-a4480075459f");
public override GH_Exposure Exposure => GH_Exposure.quarternary;
public override OasysPluginInfo PluginInfo => GsaGH.PluginInfo.Instance;
protected override Bitmap Icon => null;
protected override Bitmap Icon => Resources.CreateSpringProperty;
private readonly IReadOnlyDictionary<SpringPropertyType, string> _springPropertyTypes
= new Dictionary<SpringPropertyType, string> {
{ SpringPropertyType.Axial, "Axial" },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public override string InstanceDescription
=> m_data.DataCount == 0 ? "Empty " + GsaSpringPropertyGoo.Name + " parameter" :
base.InstanceDescription;
public override string TypeName => SourceCount == 0 ? GsaSpringPropertyGoo.Name : base.TypeName;
protected override Bitmap Icon => Resources.Property2dParam;
protected override Bitmap Icon => Resources.SpringPropertyParam;

public GsaSpringPropertyParameter() : base(new GH_InstanceDescription(GsaSpringPropertyGoo.Name,
GsaSpringPropertyGoo.NickName, GsaSpringPropertyGoo.Description + " parameter", CategoryName.Name(),
Expand Down
Binary file added GsaGH/Properties/Icons/CreateSpringProperty.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added GsaGH/Properties/Icons/GetSpringProperty.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
46 changes: 33 additions & 13 deletions GsaGH/Properties/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 8 additions & 2 deletions GsaGH/Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -595,8 +595,8 @@
<data name="SelectResult" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>Icons\SelectResult.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="SpringParam" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>Icons\SpringParam.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
<data name="SpringPropertyParam" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>Icons\SpringPropertyParam.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="SpringReactionForces" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>Icons\SpringReactionForces.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
Expand All @@ -616,4 +616,10 @@
<data name="Member1dForcesAndMoments" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>Icons\Member1dForcesAndMoments.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="CreateSpringProperty" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>Icons\CreateSpringProperty.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="GetSpringProperty" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>Icons\GetSpringProperty.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root>

0 comments on commit 7e31369

Please sign in to comment.