Class that controls the panel that shows all the players that allow appeard on the ranking, it also controls the image that will be shown when the user doesnt have internet connection and the image that will be shown when the ranking data is downloading right now. It inherites from adaptableSizePanel abstract class.
More...
|
override void | fillPanel () |
| This method is called to instanciate the panel. It creates a prefab for each player on the ranking that allowed appear on it. It changes the panelFilled_ property to true. More...
|
|
abstract void | fillPanel () |
| This method is called to instanciate the panel and add the prefabs as panels elements. It is an abstract method so, every class that inherit from this class must have its own fillPanel method. More...
|
|
void | adjustPanelSize () |
|
|
virtual void | elementDeleted (GameObject elementDeleted) |
| tries to remove the given gameobject of the items property. If the gameobject isnt on the list, it will raise an index out of range exception. More...
|
|
GameObject | prefab_ |
| GameObject that contains the prefab that represent an element of the panel. More...
|
|
GameObject | noItemsImage_ |
| GameObject that contains the image that will be shown when the panel is empty. More...
|
|
bool | panelFilled_ |
| if its true means that the panel was already filled, false in otherwhise. More...
|
|
List< GameObject > | items_ |
| List of the prefabs that are instanciated. More...
|
|
int | lastCount_ |
| it stores the last quantity of items which the panel has adapted its height. More...
|
|
float | initialHeight_ |
| initial height of the panel. More...
|
|
Class that controls the panel that shows all the players that allow appeard on the ranking, it also controls the image that will be shown when the user doesnt have internet connection and the image that will be shown when the ranking data is downloading right now. It inherites from adaptableSizePanel abstract class.
◆ fillPanel()
override void rankingPanel.fillPanel |
( |
| ) |
|
|
protectedvirtual |
This method is called to instanciate the panel. It creates a prefab for each player on the ranking that allowed appear on it. It changes the panelFilled_ property to true.
Implements adaptableSizePanel.
◆ Update()
void rankingPanel.Update |
( |
| ) |
|
|
private |
This method is called once per frame, it checks if the panel has al ready filled and if the userDataIsReady method of firebaseHandler class returns true it calls the fillPanel method. If the lastCount_ property isnt equal to the current items count it calls the adjustPanelSize method. It also shows the noPlacesImage_ gameObject if the items list is empty, and it shows the downloadingDataImage_ if the isDownloadingRankingDataNow method of firebaseHandler class returns true, it will hide it in other case.
◆ downloadingDataImage_
GameObject rankingPanel.downloadingDataImage_ |
|
private |
GameObject with the image that will be shown when the downloading ranking data process is working.
The documentation for this class was generated from the following file: