Skip to content

Commit

Permalink
Inspector: Add bit/value info to layer tooltip
Browse files Browse the repository at this point in the history
Fixes #20213.
  • Loading branch information
akien-mga committed Jul 17, 2018
1 parent adec9c3 commit 634ce79
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 634ce79

Please sign in to comment.