Enhance scene tabs
- show scene thumbnail on hover - resize if has many tabs - show full scene file name with current edited scene - can be customized EditorSettings > Interface > Scene Tab - close scene with mouse middle button
This commit is contained in:
parent
95c248e24f
commit
fc2fe7ebd1
7 changed files with 216 additions and 43 deletions
|
|
@ -675,7 +675,12 @@ String EditorData::get_scene_title(int p_idx) const {
|
|||
return "[empty]";
|
||||
if (edited_scene[p_idx].root->get_filename() == "")
|
||||
return "[unsaved]";
|
||||
return edited_scene[p_idx].root->get_filename().get_file();
|
||||
bool show_ext = EDITOR_DEF("interface/scene_tabs/show_extension", false);
|
||||
String name = edited_scene[p_idx].root->get_filename().get_file();
|
||||
if (!show_ext) {
|
||||
name = name.get_basename();
|
||||
}
|
||||
return name;
|
||||
}
|
||||
|
||||
String EditorData::get_scene_path(int p_idx) const {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue