SkillBarSkillTreeElement

Contains the logic for the skillbar visible inside the skill tree UI.

Implementation

public class SkillBarSkillTreeElement : MonoBehaviour

Inheritance

MonoBehaviour --> SkillBarSkillTreeElement

Fields

Name

Description

Contains a reference to the skills database

Key code to execute the skill assigned to this element

Selection for which skill types are allowed to be assigned

Icon of the skill

Icon when no skill is assigned

Sprite for when the skillbar configuration mode is on

Sprite for when the skillbar configuration mode is off

Text component for the key code in the UI

Boolean value to determine whether or not to show the key code

Boolean value to determine whether to allow replacement on the skill bar

Boolean value to determine whether to allow the quick removal feature on the skill bar

The skill that is in configuration mode

Event that is called when hovering over this component

Event that is called when stopping hovering over this component

The skill assigned to this element

The Skills component of the skill tree opener

Boolean value to determine whether or not the skill bar is in configuration mode

The SkillTreeUIManager component of the skill tree

The index of this element in the skill bar

Methods

Name

Description

Initializes the events, executer and UI

Checks for input to bind a skill to this element

Sets up the event callbacks

Binds a skill to this element

Unbinds a skill from this element

Enters the configuration mode for this element

Leaves the configuration mode for this element

Removes a skill from this element

Gets the skill of this element

Updates the UI of this element

Method when hovering over this element

Method when stop hovering over this element

Called when starting to drag a skill

Called when letting the dragged skill go

Called when dragging the skill around

Last updated