World of Hello
Static Public Member Functions | List of all members
environment Class Reference

the GUI environment More...

#include <environment.h>

Static Public Member Functions

static environment setFont (string filePath)
 set the environment's font. More...
 
static environment setFontColor (int r, int g, int b, int a=255)
 set the environment's font color. More...
 
static environment setFaceColor (int r, int g, int b, int a=255)
 set the GUI environment's face color. More...
 
static environment setWindowGradientColor (int r, int g, int b, int a=255)
 set the GUI environment's window gradient color. More...
 
static environment setButtonGradientColor (int r, int g, int b, int a=255)
 set the GUI environment's button gradient color. More...
 

Detailed Description

the GUI environment

Control the GUI environment by changing all button colors, window colors, gradients, fonts, etc.

Member Function Documentation

◆ setButtonGradientColor()

static environment environment::setButtonGradientColor ( int  r,
int  g,
int  b,
int  a = 255 
)
static

set the GUI environment's button gradient color.

   Set the gradient color of GUI buttons.
Parameters
Theamount of red (0-255).
Theamount of green (0-255).
Theamount of blue (0-255).
(optional)The amount of alpha (transparency) (0-255).
Returns
Returns itself.

◆ setFaceColor()

static environment environment::setFaceColor ( int  r,
int  g,
int  b,
int  a = 255 
)
static

set the GUI environment's face color.

   Set the face color of GUI buttons, windows, list boxes, etc.
Parameters
Theamount of red (0-255).
Theamount of green (0-255).
Theamount of blue (0-255).
(optional)The amount of alpha (transparency) (0-255).
Returns
Returns itself.

◆ setFont()

static environment environment::setFont ( string  filePath)
static

set the environment's font.

Parameters
Thefont file path.
Returns
Returns itself.

◆ setFontColor()

static environment environment::setFontColor ( int  r,
int  g,
int  b,
int  a = 255 
)
static

set the environment's font color.

Parameters
Theamount of red (0-255).
Theamount of green (0-255).
Theamount of blue (0-255).
(optional)The amount of alpha (transparency) (0-255).
Returns
Returns itself.

◆ setWindowGradientColor()

static environment environment::setWindowGradientColor ( int  r,
int  g,
int  b,
int  a = 255 
)
static

set the GUI environment's window gradient color.

   Set the gradient color of GUI windows.
   Also affects the outline color of GUI buttons, list boxes, edit boxes, etc.
Parameters
Theamount of red (0-255).
Theamount of green (0-255).
Theamount of blue (0-255).
(optional)The amount of alpha (transparency) (0-255).
Returns
Returns itself.