![]() |
Procedural Hexagon Grid Framework
|
GUI window component for the Grid Map. More...
Public Member Functions | |
| void | Start () |
| Initializes GUI window component and sets all the values correctly. | |
| void | DrawCellOutline (Texture2D texture, CellObject cObject, Color32 color) |
| Colors the cell outline with desired color. | |
| void | DrawCellInline (Texture2D texture, CellObject cObject, Color32 color) |
| Fills the inside of the cell with desired color. | |
| override void | DrawWindowGUI (int windowID) |
| Draws window elements and handles logic. | |
Public Attributes | |
| string | _windowName = "Map - Height" |
| int | _windowID = 1 |
| int | _minWidth = 210 |
| int | _minHeight = 210 |
| Vector2 | _startingPosition = new Vector2(Screen.width - 220, Screen.height - 220) |
| int | _screenPadding = 10 |
| bool | _showFPS = false |
| bool | _allowMinimizing = true |
| bool | _minimizeUp = false |
| bool | _allowDrag = true |
| bool | _dragOnlyHeader = false |
| ResizeCorner | _resizeCorner = ResizeCorner.upperLeft |
| bool | _allowResizing = true |
| float | _resizingSpeed = 30f |
| Color32 | _buttonTextHoverColor = new Color32(0, 200, 0, 255) |
| Texture2D | map |
| Color32 | outlineColor = new Color32(50, 50, 50, 255) |
| Texture2D | heightMap |
| Color32 | minHeightColor = new Color(0, 0, 0, 255) |
| Color32 | maxHeightColor = new Color(255, 255, 255, 255) |
| Texture2D | slopeMap |
| Color32 | minSlopeColor = new Color(200, 200, 200, 255) |
| Color32 | maxSlopeColor = new Color(150, 0, 150, 255) |
| Texture2D | moistureMap |
| Color32 | minMoistureColor = new Color(200, 200, 200, 255) |
| Color32 | maxMoistureColor = new Color(0, 0, 150, 255) |
| Texture2D | humidityMap |
| Color32 | minHumidityColor = new Color(200, 200, 200, 255) |
| Color32 | maxHumidityColor = new Color(0, 25, 200, 255) |
| Texture2D | temperatureMap |
| Color32 | minTemperatureColor = new Color(200, 200, 200, 255) |
| Color32 | maxTemperatureColor = new Color(150, 0, 0, 255) |
Public Attributes inherited from PHG.WindowGui | |
| bool | closedWindow = false |
Additional Inherited Members | |
Protected Member Functions inherited from PHG.WindowGui | |
| 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 inherited from PHG.WindowGui | |
| 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 |
GUI window component for the Grid Map.