Exemplo n.º 1
0
        private void load()
        {
            RelativeSizeAxes = Axes.Y;
            AutoSizeAxes     = Axes.X;

            Children = new Drawable[] {
                button = new ToolbarUserButton
                {
                    Action = () => LoginOverlay.ToggleVisibility(),
                },
                LoginOverlay = new LoginOverlay
                {
                    BypassAutoSizeAxes   = Axes.Both,
                    Position             = new Vector2(0, 1),
                    RelativePositionAxes = Axes.Y,
                    Anchor = Anchor.TopRight,
                    Origin = Anchor.TopRight,
                }
            };
        }
Exemplo n.º 2
0
        public ToolbarUserArea()
        {
            AlwaysReceiveInput = true;

            RelativeSizeAxes = Axes.Y;
            AutoSizeAxes     = Axes.X;

            Children = new Drawable[] {
                button = new ToolbarUserButton
                {
                    Action = () => LoginOverlay.ToggleVisibility(),
                },
                LoginOverlay = new LoginOverlay
                {
                    BypassAutoSizeAxes   = Axes.Both,
                    Position             = new Vector2(0, 1),
                    RelativePositionAxes = Axes.Y,
                    Anchor = Anchor.TopRight,
                    Origin = Anchor.TopRight,
                }
            };
        }
Exemplo n.º 3
0
 private void showLogin()
 {
     loginOverlay.ToggleVisibility();
     registerOverlay.Hide();
 }