Mad Level Manager
|
Public Types | |
enum | SetupMethod { Generate, Manual } |
enum | HorizontalAlign { Left, Center, Right } |
enum | VerticalAlign { Top, Middle, Bottom } |
enum | PagingMethod { HorizontalSimple, VerticalSimple, HorizontalZoom, VerticalZoom } |
![]() | |
enum | TwoStepActivationType { Disabled, OnlyOnMobiles, Always } |
enum | LoadLevel { Immediately, WithDelay, SendMessage, DoNotLoad } |
enum | OnMobileBack { LoadPreviousLevel, LoadSpecifiedLevel } |
enum | LookLevelType { FirstLevel, LastUnlocked, LastCompleted } |
enum | LevelsEnumerationType { Numbers, Letters, LettersLower, Roman } |
Public Member Functions | |
override MadLevelIcon | GetIcon (string levelName) |
Gets the icon representation for given level name. More... | |
override MadLevelIcon | FindClosestIcon (Vector3 position) |
Finds the closest level icon to given position or More... | |
override void | LookAtIcon (MadLevelIcon icon, bool animate=false) |
Looks at given icon; More... | |
void | LookAtIconAnimate (MadLevelIcon icon) |
override MadLevelIcon | GetCurrentIcon () |
For the free layout works exactly the same as GetActiveIcon(). For the grid layout if there is only one icon per page, it will return it. With more icons, it will work as GetActiveIcon() method. More... | |
override void | Activate (MadLevelIcon icon) |
int | GetCurrentPageNumber () |
![]() | |
delegate void | IconActivationEvent (MadLevelIcon icon, string levelName) |
bool | CurrentConfigurationValid () |
MadLevelIcon | GetFirstIcon () |
Gets the icon representation for the first level (in order). More... | |
MadLevelIcon | GetLastIcon () |
Gets the icon representation for the last level (in order). More... | |
MadLevelIcon | GetLastCompletedIcon () |
Gets the last completed level icon in current group or null if cannot be found. More... | |
MadLevelIcon | GetLastUnlockedIcon () |
Gets last unlocked icon or null if cannot be found. More... | |
MadLevelIcon | GetActiveIcon () |
Gets the currently active icon or More... | |
MadLevelIcon | GetNextIcon (MadLevelIcon icon) |
MadLevelIcon | GetPreviousIcon (MadLevelIcon icon) |
MadLevelIcon[] | GetAllIcons () |
Gets all active icons available in the layout. More... | |
bool | LookAtLevel (string levelName) |
Looks at level. More... | |
bool | LookAtLastPlayedLevel () |
Looks at last played level icon. More... | |
bool | CanActivate (MadLevelIcon icon) |
![]() | |
T | CreateChild< T > (string name) |
T | CreateChild< T > (string name, T template) |
MadNode | CreateChild (string name, GameObject template) |
T | FindParent< T > () |
Public Attributes | |
SetupMethod | setupMethod = SetupMethod.Generate |
MadSprite | rightSlideSprite |
MadSprite | leftSlideSprite |
Vector2 | iconScale = Vector2.one |
Vector2 | iconOffset |
Vector2 | rightSlideScale = Vector2.one |
Vector2 | rightSlideOffset |
Vector2 | leftSlideScale = Vector2.one |
Vector2 | leftSlideOffset |
int | gridWidth = 3 |
int | gridHeight = 3 |
bool | limitLevelsPerPage |
int | levelsPerPage |
int | pixelsWidth = 720 |
int | pixelsHeight = 578 |
HorizontalAlign | horizontalAlign = HorizontalAlign.Center |
VerticalAlign | verticalAlign = VerticalAlign.Top |
bool | pagesOffsetFromResolution = true |
float | pagesOffsetManual = 1000 |
PagingMethod | pagingMethod = PagingMethod.HorizontalSimple |
bool | pagingInvert = false |
float | pagesOffsetPercent = 2f |
float | pagesZoomScale = 0.5f |
bool | dirty |
bool | deepClean |
bool | hideManagedObjects = true |
![]() | |
MadLevelIcon | iconTemplate |
bool | lookAtLastLevel = true |
LookLevelType | lookAtLevel = LookLevelType.FirstLevel |
LevelsEnumerationType | enumerationType = LevelsEnumerationType.Numbers |
int | enumerationOffset = 0 |
TwoStepActivationType | twoStepActivationType = TwoStepActivationType.Disabled |
LoadLevel | loadLevel = LoadLevel.Immediately |
float | loadLevelLoadLevelDelay = 1.5f |
GameObject | loadLevelMessageReceiver |
string | loadLevelMessageName |
bool | loadLevelMessageIncludeChildren |
bool | onIconActivatePlayAudio |
AudioClip | onIconActivatePlayAudioClip |
float | onIconActivatePlayAudioVolume = 1 |
bool | onIconDeactivatePlayAudio |
AudioClip | onIconDeactivatePlayAudioClip |
float | onIconDeactivatePlayAudioVolume = 1 |
bool | onIconActivateMessage |
GameObject | onIconActivateMessageReceiver |
string | onIconActivateMessageMethodName = "OnIconActivate" |
bool | onIconActivateMessageIncludeChildren |
bool | onIconDeactivateMessage |
GameObject | onIconDeactivateMessageReceiver |
string | onIconDeactivateMessageMethodName = "OnIconDeactivate" |
bool | onIconDeactivateMessageIncludeChildren |
bool | handleMobileBackButton = true |
OnMobileBack | handleMobileBackButtonAction = OnMobileBack.LoadPreviousLevel |
string | handleMobileBackButtonLevelName |
MadLevelConfiguration | configuration |
int | configurationGroup = 0 |
bool | useCurrentlyActiveConfiguration |
bool | fullyInitialized |
![]() | |
bool | managed |
Protected Member Functions | |
override void | OnEnable () |
override void | Start () |
override void | Update () |
![]() | |
void | DeactivateActiveIcon () |
MadLevelIcon | CreateIcon (Transform parent, string name, MadLevelIcon template) |
string | GetEnumerationValue (int index) |
Additional Inherited Members | |
![]() | |
MadLevelConfiguration | currentConfiguration [get] |
![]() | |
static bool | Instantiating [get] |
![]() | |
IconActivationEvent | onIconActivate |
IconActivationEvent | onIconDeactivate |
|
virtual |
Finds the closest level icon to given position or
null
if no icons found.
position | The position. |
Implements MadLevelManager.MadLevelAbstractLayout.
|
virtual |
For the free layout works exactly the same as GetActiveIcon(). For the grid layout if there is only one icon per page, it will return it. With more icons, it will work as GetActiveIcon() method.
Reimplemented from MadLevelManager.MadLevelAbstractLayout.
|
virtual |
Gets the icon representation for given level name.
null
if not found.levelName | Level name. |
Implements MadLevelManager.MadLevelAbstractLayout.
|
virtual |
Looks at given icon;
icon | Icon. |
animate | Set to true to animate switching. Using an animation from the Draggable object. |
Implements MadLevelManager.MadLevelAbstractLayout.