Megadocs 0.0.1
All of megapop's internal libraries
Megapop.MegaCore.GuiUtil Class Reference

Static Public Member Functions

static GUIContent TempContent (string text)
 
static GUIContent TempContent (string text, Texture texture)
 
static GUIContent TempContent (string text, Texture texture, string toolTip)
 
static GUIContent TempContent (string text, string toolTip)
 
static void PushGuiEnabled (bool enabled)
 Pushes the old GUI enabled state, and sets the new More...
 
static void PopGuiEnabled ()
 Pops the old GUI enabled state More...
 
static void PushGuiColor (Color color)
 Pushes the old GUI color, and sets the new More...
 
static void PopGuiColor ()
 Pops the old GUI color More...
 
static void PushGuiBackgroundColor (Color color)
 Pushes the old GUI background color, and sets the new More...
 
static void PopGuiBackgroundColor ()
 Pops the old GUI background color More...
 
static void PushGuiContentColor (Color color)
 Pushes the old GUI background color, and sets the new More...
 
static void PopGuiContentColor ()
 Pops the old GUI background color More...
 
static void PushGuiSkin (GUISkin skin)
 Pushes the old GUI skin, and sets the new More...
 
static void PopGuiSkin ()
 Pops the old GUI background color More...
 
static GUIContent SplitNameAndTooltip (string nameAndTooltip, char separator='|')
 
static void DrawLabelShadow (Rect position, GUIContent content, GUIStyle style, float shadowAlpha=.6f)
 
static void ShadowLabel (Rect position, GUIContent content, float shadowAlpha=.6f)
 
static void ShadowLabel (Rect position, GUIContent content, GUIStyle style, float shadowAlpha=.6f)
 
static void Draw4 (Rect position, GUIContent content, float offset, float alpha, GUIStyle style)
 
static void Draw8 (Rect position, GUIContent content, float offset, float alpha, GUIStyle style)
 
static void DrawStyle (Rect rect, GUIStyle style, string text=null)
 

Properties

static bool InLayout [get]
 
static bool InRepaint [get]
 
static Vector2 BottomLeft [get]
 
static Vector2 BottomRight [get]
 
static Vector2 TopLeft [get]
 
static Vector2 TopRight [get]
 
static GUIContent BlankContent = new(" ") [get]
 

Member Function Documentation

◆ Draw4()

static void Megapop.MegaCore.GuiUtil.Draw4 ( Rect  position,
GUIContent  content,
float  offset,
float  alpha,
GUIStyle  style 
)
inlinestatic

◆ Draw8()

static void Megapop.MegaCore.GuiUtil.Draw8 ( Rect  position,
GUIContent  content,
float  offset,
float  alpha,
GUIStyle  style 
)
inlinestatic

◆ DrawLabelShadow()

static void Megapop.MegaCore.GuiUtil.DrawLabelShadow ( Rect  position,
GUIContent  content,
GUIStyle  style,
float  shadowAlpha = .6f 
)
inlinestatic

◆ DrawStyle()

static void Megapop.MegaCore.GuiUtil.DrawStyle ( Rect  rect,
GUIStyle  style,
string  text = null 
)
inlinestatic

◆ PopGuiBackgroundColor()

static void Megapop.MegaCore.GuiUtil.PopGuiBackgroundColor ( )
inlinestatic

Pops the old GUI background color

◆ PopGuiColor()

static void Megapop.MegaCore.GuiUtil.PopGuiColor ( )
inlinestatic

Pops the old GUI color

◆ PopGuiContentColor()

static void Megapop.MegaCore.GuiUtil.PopGuiContentColor ( )
inlinestatic

Pops the old GUI background color

◆ PopGuiEnabled()

static void Megapop.MegaCore.GuiUtil.PopGuiEnabled ( )
inlinestatic

Pops the old GUI enabled state

◆ PopGuiSkin()

static void Megapop.MegaCore.GuiUtil.PopGuiSkin ( )
inlinestatic

Pops the old GUI background color

◆ PushGuiBackgroundColor()

static void Megapop.MegaCore.GuiUtil.PushGuiBackgroundColor ( Color  color)
inlinestatic

Pushes the old GUI background color, and sets the new

◆ PushGuiColor()

static void Megapop.MegaCore.GuiUtil.PushGuiColor ( Color  color)
inlinestatic

Pushes the old GUI color, and sets the new

◆ PushGuiContentColor()

static void Megapop.MegaCore.GuiUtil.PushGuiContentColor ( Color  color)
inlinestatic

Pushes the old GUI background color, and sets the new

◆ PushGuiEnabled()

static void Megapop.MegaCore.GuiUtil.PushGuiEnabled ( bool  enabled)
inlinestatic

Pushes the old GUI enabled state, and sets the new

◆ PushGuiSkin()

static void Megapop.MegaCore.GuiUtil.PushGuiSkin ( GUISkin  skin)
inlinestatic

Pushes the old GUI skin, and sets the new

◆ ShadowLabel() [1/2]

static void Megapop.MegaCore.GuiUtil.ShadowLabel ( Rect  position,
GUIContent  content,
float  shadowAlpha = .6f 
)
inlinestatic

◆ ShadowLabel() [2/2]

static void Megapop.MegaCore.GuiUtil.ShadowLabel ( Rect  position,
GUIContent  content,
GUIStyle  style,
float  shadowAlpha = .6f 
)
inlinestatic

◆ SplitNameAndTooltip()

static GUIContent Megapop.MegaCore.GuiUtil.SplitNameAndTooltip ( string  nameAndTooltip,
char  separator = '|' 
)
inlinestatic

◆ TempContent() [1/4]

static GUIContent Megapop.MegaCore.GuiUtil.TempContent ( string  text)
inlinestatic

◆ TempContent() [2/4]

static GUIContent Megapop.MegaCore.GuiUtil.TempContent ( string  text,
string  toolTip 
)
inlinestatic

◆ TempContent() [3/4]

static GUIContent Megapop.MegaCore.GuiUtil.TempContent ( string  text,
Texture  texture 
)
inlinestatic

◆ TempContent() [4/4]

static GUIContent Megapop.MegaCore.GuiUtil.TempContent ( string  text,
Texture  texture,
string  toolTip 
)
inlinestatic

Property Documentation

◆ BlankContent

GUIContent Megapop.MegaCore.GuiUtil.BlankContent = new(" ")
staticget

◆ BottomLeft

Vector2 Megapop.MegaCore.GuiUtil.BottomLeft
staticget

◆ BottomRight

Vector2 Megapop.MegaCore.GuiUtil.BottomRight
staticget

◆ InLayout

bool Megapop.MegaCore.GuiUtil.InLayout
staticget

◆ InRepaint

bool Megapop.MegaCore.GuiUtil.InRepaint
staticget

◆ TopLeft

Vector2 Megapop.MegaCore.GuiUtil.TopLeft
staticget

◆ TopRight

Vector2 Megapop.MegaCore.GuiUtil.TopRight
staticget

The documentation for this class was generated from the following file: