示例#1
0
        private void DrawPartsPane(BFLYT.PRT1 pane, byte effectiveAlpha, bool parentInfluenceAlpha)
        {
            pane.UpdateTextureData(this.Textures);
            var partPane = pane.GetExternalPane();

            if (partPane != null)
            {
                RenderPanes(partPane, false, effectiveAlpha, parentInfluenceAlpha);
            }
            else
            {
                DrawDefaultPane(pane);
            }

            if (pane.Properties != null)
            {
                foreach (var prop in pane.Properties)
                {
                    if (prop.Property != null)
                    {
                        RenderPanes(prop.Property, false, effectiveAlpha, parentInfluenceAlpha || pane.InfluenceAlpha);
                    }
                }
            }
        }
示例#2
0
        public BasePane AddNewPartPane()
        {
            BasePane pane = null;

            if (ActiveLayout is BFLYT.Header)
            {
                pane = new BFLYT.PRT1((BFLYT.Header)ActiveLayout, RenamePane("N_part"));
            }

            if (pane != null)
            {
                pane.NodeWrapper = LayoutHierarchy.CreatePaneWrapper(pane);
                ActiveLayout.AddPane(pane, ActiveLayout.RootPane);
            }

            return(pane);
        }