This component maintains a list of map icons. More...
Public Member Functions | |
bool | IsValidIconName (string iconName) |
Checks whether a specified icon name is valid for this object. More... | |
void | UseIcon (string iconName) |
Uses an icon specified by an icon name. More... | |
void | UseIcon (KGFMapIcon icon) |
Uses an icon. More... | |
void | OnConversationEnd (Transform actor) |
When a conversation ends, it's possible that a KGFMapIcon has changed its visibility. More... | |
Public Attributes | |
KGFMapIcon | startingIcon = null |
The starting icon. More... | |
This component maintains a list of map icons.
All map icons should be active when the GameObject awakes.
bool PixelCrushers.DialogueSystem.KGFMapSystem.KGFMapIcons.IsValidIconName | ( | string | iconName | ) |
Checks whether a specified icon name is valid for this object.
true
if the icon name is valid; otherwise, false
.iconName | Icon name. |
void PixelCrushers.DialogueSystem.KGFMapSystem.KGFMapIcons.OnConversationEnd | ( | Transform | actor | ) |
When a conversation ends, it's possible that a KGFMapIcon has changed its visibility.
If the KGFMapSystem was disabled during the conversation, it will not have refreshed its visibility. This method refreshes the visiblity after a two-frame delay to give SetEnabledOnDialogueEvent time to re-enable the map.
actor | Actor. |
void PixelCrushers.DialogueSystem.KGFMapSystem.KGFMapIcons.UseIcon | ( | KGFMapIcon | icon | ) |
Uses an icon.
This icon becomes visible, and all others become invisible.
icon | Icon. |
void PixelCrushers.DialogueSystem.KGFMapSystem.KGFMapIcons.UseIcon | ( | string | iconName | ) |
Uses an icon specified by an icon name.
This icon becomes visible, and all other icons become invisible.
iconName | Icon name. |
KGFMapIcon PixelCrushers.DialogueSystem.KGFMapSystem.KGFMapIcons.startingIcon = null |
The starting icon.
When the GameObject starts, this icon will be visible, and the others will be invisible.