コード例 #1
0
        /*--------------------------------------------------------------------------------------------*/
        public void TreeUpdate()
        {
            HovercastRowTitle rowTitle = ActiveRow.GetComponent <HovercastRowTitle>();

            TitleItem.Label    = (rowTitle == null ? "" : rowTitle.RowTitle);
            BackItem.IsEnabled = (vRowHistory.Count > 0);
        }
コード例 #2
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);
            }
        }
コード例 #3
0
        /*--------------------------------------------------------------------------------------------*/
        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;
        }
コード例 #4
0
        /*--------------------------------------------------------------------------------------------*/
        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;
        }