public INEInterface(INEInterfaceList newUI) { Header = newUI.Header; Login = newUI.Login; ApiTest = newUI.ApiTest; TeamList = newUI.TeamList; NewTeam = newUI.NewTeam; Team = newUI.Team; CharacterBuilder = newUI.CharacterBuilder; CharacterList = newUI.CharacterList; ConfirmationDialog = newUI.ConfirmationDialog; GreyScreen = newUI.GreyScreen; }
//Set Aspects is just to connect UI, it does no other initial value setup other than determining the starting posistion of the target slider public void SetAspects(CharacterBuilderUI parent, INEAspectGroup aspectGroup) { if (parent != null && aspectGroup != null) { Parent = parent; AspectGroup = aspectGroup; AspectsUI = new Dictionary <int, AspectItemUI>(); foreach (KeyValuePair <int, INEAspect> aspect in AspectGroup.Aspects) { if (aspect.Value != null) { RectTransform newPrefab = Instantiate(AspectPrefab); AspectsUI.Add(aspect.Key, newPrefab.GetComponent <AspectItemUI>()); newPrefab.transform.SetParent(AspectListParent.transform, false); AspectsUI[aspect.Key].SetAspect(this, aspect.Key, AspectGroup.AspectName(aspect.Key), aspect.Value.TargetDistribution); } } } }