Esempio n. 1
0
        public void AddElement(AGuiElement element, AGuiElement parent, AScene scene)
        {
            this.guiHierarchy[element] = new HashSet <AGuiElement>();
            this.guiHierarchy[parent].Add(element);

            element.Attach(scene, parent);
            this.updateGuiZ(element);
            element.RecalculatePosition(true);
        }
Esempio n. 2
0
        public void AddElement(AGuiElement element, AGuiElement parent, AScene scene)
        {
            var treeRoot = element.Below ?? parent;

            this.guiHierarchy[element] = new HashSet <AGuiElement>();
            this.guiHierarchy[treeRoot].Add(element);

            element.SetDepth(treeRoot.Z0 - treeRoot.ZRange, treeRoot.ZRange);
            element.Attach(scene, parent);
            this.updateGuiZ(element);
            element.Position.Recalculate();
        }