/*--------------------------------------------------------------------------------------------*/ public void TreeUpdate() { HovercastRowTitle rowTitle = ActiveRow.GetComponent <HovercastRowTitle>(); TitleItem.Label = (rowTitle == null ? "" : rowTitle.RowTitle); BackItem.IsEnabled = (vRowHistory.Count > 0); }
/*--------------------------------------------------------------------------------------------*/ public void TreeUpdate() { HovercastRowTitle rowTitle = ActiveRow.GetComponent <HovercastRowTitle>(); TitleItem.Label = (rowTitle == null ? "" : rowTitle.RowTitle); BackItem.IsEnabled = (IsOpen && vRowHistory.Count > 0); if (!IsOpen) { RowContainer.gameObject.SetActive(false); } }
/*--------------------------------------------------------------------------------------------*/ private void BuildRow(GameObject pRowGo, string pRowTitle) { pRowGo.AddComponent <TreeUpdater>(); HoverLayoutArcRow layoutArc = pRowGo.AddComponent <HoverLayoutArcRow>(); layoutArc.ArcDegrees = 90; layoutArc.DegreePadding = 0.2f; HovercastRowTitle title = pRowGo.AddComponent <HovercastRowTitle>(); title.RowTitle = pRowTitle; }
/*--------------------------------------------------------------------------------------------*/ private void BuildRow(GameObject pRowGo, string pRowTitle) { pRowGo.AddComponent <TreeUpdater>(); HoverLayoutArcRow layoutArc = pRowGo.AddComponent <HoverLayoutArcRow>(); layoutArc.ArcDegrees = 90; HoverLayoutArcPaddingSettings layoutArcPad = layoutArc.Padding; layoutArcPad.Between = 0.15f; layoutArc.Padding = layoutArcPad; HovercastRowTitle title = pRowGo.AddComponent <HovercastRowTitle>(); title.RowTitle = pRowTitle; }