public void ShowDetail( CardinalDirections location, ViewSizes size, bool sizeLocked = true, bool positionLocked = true ) { _detailView.gameObject.SetActive(true); _detailView.SetSize(size); _detailView.SetLocation(location); _detailView.Refresh(_attributeData, _portraitData, _descriptionData); _detailView.transform.SetAsLastSibling(); _detailView.SetLockedAllHandles(sizeLocked); _detailView.SetLockedMoveHandle(positionLocked); }
// CONSTRUCTORS ~~~~~~~~~~ // ~ Static // ~~ public // ~~ private // ~ Non-Static // ~~ public // ~~ private // DESTRUCTORS ~~~~~~~~~~ // ~ Static // ~~ public // ~~ private // ~ Non-Static // ~~ public // ~~ private // DELEGATES ~~~~~~~~~~ // ~ Static // ~~ public // ~~ private // ~ Non-Static // ~~ public // ~~ private // EVENTS ~~~~~~~~~~ // ~ Static // ~~ public // ~~ private // ~ Non-Static // ~~ public // ~~ private // ENUMS // ~ Static // ~~ public // ~~ private // ~ Non-Static // ~~ public // ~~ private // INTERFACES ~~~~~~~~~~ // ~ Static // ~~ public // ~~ private // ~ Non-Static // ~~ public // ~~ private // PROPERTIES ~~~~~~~~~~ // ~ Static // ~~ public // ~~ private // ~ Non-Static // ~~ public // ~~ private // INDEXERS ~~~~~~~~~~ // ~ Static // ~~ public // ~~ private // ~ Non-Static // ~~ public // ~~ private // METHODS ~~~~~~~~~ // ~ Static // ~~ public public static SubjectDetailView GetView( Canvas canvas, ViewSizes size = ViewSizes.Medium, CardinalDirections location = CardinalDirections.West ) { GameObject result = new GameObject("Detail View"); SubjectDetailView resultMono = result.AddComponent <SubjectDetailView>(); resultMono.Initialize(canvas); resultMono.SetSize(size); resultMono.SetLocation(location); return(resultMono); }