Normal
Not sure, you can try to use SkinControlAttribute instead.Other try is to loose SkinControl and group alltogether and make a property that will get group control directly from the skin:[CODE]protected GUIGroup _mainGroup = nullprotected GUIGroup MainGroup{ get { if (_mainGroup == null) _mainGroup = GetControl(groupID) as GUIGroup; return _mainGroup; }}......MainGroup.Add(button1)...[/CODE]
Not sure, you can try to use SkinControlAttribute instead.
Other try is to loose SkinControl and group alltogether and make a property that will get group control directly from the skin:
[CODE]protected GUIGroup _mainGroup = null
protected GUIGroup MainGroup
{
get
if (_mainGroup == null)
_mainGroup = GetControl(groupID) as GUIGroup;
return _mainGroup;
}
...
MainGroup.Add(button1)...
[/CODE]