Inspector: Add bit/value info to layer tooltip

Fixes #20213.
This commit is contained in:
Rémi Verschelde 2018-07-17 14:33:22 +02:00
parent adec9c3168
commit 634ce7917e
1 changed files with 3 additions and 1 deletions

View File

@ -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);
}