Wanzyee Studio

Extend editor GUI style, and include some premade icons or styles. More...

Static Public Member Functions

static Texture2D LoadTexture (int width, Color32[] pixels)
 Load a UnityEngine.Texture2D with color pixels for editor usage. More...
 
static Texture2D LoadTexture (string[] pixels, Dictionary< char, Color32 > colors, Color32 other)
 Trick to load a UnityEngine.Texture2D by parsing pixel string array. More...
 
static Texture2D LoadIcon (string[] pixels, byte pro=196, byte free=60)
 Trick to load icon UnityEngine.Texture2D by parsing pixel string array. More...
 
static Texture2D LoadCursor (string[] pixels)
 Trick to load cursor UnityEngine.Texture2D by parsing pixel string array. More...
 

Static Public Attributes

static readonly Texture2D splitterPixel
 The splitter pixel texture, middle gray, 1 x 1. More...
 
static readonly Texture2D backgroundPixel
 The background pixel texture, dark gray, 1 x 1. More...
 
static readonly GUIStyle statusBar
 The status bar style. More...
 
static readonly GUIStyle popupBorder
 The popup window border style. More...
 
static readonly Texture2D editIcon
 The icon represents to edit, a pencil, 12 x 12. More...
 
static readonly Texture2D copyIcon
 The icon represents to copy, overlapping notes, 12 x 12. More...
 
static readonly Texture2D removeIcon
 The icon represents to remove, a moving out arrow, 12 x 12. More...
 
static readonly Texture2D deleteIcon
 The icon represents to delete, a trash can, 12 x 12. More...
 
static readonly Texture2D aimIcon
 The icon represents to aim, a front sight, 12 x 12. More...
 
static readonly Texture2D fingerIcon
 The icon represents a finger, 12 x 12. More...
 
static readonly Texture2D hierarchyIcon
 The icon represents a hierarchy, indent level lines, 12 x 12. More...
 
static readonly Texture2D clipboardIcon
 The icon represents a clipboard, 12 x 12. More...
 
static readonly Texture2D bookmarkIcon
 The icon represents a bookmark, 12 x 12. More...
 
static readonly Texture2D questionIcon
 The icon represents the Super Mario question mark, 12 x 12. More...
 
static readonly Texture2D linkIcon
 The icon represents to link, a connected chain, 9 x 9. More...
 
static readonly Texture2D unlinkIcon
 The icon represents to unlink, a broken chain, 9 x 9. More...
 
static readonly Texture2D stopCursor
 The aux cursor represents a stop mark, 20 x 20. More...
 
static readonly Texture2D copyCursor
 The aux cursor with a plus symbol, 19 x 15. More...
 
static readonly Texture2D linkCursor
 The aux cursor with an arrow, 19 x 15. More...
 
static readonly Texture2D moveCursor
 The aux cursor represents a dotted frame, 13 x 9. More...
 

Properties

static GUIStyle utilityHeader [get]
 The utility window header style. More...
 
static GUIStyle utilityFooter [get]
 The utility window footer style. More...
 

Detailed Description

Extend editor GUI style, and include some premade icons or styles.

3

Member Function Documentation

static Texture2D LoadTexture ( int  width,
Color32[]  pixels 
)
static

Load a UnityEngine.Texture2D with color pixels for editor usage.

Return the texture with the same pixels created by this if exists, otherwise create new one.

Parameters
widthWidth.
pixelsPixels.
Returns
The texture.
static Texture2D LoadTexture ( string[]  pixels,
Dictionary< char, Color32 >  colors,
Color32  other 
)
static

Trick to load a UnityEngine.Texture2D by parsing pixel string array.

Array length as texture height, element string length as width. Set each char pixel by colors map if existing, otherwise the other color. Return the texture with the same pixels created by this if exists, otherwise create new one.

Parameters
pixelsPixel bits.
colorsColors map.
otherOther.
Returns
The texture.
static Texture2D LoadIcon ( string[]  pixels,
byte  pro = 196,
byte  free = 60 
)
static

Trick to load icon UnityEngine.Texture2D by parsing pixel string array.

Array length as icon height, element string length as width. Any space char as transparent, others color light if pro skin, otherwise dark. Return the texture with the same pixels created by this if exists, otherwise create new one.

Parameters
pixelsPixel bits.
proGrayscale for pro skin.
freeGrayscale for free skin.
Returns
The icon UnityEngine.Texture2D.
static Texture2D LoadCursor ( string[]  pixels)
static

Trick to load cursor UnityEngine.Texture2D by parsing pixel string array.

Array length as cursor height, element string length as width. Any '1' char as white, '0' as black, otherwise transparent. Return the texture with the same pixels created by this if exists, otherwise create new one.

Parameters
pixelsPixel bits.
Returns
The cursor UnityEngine.Texture2D.

Member Data Documentation

readonly Texture2D splitterPixel
static

The splitter pixel texture, middle gray, 1 x 1.

readonly Texture2D backgroundPixel
static

The background pixel texture, dark gray, 1 x 1.

readonly GUIStyle statusBar
static

The status bar style.

Light color text for pro skin, otherwise dark, with darken background.

readonly GUIStyle popupBorder
static

The popup window border style.

readonly Texture2D editIcon
static

The icon represents to edit, a pencil, 12 x 12.

readonly Texture2D copyIcon
static

The icon represents to copy, overlapping notes, 12 x 12.

readonly Texture2D removeIcon
static

The icon represents to remove, a moving out arrow, 12 x 12.

readonly Texture2D deleteIcon
static

The icon represents to delete, a trash can, 12 x 12.

readonly Texture2D aimIcon
static

The icon represents to aim, a front sight, 12 x 12.

readonly Texture2D fingerIcon
static

The icon represents a finger, 12 x 12.

readonly Texture2D hierarchyIcon
static

The icon represents a hierarchy, indent level lines, 12 x 12.

readonly Texture2D clipboardIcon
static

The icon represents a clipboard, 12 x 12.

readonly Texture2D bookmarkIcon
static

The icon represents a bookmark, 12 x 12.

readonly Texture2D questionIcon
static

The icon represents the Super Mario question mark, 12 x 12.

readonly Texture2D linkIcon
static

The icon represents to link, a connected chain, 9 x 9.

readonly Texture2D unlinkIcon
static

The icon represents to unlink, a broken chain, 9 x 9.

readonly Texture2D stopCursor
static

The aux cursor represents a stop mark, 20 x 20.

readonly Texture2D copyCursor
static

The aux cursor with a plus symbol, 19 x 15.

readonly Texture2D linkCursor
static

The aux cursor with an arrow, 19 x 15.

readonly Texture2D moveCursor
static

The aux cursor represents a dotted frame, 13 x 9.

Property Documentation

GUIStyle utilityHeader
staticget

The utility window header style.

GUIStyle utilityFooter
staticget

The utility window footer style.