Content audio (#20862)
This commit is contained in:
@@ -41,7 +41,7 @@ namespace Content.Client.Stylesheets
|
||||
protected StyleBoxTexture BaseAngleRect { get; }
|
||||
protected StyleBoxTexture AngleBorderRect { get; }
|
||||
|
||||
protected StyleBase(IResourceCache resCache)
|
||||
protected StyleBase(IClientResourceCache resCache)
|
||||
{
|
||||
var notoSans12 = resCache.GetFont
|
||||
(
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace Content.Client.Stylesheets
|
||||
{
|
||||
public static class ResCacheExtension
|
||||
{
|
||||
public static Font NotoStack(this IResourceCache resCache, string variation = "Regular", int size = 10, bool display = false)
|
||||
public static Font NotoStack(this IClientResourceCache resCache, string variation = "Regular", int size = 10, bool display = false)
|
||||
{
|
||||
var ds = display ? "Display" : "";
|
||||
var sv = variation.StartsWith("Bold", StringComparison.Ordinal) ? "Bold" : "Regular";
|
||||
@@ -144,7 +144,7 @@ namespace Content.Client.Stylesheets
|
||||
|
||||
public override Stylesheet Stylesheet { get; }
|
||||
|
||||
public StyleNano(IResourceCache resCache) : base(resCache)
|
||||
public StyleNano(IClientResourceCache resCache) : base(resCache)
|
||||
{
|
||||
var notoSans8 = resCache.NotoStack(size: 8);
|
||||
var notoSans10 = resCache.NotoStack(size: 10);
|
||||
|
||||
@@ -24,7 +24,7 @@ namespace Content.Client.Stylesheets
|
||||
|
||||
public override Stylesheet Stylesheet { get; }
|
||||
|
||||
public StyleSpace(IResourceCache resCache) : base(resCache)
|
||||
public StyleSpace(IClientResourceCache resCache) : base(resCache)
|
||||
{
|
||||
var notoSans10 = resCache.GetFont
|
||||
(
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace Content.Client.Stylesheets
|
||||
public sealed class StylesheetManager : IStylesheetManager
|
||||
{
|
||||
[Dependency] private readonly IUserInterfaceManager _userInterfaceManager = default!;
|
||||
[Dependency] private readonly IResourceCache _resourceCache = default!;
|
||||
[Dependency] private readonly IClientResourceCache _resourceCache = default!;
|
||||
|
||||
public Stylesheet SheetNano { get; private set; } = default!;
|
||||
public Stylesheet SheetSpace { get; private set; } = default!;
|
||||
|
||||
Reference in New Issue
Block a user