Merge pull request #20217 from akien-mga/layer-tooltip
Inspector: Add bit/value info to layer tooltip
This commit is contained in:
commit
e57e53debb
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue