mirror of
https://github.com/IvarK/AntimatterDimensionsSourceCode.git
synced 2024-11-22 04:05:42 +00:00
Adjust weights Reset button in Glyphs tab
shouldn't be clickable when the Auto adjustment is on.
This commit is contained in:
parent
9059c5a388
commit
71bff51406
@ -8712,6 +8712,10 @@ kbd {
|
||||
border-radius: var(--var-border-radius, 0.5rem);
|
||||
padding: 0.2rem 0.5rem;
|
||||
transition-duration: 0.2s;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.c-glyph-levels-and-weights__reset-btn-clickable {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
|
@ -171,6 +171,12 @@ export default {
|
||||
"-ms-grid-row": r,
|
||||
};
|
||||
},
|
||||
resetWeightsButtonClass() {
|
||||
return {
|
||||
"c-glyph-levels-and-weights__reset-btn": true,
|
||||
"c-glyph-levels-and-weights__reset-btn-clickable": !this.isAutoAdjustWeightsOn
|
||||
};
|
||||
},
|
||||
resetWeights() {
|
||||
this.glyphWeightFields.forEach(e => player.celestials.effarig.glyphWeights[e] = 25);
|
||||
this.resetSavedWeights();
|
||||
@ -494,7 +500,7 @@ function roundPreservingSum(data) {
|
||||
Adjust weights
|
||||
<div class="l-glyph-levels-and-weights__reset-btn-outer">
|
||||
<div
|
||||
class="c-glyph-levels-and-weights__reset-btn"
|
||||
:class="resetWeightsButtonClass()"
|
||||
@click="resetWeights"
|
||||
>
|
||||
Reset
|
||||
|
Loading…
Reference in New Issue
Block a user