Class SpellIconCollection
Stores spell icon packs for use in game UI (e.g. HUD, Spellbook, Spellmaker).
The classic spell icon file "ICON00I0.IMG" is a 320x64 atlas of 69 textures.
Inheritance
SpellIconCollection
Assembly: Assembly-CSharp.dll
Syntax
public class SpellIconCollection
Constructors
|
Improve this Doc
View Source
SpellIconCollection()
Declaration
public SpellIconCollection()
Properties
|
Improve this Doc
View Source
ElementIconCount
Static count of expected spell element icons (always 5).
Declaration
public int ElementIconCount { get; }
Property Value
|
Improve this Doc
View Source
SpellIconCount
Static count of expected spell icons (always 69).
Declaration
public int SpellIconCount { get; }
Property Value
|
Improve this Doc
View Source
SpellIconPacks
Declaration
public Dictionary<string, SpellIconCollection.SpellIconPack> SpellIconPacks { get; }
Property Value
|
Improve this Doc
View Source
TargetIconCount
Static count of expected spell target icons (always 5).
Declaration
public int TargetIconCount { get; }
Property Value
Methods
|
Improve this Doc
View Source
GetIconCount(String)
Declaration
public int GetIconCount(string key)
Parameters
Type |
Name |
Description |
String |
key |
|
Returns
|
Improve this Doc
View Source
GetSpellElementIcon(ElementTypes)
Get spell element icon texture.
Declaration
public Texture2D GetSpellElementIcon(ElementTypes elementType)
Parameters
Returns
|
Improve this Doc
View Source
GetSpellIcon(SpellIcon)
Declaration
public Texture2D GetSpellIcon(SpellIcon icon)
Parameters
Returns
|
Improve this Doc
View Source
GetSpellIcon(Int32)
Get spell icon texture from index.
Declaration
public Texture2D GetSpellIcon(int index)
Parameters
Type |
Name |
Description |
Int32 |
index |
|
Returns
|
Improve this Doc
View Source
GetSpellTargetIcon(TargetTypes)
Get spell target icon texture.
Declaration
public Texture2D GetSpellTargetIcon(TargetTypes targetType)
Parameters
Returns
|
Improve this Doc
View Source
HasPack(String)
Declaration
public bool HasPack(string key)
Parameters
Type |
Name |
Description |
String |
key |
|
Returns