Ejemplo n.º 1
0
        public RoomSelectorOverlay()
        {
            AddRange(new Drawable[]
            {
                new BasicContextMenuContainer
                {
                    RelativeSizeAxes = Axes.Both,
                    Child            = new Container
                    {
                        Padding          = new MarginPadding(10),
                        RelativeSizeAxes = Axes.Both,
                        Child            = new IWannaScrollContainer
                        {
                            RelativeSizeAxes = Axes.Both,
                            Child            = flow = new FillFlowContainer <FlowItem>
                            {
                                Anchor           = Anchor.TopCentre,
                                Origin           = Anchor.TopCentre,
                                RelativeSizeAxes = Axes.X,
                                AutoSizeAxes     = Axes.Y,
                                Direction        = FillDirection.Full,
                                Spacing          = new Vector2(10)
                            }
                        }
                    }
                },
                roomCreationOverlay = new RoomCreationOverlay()
            });

            roomCreationOverlay.CreatedRoom += onCreation;
        }
Ejemplo n.º 2
0
        public CreationScreen()
        {
            ValidForResume = false;

            AddRangeInternal(new Drawable[]
            {
                new FillFlowContainer
                {
                    Anchor       = Anchor.Centre,
                    Origin       = Anchor.Centre,
                    AutoSizeAxes = Axes.Both,
                    Direction    = FillDirection.Vertical,
                    Spacing      = new Vector2(0, 10),
                    Children     = new Drawable[]
                    {
                        new SettingName("Name"),
                        textbox = new IWannaTextBox
                        {
                            Width  = 300,
                            Anchor = Anchor.Centre,
                            Origin = Anchor.Centre,
                        },
                        new SettingName("First room settings"),
                        new IWannaBasicButton("Adjust", onAdjust)
                        {
                            Anchor = Anchor.Centre,
                            Origin = Anchor.Centre
                        },
                        new IWannaBasicButton("Ok", onCommit)
                        {
                            Anchor = Anchor.Centre,
                            Origin = Anchor.Centre,
                            Margin = new MarginPadding {
                                Top = 20
                            }
                        }
                    }
                },
                roomCreationOverlay = new RoomCreationOverlay(),
            });
        }