Exemple #1
0
        public PanelTabs(EntityProps entityProps) : base(entityProps)
        {
            p_Padding = Vector2.Zero;

            p_internalRoot = new ContainerPanel(new EntityProps {
                EntityName = Name + ": Root", Size = Vector2.Zero, EntityAnchor = Anchor.TopCenter
            });
            p_internalRoot.p_SpaceBefore = p_internalRoot.p_SpaceAfter = p_internalRoot.Padding = Vector2.Zero;
            AddChild(p_internalRoot);

            p_buttonsPanel = new ContainerPanel(new EntityProps {
                EntityName = Name + ": Button", Size = Vector2.Zero, EntityAnchor = Anchor.TopCenter
            });
            p_buttonsPanel.p_SpaceBefore = p_buttonsPanel.p_SpaceAfter = p_buttonsPanel.Padding = Vector2.Zero;
            p_internalRoot.AddChild(p_buttonsPanel);

            p_panelsPanel = new ContainerPanel(new EntityProps {
                EntityName = Name + ": Panel", Size = Vector2.Zero, EntityAnchor = Anchor.TopCenter, LocalPosition = new Vector2(0, 0)
            });
            p_panelsPanel.p_SpaceBefore = p_panelsPanel.p_SpaceAfter = p_panelsPanel.Padding = Vector2.Zero;
            p_internalRoot.AddChild(p_panelsPanel);

            p_panelsPanel.p_HiddenInternalEntity  = true;
            p_buttonsPanel.p_HiddenInternalEntity = true;
            p_internalRoot.p_HiddenInternalEntity = true;
        }
 public ContainerPanel(EntityProps entityProps) : base(entityProps)
 {
     ClickThrough = true;
     IsTargetable = false;
 }