feat: highlight current layout selection

This commit is contained in:
Anna 2021-03-13 11:41:06 -05:00
parent 4833d70164
commit 2aaf87f7b4
Signed by: anna
GPG Key ID: 0B391D8F06FCD9E0

View File

@ -213,7 +213,7 @@ namespace HUD_Manager {
foreach (var node in nodes) {
foreach (var (child, depth) in node.TraverseWithDepth()) {
var indent = new string(' ', (int) depth * 4);
if (!ImGui.Selectable($"{indent}{child.Value.Name}##edit-{child.Id}")) {
if (!ImGui.Selectable($"{indent}{child.Value.Name}##edit-{child.Id}", child.Id == this._selectedEditLayout)) {
continue;
}