Add missing icons in animation tree editor
This commit is contained in:
parent
1679baf833
commit
6d13e11373
1 changed files with 3 additions and 3 deletions
|
@ -476,7 +476,7 @@ void AnimationTreeEditor::_draw_node(const StringName &p_node) {
|
||||||
Color font_color = get_color("font_color", "PopupMenu");
|
Color font_color = get_color("font_color", "PopupMenu");
|
||||||
Color font_color_title = get_color("font_color_hover", "PopupMenu");
|
Color font_color_title = get_color("font_color_hover", "PopupMenu");
|
||||||
font_color_title.a *= 0.8;
|
font_color_title.a *= 0.8;
|
||||||
Ref<Texture> slot_icon = get_icon("NodeRealSlot", "EditorIcons");
|
Ref<Texture> slot_icon = get_icon("VisualShaderPort", "EditorIcons");
|
||||||
|
|
||||||
Size2 size = get_node_size(p_node);
|
Size2 size = get_node_size(p_node);
|
||||||
Point2 pos = anim_tree->node_get_pos(p_node);
|
Point2 pos = anim_tree->node_get_pos(p_node);
|
||||||
|
@ -599,7 +599,7 @@ void AnimationTreeEditor::_draw_node(const StringName &p_node) {
|
||||||
|
|
||||||
if (editable) {
|
if (editable) {
|
||||||
|
|
||||||
Ref<Texture> arrow = get_icon("arrow", "Tree");
|
Ref<Texture> arrow = get_icon("GuiDropdown", "EditorIcons");
|
||||||
Point2 arrow_ofs(w - arrow->get_width(), Math::floor((h - arrow->get_height()) / 2));
|
Point2 arrow_ofs(w - arrow->get_width(), Math::floor((h - arrow->get_height()) / 2));
|
||||||
arrow->draw(ci, ofs + arrow_ofs);
|
arrow->draw(ci, ofs + arrow_ofs);
|
||||||
}
|
}
|
||||||
|
@ -671,7 +671,7 @@ Point2 AnimationTreeEditor::_get_slot_pos(const StringName &p_node_id, bool p_in
|
||||||
|
|
||||||
Ref<StyleBox> style = get_stylebox("panel", "PopupMenu");
|
Ref<StyleBox> style = get_stylebox("panel", "PopupMenu");
|
||||||
Ref<Font> font = get_font("font", "PopupMenu");
|
Ref<Font> font = get_font("font", "PopupMenu");
|
||||||
Ref<Texture> slot_icon = get_icon("NodeRealSlot", "EditorIcons");
|
Ref<Texture> slot_icon = get_icon("VisualShaderPort", "EditorIcons");
|
||||||
|
|
||||||
Size2 size = get_node_size(p_node_id);
|
Size2 size = get_node_size(p_node_id);
|
||||||
Point2 pos = anim_tree->node_get_pos(p_node_id);
|
Point2 pos = anim_tree->node_get_pos(p_node_id);
|
||||||
|
|
Loading…
Reference in a new issue