Explorar o código

Show the texture name after the frame number in the SpriteFrames editor

Nounours Heureux %!s(int64=9) %!d(string=hai) anos
pai
achega
07d8558eee
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      tools/editor/plugins/sprite_frames_editor_plugin.cpp

+ 1 - 1
tools/editor/plugins/sprite_frames_editor_plugin.cpp

@@ -346,7 +346,7 @@ void SpriteFramesEditor::_update_library() {
 			ti->set_text(0,"Frame "+itos(i)+" (empty)");
 
 		} else {
-			ti->set_text(0,"Frame "+itos(i));
+			ti->set_text(0,"Frame "+itos(i)+" ("+frames->get_frame(i)->get_name()+")");
 			ti->set_icon(0,frames->get_frame(i));
 		}
 		if (frames->get_frame(i).is_valid())