public TextureInfo(string file, TextureType type, int width, int height, int tick = 0, bool searchFile = true, bool load = true) { if (searchFile) { file = FileExplorer.FindIn(FileExplorer.Misc, file); } this.file = file; Type = type; Tick = tick; Width = width; Height = height; if (load) { if (Type == TextureType.IMAGE) { textures = SheetManager.AddTexture(file, out Width, out Height); } else { textures = SheetManager.AddSprite(file, width, height); } } }
public CreditsScreen(Game game) : base("", 255) { this.game = game; lineData = File.ReadAllLines(FileExplorer.FindIn(FileExplorer.Rules, "Credits", ".yaml")); lineHeight = FontManager.Default.MaxHeight * 2; wsImage = new UIImage(new BatchObject(UISpriteManager.Get("logo")[0])) { Color = new Color(0, 0, 0, 0) }; }