@@ -45,6 +45,7 @@ public void Enable()
45
45
public bool SubContentActive => SubContentHolder . activeSelf ;
46
46
47
47
public LayoutElement NameLayout ;
48
+ public GameObject RightGroupContent ;
48
49
public LayoutElement RightGroupLayout ;
49
50
50
51
public Text NameLabel ;
@@ -136,16 +137,16 @@ public virtual GameObject CreateContent(GameObject parent)
136
137
137
138
// Right vertical group
138
139
139
- var rightGroupHolder = UIFactory . CreateUIObject ( "RightGroup" , horiRow ) ;
140
- UIFactory . SetLayoutGroup < VerticalLayoutGroup > ( rightGroupHolder , false , false , true , true , 4 , childAlignment : TextAnchor . UpperLeft ) ;
141
- UIFactory . SetLayoutElement ( rightGroupHolder , minHeight : 25 , minWidth : 200 , flexibleWidth : 9999 , flexibleHeight : 800 ) ;
142
- RightGroupLayout = rightGroupHolder . GetComponent < LayoutElement > ( ) ;
140
+ RightGroupContent = UIFactory . CreateUIObject ( "RightGroup" , horiRow ) ;
141
+ UIFactory . SetLayoutGroup < VerticalLayoutGroup > ( RightGroupContent , false , false , true , true , 4 , childAlignment : TextAnchor . UpperLeft ) ;
142
+ UIFactory . SetLayoutElement ( RightGroupContent , minHeight : 25 , minWidth : 200 , flexibleWidth : 9999 , flexibleHeight : 800 ) ;
143
+ RightGroupLayout = RightGroupContent . GetComponent < LayoutElement > ( ) ;
143
144
144
- ConstructEvaluateHolder ( rightGroupHolder ) ;
145
+ ConstructEvaluateHolder ( RightGroupContent ) ;
145
146
146
147
// Right horizontal group
147
148
148
- var rightHoriGroup = UIFactory . CreateUIObject ( "RightHoriGroup" , rightGroupHolder ) ;
149
+ var rightHoriGroup = UIFactory . CreateUIObject ( "RightHoriGroup" , RightGroupContent ) ;
149
150
UIFactory . SetLayoutGroup < HorizontalLayoutGroup > ( rightHoriGroup , false , false , true , true , 4 , childAlignment : TextAnchor . UpperLeft ) ;
150
151
UIFactory . SetLayoutElement ( rightHoriGroup , minHeight : 25 , minWidth : 200 , flexibleWidth : 9999 , flexibleHeight : 800 ) ;
151
152
0 commit comments