Commit 9e7e4a4f authored by Christian Winter's avatar Christian Winter

changed title for edit button of prefabs when in edit mode

parent 0dc598f3
Pipeline #4801398 passed with stage
in 1 minute and 4 seconds
......@@ -580,14 +580,18 @@
tr.appendChild(td);
let button = document.createElement("button");
button.setAttribute("type", "button");
button.setAttribute("title", "Edit prefab");
button.setAttribute("onclick", "PrefabManager.editPrefab(" + i + ")");
button.innerHTML = "+";
if (Logic.backlogState instanceof EditPrefabState &&
Logic.backlogState.currentPrefab == prefabs[i]) {
button.setAttribute("id", "selectedButton");
button.setAttribute("title", "Apply changes");
}
else {
button.setAttribute("title", "Edit prefab");
}
td.appendChild(button);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment