-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathTextures.cs
36 lines (26 loc) · 1.36 KB
/
Textures.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
namespace DaLion.Overhaul.Modules.Combat;
#region using directives
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework.Graphics;
#endregion using directives
/// <summary>Caches custom mod textures and related functions.</summary>
internal static class Textures
{
internal static Texture2D GemstonesTx { get; } = ModHelper.ModContent.Load<Texture2D>("assets/sprites/gemstones");
internal static Texture2D GemSocketTx { get; set; } =
ModHelper.GameContent.Load<Texture2D>($"{Manifest.UniqueID}/GemstoneSockets");
internal static Texture2D RingsTx { get; } = ModHelper.ModContent.Load<Texture2D>("assets/sprites/rings");
internal static Texture2D ShieldTx { get; set; } = ModHelper.ModContent.Load<Texture2D>("assets/sprites/shield.png");
internal static Texture2D PatternedResonanceTx { get; } =
ModHelper.ModContent.Load<Texture2D>("assets/sprites/resonance_patterned");
internal static Texture2D StrongerResonanceTx { get; } =
ModHelper.ModContent.Load<Texture2D>("assets/sprites/resonance_stronger");
internal static void Refresh(IReadOnlySet<IAssetName> names)
{
if (names.Any(name => name.IsEquivalentTo($"{Manifest.UniqueID}/GemstoneSockets")))
{
GemSocketTx = ModHelper.GameContent.Load<Texture2D>($"{Manifest.UniqueID}/GemstoneSockets");
}
}
}