Improve the status bar display

- Display zoom as a percentage, to be more in line with other
  2D editing applications.
- Increase spacing between labels.
- Use the Unicode multiplication sign.
This commit is contained in:
Hugo Locurcio 2019-11-21 18:10:03 +01:00
parent 224316256c
commit 9bdc0e16b6
No known key found for this signature in database
GPG key ID: 39E8F8BE30B0A49C
3 changed files with 12 additions and 9 deletions

View file

@ -34,4 +34,4 @@ func zoom_camera(dir : int) -> void:
if zoom > zoom_max:
zoom = zoom_max
if name == "Camera2D":
Global.zoom_level_label.text = "Zoom: x%s" % [stepify(1 / zoom.x, 0.01)]
Global.zoom_level_label.text = str(round(100 / Global.camera.zoom.x)) + " %"