summaryrefslogtreecommitdiff
path: root/editor/editor_properties.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2018-07-17 14:33:22 +0200
committerRémi Verschelde <rverschelde@gmail.com>2018-07-17 14:33:22 +0200
commit634ce7917e8eb32213870dcb5244efa33672db1b (patch)
tree2f0621681f778969ceab7f14f92444610f2e01fe /editor/editor_properties.cpp
parentadec9c31683c27734e0f241cd431e8b0611953ad (diff)
Inspector: Add bit/value info to layer tooltip
Fixes #20213.
Diffstat (limited to 'editor/editor_properties.cpp')
-rw-r--r--editor/editor_properties.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/editor/editor_properties.cpp b/editor/editor_properties.cpp
index 1f45902008..077b58a40f 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);
}