DefaultSkillNodeSlot
Default skill node slot for displaying skills in the SkillTreeWindow.
Properties
Name | Description | Type |
---|---|---|
skill | The skill node that this slot should display. | SkillNode |
graph | Skill graph reference. | SkillGraph |
onClick | A callback for when the skill slot is clicked. | UnityEvent |
onHover | A callback for when the pointer is over the skill slot. | UnityEvent |
onExit | A callback when the pointer has exited the skill slot. | UnityEvent |
Methods
SetSkill
Sets and displays the skill.
Parameters
Name | Description | Type |
---|---|---|
skill | The skill node. | SkillNode |
graph | The skill graph reference. Default: null. | SkillGraph |
Refresh
Reloads this skill slot. This will refresh the sprites, size, and text.
RefreshIcon
Refreshes the icon. The icon will be set to a sprite depending on the skill state.
RefreshUpgradeText
Refreshes the upgrade text.
SetBorderSprite
Sets the image border and mask sprites.
Parameters
Name | Description | Type |
---|---|---|
shape | The skill shape. | SkillNode.Shape |
UpgradeSkill
Upgrades this skill if possible.
DowngradeSkill
Downgrades with skill if possible.
DepleteSkill
Depletes the skill if possible.
Parameters
Name | Description | Type |
---|---|---|
withoutReload | If the skill tree window should not be reloaded. | bool |
forceDeplete | If the 'Allow Downgrade' value in Skill Tree's settings should be ignored. | bool |
ShowDetails
Displays skill details.
HideDetails
Hides skill details.
OpenMenu
Opens the skill menu.
CloseMenu
Closes the skill menu.
InvokeOnClick
Invokes on click events.
InvokeOnHover
Invokes on hover events.
InvokeOnExit
Invokes on exit events.
Last updated