mirror of
https://github.com/godotengine/godot.git
synced 2025-11-02 22:51:08 +00:00
New API for visibility in both CanvasItem and Spatial
visible (property) - access set_visible(bool) is_visible() is_visible_in_tree() - true when visible and parents visible show() hide() - for convenience
This commit is contained in:
parent
a2903fc51d
commit
04c749a1f0
72 changed files with 252 additions and 292 deletions
|
|
@ -484,7 +484,7 @@ void ScriptTextEditor::_code_complete_scripts(void* p_ud,const String& p_code, L
|
|||
|
||||
void ScriptTextEditor::_code_complete_script(const String& p_code, List<String>* r_options) {
|
||||
|
||||
if (color_panel->is_visible()) return;
|
||||
if (color_panel->is_visible_in_tree()) return;
|
||||
Node *base = get_tree()->get_edited_scene_root();
|
||||
if (base) {
|
||||
base = _find_node_for_script(base,base,script);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue