Tanoda
GILES.Interface.pb_GUIStyle Class Reference
Inheritance diagram for GILES.Interface.pb_GUIStyle:

Public Member Functions

virtual void Apply (Graphic element)
 
virtual void Apply (Selectable element)
 

Static Public Member Functions

static pb_GUIStyle Create (Color color, Color? normalColor=null, Color? highlightedColor=null, Color? pressedColor=null, Color? disabledColor=null, Texture2D image=null, Sprite sprite=null, Font font=null, Color? fontColor=null)
 

Public Attributes

Color color = Color.white
 Background image tint. More...
 
Color normalColor = new Color(.2f, .2f, .2f, .7f)
 The default color of a button. More...
 
Color highlightedColor = new Color(.27f, .27f, .27f, 1f)
 Background color tint when hovering or highlighted. More...
 
Color pressedColor = new Color(.37f, .37f, .37f, 1f)
 Background color tint when pressed. More...
 
Color disabledColor = new Color(.7f, .7f, .7f, 1f)
 Background color tint when disabled. More...
 
Texture2D image
 Image to use (if applicable). More...
 
Sprite sprite
 Sprite to use (if applicable). More...
 
Color fontColor = Color.white
 Text tint. More...
 

Properties

Font font [get, set]
 Font to use. If null the default Arial is used. More...
 

Detailed Description

Defines a set of colors and fonts / sizes.

Definition at line 12 of file pb_GUIStyle.cs.

Member Function Documentation

◆ Apply() [1/2]

virtual void GILES.Interface.pb_GUIStyle.Apply ( Graphic  element)
virtual

Definition at line 78 of file pb_GUIStyle.cs.

◆ Apply() [2/2]

virtual void GILES.Interface.pb_GUIStyle.Apply ( Selectable  element)
virtual

Definition at line 86 of file pb_GUIStyle.cs.

◆ Create()

static pb_GUIStyle GILES.Interface.pb_GUIStyle.Create ( Color  color,
Color normalColor = null,
Color highlightedColor = null,
Color pressedColor = null,
Color disabledColor = null,
Texture2D  image = null,
Sprite  sprite = null,
Font  font = null,
Color fontColor = null 
)
static

Definition at line 51 of file pb_GUIStyle.cs.

Member Data Documentation

◆ color

Color GILES.Interface.pb_GUIStyle.color = Color.white

Background image tint.

Definition at line 17 of file pb_GUIStyle.cs.

◆ disabledColor

Color GILES.Interface.pb_GUIStyle.disabledColor = new Color(.7f, .7f, .7f, 1f)

Background color tint when disabled.

Definition at line 29 of file pb_GUIStyle.cs.

◆ fontColor

Color GILES.Interface.pb_GUIStyle.fontColor = Color.white

Text tint.

Definition at line 49 of file pb_GUIStyle.cs.

◆ highlightedColor

Color GILES.Interface.pb_GUIStyle.highlightedColor = new Color(.27f, .27f, .27f, 1f)

Background color tint when hovering or highlighted.

Definition at line 23 of file pb_GUIStyle.cs.

◆ image

Texture2D GILES.Interface.pb_GUIStyle.image

Image to use (if applicable).

Definition at line 32 of file pb_GUIStyle.cs.

◆ normalColor

Color GILES.Interface.pb_GUIStyle.normalColor = new Color(.2f, .2f, .2f, .7f)

The default color of a button.

Definition at line 20 of file pb_GUIStyle.cs.

◆ pressedColor

Color GILES.Interface.pb_GUIStyle.pressedColor = new Color(.37f, .37f, .37f, 1f)

Background color tint when pressed.

Definition at line 26 of file pb_GUIStyle.cs.

◆ sprite

Sprite GILES.Interface.pb_GUIStyle.sprite

Sprite to use (if applicable).

Definition at line 35 of file pb_GUIStyle.cs.

Property Documentation

◆ font

Font GILES.Interface.pb_GUIStyle.font
getset

Font to use. If null the default Arial is used.

Definition at line 38 of file pb_GUIStyle.cs.


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