|
CrabUI
|
Class for loading textures without duplicates
Also disposes all loaded textures automatically.
More...
Public Member Functions | |
| void | DisposeAllTextures () |
| string | NormalizePath (string path) |
| CUISprite | GetSprite (string path, Rectangle? sourceRect=null, CUISpriteDrawMode? drawMode=null, SpriteEffects? effects=null) |
| CUISprite | GetCUISprite (int x, int y, CUISpriteDrawMode? drawMode=null, SpriteEffects? effects=null) |
| 32x32 square on (x,y) position from CUI.png | |
| Texture2D | GetTexture (string path) |
| void | Dispose () |
Static Public Member Functions | |
| static void | CreateCheckers () |
| static void | InitStatic () |
Public Attributes | |
| Dictionary< string, Texture2D > | LoadedTextures = new() |
Static Public Attributes | |
| static Texture2D | Checkers |
| Path to additional PNGs, it can be set in CUI. | |
Properties | |
| static Texture2D | BackupTexture [get] |
Class for loading textures without duplicates
Also disposes all loaded textures automatically.
Definition at line 19 of file CUITextureManager.cs.
|
static |
Definition at line 21 of file CUITextureManager.cs.
| void CrabUI.CUITextureManager.Dispose | ( | ) |
Definition at line 153 of file CUITextureManager.cs.
| void CrabUI.CUITextureManager.DisposeAllTextures | ( | ) |
Definition at line 71 of file CUITextureManager.cs.
| CUISprite CrabUI.CUITextureManager.GetCUISprite | ( | int | x, |
| int | y, | ||
| CUISpriteDrawMode? | drawMode = null, | ||
| SpriteEffects? | effects = null ) |
32x32 square on (x,y) position from CUI.png
Definition at line 102 of file CUITextureManager.cs.
| CUISprite CrabUI.CUITextureManager.GetSprite | ( | string | path, |
| Rectangle? | sourceRect = null, | ||
| CUISpriteDrawMode? | drawMode = null, | ||
| SpriteEffects? | effects = null ) |
Definition at line 85 of file CUITextureManager.cs.
| Texture2D CrabUI.CUITextureManager.GetTexture | ( | string | path | ) |
Definition at line 124 of file CUITextureManager.cs.
|
static |
Definition at line 39 of file CUITextureManager.cs.
| string CrabUI.CUITextureManager.NormalizePath | ( | string | path | ) |
Definition at line 80 of file CUITextureManager.cs.
|
static |
Path to additional PNGs, it can be set in CUI.
Definition at line 68 of file CUITextureManager.cs.
| Dictionary<string, Texture2D> CrabUI.CUITextureManager.LoadedTextures = new() |
Definition at line 70 of file CUITextureManager.cs.
|
staticget |
Definition at line 69 of file CUITextureManager.cs.