Skip to content

Commit

Permalink
Merge pull request #50222 from Calinou/editor-information-use-multipl…
Browse files Browse the repository at this point in the history
…y-sign

Use the Unicode multiplication symbol for the viewport size display
  • Loading branch information
akien-mga authored Jul 7, 2021
2 parents e4c940e + c72efd2 commit 82d4a89
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions editor/plugins/node_3d_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2511,15 +2511,15 @@ void Node3DEditorViewport::_notification(int p_what) {
}

if (show_info) {
const String viewport_size = vformat(String::utf8("%d × %d"), viewport->get_size().x, viewport->get_size().y);
String text;
text += vformat(TTR("X: %s\n"), rtos(current_camera->get_position().x).pad_decimals(1));
text += vformat(TTR("Y: %s\n"), rtos(current_camera->get_position().y).pad_decimals(1));
text += vformat(TTR("Z: %s\n"), rtos(current_camera->get_position().z).pad_decimals(1));
text += "\n";
text += vformat(
TTR("Size: %dx%d (%.1fMP)\n"),
viewport->get_size().x,
viewport->get_size().y,
TTR("Size: %s (%.1fMP)\n"),
viewport_size,
viewport->get_size().x * viewport->get_size().y * 0.000001);

text += "\n";
Expand Down

0 comments on commit 82d4a89

Please sign in to comment.