This class controls when the user wants to load more places. It also controls the helping text that show the user intructions.
More...
|
void | OnUserScroll (Vector2 value) |
| it checks if the user has passed the maximum limit, if that is the case it change the text to tell the user that if he release, it will load new places. If the user has passed the maximum limit and then release it calls both the askForNewPlaces method of firebaseHandler class and the changeSceneWithAnimation method of ChangeScene class to reload the scene More...
|
|
|
GameObject | loadMorePlacesText_ |
| GameObject that contains the text that will show the instructions for load more places to the user. More...
|
|
GameObject | resortPlacesText_ |
| GameObject that contains the text that will show the instructions for resort places to the user. More...
|
|
string | continueSlidingForLoadText_ = "Continue sliding up to confirm that you want to load more places!" |
| string that contains the default text for saying to user that he has to continue sliding up to confirm the action of loading more places. More...
|
|
string | stopSlidingForLoadText_ = "Release to load more places!" |
| string that contains the default text for saying to user that he has to release to load more places. More...
|
|
string | continueSlidingForResortText_ = "Continue sliding down to confirm that you want to resort all places!" |
| string that contains the default text for saying to user that they have to continue sliding down to confirm the action of sorting all places. More...
|
|
string | stopSlidingForResortText_ = "Release to sort again all places!" |
| string that contains the default text for saying to user that they have to release to sort again all places. More...
|
|
double | maxLimit_ = 1.03 |
| double that contains the point where if the user slide down more, will activate the loading more places process. More...
|
|
double | minLimit_ = 1.00001 |
| double that contains the point where the user, after sliding down enough, will fire the loading more places process. More...
|
|
double | maxNegativeLimit_ = -0.045 |
| double that contains the point where if the user slide up more, will activate the loading more places process. More...
|
|
double | minNegativeLimit_ = -0.012 |
| double that contains the point where the user, after sliding up enough, will fire the loading more places process. More...
|
|
bool | alreadyAskedForResortPlaces = false |
| true if the user has passed the point where the resorting places process start. More...
|
|
bool | alreadyAskedForNewPlacesDown_ = false |
| true if the user has passed the point where the loading more places process start. More...
|
|
This class controls when the user wants to load more places. It also controls the helping text that show the user intructions.
◆ OnUserScroll()
void scrollRectController.OnUserScroll |
( |
Vector2 |
value | ) |
|
it checks if the user has passed the maximum limit, if that is the case it change the text to tell the user that if he release, it will load new places. If the user has passed the maximum limit and then release it calls both the askForNewPlaces method of firebaseHandler class and the changeSceneWithAnimation method of ChangeScene class to reload the scene
- Parameters
-
Vector2 | with both directions of the scrolling, both vertical and horizontal. |
◆ alreadyAskedForNewPlacesDown_
bool scrollRectController.alreadyAskedForNewPlacesDown_ = false |
|
private |
true if the user has passed the point where the loading more places process start.
◆ alreadyAskedForResortPlaces
bool scrollRectController.alreadyAskedForResortPlaces = false |
|
private |
true if the user has passed the point where the resorting places process start.
◆ continueSlidingForLoadText_
string scrollRectController.continueSlidingForLoadText_ = "Continue sliding up to confirm that you want to load more places!" |
|
private |
string that contains the default text for saying to user that he has to continue sliding up to confirm the action of loading more places.
◆ continueSlidingForResortText_
string scrollRectController.continueSlidingForResortText_ = "Continue sliding down to confirm that you want to resort all places!" |
|
private |
string that contains the default text for saying to user that they have to continue sliding down to confirm the action of sorting all places.
◆ loadMorePlacesText_
GameObject scrollRectController.loadMorePlacesText_ |
|
private |
GameObject that contains the text that will show the instructions for load more places to the user.
◆ maxLimit_
double scrollRectController.maxLimit_ = 1.03 |
|
private |
double that contains the point where if the user slide down more, will activate the loading more places process.
◆ maxNegativeLimit_
double scrollRectController.maxNegativeLimit_ = -0.045 |
|
private |
double that contains the point where if the user slide up more, will activate the loading more places process.
◆ minLimit_
double scrollRectController.minLimit_ = 1.00001 |
|
private |
double that contains the point where the user, after sliding down enough, will fire the loading more places process.
◆ minNegativeLimit_
double scrollRectController.minNegativeLimit_ = -0.012 |
|
private |
double that contains the point where the user, after sliding up enough, will fire the loading more places process.
◆ resortPlacesText_
GameObject scrollRectController.resortPlacesText_ |
|
private |
GameObject that contains the text that will show the instructions for resort places to the user.
◆ stopSlidingForLoadText_
string scrollRectController.stopSlidingForLoadText_ = "Release to load more places!" |
|
private |
string that contains the default text for saying to user that he has to release to load more places.
◆ stopSlidingForResortText_
string scrollRectController.stopSlidingForResortText_ = "Release to sort again all places!" |
|
private |
string that contains the default text for saying to user that they have to release to sort again all places.
The documentation for this class was generated from the following file: