diff --git a/js/components.js b/js/components.js index 0de1004..31c12a8 100644 --- a/js/components.js +++ b/js/components.js @@ -241,7 +241,10 @@ function loadVue() { props: ['layer', 'data'], template: `
- +
+
+ +
@@ -274,7 +277,7 @@ function loadVue() { props: ['layer', 'data'], template: ` - ` + ` }) // data = button size, in px @@ -367,7 +370,7 @@ function loadVue() { // data = id Vue.component('achievement', { - props: ['layer', 'data', 'hover'], + props: ['layer', 'data'], template: `
@@ -410,7 +413,7 @@ function loadVue() { Vue.component('slider', { props: ['layer', 'data'], template: ` -
+
` }) diff --git a/js/technical/systemComponents.js b/js/technical/systemComponents.js index 699249c..4ccaad8 100644 --- a/js/technical/systemComponents.js +++ b/js/technical/systemComponents.js @@ -12,9 +12,9 @@ var systemComponents = { }, 'tree-node': { - props: ['layer', 'abb', 'size', 'hover'], + props: ['layer', 'abb', 'size'], template: ` -
diff --git a/js/utils.js b/js/utils.js index 31f5ca9..28b9149 100644 --- a/js/utils.js +++ b/js/utils.js @@ -3,7 +3,7 @@ function respecBuyables(layer) { if (!layers[layer].buyables) return if (!layers[layer].buyables.respec) return - 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 + if (!player[layer].noRespecConfirm && !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 run(layers[layer].buyables.respec, layers[layer].buyables) updateBuyableTemp(layer) document.activeElement.blur() diff --git a/js/utils/save.js b/js/utils/save.js index 3801bae..2403578 100644 --- a/js/utils/save.js +++ b/js/utils/save.js @@ -74,6 +74,7 @@ function getStartLayerData(layer) { layerdata.forceTooltip = false; layerdata.buyables = getStartBuyables(layer); + if (layerdata.noRespecConfirm === undefined) layerdata.noRespecConfirm = false if (layerdata.clickables == undefined) layerdata.clickables = getStartClickables(layer); layerdata.spentOnBuyables = new Decimal(0); diff --git a/style.css b/style.css index 27752a3..2cae9d3 100644 --- a/style.css +++ b/style.css @@ -558,6 +558,7 @@ ul { } .tooltip { + pointer-events: none; text-align: center; width: 150px; font-size: 16px;