diff --git a/GsaGH/Components/1_Properties/CreateSpringProperty.cs b/GsaGH/Components/1_Properties/CreateSpringProperty.cs index 940f5fae2..62025b3a7 100644 --- a/GsaGH/Components/1_Properties/CreateSpringProperty.cs +++ b/GsaGH/Components/1_Properties/CreateSpringProperty.cs @@ -7,6 +7,7 @@ using GsaAPI; using GsaGH.Helpers.GH; using GsaGH.Parameters; +using GsaGH.Properties; using OasysGH; using OasysGH.Components; using OasysGH.Helpers; @@ -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 _springPropertyTypes = new Dictionary { { SpringPropertyType.Axial, "Axial" }, diff --git a/GsaGH/Parameters/1_Properties/GsaSpringPropertyParameter.cs b/GsaGH/Parameters/1_Properties/GsaSpringPropertyParameter.cs index 84f9bee77..ea3981a98 100644 --- a/GsaGH/Parameters/1_Properties/GsaSpringPropertyParameter.cs +++ b/GsaGH/Parameters/1_Properties/GsaSpringPropertyParameter.cs @@ -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(), diff --git a/GsaGH/Properties/Icons/CreateSpringProperty.png b/GsaGH/Properties/Icons/CreateSpringProperty.png new file mode 100644 index 000000000..7186bfa48 Binary files /dev/null and b/GsaGH/Properties/Icons/CreateSpringProperty.png differ diff --git a/GsaGH/Properties/Icons/GetSpringProperty.png b/GsaGH/Properties/Icons/GetSpringProperty.png new file mode 100644 index 000000000..d728749c9 Binary files /dev/null and b/GsaGH/Properties/Icons/GetSpringProperty.png differ diff --git a/GsaGH/Properties/Icons/SpringParam.png b/GsaGH/Properties/Icons/SpringPropertyParam.png similarity index 100% rename from GsaGH/Properties/Icons/SpringParam.png rename to GsaGH/Properties/Icons/SpringPropertyParam.png diff --git a/GsaGH/Properties/Resources.Designer.cs b/GsaGH/Properties/Resources.Designer.cs index 34f3de5c7..624720808 100644 --- a/GsaGH/Properties/Resources.Designer.cs +++ b/GsaGH/Properties/Resources.Designer.cs @@ -660,6 +660,16 @@ internal static System.Drawing.Bitmap CreateSpring { } } + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap CreateSpringProperty { + get { + object obj = ResourceManager.GetObject("CreateSpringProperty", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// @@ -1130,6 +1140,16 @@ internal static System.Drawing.Bitmap GetSectionModifier { } } + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap GetSpringProperty { + get { + object obj = ResourceManager.GetObject("GetSpringProperty", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// @@ -1340,6 +1360,16 @@ internal static System.Drawing.Bitmap MaterialProperties { } } + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap Member1dDisplacements { + get { + object obj = ResourceManager.GetObject("Member1dDisplacements", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// @@ -1663,9 +1693,9 @@ internal static System.Drawing.Bitmap SelectResult { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - internal static System.Drawing.Bitmap SpringParam { + internal static System.Drawing.Bitmap SpringPropertyParam { get { - object obj = ResourceManager.GetObject("SpringParam", resourceCulture); + object obj = ResourceManager.GetObject("SpringPropertyParam", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } @@ -1709,15 +1739,5 @@ internal static System.Drawing.Bitmap unused { return ((System.Drawing.Bitmap)(obj)); } } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap Member1dDisplacements { - get { - object obj = ResourceManager.GetObject("Member1dDisplacements", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - } + } } diff --git a/GsaGH/Properties/Resources.resx b/GsaGH/Properties/Resources.resx index 441687989..0e938b002 100644 --- a/GsaGH/Properties/Resources.resx +++ b/GsaGH/Properties/Resources.resx @@ -595,8 +595,8 @@ Icons\SelectResult.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - Icons\SpringParam.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + Icons\SpringPropertyParam.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a Icons\SpringReactionForces.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -616,4 +616,10 @@ Icons\Member1dForcesAndMoments.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + Icons\CreateSpringProperty.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + Icons\GetSpringProperty.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + \ No newline at end of file