Преглед на файлове

Use multiplication symbol in Texture size label

FireForge преди 3 години
родител
ревизия
d879d6016a
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      editor/plugins/texture_editor_plugin.cpp

+ 1 - 1
editor/plugins/texture_editor_plugin.cpp

@@ -70,7 +70,7 @@ void TexturePreview::_update_metadata_label_text() {
 		format = texture->get_class();
 	}
 
-	metadata_label->set_text(itos(texture->get_width()) + "x" + itos(texture->get_height()) + " " + format);
+	metadata_label->set_text(vformat(String::utf8("%s×%s %s"), itos(texture->get_width()), itos(texture->get_height()), format));
 }
 
 TexturePreview::TexturePreview(Ref<Texture2D> p_texture, bool p_show_metadata) {