소스 검색

Improve tooltips in the editor profiler to mention the script name

Co-authored-by: CrispyPin <[email protected]>
Hugo Locurcio 4 년 전
부모
커밋
0098e9243c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      editor/debugger/editor_profiler.cpp

+ 1 - 1
editor/debugger/editor_profiler.cpp

@@ -356,7 +356,7 @@ void EditorProfiler::_update_frame() {
 			item->set_metadata(1, it.script);
 			item->set_metadata(2, it.line);
 			item->set_text_align(2, TreeItem::ALIGN_RIGHT);
-			item->set_tooltip(0, it.script + ":" + itos(it.line));
+			item->set_tooltip(0, it.name + "\n" + it.script + ":" + itos(it.line));
 
 			float time = dtime == DISPLAY_SELF_TIME ? it.self : it.total;