コード例 #1
0
        private void load(OsuColour color)
        {
            textFlow.AddIcon(FontAwesome.Solid.Wrench, t =>
            {
                t.Font = t.Font.With(size: 50);
            });

            textFlow.NewParagraph();

            textFlow.AddParagraph("Disclaimer", t =>
            {
                t.Font = t.Font.With(size: 30f);
            });

            textFlow.AddParagraph("This is a WIP, so don't expect things to work as expected.");

            textFlow.AddParagraph("Tip: " + disclaimer_tips[RNG.Next(0, disclaimer_tips.Length)], t =>
            {
                t.Colour = color.BlueLighter;
            });

            textFlow.NewParagraph();

            textFlow.AddParagraph("Press your (A) (B), (Select) (Start) button to skip this.", t =>
            {
                t.Colour = color.YellowLighter;
                t.Font   = t.Font.With(size: 12f);
            });
        }
コード例 #2
0
        private void skinChanged()
        {
            headerText.Clear();

            headerText.AddParagraph("Skin editor", cp => cp.Font = OsuFont.Default.With(size: 24));
            headerText.NewParagraph();
            headerText.AddText("Currently editing ", cp =>
            {
                cp.Font   = OsuFont.Default.With(size: 12);
                cp.Colour = colours.Yellow;
            });

            headerText.AddText($"{currentSkin.Value.SkinInfo}", cp =>
            {
                cp.Font   = OsuFont.Default.With(size: 12, weight: FontWeight.Bold);
                cp.Colour = colours.Yellow;
            });

            skins.EnsureMutableSkin();
            hasBegunMutating = true;
        }