Merge pull request #20217 from akien-mga/layer-tooltip

Inspector: Add bit/value info to layer tooltip
This commit is contained in:
Max Hilbrunner 2018-07-17 16:12:26 +02:00 committed by GitHub
commit e57e53debb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -617,9 +617,11 @@ void EditorPropertyLayers::setup(LayerType p_layer_type) {
} }
if (name == "") { 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); names.push_back(name);
} }