mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Update font awesome usage
This commit is contained in:
@ -110,7 +110,7 @@ namespace osu.Desktop.Overlays
|
|||||||
public UpdateCompleteNotification(string version, Action<string> openUrl = null)
|
public UpdateCompleteNotification(string version, Action<string> openUrl = null)
|
||||||
{
|
{
|
||||||
Text = $"You are now running osu!lazer {version}.\nClick to see what's new!";
|
Text = $"You are now running osu!lazer {version}.\nClick to see what's new!";
|
||||||
Icon = FontAwesome.CheckSquare;
|
Icon = FontAwesome.Solid.CheckSquare;
|
||||||
Activated = delegate
|
Activated = delegate
|
||||||
{
|
{
|
||||||
openUrl?.Invoke($"https://osu.ppy.sh/home/changelog/lazer/{version}");
|
openUrl?.Invoke($"https://osu.ppy.sh/home/changelog/lazer/{version}");
|
||||||
|
@ -54,7 +54,7 @@ namespace osu.Desktop.Updater
|
|||||||
{
|
{
|
||||||
Text = $"A newer release of osu! has been found ({version} → {latest.TagName}).\n\n"
|
Text = $"A newer release of osu! has been found ({version} → {latest.TagName}).\n\n"
|
||||||
+ "Click here to download the new version, which can be installed over the top of your existing installation",
|
+ "Click here to download the new version, which can be installed over the top of your existing installation",
|
||||||
Icon = FontAwesome.Upload,
|
Icon = FontAwesome.Solid.Upload,
|
||||||
Activated = () =>
|
Activated = () =>
|
||||||
{
|
{
|
||||||
host.OpenUrlExternally(getBestUrl(latest));
|
host.OpenUrlExternally(getBestUrl(latest));
|
||||||
|
@ -159,7 +159,7 @@ namespace osu.Desktop.Updater
|
|||||||
{
|
{
|
||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.Centre,
|
||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
Icon = FontAwesome.Upload,
|
Icon = FontAwesome.Solid.Upload,
|
||||||
Colour = Color4.White,
|
Colour = Color4.White,
|
||||||
Size = new Vector2(20),
|
Size = new Vector2(20),
|
||||||
}
|
}
|
||||||
|
@ -23,19 +23,19 @@ namespace osu.Game.Rulesets.Catch.Beatmaps
|
|||||||
{
|
{
|
||||||
Name = @"Fruit Count",
|
Name = @"Fruit Count",
|
||||||
Content = fruits.ToString(),
|
Content = fruits.ToString(),
|
||||||
Icon = FontAwesome.CircleOutline
|
Icon = FontAwesome.Regular.Circle
|
||||||
},
|
},
|
||||||
new BeatmapStatistic
|
new BeatmapStatistic
|
||||||
{
|
{
|
||||||
Name = @"Juice Stream Count",
|
Name = @"Juice Stream Count",
|
||||||
Content = juiceStreams.ToString(),
|
Content = juiceStreams.ToString(),
|
||||||
Icon = FontAwesome.Circle
|
Icon = FontAwesome.Regular.Circle
|
||||||
},
|
},
|
||||||
new BeatmapStatistic
|
new BeatmapStatistic
|
||||||
{
|
{
|
||||||
Name = @"Banana Shower Count",
|
Name = @"Banana Shower Count",
|
||||||
Content = bananaShowers.ToString(),
|
Content = bananaShowers.ToString(),
|
||||||
Icon = FontAwesome.Circle
|
Icon = FontAwesome.Regular.Circle
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -42,13 +42,13 @@ namespace osu.Game.Rulesets.Mania.Beatmaps
|
|||||||
{
|
{
|
||||||
Name = @"Note Count",
|
Name = @"Note Count",
|
||||||
Content = notes.ToString(),
|
Content = notes.ToString(),
|
||||||
Icon = FontAwesome.CircleOutline
|
Icon = FontAwesome.Regular.Circle
|
||||||
},
|
},
|
||||||
new BeatmapStatistic
|
new BeatmapStatistic
|
||||||
{
|
{
|
||||||
Name = @"Hold Note Count",
|
Name = @"Hold Note Count",
|
||||||
Content = holdnotes.ToString(),
|
Content = holdnotes.ToString(),
|
||||||
Icon = FontAwesome.Circle
|
Icon = FontAwesome.Regular.Circle
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -23,19 +23,19 @@ namespace osu.Game.Rulesets.Osu.Beatmaps
|
|||||||
{
|
{
|
||||||
Name = @"Circle Count",
|
Name = @"Circle Count",
|
||||||
Content = circles.ToString(),
|
Content = circles.ToString(),
|
||||||
Icon = FontAwesome.CircleOutline
|
Icon = FontAwesome.Regular.Circle
|
||||||
},
|
},
|
||||||
new BeatmapStatistic
|
new BeatmapStatistic
|
||||||
{
|
{
|
||||||
Name = @"Slider Count",
|
Name = @"Slider Count",
|
||||||
Content = sliders.ToString(),
|
Content = sliders.ToString(),
|
||||||
Icon = FontAwesome.Circle
|
Icon = FontAwesome.Regular.Circle
|
||||||
},
|
},
|
||||||
new BeatmapStatistic
|
new BeatmapStatistic
|
||||||
{
|
{
|
||||||
Name = @"Spinner Count",
|
Name = @"Spinner Count",
|
||||||
Content = spinners.ToString(),
|
Content = spinners.ToString(),
|
||||||
Icon = FontAwesome.Circle
|
Icon = FontAwesome.Regular.Circle
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -23,7 +23,7 @@ namespace osu.Game.Rulesets.Osu.Mods
|
|||||||
public override string Description => "Play with blinds on your screen.";
|
public override string Description => "Play with blinds on your screen.";
|
||||||
public override string Acronym => "BL";
|
public override string Acronym => "BL";
|
||||||
|
|
||||||
public override IconUsage Icon => FontAwesome.Adjust;
|
public override IconUsage Icon => FontAwesome.Solid.Adjust;
|
||||||
public override ModType Type => ModType.DifficultyIncrease;
|
public override ModType Type => ModType.DifficultyIncrease;
|
||||||
|
|
||||||
public override bool Ranked => false;
|
public override bool Ranked => false;
|
||||||
|
@ -17,7 +17,7 @@ namespace osu.Game.Rulesets.Osu.Mods
|
|||||||
|
|
||||||
public override string Acronym => "GR";
|
public override string Acronym => "GR";
|
||||||
|
|
||||||
public override IconUsage Icon => FontAwesome.ArrowsV;
|
public override IconUsage Icon => FontAwesome.Solid.ArrowsAltV;
|
||||||
|
|
||||||
public override ModType Type => ModType.Fun;
|
public override ModType Type => ModType.Fun;
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ namespace osu.Game.Rulesets.Osu.Mods
|
|||||||
{
|
{
|
||||||
public override string Name => "Transform";
|
public override string Name => "Transform";
|
||||||
public override string Acronym => "TR";
|
public override string Acronym => "TR";
|
||||||
public override IconUsage Icon => FontAwesome.Arrows;
|
public override IconUsage Icon => FontAwesome.Solid.ArrowsAlt;
|
||||||
public override ModType Type => ModType.Fun;
|
public override ModType Type => ModType.Fun;
|
||||||
public override string Description => "Everything rotates. EVERYTHING.";
|
public override string Description => "Everything rotates. EVERYTHING.";
|
||||||
public override double ScoreMultiplier => 1;
|
public override double ScoreMultiplier => 1;
|
||||||
|
@ -17,7 +17,7 @@ namespace osu.Game.Rulesets.Osu.Mods
|
|||||||
{
|
{
|
||||||
public override string Name => "Wiggle";
|
public override string Name => "Wiggle";
|
||||||
public override string Acronym => "WG";
|
public override string Acronym => "WG";
|
||||||
public override IconUsage Icon => FontAwesome.Certificate;
|
public override IconUsage Icon => FontAwesome.Solid.Certificate;
|
||||||
public override ModType Type => ModType.Fun;
|
public override ModType Type => ModType.Fun;
|
||||||
public override string Description => "They just won't stay still...";
|
public override string Description => "They just won't stay still...";
|
||||||
public override double ScoreMultiplier => 1;
|
public override double ScoreMultiplier => 1;
|
||||||
|
@ -36,7 +36,7 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
|
|||||||
new SkinnableDrawable("Play/osu/reversearrow", _ => new SpriteIcon
|
new SkinnableDrawable("Play/osu/reversearrow", _ => new SpriteIcon
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
Icon = FontAwesome.ChevronRight
|
Icon = FontAwesome.Solid.ChevronRight
|
||||||
}, restrictSize: false)
|
}, restrictSize: false)
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -77,7 +77,7 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
|
|||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.Centre,
|
||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
Size = new Vector2(48),
|
Size = new Vector2(48),
|
||||||
Icon = FontAwesome.Asterisk,
|
Icon = FontAwesome.Solid.Asterisk,
|
||||||
Shadow = false,
|
Shadow = false,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@ -23,19 +23,19 @@ namespace osu.Game.Rulesets.Taiko.Beatmaps
|
|||||||
{
|
{
|
||||||
Name = @"Hit Count",
|
Name = @"Hit Count",
|
||||||
Content = hits.ToString(),
|
Content = hits.ToString(),
|
||||||
Icon = FontAwesome.CircleOutline
|
Icon = FontAwesome.Regular.Circle
|
||||||
},
|
},
|
||||||
new BeatmapStatistic
|
new BeatmapStatistic
|
||||||
{
|
{
|
||||||
Name = @"Drumroll Count",
|
Name = @"Drumroll Count",
|
||||||
Content = drumrolls.ToString(),
|
Content = drumrolls.ToString(),
|
||||||
Icon = FontAwesome.Circle
|
Icon = FontAwesome.Regular.Circle
|
||||||
},
|
},
|
||||||
new BeatmapStatistic
|
new BeatmapStatistic
|
||||||
{
|
{
|
||||||
Name = @"Swell Count",
|
Name = @"Swell Count",
|
||||||
Content = swells.ToString(),
|
Content = swells.ToString(),
|
||||||
Icon = FontAwesome.Circle
|
Icon = FontAwesome.Regular.Circle
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -27,7 +27,7 @@ namespace osu.Game.Rulesets.Taiko.Objects.Drawables.Pieces
|
|||||||
new SpriteIcon
|
new SpriteIcon
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
Icon = FontAwesome.Asterisk,
|
Icon = FontAwesome.Solid.Asterisk,
|
||||||
Shadow = false
|
Shadow = false
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -16,10 +16,10 @@ namespace osu.Game.Tests.Visual.SongSelect
|
|||||||
{
|
{
|
||||||
var overlay = new BeatmapOptionsOverlay();
|
var overlay = new BeatmapOptionsOverlay();
|
||||||
|
|
||||||
overlay.AddButton(@"Remove", @"from unplayed", FontAwesome.TimesCircleOutline, Color4.Purple, null, Key.Number1);
|
overlay.AddButton(@"Remove", @"from unplayed", FontAwesome.Regular.TimesCircle, Color4.Purple, null, Key.Number1);
|
||||||
overlay.AddButton(@"Clear", @"local scores", FontAwesome.Eraser, Color4.Purple, null, Key.Number2);
|
overlay.AddButton(@"Clear", @"local scores", FontAwesome.Solid.Eraser, Color4.Purple, null, Key.Number2);
|
||||||
overlay.AddButton(@"Edit", @"Beatmap", FontAwesome.Pencil, Color4.Yellow, null, Key.Number3);
|
overlay.AddButton(@"Edit", @"Beatmap", FontAwesome.Solid.PencilAlt, Color4.Yellow, null, Key.Number3);
|
||||||
overlay.AddButton(@"Delete", @"Beatmap", FontAwesome.Trash, Color4.Pink, null, Key.Number4, float.MaxValue);
|
overlay.AddButton(@"Delete", @"Beatmap", FontAwesome.Solid.Trash, Color4.Pink, null, Key.Number4, float.MaxValue);
|
||||||
|
|
||||||
Add(overlay);
|
Add(overlay);
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
|||||||
|
|
||||||
AddStep("dialog #1", () => overlay.Push(new PopupDialog
|
AddStep("dialog #1", () => overlay.Push(new PopupDialog
|
||||||
{
|
{
|
||||||
Icon = FontAwesome.TrashOutline,
|
Icon = FontAwesome.Regular.TrashAlt,
|
||||||
HeaderText = @"Confirm deletion of",
|
HeaderText = @"Confirm deletion of",
|
||||||
BodyText = @"Ayase Rie - Yuima-ru*World TVver.",
|
BodyText = @"Ayase Rie - Yuima-ru*World TVver.",
|
||||||
Buttons = new PopupDialogButton[]
|
Buttons = new PopupDialogButton[]
|
||||||
@ -39,7 +39,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
|||||||
|
|
||||||
AddStep("dialog #2", () => overlay.Push(new PopupDialog
|
AddStep("dialog #2", () => overlay.Push(new PopupDialog
|
||||||
{
|
{
|
||||||
Icon = FontAwesome.Gear,
|
Icon = FontAwesome.Solid.Cog,
|
||||||
HeaderText = @"What do you want to do with",
|
HeaderText = @"What do you want to do with",
|
||||||
BodyText = "Camellia as \"Bang Riot\" - Blastix Riotz",
|
BodyText = "Camellia as \"Bang Riot\" - Blastix Riotz",
|
||||||
Buttons = new PopupDialogButton[]
|
Buttons = new PopupDialogButton[]
|
||||||
|
@ -17,7 +17,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
|||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
State = Framework.Graphics.Containers.Visibility.Visible,
|
State = Framework.Graphics.Containers.Visibility.Visible,
|
||||||
Icon = FontAwesome.AssistiveListeningSystems,
|
Icon = FontAwesome.Solid.AssistiveListeningSystems,
|
||||||
HeaderText = @"This is a test popup",
|
HeaderText = @"This is a test popup",
|
||||||
BodyText = "I can say lots of stuff and even wrap my words!",
|
BodyText = "I can say lots of stuff and even wrap my words!",
|
||||||
Buttons = new PopupDialogButton[]
|
Buttons = new PopupDialogButton[]
|
||||||
|
@ -60,7 +60,7 @@ namespace osu.Game.Beatmaps.Drawables
|
|||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
// the null coalesce here is only present to make unit tests work (ruleset dlls aren't copied correctly for testing at the moment)
|
// the null coalesce here is only present to make unit tests work (ruleset dlls aren't copied correctly for testing at the moment)
|
||||||
Icon = ruleset?.CreateInstance().CreateIcon() ?? new SpriteIcon { Icon = FontAwesome.QuestionCircleOutline }
|
Icon = ruleset?.CreateInstance().CreateIcon() ?? new SpriteIcon { Icon = FontAwesome.Regular.QuestionCircle }
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -35,7 +35,7 @@ namespace osu.Game.Graphics.Containers
|
|||||||
showNotImplementedError = () => notifications?.Post(new SimpleNotification
|
showNotImplementedError = () => notifications?.Post(new SimpleNotification
|
||||||
{
|
{
|
||||||
Text = @"This link type is not yet supported!",
|
Text = @"This link type is not yet supported!",
|
||||||
Icon = FontAwesome.LifeSaver,
|
Icon = FontAwesome.Solid.LifeRing,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -93,7 +93,7 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
Anchor = Anchor.CentreRight,
|
Anchor = Anchor.CentreRight,
|
||||||
Origin = Anchor.CentreLeft,
|
Origin = Anchor.CentreLeft,
|
||||||
Size = new Vector2(item_chevron_size),
|
Size = new Vector2(item_chevron_size),
|
||||||
Icon = FontAwesome.ChevronRight,
|
Icon = FontAwesome.Solid.ChevronRight,
|
||||||
Margin = new MarginPadding { Left = padding },
|
Margin = new MarginPadding { Left = padding },
|
||||||
Alpha = 0f,
|
Alpha = 0f,
|
||||||
});
|
});
|
||||||
|
@ -26,7 +26,7 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
Size = new Vector2(12);
|
Size = new Vector2(12);
|
||||||
InternalChild = new SpriteIcon
|
InternalChild = new SpriteIcon
|
||||||
{
|
{
|
||||||
Icon = FontAwesome.ExternalLink,
|
Icon = FontAwesome.Solid.ExternalLinkAlt,
|
||||||
RelativeSizeAxes = Axes.Both
|
RelativeSizeAxes = Axes.Both
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -37,14 +37,14 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
Position = new Vector2(1, 1),
|
Position = new Vector2(1, 1),
|
||||||
Colour = Color4.Black,
|
Colour = Color4.Black,
|
||||||
Alpha = 0.4f,
|
Alpha = 0.4f,
|
||||||
Icon = FontAwesome.CircleONotch
|
Icon = FontAwesome.Solid.CircleNotch
|
||||||
},
|
},
|
||||||
spinner = new SpriteIcon
|
spinner = new SpriteIcon
|
||||||
{
|
{
|
||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.Centre,
|
||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
Icon = FontAwesome.CircleONotch
|
Icon = FontAwesome.Solid.CircleNotch
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -179,7 +179,7 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
Chevron = new SpriteIcon
|
Chevron = new SpriteIcon
|
||||||
{
|
{
|
||||||
AlwaysPresent = true,
|
AlwaysPresent = true,
|
||||||
Icon = FontAwesome.ChevronRight,
|
Icon = FontAwesome.Solid.ChevronRight,
|
||||||
Colour = Color4.Black,
|
Colour = Color4.Black,
|
||||||
Alpha = 0.5f,
|
Alpha = 0.5f,
|
||||||
Size = new Vector2(8),
|
Size = new Vector2(8),
|
||||||
@ -244,7 +244,7 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
},
|
},
|
||||||
Icon = new SpriteIcon
|
Icon = new SpriteIcon
|
||||||
{
|
{
|
||||||
Icon = FontAwesome.ChevronDown,
|
Icon = FontAwesome.Solid.ChevronDown,
|
||||||
Anchor = Anchor.CentreRight,
|
Anchor = Anchor.CentreRight,
|
||||||
Origin = Anchor.CentreRight,
|
Origin = Anchor.CentreRight,
|
||||||
Margin = new MarginPadding { Right = 4 },
|
Margin = new MarginPadding { Right = 4 },
|
||||||
|
@ -108,7 +108,7 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
|
|
||||||
public CapsWarning()
|
public CapsWarning()
|
||||||
{
|
{
|
||||||
Icon = FontAwesome.Warning;
|
Icon = FontAwesome.Solid.ExclamationTriangle;
|
||||||
}
|
}
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
|
@ -254,7 +254,7 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
{
|
{
|
||||||
new SpriteIcon
|
new SpriteIcon
|
||||||
{
|
{
|
||||||
Icon = FontAwesome.EllipsisH,
|
Icon = FontAwesome.Solid.EllipsisH,
|
||||||
Size = new Vector2(14),
|
Size = new Vector2(14),
|
||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.Centre,
|
||||||
|
@ -99,7 +99,7 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
icon = new SpriteIcon
|
icon = new SpriteIcon
|
||||||
{
|
{
|
||||||
Size = new Vector2(14),
|
Size = new Vector2(14),
|
||||||
Icon = FontAwesome.CircleOutline,
|
Icon = FontAwesome.Regular.Circle,
|
||||||
Shadow = true,
|
Shadow = true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -120,12 +120,12 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
if (selected.NewValue)
|
if (selected.NewValue)
|
||||||
{
|
{
|
||||||
fadeIn();
|
fadeIn();
|
||||||
icon.Icon = FontAwesome.CheckCircleOutline;
|
icon.Icon = FontAwesome.Regular.CheckCircle;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
fadeOut();
|
fadeOut();
|
||||||
icon.Icon = FontAwesome.CircleOutline;
|
icon.Icon = FontAwesome.Regular.Circle;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -22,7 +22,7 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
{
|
{
|
||||||
new SpriteIcon
|
new SpriteIcon
|
||||||
{
|
{
|
||||||
Icon = FontAwesome.Search,
|
Icon = FontAwesome.Solid.Search,
|
||||||
Origin = Anchor.CentreRight,
|
Origin = Anchor.CentreRight,
|
||||||
Anchor = Anchor.CentreRight,
|
Anchor = Anchor.CentreRight,
|
||||||
Margin = new MarginPadding { Right = 10 },
|
Margin = new MarginPadding { Right = 10 },
|
||||||
|
@ -143,7 +143,7 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
Child = Icon = new SpriteIcon
|
Child = Icon = new SpriteIcon
|
||||||
{
|
{
|
||||||
Size = new Vector2(star_size),
|
Size = new Vector2(star_size),
|
||||||
Icon = FontAwesome.Star,
|
Icon = FontAwesome.Solid.Star,
|
||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.Centre,
|
||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
};
|
};
|
||||||
|
@ -258,8 +258,8 @@ namespace osu.Game.Online.Leaderboards
|
|||||||
|
|
||||||
protected virtual IEnumerable<LeaderboardScoreStatistic> GetStatistics(ScoreInfo model) => new[]
|
protected virtual IEnumerable<LeaderboardScoreStatistic> GetStatistics(ScoreInfo model) => new[]
|
||||||
{
|
{
|
||||||
new LeaderboardScoreStatistic(FontAwesome.Link, "Max Combo", model.MaxCombo.ToString()),
|
new LeaderboardScoreStatistic(FontAwesome.Solid.Link, "Max Combo", model.MaxCombo.ToString()),
|
||||||
new LeaderboardScoreStatistic(FontAwesome.Crosshairs, "Accuracy", string.Format(model.Accuracy % 1 == 0 ? @"{0:P0}" : @"{0:P2}", model.Accuracy))
|
new LeaderboardScoreStatistic(FontAwesome.Solid.Crosshairs, "Accuracy", string.Format(model.Accuracy % 1 == 0 ? @"{0:P0}" : @"{0:P2}", model.Accuracy))
|
||||||
};
|
};
|
||||||
|
|
||||||
protected override bool OnHover(HoverEvent e)
|
protected override bool OnHover(HoverEvent e)
|
||||||
@ -353,7 +353,7 @@ namespace osu.Game.Online.Leaderboards
|
|||||||
Size = new Vector2(icon_size),
|
Size = new Vector2(icon_size),
|
||||||
Rotation = 45,
|
Rotation = 45,
|
||||||
Colour = OsuColour.FromHex(@"3087ac"),
|
Colour = OsuColour.FromHex(@"3087ac"),
|
||||||
Icon = FontAwesome.Square,
|
Icon = FontAwesome.Solid.Square,
|
||||||
Shadow = true,
|
Shadow = true,
|
||||||
},
|
},
|
||||||
new SpriteIcon
|
new SpriteIcon
|
||||||
|
@ -12,7 +12,7 @@ namespace osu.Game.Online.Leaderboards
|
|||||||
|
|
||||||
public MessagePlaceholder(string message)
|
public MessagePlaceholder(string message)
|
||||||
{
|
{
|
||||||
AddIcon(FontAwesome.ExclamationCircle, cp =>
|
AddIcon(FontAwesome.Solid.ExclamationCircle, cp =>
|
||||||
{
|
{
|
||||||
cp.Font = cp.Font.With(size: TEXT_SIZE);
|
cp.Font = cp.Font.With(size: TEXT_SIZE);
|
||||||
cp.Padding = new MarginPadding { Right = 10 };
|
cp.Padding = new MarginPadding { Right = 10 };
|
||||||
|
@ -41,7 +41,7 @@ namespace osu.Game.Online.Leaderboards
|
|||||||
Action = () => Action?.Invoke(),
|
Action = () => Action?.Invoke(),
|
||||||
Child = icon = new SpriteIcon
|
Child = icon = new SpriteIcon
|
||||||
{
|
{
|
||||||
Icon = FontAwesome.Refresh,
|
Icon = FontAwesome.Solid.Sync,
|
||||||
Size = new Vector2(TEXT_SIZE),
|
Size = new Vector2(TEXT_SIZE),
|
||||||
Shadow = true,
|
Shadow = true,
|
||||||
},
|
},
|
||||||
|
@ -18,7 +18,7 @@ namespace osu.Game.Online.Multiplayer.GameTypes
|
|||||||
{
|
{
|
||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.Centre,
|
||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
Icon = FontAwesome.Refresh,
|
Icon = FontAwesome.Solid.Sync,
|
||||||
Size = new Vector2(size),
|
Size = new Vector2(size),
|
||||||
Colour = colours.Blue,
|
Colour = colours.Blue,
|
||||||
Shadow = false,
|
Shadow = false,
|
||||||
|
@ -26,14 +26,14 @@ namespace osu.Game.Online.Multiplayer.GameTypes
|
|||||||
{
|
{
|
||||||
new SpriteIcon
|
new SpriteIcon
|
||||||
{
|
{
|
||||||
Icon = FontAwesome.Refresh,
|
Icon = FontAwesome.Solid.Sync,
|
||||||
Size = new Vector2(size * 0.75f),
|
Size = new Vector2(size * 0.75f),
|
||||||
Colour = colours.Blue,
|
Colour = colours.Blue,
|
||||||
Shadow = false,
|
Shadow = false,
|
||||||
},
|
},
|
||||||
new SpriteIcon
|
new SpriteIcon
|
||||||
{
|
{
|
||||||
Icon = FontAwesome.Refresh,
|
Icon = FontAwesome.Solid.Sync,
|
||||||
Size = new Vector2(size * 0.75f),
|
Size = new Vector2(size * 0.75f),
|
||||||
Colour = colours.Pink,
|
Colour = colours.Pink,
|
||||||
Shadow = false,
|
Shadow = false,
|
||||||
|
@ -16,7 +16,7 @@ namespace osu.Game.Online.Multiplayer.GameTypes
|
|||||||
{
|
{
|
||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.Centre,
|
||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
Icon = FontAwesome.ClockOutline,
|
Icon = FontAwesome.Regular.Clock,
|
||||||
Size = new Vector2(size),
|
Size = new Vector2(size),
|
||||||
Colour = colours.Blue,
|
Colour = colours.Blue,
|
||||||
Shadow = false
|
Shadow = false
|
||||||
|
@ -580,7 +580,7 @@ namespace osu.Game
|
|||||||
{
|
{
|
||||||
Schedule(() => notifications.Post(new SimpleNotification
|
Schedule(() => notifications.Post(new SimpleNotification
|
||||||
{
|
{
|
||||||
Icon = entry.Level == LogLevel.Important ? FontAwesome.ExclamationCircle : FontAwesome.Bomb,
|
Icon = entry.Level == LogLevel.Important ? FontAwesome.Solid.ExclamationCircle : FontAwesome.Solid.Bomb,
|
||||||
Text = entry.Message + (entry.Exception != null && IsDeployedBuild ? "\n\nThis error has been automatically reported to the devs." : string.Empty),
|
Text = entry.Message + (entry.Exception != null && IsDeployedBuild ? "\n\nThis error has been automatically reported to the devs." : string.Empty),
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
@ -588,7 +588,7 @@ namespace osu.Game
|
|||||||
{
|
{
|
||||||
Schedule(() => notifications.Post(new SimpleNotification
|
Schedule(() => notifications.Post(new SimpleNotification
|
||||||
{
|
{
|
||||||
Icon = FontAwesome.EllipsisH,
|
Icon = FontAwesome.Solid.EllipsisH,
|
||||||
Text = "Subsequent messages have been logged. Click to view log files.",
|
Text = "Subsequent messages have been logged. Click to view log files.",
|
||||||
Activated = () =>
|
Activated = () =>
|
||||||
{
|
{
|
||||||
|
@ -75,10 +75,10 @@ namespace osu.Game.Overlays.BeatmapSet
|
|||||||
Direction = FillDirection.Horizontal,
|
Direction = FillDirection.Horizontal,
|
||||||
Children = new[]
|
Children = new[]
|
||||||
{
|
{
|
||||||
length = new Statistic(FontAwesome.ClockOutline, "Length") { Width = 0.25f },
|
length = new Statistic(FontAwesome.Regular.Clock, "Length") { Width = 0.25f },
|
||||||
bpm = new Statistic(FontAwesome.Circle, "BPM") { Width = 0.25f },
|
bpm = new Statistic(FontAwesome.Regular.Circle, "BPM") { Width = 0.25f },
|
||||||
circleCount = new Statistic(FontAwesome.CircleOutline, "Circle Count") { Width = 0.25f },
|
circleCount = new Statistic(FontAwesome.Regular.Circle, "Circle Count") { Width = 0.25f },
|
||||||
sliderCount = new Statistic(FontAwesome.Circle, "Slider Count") { Width = 0.25f },
|
sliderCount = new Statistic(FontAwesome.Regular.Circle, "Slider Count") { Width = 0.25f },
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@ -121,7 +121,7 @@ namespace osu.Game.Overlays.BeatmapSet
|
|||||||
{
|
{
|
||||||
Anchor = Anchor.CentreLeft,
|
Anchor = Anchor.CentreLeft,
|
||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
Icon = FontAwesome.Square,
|
Icon = FontAwesome.Solid.Square,
|
||||||
Size = new Vector2(13),
|
Size = new Vector2(13),
|
||||||
Rotation = 45,
|
Rotation = 45,
|
||||||
Colour = OsuColour.FromHex(@"441288"),
|
Colour = OsuColour.FromHex(@"441288"),
|
||||||
|
@ -131,8 +131,8 @@ namespace osu.Game.Overlays.BeatmapSet
|
|||||||
Margin = new MarginPadding { Top = 5 },
|
Margin = new MarginPadding { Top = 5 },
|
||||||
Children = new[]
|
Children = new[]
|
||||||
{
|
{
|
||||||
plays = new Statistic(FontAwesome.PlayCircle),
|
plays = new Statistic(FontAwesome.Solid.PlayCircle),
|
||||||
favourites = new Statistic(FontAwesome.Heart),
|
favourites = new Statistic(FontAwesome.Solid.Heart),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -78,7 +78,7 @@ namespace osu.Game.Overlays.BeatmapSet.Buttons
|
|||||||
Depth = -1,
|
Depth = -1,
|
||||||
Anchor = Anchor.CentreRight,
|
Anchor = Anchor.CentreRight,
|
||||||
Origin = Anchor.CentreRight,
|
Origin = Anchor.CentreRight,
|
||||||
Icon = FontAwesome.Download,
|
Icon = FontAwesome.Solid.Download,
|
||||||
Size = new Vector2(16),
|
Size = new Vector2(16),
|
||||||
Margin = new MarginPadding { Right = 5 },
|
Margin = new MarginPadding { Right = 5 },
|
||||||
},
|
},
|
||||||
|
@ -48,7 +48,7 @@ namespace osu.Game.Overlays.BeatmapSet.Buttons
|
|||||||
{
|
{
|
||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.Centre,
|
||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
Icon = FontAwesome.HeartOutline,
|
Icon = FontAwesome.Regular.Heart,
|
||||||
Size = new Vector2(18),
|
Size = new Vector2(18),
|
||||||
Shadow = false,
|
Shadow = false,
|
||||||
},
|
},
|
||||||
@ -59,12 +59,12 @@ namespace osu.Game.Overlays.BeatmapSet.Buttons
|
|||||||
if (favourited.NewValue)
|
if (favourited.NewValue)
|
||||||
{
|
{
|
||||||
pink.FadeIn(200);
|
pink.FadeIn(200);
|
||||||
icon.Icon = FontAwesome.Heart;
|
icon.Icon = FontAwesome.Solid.Heart;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
pink.FadeOut(200);
|
pink.FadeOut(200);
|
||||||
icon.Icon = FontAwesome.HeartOutline;
|
icon.Icon = FontAwesome.Regular.Heart;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ namespace osu.Game.Overlays.Chat
|
|||||||
HeaderText = "Just checking...";
|
HeaderText = "Just checking...";
|
||||||
BodyText = $"You are about to leave osu! and open the following link in a web browser:\n\n{url}";
|
BodyText = $"You are about to leave osu! and open the following link in a web browser:\n\n{url}";
|
||||||
|
|
||||||
Icon = FontAwesome.Warning;
|
Icon = FontAwesome.Solid.ExclamationTriangle;
|
||||||
|
|
||||||
Buttons = new PopupDialogButton[]
|
Buttons = new PopupDialogButton[]
|
||||||
{
|
{
|
||||||
|
@ -74,7 +74,7 @@ namespace osu.Game.Overlays.Chat.Selection
|
|||||||
{
|
{
|
||||||
Anchor = Anchor.TopRight,
|
Anchor = Anchor.TopRight,
|
||||||
Origin = Anchor.TopRight,
|
Origin = Anchor.TopRight,
|
||||||
Icon = FontAwesome.CheckCircle,
|
Icon = FontAwesome.Solid.CheckCircle,
|
||||||
Size = new Vector2(text_size),
|
Size = new Vector2(text_size),
|
||||||
Shadow = false,
|
Shadow = false,
|
||||||
Margin = new MarginPadding { Right = 10f },
|
Margin = new MarginPadding { Right = 10f },
|
||||||
@ -121,7 +121,7 @@ namespace osu.Game.Overlays.Chat.Selection
|
|||||||
{
|
{
|
||||||
new SpriteIcon
|
new SpriteIcon
|
||||||
{
|
{
|
||||||
Icon = FontAwesome.User,
|
Icon = FontAwesome.Solid.User,
|
||||||
Size = new Vector2(text_size - 2),
|
Size = new Vector2(text_size - 2),
|
||||||
Shadow = false,
|
Shadow = false,
|
||||||
Margin = new MarginPadding { Top = 1 },
|
Margin = new MarginPadding { Top = 1 },
|
||||||
|
@ -31,7 +31,7 @@ namespace osu.Game.Overlays.Chat.Tabs
|
|||||||
|
|
||||||
AddInternal(new SpriteIcon
|
AddInternal(new SpriteIcon
|
||||||
{
|
{
|
||||||
Icon = FontAwesome.Comments,
|
Icon = FontAwesome.Solid.Comments,
|
||||||
Anchor = Anchor.CentreLeft,
|
Anchor = Anchor.CentreLeft,
|
||||||
Origin = Anchor.CentreLeft,
|
Origin = Anchor.CentreLeft,
|
||||||
Size = new Vector2(20),
|
Size = new Vector2(20),
|
||||||
|
@ -117,7 +117,7 @@ namespace osu.Game.Overlays.Chat.Tabs
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
protected virtual IconUsage DisplayIcon => FontAwesome.Hashtag;
|
protected virtual IconUsage DisplayIcon => FontAwesome.Solid.Hashtag;
|
||||||
|
|
||||||
protected virtual bool ShowCloseOnHover => true;
|
protected virtual bool ShowCloseOnHover => true;
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ namespace osu.Game.Overlays.Chat.Tabs
|
|||||||
private readonly OsuSpriteText username;
|
private readonly OsuSpriteText username;
|
||||||
private readonly Avatar avatarContainer;
|
private readonly Avatar avatarContainer;
|
||||||
|
|
||||||
protected override IconUsage DisplayIcon => FontAwesome.At;
|
protected override IconUsage DisplayIcon => FontAwesome.Solid.At;
|
||||||
|
|
||||||
public PrivateChannelTabItem(Channel value)
|
public PrivateChannelTabItem(Channel value)
|
||||||
: base(value)
|
: base(value)
|
||||||
|
@ -23,7 +23,7 @@ namespace osu.Game.Overlays.Chat.Tabs
|
|||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.Centre,
|
||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
Scale = new Vector2(0.75f),
|
Scale = new Vector2(0.75f),
|
||||||
Icon = FontAwesome.Close,
|
Icon = FontAwesome.Solid.TimesCircle,
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -166,7 +166,7 @@ namespace osu.Game.Overlays.Dialog
|
|||||||
{
|
{
|
||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.Centre,
|
||||||
Icon = FontAwesome.Close,
|
Icon = FontAwesome.Solid.TimesCircle,
|
||||||
Size = new Vector2(50),
|
Size = new Vector2(50),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -186,8 +186,8 @@ namespace osu.Game.Overlays.Direct
|
|||||||
Margin = new MarginPadding { Top = vertical_padding, Right = vertical_padding },
|
Margin = new MarginPadding { Top = vertical_padding, Right = vertical_padding },
|
||||||
Children = new[]
|
Children = new[]
|
||||||
{
|
{
|
||||||
new Statistic(FontAwesome.PlayCircle, SetInfo.OnlineInfo?.PlayCount ?? 0),
|
new Statistic(FontAwesome.Solid.PlayCircle, SetInfo.OnlineInfo?.PlayCount ?? 0),
|
||||||
new Statistic(FontAwesome.Heart, SetInfo.OnlineInfo?.FavouriteCount ?? 0),
|
new Statistic(FontAwesome.Solid.Heart, SetInfo.OnlineInfo?.FavouriteCount ?? 0),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
statusContainer = new FillFlowContainer
|
statusContainer = new FillFlowContainer
|
||||||
@ -206,12 +206,12 @@ namespace osu.Game.Overlays.Direct
|
|||||||
|
|
||||||
if (SetInfo.OnlineInfo?.HasVideo ?? false)
|
if (SetInfo.OnlineInfo?.HasVideo ?? false)
|
||||||
{
|
{
|
||||||
statusContainer.Add(new IconPill(FontAwesome.Film));
|
statusContainer.Add(new IconPill(FontAwesome.Solid.Film));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (SetInfo.OnlineInfo?.HasStoryboard ?? false)
|
if (SetInfo.OnlineInfo?.HasStoryboard ?? false)
|
||||||
{
|
{
|
||||||
statusContainer.Add(new IconPill(FontAwesome.Image));
|
statusContainer.Add(new IconPill(FontAwesome.Solid.Image));
|
||||||
}
|
}
|
||||||
|
|
||||||
statusContainer.Add(new BeatmapSetOnlineStatusPill
|
statusContainer.Add(new BeatmapSetOnlineStatusPill
|
||||||
|
@ -161,8 +161,8 @@ namespace osu.Game.Overlays.Direct
|
|||||||
Direction = FillDirection.Vertical,
|
Direction = FillDirection.Vertical,
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
new Statistic(FontAwesome.PlayCircle, SetInfo.OnlineInfo?.PlayCount ?? 0),
|
new Statistic(FontAwesome.Solid.PlayCircle, SetInfo.OnlineInfo?.PlayCount ?? 0),
|
||||||
new Statistic(FontAwesome.Heart, SetInfo.OnlineInfo?.FavouriteCount ?? 0),
|
new Statistic(FontAwesome.Solid.Heart, SetInfo.OnlineInfo?.FavouriteCount ?? 0),
|
||||||
new FillFlowContainer
|
new FillFlowContainer
|
||||||
{
|
{
|
||||||
Anchor = Anchor.TopRight,
|
Anchor = Anchor.TopRight,
|
||||||
@ -211,12 +211,12 @@ namespace osu.Game.Overlays.Direct
|
|||||||
|
|
||||||
if (SetInfo.OnlineInfo?.HasVideo ?? false)
|
if (SetInfo.OnlineInfo?.HasVideo ?? false)
|
||||||
{
|
{
|
||||||
statusContainer.Add(new IconPill(FontAwesome.Film) { IconSize = new Vector2(20) });
|
statusContainer.Add(new IconPill(FontAwesome.Solid.Film) { IconSize = new Vector2(20) });
|
||||||
}
|
}
|
||||||
|
|
||||||
if (SetInfo.OnlineInfo?.HasStoryboard ?? false)
|
if (SetInfo.OnlineInfo?.HasStoryboard ?? false)
|
||||||
{
|
{
|
||||||
statusContainer.Add(new IconPill(FontAwesome.Image) { IconSize = new Vector2(20) });
|
statusContainer.Add(new IconPill(FontAwesome.Solid.Image) { IconSize = new Vector2(20) });
|
||||||
}
|
}
|
||||||
|
|
||||||
statusContainer.Add(new BeatmapSetOnlineStatusPill
|
statusContainer.Add(new BeatmapSetOnlineStatusPill
|
||||||
|
@ -49,7 +49,7 @@ namespace osu.Game.Overlays.Direct
|
|||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.Centre,
|
||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
Size = new Vector2(13),
|
Size = new Vector2(13),
|
||||||
Icon = FontAwesome.Download,
|
Icon = FontAwesome.Solid.Download,
|
||||||
},
|
},
|
||||||
checkmark = new SpriteIcon
|
checkmark = new SpriteIcon
|
||||||
{
|
{
|
||||||
@ -57,7 +57,7 @@ namespace osu.Game.Overlays.Direct
|
|||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
X = 8,
|
X = 8,
|
||||||
Size = Vector2.Zero,
|
Size = Vector2.Zero,
|
||||||
Icon = FontAwesome.Check,
|
Icon = FontAwesome.Solid.Check,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -74,7 +74,7 @@ namespace osu.Game.Overlays.Direct
|
|||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
FillMode = FillMode.Fit,
|
FillMode = FillMode.Fit,
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
Icon = FontAwesome.Play,
|
Icon = FontAwesome.Solid.Play,
|
||||||
},
|
},
|
||||||
loadingAnimation = new LoadingAnimation
|
loadingAnimation = new LoadingAnimation
|
||||||
{
|
{
|
||||||
@ -116,7 +116,7 @@ namespace osu.Game.Overlays.Direct
|
|||||||
|
|
||||||
private void playingStateChanged(ValueChangedEvent<bool> e)
|
private void playingStateChanged(ValueChangedEvent<bool> e)
|
||||||
{
|
{
|
||||||
icon.Icon = e.NewValue ? FontAwesome.Stop : FontAwesome.Play;
|
icon.Icon = e.NewValue ? FontAwesome.Solid.Stop : FontAwesome.Solid.Play;
|
||||||
icon.FadeColour(e.NewValue || IsHovered ? hoverColour : Color4.White, 120, Easing.InOutQuint);
|
icon.FadeColour(e.NewValue || IsHovered ? hoverColour : Color4.White, 120, Easing.InOutQuint);
|
||||||
|
|
||||||
if (e.NewValue)
|
if (e.NewValue)
|
||||||
|
@ -9,7 +9,7 @@ namespace osu.Game.Overlays.KeyBinding
|
|||||||
{
|
{
|
||||||
public class GlobalKeyBindingsSection : SettingsSection
|
public class GlobalKeyBindingsSection : SettingsSection
|
||||||
{
|
{
|
||||||
public override IconUsage Icon => FontAwesome.Globe;
|
public override IconUsage Icon => FontAwesome.Solid.Globe;
|
||||||
public override string Header => "Global";
|
public override string Header => "Global";
|
||||||
|
|
||||||
public GlobalKeyBindingsSection(GlobalActionContainer manager)
|
public GlobalKeyBindingsSection(GlobalActionContainer manager)
|
||||||
|
@ -67,7 +67,7 @@ namespace osu.Game.Overlays
|
|||||||
Y = -15,
|
Y = -15,
|
||||||
Size = new Vector2(15),
|
Size = new Vector2(15),
|
||||||
Shadow = true,
|
Shadow = true,
|
||||||
Icon = FontAwesome.ChevronLeft
|
Icon = FontAwesome.Solid.ChevronLeft
|
||||||
},
|
},
|
||||||
new OsuSpriteText
|
new OsuSpriteText
|
||||||
{
|
{
|
||||||
|
@ -164,7 +164,7 @@ namespace osu.Game.Overlays.Music
|
|||||||
Anchor = Anchor.TopLeft;
|
Anchor = Anchor.TopLeft;
|
||||||
Origin = Anchor.TopLeft;
|
Origin = Anchor.TopLeft;
|
||||||
Size = new Vector2(12);
|
Size = new Vector2(12);
|
||||||
Icon = FontAwesome.Bars;
|
Icon = FontAwesome.Solid.Bars;
|
||||||
Alpha = 0f;
|
Alpha = 0f;
|
||||||
Margin = new MarginPadding { Left = 5, Top = 2 };
|
Margin = new MarginPadding { Left = 5, Top = 2 };
|
||||||
}
|
}
|
||||||
|
@ -148,7 +148,7 @@ namespace osu.Game.Overlays
|
|||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.Centre,
|
||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
Action = prev,
|
Action = prev,
|
||||||
Icon = FontAwesome.StepBackward,
|
Icon = FontAwesome.Solid.StepBackward,
|
||||||
},
|
},
|
||||||
playButton = new MusicIconButton
|
playButton = new MusicIconButton
|
||||||
{
|
{
|
||||||
@ -157,14 +157,14 @@ namespace osu.Game.Overlays
|
|||||||
Scale = new Vector2(1.4f),
|
Scale = new Vector2(1.4f),
|
||||||
IconScale = new Vector2(1.4f),
|
IconScale = new Vector2(1.4f),
|
||||||
Action = play,
|
Action = play,
|
||||||
Icon = FontAwesome.PlayCircleOutline,
|
Icon = FontAwesome.Regular.PlayCircle,
|
||||||
},
|
},
|
||||||
nextButton = new MusicIconButton
|
nextButton = new MusicIconButton
|
||||||
{
|
{
|
||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.Centre,
|
||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
Action = () => next(),
|
Action = () => next(),
|
||||||
Icon = FontAwesome.StepForward,
|
Icon = FontAwesome.Solid.StepForward,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -173,7 +173,7 @@ namespace osu.Game.Overlays
|
|||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
Anchor = Anchor.CentreRight,
|
Anchor = Anchor.CentreRight,
|
||||||
Position = new Vector2(-bottom_black_area_height / 2, 0),
|
Position = new Vector2(-bottom_black_area_height / 2, 0),
|
||||||
Icon = FontAwesome.Bars,
|
Icon = FontAwesome.Solid.Bars,
|
||||||
Action = () => playlist.ToggleVisibility(),
|
Action = () => playlist.ToggleVisibility(),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
@ -264,13 +264,13 @@ namespace osu.Game.Overlays
|
|||||||
progressBar.EndTime = track.Length;
|
progressBar.EndTime = track.Length;
|
||||||
progressBar.CurrentTime = track.CurrentTime;
|
progressBar.CurrentTime = track.CurrentTime;
|
||||||
|
|
||||||
playButton.Icon = track.IsRunning ? FontAwesome.PauseCircleOutline : FontAwesome.PlayCircleOutline;
|
playButton.Icon = track.IsRunning ? FontAwesome.Regular.PauseCircle : FontAwesome.Regular.PlayCircle;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
progressBar.CurrentTime = 0;
|
progressBar.CurrentTime = 0;
|
||||||
progressBar.EndTime = 1;
|
progressBar.EndTime = 1;
|
||||||
playButton.Icon = FontAwesome.PlayCircleOutline;
|
playButton.Icon = FontAwesome.Regular.PlayCircle;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -175,7 +175,7 @@ namespace osu.Game.Overlays.Notifications
|
|||||||
{
|
{
|
||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.Centre,
|
||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
Icon = FontAwesome.TimesCircle,
|
Icon = FontAwesome.Solid.TimesCircle,
|
||||||
Size = new Vector2(20),
|
Size = new Vector2(20),
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -12,7 +12,7 @@ namespace osu.Game.Overlays.Notifications
|
|||||||
{
|
{
|
||||||
public ProgressCompletionNotification()
|
public ProgressCompletionNotification()
|
||||||
{
|
{
|
||||||
Icon = FontAwesome.Check;
|
Icon = FontAwesome.Solid.Check;
|
||||||
}
|
}
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
|
@ -27,7 +27,7 @@ namespace osu.Game.Overlays.Notifications
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private IconUsage icon = FontAwesome.InfoCircle;
|
private IconUsage icon = FontAwesome.Solid.InfoCircle;
|
||||||
|
|
||||||
public IconUsage Icon
|
public IconUsage Icon
|
||||||
{
|
{
|
||||||
|
@ -50,7 +50,7 @@ namespace osu.Game.Overlays.Profile.Header
|
|||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.Centre,
|
||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
Icon = FontAwesome.Heart,
|
Icon = FontAwesome.Solid.Heart,
|
||||||
Scale = new Vector2(0.45f),
|
Scale = new Vector2(0.45f),
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -415,16 +415,16 @@ namespace osu.Game.Overlays.Profile
|
|||||||
websiteWithoutProtcol = websiteWithoutProtcol.Substring(protocolIndex + 2);
|
websiteWithoutProtcol = websiteWithoutProtcol.Substring(protocolIndex + 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
tryAddInfoRightLine(FontAwesome.MapMarker, user.Location);
|
tryAddInfoRightLine(FontAwesome.Solid.MapMarker, user.Location);
|
||||||
tryAddInfoRightLine(FontAwesome.HeartOutline, user.Interests);
|
tryAddInfoRightLine(FontAwesome.Regular.Heart, user.Interests);
|
||||||
tryAddInfoRightLine(FontAwesome.Suitcase, user.Occupation);
|
tryAddInfoRightLine(FontAwesome.Solid.Suitcase, user.Occupation);
|
||||||
infoTextRight.NewParagraph();
|
infoTextRight.NewParagraph();
|
||||||
if (!string.IsNullOrEmpty(user.Twitter))
|
if (!string.IsNullOrEmpty(user.Twitter))
|
||||||
tryAddInfoRightLine(FontAwesome.Twitter, "@" + user.Twitter, $@"https://twitter.com/{user.Twitter}");
|
tryAddInfoRightLine(FontAwesome.Brands.Twitter, "@" + user.Twitter, $@"https://twitter.com/{user.Twitter}");
|
||||||
tryAddInfoRightLine(FontAwesome.Gamepad, user.Discord);
|
tryAddInfoRightLine(FontAwesome.Solid.Gamepad, user.Discord);
|
||||||
tryAddInfoRightLine(FontAwesome.Skype, user.Skype, @"skype:" + user.Skype + @"?chat");
|
tryAddInfoRightLine(FontAwesome.Brands.Skype, user.Skype, @"skype:" + user.Skype + @"?chat");
|
||||||
tryAddInfoRightLine(FontAwesome.Lastfm, user.Lastfm, $@"https://last.fm/users/{user.Lastfm}");
|
tryAddInfoRightLine(FontAwesome.Brands.Lastfm, user.Lastfm, $@"https://last.fm/users/{user.Lastfm}");
|
||||||
tryAddInfoRightLine(FontAwesome.Globe, websiteWithoutProtcol, user.Website);
|
tryAddInfoRightLine(FontAwesome.Solid.Globe, websiteWithoutProtcol, user.Website);
|
||||||
|
|
||||||
if (user.Statistics != null)
|
if (user.Statistics != null)
|
||||||
{
|
{
|
||||||
|
@ -37,8 +37,8 @@ namespace osu.Game.Overlays.SearchableList
|
|||||||
Direction = FillDirection.Horizontal,
|
Direction = FillDirection.Horizontal,
|
||||||
Children = new[]
|
Children = new[]
|
||||||
{
|
{
|
||||||
new DisplayStyleToggleButton(FontAwesome.ThLarge, PanelDisplayStyle.Grid, DisplayStyle),
|
new DisplayStyleToggleButton(FontAwesome.Solid.ThLarge, PanelDisplayStyle.Grid, DisplayStyle),
|
||||||
new DisplayStyleToggleButton(FontAwesome.ListUl, PanelDisplayStyle.List, DisplayStyle),
|
new DisplayStyleToggleButton(FontAwesome.Solid.ListUl, PanelDisplayStyle.List, DisplayStyle),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Dropdown = new SlimEnumDropdown<T>
|
Dropdown = new SlimEnumDropdown<T>
|
||||||
|
@ -10,7 +10,7 @@ namespace osu.Game.Overlays.Settings.Sections
|
|||||||
public class AudioSection : SettingsSection
|
public class AudioSection : SettingsSection
|
||||||
{
|
{
|
||||||
public override string Header => "Audio";
|
public override string Header => "Audio";
|
||||||
public override IconUsage Icon => FontAwesome.VolumeUp;
|
public override IconUsage Icon => FontAwesome.Solid.VolumeUp;
|
||||||
|
|
||||||
public AudioSection()
|
public AudioSection()
|
||||||
{
|
{
|
||||||
|
@ -10,7 +10,7 @@ namespace osu.Game.Overlays.Settings.Sections
|
|||||||
public class DebugSection : SettingsSection
|
public class DebugSection : SettingsSection
|
||||||
{
|
{
|
||||||
public override string Header => "Debug";
|
public override string Header => "Debug";
|
||||||
public override IconUsage Icon => FontAwesome.Bug;
|
public override IconUsage Icon => FontAwesome.Solid.Bug;
|
||||||
|
|
||||||
public DebugSection()
|
public DebugSection()
|
||||||
{
|
{
|
||||||
|
@ -13,7 +13,7 @@ namespace osu.Game.Overlays.Settings.Sections
|
|||||||
public class GameplaySection : SettingsSection
|
public class GameplaySection : SettingsSection
|
||||||
{
|
{
|
||||||
public override string Header => "Gameplay";
|
public override string Header => "Gameplay";
|
||||||
public override IconUsage Icon => FontAwesome.CircleOutline;
|
public override IconUsage Icon => FontAwesome.Regular.Circle;
|
||||||
|
|
||||||
public GameplaySection()
|
public GameplaySection()
|
||||||
{
|
{
|
||||||
|
@ -363,7 +363,7 @@ namespace osu.Game.Overlays.Settings.Sections.General
|
|||||||
{
|
{
|
||||||
Anchor = Anchor.CentreLeft,
|
Anchor = Anchor.CentreLeft,
|
||||||
Origin = Anchor.CentreLeft,
|
Origin = Anchor.CentreLeft,
|
||||||
Icon = FontAwesome.CircleOutline,
|
Icon = FontAwesome.Regular.Circle,
|
||||||
Size = new Vector2(14),
|
Size = new Vector2(14),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ namespace osu.Game.Overlays.Settings.Sections
|
|||||||
public class GeneralSection : SettingsSection
|
public class GeneralSection : SettingsSection
|
||||||
{
|
{
|
||||||
public override string Header => "General";
|
public override string Header => "General";
|
||||||
public override IconUsage Icon => FontAwesome.Gear;
|
public override IconUsage Icon => FontAwesome.Solid.Cog;
|
||||||
|
|
||||||
public GeneralSection()
|
public GeneralSection()
|
||||||
{
|
{
|
||||||
|
@ -10,7 +10,7 @@ namespace osu.Game.Overlays.Settings.Sections
|
|||||||
public class GraphicsSection : SettingsSection
|
public class GraphicsSection : SettingsSection
|
||||||
{
|
{
|
||||||
public override string Header => "Graphics";
|
public override string Header => "Graphics";
|
||||||
public override IconUsage Icon => FontAwesome.Laptop;
|
public override IconUsage Icon => FontAwesome.Solid.Laptop;
|
||||||
|
|
||||||
public GraphicsSection()
|
public GraphicsSection()
|
||||||
{
|
{
|
||||||
|
@ -10,7 +10,7 @@ namespace osu.Game.Overlays.Settings.Sections
|
|||||||
public class InputSection : SettingsSection
|
public class InputSection : SettingsSection
|
||||||
{
|
{
|
||||||
public override string Header => "Input";
|
public override string Header => "Input";
|
||||||
public override IconUsage Icon => FontAwesome.KeyboardOutline;
|
public override IconUsage Icon => FontAwesome.Regular.Keyboard;
|
||||||
|
|
||||||
public InputSection(KeyBindingOverlay keyConfig)
|
public InputSection(KeyBindingOverlay keyConfig)
|
||||||
{
|
{
|
||||||
|
@ -13,7 +13,7 @@ namespace osu.Game.Overlays.Settings.Sections.Maintenance
|
|||||||
{
|
{
|
||||||
BodyText = "Everything?";
|
BodyText = "Everything?";
|
||||||
|
|
||||||
Icon = FontAwesome.TrashOutline;
|
Icon = FontAwesome.Regular.TrashAlt;
|
||||||
HeaderText = @"Confirm deletion of";
|
HeaderText = @"Confirm deletion of";
|
||||||
Buttons = new PopupDialogButton[]
|
Buttons = new PopupDialogButton[]
|
||||||
{
|
{
|
||||||
|
@ -11,7 +11,7 @@ namespace osu.Game.Overlays.Settings.Sections
|
|||||||
public class MaintenanceSection : SettingsSection
|
public class MaintenanceSection : SettingsSection
|
||||||
{
|
{
|
||||||
public override string Header => "Maintenance";
|
public override string Header => "Maintenance";
|
||||||
public override IconUsage Icon => FontAwesome.Wrench;
|
public override IconUsage Icon => FontAwesome.Solid.Wrench;
|
||||||
|
|
||||||
public MaintenanceSection()
|
public MaintenanceSection()
|
||||||
{
|
{
|
||||||
|
@ -10,7 +10,7 @@ namespace osu.Game.Overlays.Settings.Sections
|
|||||||
public class OnlineSection : SettingsSection
|
public class OnlineSection : SettingsSection
|
||||||
{
|
{
|
||||||
public override string Header => "Online";
|
public override string Header => "Online";
|
||||||
public override IconUsage Icon => FontAwesome.Globe;
|
public override IconUsage Icon => FontAwesome.Solid.GlobeAsia;
|
||||||
|
|
||||||
public OnlineSection()
|
public OnlineSection()
|
||||||
{
|
{
|
||||||
|
@ -19,7 +19,7 @@ namespace osu.Game.Overlays.Settings.Sections
|
|||||||
|
|
||||||
public override string Header => "Skin";
|
public override string Header => "Skin";
|
||||||
|
|
||||||
public override IconUsage Icon => FontAwesome.PaintBrush;
|
public override IconUsage Icon => FontAwesome.Solid.PaintBrush;
|
||||||
|
|
||||||
private readonly Bindable<SkinInfo> dropdownBindable = new Bindable<SkinInfo> { Default = SkinInfo.Default };
|
private readonly Bindable<SkinInfo> dropdownBindable = new Bindable<SkinInfo> { Default = SkinInfo.Default };
|
||||||
private readonly Bindable<int> configBindable = new Bindable<int>();
|
private readonly Bindable<int> configBindable = new Bindable<int>();
|
||||||
|
@ -20,7 +20,7 @@ namespace osu.Game.Overlays.Social
|
|||||||
protected override Color4 BackgroundColour => OsuColour.FromHex(@"38202e");
|
protected override Color4 BackgroundColour => OsuColour.FromHex(@"38202e");
|
||||||
|
|
||||||
protected override SocialTab DefaultTab => SocialTab.AllPlayers;
|
protected override SocialTab DefaultTab => SocialTab.AllPlayers;
|
||||||
protected override IconUsage Icon => FontAwesome.Users;
|
protected override IconUsage Icon => FontAwesome.Solid.Users;
|
||||||
|
|
||||||
protected override Drawable CreateHeaderText()
|
protected override Drawable CreateHeaderText()
|
||||||
{
|
{
|
||||||
|
@ -75,7 +75,7 @@ namespace osu.Game.Overlays.Toolbar
|
|||||||
new ToolbarMusicButton(),
|
new ToolbarMusicButton(),
|
||||||
//new ToolbarButton
|
//new ToolbarButton
|
||||||
//{
|
//{
|
||||||
// Icon = FontAwesome.search
|
// Icon = FontAwesome.Solid.search
|
||||||
//},
|
//},
|
||||||
userButton = new ToolbarUserButton(),
|
userButton = new ToolbarUserButton(),
|
||||||
new ToolbarNotificationButton(),
|
new ToolbarNotificationButton(),
|
||||||
|
@ -10,7 +10,7 @@ namespace osu.Game.Overlays.Toolbar
|
|||||||
{
|
{
|
||||||
public ToolbarChatButton()
|
public ToolbarChatButton()
|
||||||
{
|
{
|
||||||
SetIcon(FontAwesome.Comments);
|
SetIcon(FontAwesome.Solid.Comments);
|
||||||
}
|
}
|
||||||
|
|
||||||
[BackgroundDependencyLoader(true)]
|
[BackgroundDependencyLoader(true)]
|
||||||
|
@ -9,7 +9,7 @@ namespace osu.Game.Overlays.Toolbar
|
|||||||
{
|
{
|
||||||
public ToolbarHomeButton()
|
public ToolbarHomeButton()
|
||||||
{
|
{
|
||||||
Icon = FontAwesome.Home;
|
Icon = FontAwesome.Solid.Home;
|
||||||
TooltipMain = "Home";
|
TooltipMain = "Home";
|
||||||
TooltipSub = "Return to the main menu";
|
TooltipSub = "Return to the main menu";
|
||||||
}
|
}
|
||||||
|
@ -10,7 +10,7 @@ namespace osu.Game.Overlays.Toolbar
|
|||||||
{
|
{
|
||||||
public ToolbarMusicButton()
|
public ToolbarMusicButton()
|
||||||
{
|
{
|
||||||
Icon = FontAwesome.Music;
|
Icon = FontAwesome.Solid.Music;
|
||||||
}
|
}
|
||||||
|
|
||||||
[BackgroundDependencyLoader(true)]
|
[BackgroundDependencyLoader(true)]
|
||||||
|
@ -24,7 +24,7 @@ namespace osu.Game.Overlays.Toolbar
|
|||||||
|
|
||||||
public ToolbarNotificationButton()
|
public ToolbarNotificationButton()
|
||||||
{
|
{
|
||||||
Icon = FontAwesome.Bars;
|
Icon = FontAwesome.Solid.Bars;
|
||||||
TooltipMain = "Notifications";
|
TooltipMain = "Notifications";
|
||||||
TooltipSub = "Waiting for 'ya";
|
TooltipSub = "Waiting for 'ya";
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ namespace osu.Game.Overlays.Toolbar
|
|||||||
{
|
{
|
||||||
public ToolbarSettingsButton()
|
public ToolbarSettingsButton()
|
||||||
{
|
{
|
||||||
Icon = FontAwesome.Gear;
|
Icon = FontAwesome.Solid.Cog;
|
||||||
TooltipMain = "Settings";
|
TooltipMain = "Settings";
|
||||||
TooltipSub = "Change your settings";
|
TooltipSub = "Change your settings";
|
||||||
}
|
}
|
||||||
|
@ -10,7 +10,7 @@ namespace osu.Game.Overlays.Toolbar
|
|||||||
{
|
{
|
||||||
public ToolbarSocialButton()
|
public ToolbarSocialButton()
|
||||||
{
|
{
|
||||||
Icon = FontAwesome.Users;
|
Icon = FontAwesome.Solid.Users;
|
||||||
}
|
}
|
||||||
|
|
||||||
[BackgroundDependencyLoader(true)]
|
[BackgroundDependencyLoader(true)]
|
||||||
|
@ -72,7 +72,7 @@ namespace osu.Game.Overlays.Volume
|
|||||||
|
|
||||||
Current.ValueChanged += muted =>
|
Current.ValueChanged += muted =>
|
||||||
{
|
{
|
||||||
icon.Icon = muted.NewValue ? FontAwesome.VolumeOff : FontAwesome.VolumeUp;
|
icon.Icon = muted.NewValue ? FontAwesome.Solid.VolumeOff : FontAwesome.Solid.VolumeUp;
|
||||||
icon.Margin = new MarginPadding { Left = muted.NewValue ? width / 2 - 15 : width / 2 - 10 }; //Magic numbers to line up both icons because they're different widths
|
icon.Margin = new MarginPadding { Left = muted.NewValue ? width / 2 - 15 : width / 2 - 10 }; //Magic numbers to line up both icons because they're different widths
|
||||||
};
|
};
|
||||||
Current.TriggerChange();
|
Current.TriggerChange();
|
||||||
|
@ -28,7 +28,7 @@ namespace osu.Game.Rulesets.Mods
|
|||||||
/// The icon of this mod.
|
/// The icon of this mod.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public virtual IconUsage Icon => FontAwesome.Question;
|
public virtual IconUsage Icon => FontAwesome.Solid.Question;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The type of this mod.
|
/// The type of this mod.
|
||||||
|
@ -11,7 +11,7 @@ namespace osu.Game.Rulesets.Mods
|
|||||||
{
|
{
|
||||||
public override string Name => "Daycore";
|
public override string Name => "Daycore";
|
||||||
public override string Acronym => "DC";
|
public override string Acronym => "DC";
|
||||||
public override IconUsage Icon => FontAwesome.Question;
|
public override IconUsage Icon => FontAwesome.Solid.Question;
|
||||||
public override string Description => "Whoaaaaa...";
|
public override string Description => "Whoaaaaa...";
|
||||||
|
|
||||||
public override void ApplyToClock(IAdjustableClock clock)
|
public override void ApplyToClock(IAdjustableClock clock)
|
||||||
|
@ -14,7 +14,7 @@ namespace osu.Game.Rulesets.Mods
|
|||||||
public override string Name => "Wind Down";
|
public override string Name => "Wind Down";
|
||||||
public override string Acronym => "WD";
|
public override string Acronym => "WD";
|
||||||
public override string Description => "Sloooow doooown...";
|
public override string Description => "Sloooow doooown...";
|
||||||
public override IconUsage Icon => FontAwesome.ChevronCircleDown;
|
public override IconUsage Icon => FontAwesome.Solid.ChevronCircleDown;
|
||||||
public override double ScoreMultiplier => 1.0;
|
public override double ScoreMultiplier => 1.0;
|
||||||
|
|
||||||
protected override double FinalRateAdjustment => -0.25;
|
protected override double FinalRateAdjustment => -0.25;
|
||||||
|
@ -14,7 +14,7 @@ namespace osu.Game.Rulesets.Mods
|
|||||||
public override string Name => "Wind Up";
|
public override string Name => "Wind Up";
|
||||||
public override string Acronym => "WU";
|
public override string Acronym => "WU";
|
||||||
public override string Description => "Can you keep up?";
|
public override string Description => "Can you keep up?";
|
||||||
public override IconUsage Icon => FontAwesome.ChevronCircleUp;
|
public override IconUsage Icon => FontAwesome.Solid.ChevronCircleUp;
|
||||||
public override double ScoreMultiplier => 1.0;
|
public override double ScoreMultiplier => 1.0;
|
||||||
|
|
||||||
protected override double FinalRateAdjustment => 0.5;
|
protected override double FinalRateAdjustment => 0.5;
|
||||||
|
@ -77,7 +77,7 @@ namespace osu.Game.Rulesets
|
|||||||
|
|
||||||
public virtual HitObjectComposer CreateHitObjectComposer() => null;
|
public virtual HitObjectComposer CreateHitObjectComposer() => null;
|
||||||
|
|
||||||
public virtual Drawable CreateIcon() => new SpriteIcon { Icon = FontAwesome.QuestionCircle };
|
public virtual Drawable CreateIcon() => new SpriteIcon { Icon = FontAwesome.Solid.QuestionCircle };
|
||||||
|
|
||||||
public abstract string Description { get; }
|
public abstract string Description { get; }
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ namespace osu.Game.Screens.Edit.Components
|
|||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
Scale = new Vector2(1.4f),
|
Scale = new Vector2(1.4f),
|
||||||
IconScale = new Vector2(1.4f),
|
IconScale = new Vector2(1.4f),
|
||||||
Icon = FontAwesome.PlayCircleOutline,
|
Icon = FontAwesome.Regular.PlayCircle,
|
||||||
Action = togglePause,
|
Action = togglePause,
|
||||||
Padding = new MarginPadding { Left = 20 }
|
Padding = new MarginPadding { Left = 20 }
|
||||||
},
|
},
|
||||||
@ -89,7 +89,7 @@ namespace osu.Game.Screens.Edit.Components
|
|||||||
{
|
{
|
||||||
base.Update();
|
base.Update();
|
||||||
|
|
||||||
playButton.Icon = adjustableClock.IsRunning ? FontAwesome.PauseCircleOutline : FontAwesome.PlayCircleOutline;
|
playButton.Icon = adjustableClock.IsRunning ? FontAwesome.Regular.PauseCircle : FontAwesome.Regular.PlayCircle;
|
||||||
}
|
}
|
||||||
|
|
||||||
private class PlaybackTabControl : OsuTabControl<double>
|
private class PlaybackTabControl : OsuTabControl<double>
|
||||||
|
@ -94,13 +94,13 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
|||||||
{
|
{
|
||||||
new DivisorButton
|
new DivisorButton
|
||||||
{
|
{
|
||||||
Icon = FontAwesome.ChevronLeft,
|
Icon = FontAwesome.Solid.ChevronLeft,
|
||||||
Action = beatDivisor.Previous
|
Action = beatDivisor.Previous
|
||||||
},
|
},
|
||||||
new DivisorText(beatDivisor),
|
new DivisorText(beatDivisor),
|
||||||
new DivisorButton
|
new DivisorButton
|
||||||
{
|
{
|
||||||
Icon = FontAwesome.ChevronRight,
|
Icon = FontAwesome.Solid.ChevronRight,
|
||||||
Action = beatDivisor.Next
|
Action = beatDivisor.Next
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -91,7 +91,7 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
|
|||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Y,
|
RelativeSizeAxes = Axes.Y,
|
||||||
Height = 0.5f,
|
Height = 0.5f,
|
||||||
Icon = FontAwesome.SearchPlus,
|
Icon = FontAwesome.Solid.SearchPlus,
|
||||||
Action = () => changeZoom(1)
|
Action = () => changeZoom(1)
|
||||||
},
|
},
|
||||||
new TimelineButton
|
new TimelineButton
|
||||||
@ -100,7 +100,7 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
|
|||||||
Origin = Anchor.BottomLeft,
|
Origin = Anchor.BottomLeft,
|
||||||
RelativeSizeAxes = Axes.Y,
|
RelativeSizeAxes = Axes.Y,
|
||||||
Height = 0.5f,
|
Height = 0.5f,
|
||||||
Icon = FontAwesome.SearchMinus,
|
Icon = FontAwesome.Solid.SearchMinus,
|
||||||
Action = () => changeZoom(-1)
|
Action = () => changeZoom(-1)
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@ -80,7 +80,7 @@ namespace osu.Game.Screens.Menu
|
|||||||
|
|
||||||
buttonArea.AddRange(new[]
|
buttonArea.AddRange(new[]
|
||||||
{
|
{
|
||||||
new Button(@"settings", string.Empty, FontAwesome.Gear, new Color4(85, 85, 85, 255), () => OnSettings?.Invoke(), -WEDGE_WIDTH, Key.O),
|
new Button(@"settings", string.Empty, FontAwesome.Solid.Cog, new Color4(85, 85, 85, 255), () => OnSettings?.Invoke(), -WEDGE_WIDTH, Key.O),
|
||||||
backButton = new Button(@"back", @"button-back-select", OsuIcon.LeftCircle, new Color4(51, 58, 94, 255), () => State = ButtonSystemState.TopLevel, -WEDGE_WIDTH)
|
backButton = new Button(@"back", @"button-back-select", OsuIcon.LeftCircle, new Color4(51, 58, 94, 255), () => State = ButtonSystemState.TopLevel, -WEDGE_WIDTH)
|
||||||
{
|
{
|
||||||
VisibleState = ButtonSystemState.Play,
|
VisibleState = ButtonSystemState.Play,
|
||||||
@ -106,8 +106,8 @@ namespace osu.Game.Screens.Menu
|
|||||||
[BackgroundDependencyLoader(true)]
|
[BackgroundDependencyLoader(true)]
|
||||||
private void load(AudioManager audio, IdleTracker idleTracker, GameHost host)
|
private void load(AudioManager audio, IdleTracker idleTracker, GameHost host)
|
||||||
{
|
{
|
||||||
buttonsPlay.Add(new Button(@"solo", @"button-solo-select", FontAwesome.User, new Color4(102, 68, 204, 255), () => OnSolo?.Invoke(), WEDGE_WIDTH, Key.P));
|
buttonsPlay.Add(new Button(@"solo", @"button-solo-select", FontAwesome.Solid.User, new Color4(102, 68, 204, 255), () => OnSolo?.Invoke(), WEDGE_WIDTH, Key.P));
|
||||||
buttonsPlay.Add(new Button(@"multi", @"button-generic-select", FontAwesome.Users, new Color4(94, 63, 186, 255), onMulti, 0, Key.M));
|
buttonsPlay.Add(new Button(@"multi", @"button-generic-select", FontAwesome.Solid.Users, new Color4(94, 63, 186, 255), onMulti, 0, Key.M));
|
||||||
buttonsPlay.Add(new Button(@"chart", @"button-generic-select", OsuIcon.Charts, new Color4(80, 53, 160, 255), () => OnChart?.Invoke()));
|
buttonsPlay.Add(new Button(@"chart", @"button-generic-select", OsuIcon.Charts, new Color4(80, 53, 160, 255), () => OnChart?.Invoke()));
|
||||||
buttonsPlay.ForEach(b => b.VisibleState = ButtonSystemState.Play);
|
buttonsPlay.ForEach(b => b.VisibleState = ButtonSystemState.Play);
|
||||||
|
|
||||||
@ -135,7 +135,7 @@ namespace osu.Game.Screens.Menu
|
|||||||
notifications?.Post(new SimpleNotification
|
notifications?.Post(new SimpleNotification
|
||||||
{
|
{
|
||||||
Text = "You gotta be logged in to multi 'yo!",
|
Text = "You gotta be logged in to multi 'yo!",
|
||||||
Icon = FontAwesome.Globe
|
Icon = FontAwesome.Solid.Globe
|
||||||
});
|
});
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
@ -54,7 +54,7 @@ namespace osu.Game.Screens.Menu
|
|||||||
{
|
{
|
||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.Centre,
|
||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
Icon = FontAwesome.Warning,
|
Icon = FontAwesome.Solid.ExclamationTriangle,
|
||||||
Size = new Vector2(icon_size),
|
Size = new Vector2(icon_size),
|
||||||
Y = icon_y,
|
Y = icon_y,
|
||||||
},
|
},
|
||||||
@ -128,7 +128,7 @@ namespace osu.Game.Screens.Menu
|
|||||||
supportFlow.AddText(" to help support the game", format);
|
supportFlow.AddText(" to help support the game", format);
|
||||||
}
|
}
|
||||||
|
|
||||||
heart = supportFlow.AddIcon(FontAwesome.Heart, t =>
|
heart = supportFlow.AddIcon(FontAwesome.Solid.Heart, t =>
|
||||||
{
|
{
|
||||||
t.Padding = new MarginPadding { Left = 5 };
|
t.Padding = new MarginPadding { Left = 5 };
|
||||||
t.Font = t.Font.With(size: 12);
|
t.Font = t.Font.With(size: 12);
|
||||||
|
@ -25,9 +25,9 @@ namespace osu.Game.Screens.Multi.Match.Components
|
|||||||
|
|
||||||
protected override IEnumerable<LeaderboardScoreStatistic> GetStatistics(ScoreInfo model) => new[]
|
protected override IEnumerable<LeaderboardScoreStatistic> GetStatistics(ScoreInfo model) => new[]
|
||||||
{
|
{
|
||||||
new LeaderboardScoreStatistic(FontAwesome.Crosshairs, "Accuracy", string.Format(model.Accuracy % 1 == 0 ? @"{0:P0}" : @"{0:P2}", model.Accuracy)),
|
new LeaderboardScoreStatistic(FontAwesome.Solid.Crosshairs, "Accuracy", string.Format(model.Accuracy % 1 == 0 ? @"{0:P0}" : @"{0:P2}", model.Accuracy)),
|
||||||
new LeaderboardScoreStatistic(FontAwesome.Refresh, "Total Attempts", ((APIRoomScoreInfo)model).TotalAttempts.ToString()),
|
new LeaderboardScoreStatistic(FontAwesome.Solid.Sync, "Total Attempts", ((APIRoomScoreInfo)model).TotalAttempts.ToString()),
|
||||||
new LeaderboardScoreStatistic(FontAwesome.Check, "Completed Beatmaps", ((APIRoomScoreInfo)model).CompletedBeatmaps.ToString()),
|
new LeaderboardScoreStatistic(FontAwesome.Solid.Check, "Completed Beatmaps", ((APIRoomScoreInfo)model).CompletedBeatmaps.ToString()),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -20,7 +20,7 @@ namespace osu.Game.Screens.Multi.Ranking.Types
|
|||||||
this.beatmap = beatmap;
|
this.beatmap = beatmap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public IconUsage Icon => FontAwesome.Users;
|
public IconUsage Icon => FontAwesome.Solid.Users;
|
||||||
|
|
||||||
public string Name => "Room Leaderboard";
|
public string Name => "Room Leaderboard";
|
||||||
|
|
||||||
|
@ -42,7 +42,7 @@ namespace osu.Game.Screens.Play.Break
|
|||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.Centre,
|
||||||
Origin = Anchor.CentreRight,
|
Origin = Anchor.CentreRight,
|
||||||
X = -glow_icon_offscreen_offset,
|
X = -glow_icon_offscreen_offset,
|
||||||
Icon = FontAwesome.ChevronRight,
|
Icon = FontAwesome.Solid.ChevronRight,
|
||||||
BlurSigma = new Vector2(glow_icon_blur_sigma),
|
BlurSigma = new Vector2(glow_icon_blur_sigma),
|
||||||
Size = new Vector2(glow_icon_size),
|
Size = new Vector2(glow_icon_size),
|
||||||
},
|
},
|
||||||
@ -51,7 +51,7 @@ namespace osu.Game.Screens.Play.Break
|
|||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.Centre,
|
||||||
Origin = Anchor.CentreLeft,
|
Origin = Anchor.CentreLeft,
|
||||||
X = glow_icon_offscreen_offset,
|
X = glow_icon_offscreen_offset,
|
||||||
Icon = FontAwesome.ChevronLeft,
|
Icon = FontAwesome.Solid.ChevronLeft,
|
||||||
BlurSigma = new Vector2(glow_icon_blur_sigma),
|
BlurSigma = new Vector2(glow_icon_blur_sigma),
|
||||||
Size = new Vector2(glow_icon_size),
|
Size = new Vector2(glow_icon_size),
|
||||||
},
|
},
|
||||||
@ -68,7 +68,7 @@ namespace osu.Game.Screens.Play.Break
|
|||||||
Origin = Anchor.CentreRight,
|
Origin = Anchor.CentreRight,
|
||||||
Alpha = 0.7f,
|
Alpha = 0.7f,
|
||||||
X = -blurred_icon_offscreen_offset,
|
X = -blurred_icon_offscreen_offset,
|
||||||
Icon = FontAwesome.ChevronRight,
|
Icon = FontAwesome.Solid.ChevronRight,
|
||||||
BlurSigma = new Vector2(blurred_icon_blur_sigma),
|
BlurSigma = new Vector2(blurred_icon_blur_sigma),
|
||||||
Size = new Vector2(blurred_icon_size),
|
Size = new Vector2(blurred_icon_size),
|
||||||
},
|
},
|
||||||
@ -78,7 +78,7 @@ namespace osu.Game.Screens.Play.Break
|
|||||||
Origin = Anchor.CentreLeft,
|
Origin = Anchor.CentreLeft,
|
||||||
Alpha = 0.7f,
|
Alpha = 0.7f,
|
||||||
X = blurred_icon_offscreen_offset,
|
X = blurred_icon_offscreen_offset,
|
||||||
Icon = FontAwesome.ChevronLeft,
|
Icon = FontAwesome.Solid.ChevronLeft,
|
||||||
BlurSigma = new Vector2(blurred_icon_blur_sigma),
|
BlurSigma = new Vector2(blurred_icon_blur_sigma),
|
||||||
Size = new Vector2(blurred_icon_size),
|
Size = new Vector2(blurred_icon_size),
|
||||||
},
|
},
|
||||||
|
@ -129,7 +129,7 @@ namespace osu.Game.Screens.Play.HUD
|
|||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.Centre,
|
||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
Size = new Vector2(15),
|
Size = new Vector2(15),
|
||||||
Icon = FontAwesome.Close
|
Icon = FontAwesome.Solid.TimesCircle
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -104,7 +104,7 @@ namespace osu.Game.Screens.Play.PlayerSettings
|
|||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
Anchor = Anchor.CentreRight,
|
Anchor = Anchor.CentreRight,
|
||||||
Position = new Vector2(-15, 0),
|
Position = new Vector2(-15, 0),
|
||||||
Icon = FontAwesome.Bars,
|
Icon = FontAwesome.Solid.Bars,
|
||||||
Scale = new Vector2(0.75f),
|
Scale = new Vector2(0.75f),
|
||||||
Action = () => Expanded = !Expanded,
|
Action = () => Expanded = !Expanded,
|
||||||
},
|
},
|
||||||
|
@ -259,9 +259,9 @@ namespace osu.Game.Screens.Play
|
|||||||
Direction = FillDirection.Horizontal,
|
Direction = FillDirection.Horizontal,
|
||||||
Children = new[]
|
Children = new[]
|
||||||
{
|
{
|
||||||
new SpriteIcon { Size = new Vector2(15), Shadow = true, Icon = FontAwesome.ChevronRight },
|
new SpriteIcon { Size = new Vector2(15), Shadow = true, Icon = FontAwesome.Solid.ChevronRight },
|
||||||
new SpriteIcon { Size = new Vector2(15), Shadow = true, Icon = FontAwesome.ChevronRight },
|
new SpriteIcon { Size = new Vector2(15), Shadow = true, Icon = FontAwesome.Solid.ChevronRight },
|
||||||
new SpriteIcon { Size = new Vector2(15), Shadow = true, Icon = FontAwesome.ChevronRight },
|
new SpriteIcon { Size = new Vector2(15), Shadow = true, Icon = FontAwesome.Solid.ChevronRight },
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
new OsuSpriteText
|
new OsuSpriteText
|
||||||
|
@ -19,7 +19,7 @@ namespace osu.Game.Screens.Ranking.Types
|
|||||||
this.beatmap = beatmap;
|
this.beatmap = beatmap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public IconUsage Icon => FontAwesome.User;
|
public IconUsage Icon => FontAwesome.Solid.User;
|
||||||
|
|
||||||
public string Name => @"Local Leaderboard";
|
public string Name => @"Local Leaderboard";
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ namespace osu.Game.Screens.Ranking.Types
|
|||||||
{
|
{
|
||||||
public class ScoreOverviewPageInfo : IResultPageInfo
|
public class ScoreOverviewPageInfo : IResultPageInfo
|
||||||
{
|
{
|
||||||
public IconUsage Icon => FontAwesome.Asterisk;
|
public IconUsage Icon => FontAwesome.Solid.Asterisk;
|
||||||
|
|
||||||
public string Name => "Overview";
|
public string Name => "Overview";
|
||||||
private readonly ScoreInfo score;
|
private readonly ScoreInfo score;
|
||||||
|
@ -113,7 +113,7 @@ namespace osu.Game.Screens
|
|||||||
{
|
{
|
||||||
new SpriteIcon
|
new SpriteIcon
|
||||||
{
|
{
|
||||||
Icon = FontAwesome.UniversalAccess,
|
Icon = FontAwesome.Solid.UniversalAccess,
|
||||||
Anchor = Anchor.TopCentre,
|
Anchor = Anchor.TopCentre,
|
||||||
Origin = Anchor.TopCentre,
|
Origin = Anchor.TopCentre,
|
||||||
Size = new Vector2(50),
|
Size = new Vector2(50),
|
||||||
|
@ -19,7 +19,7 @@ namespace osu.Game.Screens.Select
|
|||||||
public BeatmapClearScoresDialog(BeatmapInfo beatmap, Action onCompletion)
|
public BeatmapClearScoresDialog(BeatmapInfo beatmap, Action onCompletion)
|
||||||
{
|
{
|
||||||
BodyText = $@"{beatmap.Metadata?.Artist} - {beatmap.Metadata?.Title}";
|
BodyText = $@"{beatmap.Metadata?.Artist} - {beatmap.Metadata?.Title}";
|
||||||
Icon = FontAwesome.Eraser;
|
Icon = FontAwesome.Solid.Eraser;
|
||||||
HeaderText = @"Clearing all local scores. Are you sure?";
|
HeaderText = @"Clearing all local scores. Are you sure?";
|
||||||
Buttons = new PopupDialogButton[]
|
Buttons = new PopupDialogButton[]
|
||||||
{
|
{
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user