@@ -11,17 +11,13 @@ namespace GhPython.Component
1111 [ Guid ( "410755B1-224A-4C1E-A407-BF32FB45EA7E" ) ]
1212 public class ZuiPythonComponent : ScriptingAncestorComponent , IGH_VariableParameterComponent
1313 {
14- public ZuiPythonComponent ( )
15- {
16- }
17-
18- protected override void AddDefaultInput ( GH_Component . GH_InputParamManager pManager )
14+ protected override void AddDefaultInput ( GH_InputParamManager pManager )
1915 {
2016 pManager . AddParameter ( CreateParameter ( GH_ParameterSide . Input , pManager . ParamCount ) ) ;
2117 pManager . AddParameter ( CreateParameter ( GH_ParameterSide . Input , pManager . ParamCount ) ) ;
2218 }
2319
24- protected override void AddDefaultOutput ( GH_Component . GH_OutputParamManager pManager )
20+ protected override void AddDefaultOutput ( GH_OutputParamManager pManager )
2521 {
2622 pManager . RegisterParam ( CreateParameter ( GH_ParameterSide . Output , pManager . ParamCount ) ) ;
2723 }
@@ -41,45 +37,45 @@ internal override void FixGhInput(Param_ScriptVariable i, bool alsoSetIfNecessar
4137 i . TypeHint = i . Hints [ 1 ] ;
4238 }
4339
44- static readonly List < IGH_TypeHint > m_hints = new List < IGH_TypeHint > ( ) ;
40+ static readonly List < IGH_TypeHint > g_hints = new List < IGH_TypeHint > ( ) ;
4541 static List < IGH_TypeHint > GetHints ( )
4642 {
47- lock ( m_hints )
43+ lock ( g_hints )
4844 {
49- if ( m_hints . Count == 0 )
45+ if ( g_hints . Count == 0 )
5046 {
51- m_hints . Add ( new NoChangeHint ( ) ) ;
52- m_hints . Add ( new GhDocGuidHint ( ) ) ;
47+ g_hints . Add ( new NoChangeHint ( ) ) ;
48+ g_hints . Add ( new GhDocGuidHint ( ) ) ;
5349
54- m_hints . AddRange ( PossibleHints ) ;
50+ g_hints . AddRange ( PossibleHints ) ;
5551
56- m_hints . RemoveAll ( t =>
52+ g_hints . RemoveAll ( t =>
5753 {
5854 var y = t . GetType ( ) ;
5955 return ( y == typeof ( GH_DoubleHint_CS ) || y == typeof ( GH_StringHint_CS ) ) ;
6056 } ) ;
61- m_hints . Insert ( 4 , new NewFloatHint ( ) ) ;
62- m_hints . Insert ( 6 , new NewStrHint ( ) ) ;
57+ g_hints . Insert ( 4 , new NewFloatHint ( ) ) ;
58+ g_hints . Insert ( 6 , new NewStrHint ( ) ) ;
6359
64- m_hints . Add ( new GH_BoxHint ( ) ) ;
60+ g_hints . Add ( new GH_BoxHint ( ) ) ;
6561
66- m_hints . Add ( new GH_HintSeparator ( ) ) ;
62+ g_hints . Add ( new GH_HintSeparator ( ) ) ;
6763
68- m_hints . Add ( new GH_LineHint ( ) ) ;
69- m_hints . Add ( new GH_CircleHint ( ) ) ;
70- m_hints . Add ( new GH_ArcHint ( ) ) ;
71- m_hints . Add ( new GH_PolylineHint ( ) ) ;
64+ g_hints . Add ( new GH_LineHint ( ) ) ;
65+ g_hints . Add ( new GH_CircleHint ( ) ) ;
66+ g_hints . Add ( new GH_ArcHint ( ) ) ;
67+ g_hints . Add ( new GH_PolylineHint ( ) ) ;
7268
73- m_hints . Add ( new GH_HintSeparator ( ) ) ;
69+ g_hints . Add ( new GH_HintSeparator ( ) ) ;
7470
75- m_hints . Add ( new GH_CurveHint ( ) ) ;
76- m_hints . Add ( new GH_MeshHint ( ) ) ;
77- m_hints . Add ( new GH_SurfaceHint ( ) ) ;
78- m_hints . Add ( new GH_BrepHint ( ) ) ;
79- m_hints . Add ( new GH_GeometryBaseHint ( ) ) ;
71+ g_hints . Add ( new GH_CurveHint ( ) ) ;
72+ g_hints . Add ( new GH_MeshHint ( ) ) ;
73+ g_hints . Add ( new GH_SurfaceHint ( ) ) ;
74+ g_hints . Add ( new GH_BrepHint ( ) ) ;
75+ g_hints . Add ( new GH_GeometryBaseHint ( ) ) ;
8076 }
8177 }
82- return m_hints ;
78+ return g_hints ;
8379 }
8480
8581 #region IGH_VariableParameterComponent implementation
0 commit comments