BomberUnits
...a Unity learning project
LvlSelPanelController Class Reference
+ Inheritance diagram for LvlSelPanelController:
+ Collaboration diagram for LvlSelPanelController:

Public Member Functions

void UpdatePanel ()
 
void OnMouseEnter ()
 
void OnMouseExit ()
 
void OnBeginDrag ()
 
void OnEndDrag ()
 

Public Attributes

GridLayoutGroup gridLayoutChild
 Set the grid layout used inside here.
 
GameObject lvlThumbnailTemplate
 Set the template for grid thumbnails here.
 
float vertSpacingPercent = 10f
 
int fixedNumRows = 2
 < Spacing above, below and between grid in percent.
 
Texture2D cursorHoverTexture
 < Row count needs to be set the same as in the grid layout! More...
 
Texture2D cursorDragTexture
 The cursor symbol when draggin the area.
 

Private Member Functions

void Awake ()
 
void Start ()
 
void OnDestroy ()
 
void LateStart ()
 
GameObject CreateAndSetupThumbnail (Level l)
 
void Outline (Level selectedLvl)
 
void UpdateInteractive ()
 Updates whether the button can be clicked depending on whether this client is allowed to.
 
void ResizeThumbnails ()
 Calculates the size of thumbnails and padding.
 
void ResizeGridLay ()
 

Private Attributes

Dictionary< Level, GameObject > levelThumbnails
 Keeps the created thumbnail objects.
 

Detailed Description

Definition at line 12 of file LvlSelPanelController.cs.

Member Data Documentation

◆ cursorHoverTexture

Texture2D cursorHoverTexture

< Row count needs to be set the same as in the grid layout!

The cursor symbol when hovering over the area.

Definition at line 20 of file LvlSelPanelController.cs.


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