示例#1
0
        protected override void LoadComplete()
        {
            base.LoadComplete();

            AddInternal(ratioContainer = new RatioAdjust
            {
                Children = new Drawable[]
                {
                    new Container
                    {
                        AlwaysReceiveInput = true,
                        RelativeSizeAxes   = Axes.Both,
                        Depth    = float.MinValue,
                        Children = new Drawable[]
                        {
                            Cursor = new MenuCursor(),
                            new TooltipContainer(Cursor)
                            {
                                Depth = -1
                            },
                        }
                    },
                }
            });

            // TODO: This is temporary until we reimplement the local FPS display.
            // It's just to allow end-users to access the framework FPS display without knowing the shortcut key.
            fpsDisplayVisible = LocalConfig.GetBindable <bool>(OsuConfig.ShowFpsDisplay);
            fpsDisplayVisible.ValueChanged += val =>
            {
                FrameStatisticsMode = val ? FrameStatisticsMode.Minimal : FrameStatisticsMode.None;
            };
            fpsDisplayVisible.TriggerChange();
        }
示例#2
0
        protected override void LoadComplete()
        {
            base.LoadComplete();

            AddInternal(ratioContainer = new RatioAdjust
            {
                Children = new Drawable[]
                {
                    new Container
                    {
                        AlwaysReceiveInput = true,
                        RelativeSizeAxes   = Axes.Both,
                        Depth    = float.MinValue,
                        Children = new Drawable[]
                        {
                            Cursor = new MenuCursor(),
                            new TooltipContainer(Cursor)
                            {
                                Depth = -1
                            },
                        }
                    },
                }
            });
        }
示例#3
0
        public OsuGameBase()
        {
            AddInternal(ratioContainer = new RatioAdjust());

            Children = new Drawable[]
            {
                Options = new Options(),
                Cursor  = new OsuCursorContainer()
            };
        }
示例#4
0
        public OsuGameBase()
        {
            AddInternal(ratioContainer = new RatioAdjust());

            Children = new Drawable[]
            {
                Cursor = new OsuCursorContainer {
                    Depth = float.MaxValue
                }
            };

            Beatmap.ValueChanged += Beatmap_ValueChanged;
        }
示例#5
0
        protected override void LoadComplete()
        {
            base.LoadComplete();

            AddInternal(ratioContainer = new RatioAdjust
            {
                Children = new[]
                {
                    Cursor = new MenuCursor {
                        Depth = float.MinValue
                    }
                }
            });
        }