From 7e3136925647f6a43663f500ad36dd9b076d7f2c Mon Sep 17 00:00:00 2001 From: Tilman Reinhardt Date: Mon, 4 Dec 2023 11:49:03 +0100 Subject: [PATCH] GSAGH-149 SpringPropertyParam --- .../1_Properties/CreateSpringProperty.cs | 3 +- .../GsaSpringPropertyParameter.cs | 2 +- .../Properties/Icons/CreateSpringProperty.png | Bin 0 -> 758 bytes GsaGH/Properties/Icons/GetSpringProperty.png | Bin 0 -> 941 bytes ...pringParam.png => SpringPropertyParam.png} | Bin GsaGH/Properties/Resources.Designer.cs | 46 +++++++++++++----- GsaGH/Properties/Resources.resx | 10 +++- 7 files changed, 44 insertions(+), 17 deletions(-) create mode 100644 GsaGH/Properties/Icons/CreateSpringProperty.png create mode 100644 GsaGH/Properties/Icons/GetSpringProperty.png rename GsaGH/Properties/Icons/{SpringParam.png => SpringPropertyParam.png} (100%) 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 0000000000000000000000000000000000000000..7186bfa48890ab247b377fc951d3e056396345b0 GIT binary patch literal 758 zcmVXUB=Pt%cbjCQo0C@sqVPI@rp1`EB6sWWks38LkLCfXG!cr_PByYf0PQU_u0mTP! zhOvlB*n2!@f0%^?k|2%W%pLCDpYJ<=_kgel5K)wWlKy845r?o&us|{T{3Gq~ka>77 z0&Bw0)3XcLR~DEHiy7K7c`ul^5LSeQV&_G>w8-*1TQ}hA+k=vVf526&!+4{b(g2T@ zGcKRx%0sv!=0kMv*#}c5Ki)sJ`N#IxTZ+S#WJ^-o*y!)otEG#`OslxP*R1T%SjMHu zqbwstD6oTdIitFnd_p^rM#2#y6l0C*xA>b%U>U@%*U?|b%|4Q9$C}j)EP%vZ#yl`g zqzzpZZ{*u?bmBHl213pOiF#qtsb1!=1 zyIi^t>|8kzGp9~5`IbJbyNM^Vf2)mbK<@6dmrDf%Q)0#=PH33CmnoD_BN5ZPiQtlR z@(HQr9n!~_3WV_~mmkO@WRk3qdnD>f;F;t?YdGLX>KelH@ADkj?xy^j`)-9XIagWY zGaC`Jj_+eh5Fj{yQyYkNv76mA(y3Yu2Azl<^IH-fQ*e!&~8@#KUjo#{ivuB ov;JGM*Dm0S_f-H(6Dkh6^Q8_KjA%eyPTS$Iwf{L73)IzG6SyiaK5w#XAW=8u1v><4s zZrm6&Pq3J=g(DK8^zn)!Dv8;sWzM~wbKi6DTPJGK58m8&&pr3|JLlZ8 z%6uGL_!Qwo@BNH1V=e-mijBoOH)r{&wHPse+=P6X8}b=S&AC$!IbzLhZ7m%C?gz-zD<1h z?AX37N?n!dA|eu+&?y_5r_-WjGt4HZwGBgxToDNGpx+W+FEWQ558g3x@D;b+#qN*+ z;B3n@&xwH*l>!&D{dUGKuCZsK;%pV zRWd1AEv$hB0#qgZ}zyux^qvHPUtG3vxs1^BGBk;rq!Oo?r-vTYHoEHcD6m}J_N z{yD738R#kqTX;o*c(BpPP0wsi`0I}w!KOJePbMiO&lA6*R6d*-KX^`Hj$Ex{ma7U7 zGQ@~ec%bvi2mK9AQx1p6+Q~qXUIgotA`Lzy2@ttO!Yk)8qq7hK zs+nXe5PW~Xm?P^yoZ|M@A=P0>j$Kyr5`!oXw*)|AVM`Y~Z{EGevlYPBNvSRp!bjv} zN(37sR;KD|@JcNw=6=vz`$rk91$VSX7mNk$Z^`)U0!qZb*YMB{`0w!>ED3{UAy5C@ P00000NkvXXu0mjft3Iu{ literal 0 HcmV?d00001 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