From 634ce7917e8eb32213870dcb5244efa33672db1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Tue, 17 Jul 2018 14:33:22 +0200 Subject: [PATCH] Inspector: Add bit/value info to layer tooltip Fixes #20213. --- editor/editor_properties.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/editor/editor_properties.cpp b/editor/editor_properties.cpp index 1f459020082..077b58a40fc 100644 --- a/editor/editor_properties.cpp +++ b/editor/editor_properties.cpp @@ -617,9 +617,11 @@ void EditorPropertyLayers::setup(LayerType p_layer_type) { } if (name == "") { - name = "Layer " + itos(i + 1); + name = TTR("Layer") + " " + itos(i + 1); } + name += "\n" + vformat(TTR("Bit %d, value %d"), i, 1 << i); + names.push_back(name); }