1
0
Fork 0
mirror of https://github.com/Acamaeda/The-Modding-Tree.git synced 2025-04-24 02:01:03 +00:00

Respec buttons and layer nodes don't keep focus

This commit is contained in:
Acamaeda 2020-12-06 23:40:06 -05:00
parent b623844316
commit bffa624ccc
2 changed files with 4 additions and 0 deletions

View file

@ -456,6 +456,7 @@ function respecBuyables(layer) {
if (!confirm("Are you sure you want to respec? This will force you to do a \"" + (tmp[layer].name ? tmp[layer].name : layer) + "\" reset as well!")) return
layers[layer].buyables.respec()
updateBuyableTemp(layer)
document.activeElement.blur()
}
function canAffordUpgrade(layer, id) {
@ -641,6 +642,7 @@ function showTab(name) {
if (player.navTab == "none" && (tmp[name].row !== "side") && (tmp[name].row !== "otherside")) player.lastSafeTab = name
delete player.notify[name]
needCanvasUpdate = true
document.activeElement.blur()
}
function showNavTab(name) {