mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-24 04:46:48 +01:00
Fix compile.
This commit is contained in:
parent
b15f19911e
commit
d39fb5c4ad
@ -373,13 +373,13 @@ bool SceneTreeEditor::_add_nodes(Node *p_node, TreeItem *p_parent, bool p_scroll
|
|||||||
// Can't set tooltip after adding button, need to do it before.
|
// Can't set tooltip after adding button, need to do it before.
|
||||||
if (script->is_tool()) {
|
if (script->is_tool()) {
|
||||||
additional_notes += "\n" + TTR("This script is currently running in the editor.");
|
additional_notes += "\n" + TTR("This script is currently running in the editor.");
|
||||||
button_color = get_color("accent_color", "Editor");
|
button_color = get_theme_color("accent_color", "Editor");
|
||||||
}
|
}
|
||||||
if (EditorNode::get_singleton()->get_object_custom_type_base(p_node) == script) {
|
if (EditorNode::get_singleton()->get_object_custom_type_base(p_node) == script) {
|
||||||
additional_notes += "\n" + TTR("This script is a custom type.");
|
additional_notes += "\n" + TTR("This script is a custom type.");
|
||||||
button_color.a = 0.5;
|
button_color.a = 0.5;
|
||||||
}
|
}
|
||||||
item->add_button(0, get_icon("Script", "EditorIcons"), BUTTON_SCRIPT, false, TTR("Open Script:") + " " + script->get_path() + additional_notes);
|
item->add_button(0, get_theme_icon("Script", "EditorIcons"), BUTTON_SCRIPT, false, TTR("Open Script:") + " " + script->get_path() + additional_notes);
|
||||||
item->set_button_color(0, item->get_button_count(0) - 1, button_color);
|
item->set_button_color(0, item->get_button_count(0) - 1, button_color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user