Skip to content

Commit

Permalink
Merge pull request #20217 from akien-mga/layer-tooltip
Browse files Browse the repository at this point in the history
Inspector: Add bit/value info to layer tooltip
  • Loading branch information
mhilbrunner authored Jul 17, 2018
2 parents 707175e + 634ce79 commit e57e53d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion editor/editor_properties.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit e57e53d

Please sign in to comment.