Procedural Hexagon Grid Framework
 All Classes Namespaces Functions
PHG.WindowGui Class Referenceabstract

Class for constructing GUI windows. More...

Inheritance diagram for PHG.WindowGui:
PHG.GridGui PHG.MapGui

Public Member Functions

abstract void DrawWindowGUI (int windowID)
 Abstract method for derived class to draw actual window elements.
 

Public Attributes

bool closedWindow = false
 

Protected Member Functions

void UpdateWindowDimensions ()
 Updates window dimensions for GUI element scaling.
 
void SetupTextures ()
 Setups textures for general GUI use.
 
void SetupStyles ()
 Setup styles for GUI elements.
 
IEnumerator FPS ()
 
void UpdateFPS ()
 Updates the FPS.
 
void DrawBasicGUI ()
 
void updateAreas ()
 Updates position of the buttons.
 
void ResizeWindow ()
 Changes window size when resizing.
 

Protected Attributes

Rect window
 
int windowID
 
int minWidth
 
int minHeight
 
Vector2 startingPosition
 
int screenPadding
 
string windowName
 
bool allowMinimizing
 
bool minimizeUp
 
bool minimizeWindow = false
 
Rect minimizeArea
 
bool allowClose
 
Rect closeArea
 
bool allowDrag
 
bool dragOnlyHeader
 
bool allowResizing
 
ResizeCorner resizeCorner = ResizeCorner.lowerRight
 
bool resizingWindow = false
 
Vector2 mousePosition
 
float resizingSpeed
 
Rect resizeArea
 
float winWidth2
 
float winWidth3
 
float winWidth4
 
float winWidth8
 
float winHeight2
 
float winHeight4
 
float lastWindowHeight
 
Texture2D blackTexture
 
Texture2D resize_icon
 
Texture close_icon
 
Texture2D maximize_icon
 
GUIStyle styleLabel
 
GUIStyle styleFPS
 
GUIStyle styleButton
 
GUIStyle styleBox
 
Color32 buttonTextHoverColor
 
bool showFPS
 

Detailed Description

Class for constructing GUI windows.

Member Function Documentation

void PHG.WindowGui.DrawBasicGUI ( )
protected

Draws window basic elements (name, maximizing button, fps, and resizing button) Also handles logic for these elements


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