mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-16 21:17:39 +03:00
* - tweak: update StyleSheetify * - add: flexbox * - fix: size of flexbox in launchergui * - tweak: Profile editor: start. * - add: categories * - tweak: help me please with this shi... loadouts * - fix: container path think * - tweak: thinks for optimisation * - add: group selection for loadoutpicker * - tweak: change position of preview * - add: reason text * - fix: Кролькины фиксы * - fix: кролькины фиксы ч.2 * - fix: кролькины фиксы ч.3 * - кролькины фиксы - финал * - fix: Ворчливого дедушкины фиксы, удаление старого барахла и пометка wwdp * - tweak: some ui change for LoadoutCategories and LoadoutEntry * - ворчливый дед фиксы ч.2 * - fix: очередные кролькины фиксы * - add: loadout prototype validation * - fix: description read from edit field
26 lines
1.1 KiB
C#
26 lines
1.1 KiB
C#
using Content.StyleSheetify.Client.StyleSheet;
|
|
using Robust.Client.ResourceManagement;
|
|
using Robust.Client.UserInterface;
|
|
using Robust.Shared.IoC;
|
|
|
|
namespace Content.Client.Stylesheets
|
|
{
|
|
public sealed class StylesheetManager : IStylesheetManager
|
|
{
|
|
[Dependency] private readonly IUserInterfaceManager _userInterfaceManager = default!;
|
|
[Dependency] private readonly IResourceCache _resourceCache = default!;
|
|
[Dependency] private readonly IContentStyleSheetManager _contentStyleSheetManager = default!; // WWDP EDIT
|
|
|
|
public StylesheetReference SheetNano { get; private set; } = default!; // WWDP EDIT
|
|
public StylesheetReference SheetSpace { get; private set; } = default!; // WWDP EDIT
|
|
|
|
public void Initialize()
|
|
{
|
|
SheetNano = _contentStyleSheetManager.MergeStyles(new StyleNano(_resourceCache).Stylesheet, "nano"); // WWDP EDIT
|
|
SheetSpace = _contentStyleSheetManager.MergeStyles(new StyleSpace(_resourceCache).Stylesheet, "space"); // WWDP EDIT
|
|
|
|
_userInterfaceManager.Stylesheet = SheetNano;
|
|
}
|
|
}
|
|
}
|