mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Fix code completion drawing under other gui elements.
Raises the z-index of the Script editor when the completion is shown.
fixes #1257
fixes #6690
(cherry picked from commit 6dfa405eac)
This commit is contained in:
parent
0462bf01a2
commit
9e20b39b3d
1 changed files with 5 additions and 1 deletions
|
|
@ -4103,12 +4103,15 @@ void TextEdit::_confirm_completion() {
|
||||||
|
|
||||||
|
|
||||||
void TextEdit::_cancel_code_hint() {
|
void TextEdit::_cancel_code_hint() {
|
||||||
|
|
||||||
|
VisualServer::get_singleton()->canvas_item_set_z(get_canvas_item(), 0);
|
||||||
completion_hint="";
|
completion_hint="";
|
||||||
update();
|
update();
|
||||||
}
|
}
|
||||||
|
|
||||||
void TextEdit::_cancel_completion() {
|
void TextEdit::_cancel_completion() {
|
||||||
|
|
||||||
|
VisualServer::get_singleton()->canvas_item_set_z(get_canvas_item(), 0);
|
||||||
if (!completion_active)
|
if (!completion_active)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
@ -4288,6 +4291,7 @@ void TextEdit::query_code_comple() {
|
||||||
|
|
||||||
void TextEdit::set_code_hint(const String& p_hint) {
|
void TextEdit::set_code_hint(const String& p_hint) {
|
||||||
|
|
||||||
|
VisualServer::get_singleton()->canvas_item_set_z(get_canvas_item(), 1);
|
||||||
completion_hint=p_hint;
|
completion_hint=p_hint;
|
||||||
completion_hint_offset=-0xFFFF;
|
completion_hint_offset=-0xFFFF;
|
||||||
update();
|
update();
|
||||||
|
|
@ -4295,7 +4299,7 @@ void TextEdit::set_code_hint(const String& p_hint) {
|
||||||
|
|
||||||
void TextEdit::code_complete(const Vector<String> &p_strings) {
|
void TextEdit::code_complete(const Vector<String> &p_strings) {
|
||||||
|
|
||||||
|
VisualServer::get_singleton()->canvas_item_set_z(get_canvas_item(), 1);
|
||||||
completion_strings=p_strings;
|
completion_strings=p_strings;
|
||||||
completion_active=true;
|
completion_active=true;
|
||||||
completion_current="";
|
completion_current="";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue