SkillNodeVisual ​
Inherits: Control
Visual representation of a skill node - uses scene-based UI
Properties ​
SkillNode : set | skill_node | set_skill_node |
bool | is_selected | false : set = set_selected |
float | zoom_level | 1.0 : set = set_zoom_level |
bool | show_debug_info | true |
Variables ​
bool | is_dragging | false |
Vector2 | drag_start_pos |
Methods ​
void | set_skill_node( node: SkillNode ) |
void | set_selected( selected: bool ) |
void | set_zoom_level( zoom: float ) |
void | play_select_animation() |
void | play_hover_animation() |
void | play_unhover_animation() |
SkillNode | get_node_data() |
Vector2 | get_center_position() |
Dictionary | get_connection_points() |
void | set_highlight( enabled: bool ) |
void | set_error_state( has_error: bool ) |
void | update_rank_display( current_rank: int = 0 ) |
Signals ​
node_clicked( node: SkillNodeVisual, event: InputEvent ) ​
node_right_clicked( node: SkillNodeVisual, global_position: Vector2 ) ​
node_drag_started( node: SkillNodeVisual ) ​
node_dragged( node: SkillNodeVisual, relative_motion: Vector2 ) ​
node_drag_ended( node: SkillNodeVisual ) ​
Constants ​
Vector2NODE_SIZE =Vector2(50, 50)floatBORDER_WIDTH =2.0floatCORNER_RADIUS =8.0Vector2ICON_SIZE =Vector2(45, 45)ColorNODE_DEFAULT_COLOR =Color(0.4, 0.4, 0.6, 1.0)ColorNODE_SELECTED_COLOR =Color(0.6, 0.8, 1.0, 1.0)ColorNODE_CHOICE_COLOR =Color(0.6, 0.4, 0.8, 1.0)ColorNODE_RANKED_COLOR =Color(0.4, 0.6, 0.4, 1.0)ColorBORDER_DEFAULT_COLOR =Color(0.2, 0.2, 0.3, 1.0)ColorBORDER_SELECTED_COLOR =Color(1.0, 1.0, 0.5, 1.0)ColorTEXT_COLOR =Color.WHITEColorID_TEXT_COLOR =Color(0.7, 0.7, 0.7, 1.0)
Property descriptions ​
SkillNode : set skill_node = set_skill_node ​
No description yet.
bool is_selected = false : set = set_selected ​
No description yet.
float zoom_level = 1.0 : set = set_zoom_level ​
No description yet.
bool show_debug_info = true ​
No description yet.
Variable descriptions ​
bool is_dragging = false ​
No description yet.
Vector2 drag_start_pos ​
No description yet.
Method descriptions ​
void set_skill_node( node: SkillNode ) ​
No description yet.
void set_selected( selected: bool ) ​
No description yet.
void set_zoom_level( zoom: float ) ​
No description yet.
void play_select_animation() ​
No description yet.
void play_hover_animation() ​
No description yet.
void play_unhover_animation() ​
No description yet.
SkillNode get_node_data() ​
No description yet.
Vector2 get_center_position() ​
No description yet.
Dictionary get_connection_points() ​
No description yet.
void set_highlight( enabled: bool ) ​
No description yet.
void set_error_state( has_error: bool ) ​
No description yet.
void update_rank_display( current_rank: int = 0 ) ​
No description yet.