namespace Barotrauma.LuaCs.Services; // TODO: Rework interface to support resource infos. /// /// Loads XML Style assets from the given content package. /// public interface IStylesService : IReusableService { /// /// Tries to load the styles file for the given contentpackage and path into a new UIStylesProcessor instance. /// /// /// /// FluentResults.Result LoadStylesFile(ContentPackage package, ContentPath path); /// /// Unloads all styles assets and UIStyleProcessor instances. /// FluentResults.Result UnloadAllStyles(); /// /// Tries to the get the font asset by xml asset name, returns null on failure. /// /// XML Name of the asset. /// The asset or null if none are found. GUIFont GetFont(string fontName); /// /// Tries to the get the sprite asset by xml asset name, returns null on failure. /// /// XML Name of the asset. /// The asset or null if none are found. GUISprite GetSprite(string spriteName); /// /// Tries to the get the sprite sheet asset by xml asset name, returns null on failure. /// /// XML Name of the asset. /// The asset or null if none are found. GUISpriteSheet GetSpriteSheet(string spriteSheetName); /// /// Tries to the get the cursor asset by xml asset name, returns null on failure. /// /// XML Name of the asset. /// The asset or null if none are found. GUICursor GetCursor(string cursorName); /// /// Tries to the get the color asset by xml asset name, returns null on failure. /// /// XML Name of the asset. /// The asset or null if none are found. GUIColor GetColor(string colorName); }