Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
HexaVault committed Apr 24, 2024
2 parents 5c5104d + b605f39 commit 318a191
Show file tree
Hide file tree
Showing 143 changed files with 5,479 additions and 337 deletions.
14 changes: 14 additions & 0 deletions public/stylesheets/modern-styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,10 @@ body.t-s12 {
border-left-color: var(--color-mending);
}

.o-tab-btn--matter::after {
border-left-color: #4F4F4F;
}

.tab-button.shop {
background-color: #d9bb26;
}
Expand Down Expand Up @@ -438,6 +442,16 @@ body.t-s12 {
border-top-color: var(--color-mending);
}

.o-tab-btn--matter .o-subtab__tooltip {
color: #4F4F4F;
background: var(--color-prestige--accent);
border-color: #4F4F4F;
}

.o-tab-btn--matter .o-subtab__tooltip::after {
border-top-color: #4F4F4F;
}


.active {
background-color: #2c2933;
Expand Down
255 changes: 255 additions & 0 deletions public/stylesheets/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -803,6 +803,16 @@ button:focus {
.o-tab-btn--mending:hover {
background: var(--color-mending);
}

.o-tab-btn--matter {
color: #4f4f4f;
background-color: var(--color-prestige--accent);
border-color: #4f4f4f;
}

.o-tab-btn--matter:hover {
background: #4f4f4f;
}
/* #endregion tab buttons */

#loading {
Expand Down Expand Up @@ -2396,6 +2406,18 @@ br {
text-shadow: none;
}

.l-hint-text--matter-upgrade {
top: -1.7rem;
font-size: 1rem;
}

.c-hint-text--matter-upgrade {
font-weight: bold;
color: var(--color-text);
text-shadow: none;
}


.l-hint-text--achievement {
top: -2rem;
z-index: 1;
Expand Down Expand Up @@ -8846,6 +8868,32 @@ kbd {
filter: grayscale(50%);
}

.c-mending-upgrade-btn--useless {
background-color: var(--color-pelle--base);
border-color: #4a110b;
filter: grayscale(50%);
cursor: default;
}

.c-mending-upgrade-btn--useless:hover {
color: var(--color-mending-light);
background-color: var(--color-pelle--base);
filter: grayscale(50%);
}

.c-matter-upgrade-btn--useless {
background-color: var(--color-pelle--base);
border-color: #4a110b;
filter: grayscale(50%);
cursor: default;
}

.c-matter-upgrade-btn--useless:hover {
color: #7F7F7F;
background-color: var(--color-pelle--base);
filter: grayscale(50%);
}

.c-reality-upgrade-btn--bought {
color: var(--color-reality-light);
background-color: var(--color-reality);
Expand Down Expand Up @@ -9816,6 +9864,36 @@ input.o-automator-block-input {
cursor: default;
}

.o-kohler-button {
font-weight: bold;
color: #FFAEC9;
background-color: var(--color-prestige--accent);
border-color: #FFAEC9;
cursor: pointer;
}

.o-kohler-button:hover {
color: black;
background-color: #FFAEC9;
}

.o-kohler-button span {
transition-duration: 0.2s;
}

.o-kohler-button:hover span {
color: black;
}

.t-metro .o-kohler-button {
box-shadow: 0.1rem 0.1rem 0.1rem 0 #9e9e9e;
}

.o-kohler-button--unavailable {
opacity: 0.5;
cursor: default;
}

/* #region Mending Milestones */

.l-mending-milestone-grid {
Expand Down Expand Up @@ -10018,6 +10096,137 @@ input.o-automator-block-input {
background-color: #802222;
}

.o-primary-btn--matter-upgrade-toggle {
font-size: 1rem;
margin-top: 0.5rem;
}

.l-matter-button-column {
display: flex;
flex-direction: column;
width: 44rem;
align-items: center;
margin-right: 2rem;
}

.l-matter-button-group {
display: flex;
flex-direction: row;
width: 100%;
height: 6rem;
padding: 0.5rem;
}

.l-matter-upgrade-grid {
display: flex;
flex-direction: column;
width: 100%;
align-items: center;
margin-top: 1.2rem;
}

.l-matter-upgrade-grid__row {
display: flex;
flex-direction: row;
}

.l-matter-upgrade-btn {
display: flex;
flex-direction: column;
width: 20.5rem;
height: 10rem;
position: relative;
justify-content: center;
align-items: center;
margin: 1.2rem;
padding: 0 0.5rem;
}

.c-matter-upgrade-btn {
text-align: center;
font-family: Typewriter, serif;
font-size: 1rem;
color: #202020;
background-color: var(--color-background);
border: var(--var-border-width, 0.2rem) solid #202020;
border-radius: var(--var-border-radius, 0.5rem);
transition-duration: 0.15s;
cursor: pointer;
}

.s-base--dark .c-matter-upgrade-btn {
color: #FFFFFF;
}

.c-matter-upgrade-btn__requirement {
font-weight: bold;
}

.c-matter-upgrade-btn:hover {
color: black;
background-color: #7f7f7f;
}

.c-matter-upgrade-btn--unavailable {
color: #C0C0C0;
background-color: #404040;/*var(--color-glyph-undo-disabled);*/
cursor: default;
}

.c-matter-upgrade-btn--unavailable:hover {
color: #000000;
background-color: var(--color-glyph-undo-disabled);
}

.c-matter-upgrade-btn--bought {
color: #7f7f7f;
background-color: #202020;
border-color: #202020;
cursor: default;
}

.c-matter-upgrade-btn--bought:hover {
color: #7f7f7f;
background-color: #4f4f4f;
}

.c-matter-upgrade-btn--possible {
/* Text color gets inherited from other pseudo-classes; so we use !important here in order to ensure good contrast
specifically on reality and imaginary upgrades, the only upgrades which use this and the related --locked below */
color: black !important;
background:
repeating-linear-gradient(
-45deg,
#A2A229,
#A2A229 3rem,
#919122 3rem,
#919122 6rem
);
cursor: default;
}

.c-matter-upgrade-btn--possible:hover {
/* This is actually a solid color, but it flickers on hover if we don't make it a linear-gradient */
background: linear-gradient(0deg, #919122, #919122);
}

.c-matter-upgrade-btn--locked {
color: white !important;
background: #952020;
background-image:
linear-gradient(45deg, #802222 25%, transparent 25%),
linear-gradient(135deg, #802222 25%, transparent 25%),
linear-gradient(45deg, transparent 75%, #802222 75%),
linear-gradient(135deg, transparent 75%, #802222 75%);
background-position: 0 0, 2rem 0, 2rem -2rem, 0 2rem;
background-size: 4rem 4rem;
cursor: default;
}

.c-matter-upgrade-btn--locked:hover {
background-color: #802222;
}

.o-requirement-lock {
position: absolute;
font-size: 5rem;
Expand Down Expand Up @@ -10074,6 +10283,52 @@ input.o-automator-block-input {
flex-direction: row;
}

.c-matter-upgrade-btn--black-hole-unlock {
text-shadow: -0.1rem 0.1rem 0.3rem #7f7f7f;
margin: auto;
}

.t-dark .c-matter-upgrade-btn--unavailable {
color: #7f7f7f;
background-color: #37474f;
}

.t-s6.c-matter-upgrade-btn:hover,
.t-s10.c-matter-upgrade-btn:hover {
background-color: #7f7f7f;
}

.t-s6.c-matter-upgrade-btn--unavailable:hover,
.t-s10.c-matter-upgrade-btn--unavailable:hover {
color: #7f7f7f;
background-color: #656565;
}

.t-s6.c-matterupgrade-btn--bought,
.t-s10.c-matter-upgrade-btn--bought {
background-color: #4f4f4f;
border-color: #094e0b;
}

.t-s6.c-matter-upgrade-btn--bought:hover,
.t-s10.c-matter-upgrade-btn--bought:hover {
color: #7f7f7f;
background-color: #4f4f4f;
}

.l-matter-upgrade-grid {
display: flex;
flex-direction: column;
width: 100%;
align-items: center;
margin-top: 1.2rem;
}

.l-matter-upgrade-grid__row {
display: flex;
flex-direction: row;
}

.o-warp-btn {
width: 19rem;
height: 9rem;
Expand Down
7 changes: 6 additions & 1 deletion src/components/InfinityUpgradeButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import CostDisplay from "@/components/CostDisplay";
import DescriptionDisplay from "@/components/DescriptionDisplay";
import EffectDisplay from "@/components/EffectDisplay";
import { MendingUpgrade, Ra } from "../core/globals";
export default {
name: "InfinityUpgradeButton",
Expand All @@ -14,6 +15,10 @@ export default {
upgrade: {
type: Object,
required: true
},
isBreak: {
type: Boolean,
required: false
}
},
data() {
Expand Down Expand Up @@ -73,7 +78,7 @@ export default {
// seems more likely to be read).
const upgrade = this.upgrade;
this.isBought = upgrade.isBought || upgrade.isCapped;
this.chargePossible = Ra.unlocks.chargedInfinityUpgrades.canBeApplied &&
this.chargePossible = ((Ra.unlocks.chargedInfinityUpgrades.canBeApplied && !this.isBreak) || Ra.unlocks.chargedBreakInfinityUpgrades.canBeApplied) &&
upgrade.hasChargeEffect && !Pelle.isDoomed;
this.canBeBought = upgrade.canBeBought;
this.canBeCharged = upgrade.canCharge;
Expand Down
17 changes: 16 additions & 1 deletion src/components/MendingPointsHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,17 @@ export default {
data() {
return {
mendingPoints: new Decimal(),
isVisible: false
isVisible: false,
isKPVisible: false,
kohlerPoints: new Decimal()
};
},
methods: {
update() {
this.mendingPoints.copyFrom(Currency.mendingPoints);
this.isVisible = PlayerProgress.mendingUnlocked();
this.isKPVisible = player.kohlerPoints.gt(0);
this.kohlerPoints.copyFrom(Currency.kohlerPoints);
}
}
};
Expand All @@ -24,8 +28,19 @@ export default {
You have
<span class="c-mending-tab__mending-points">{{ formatNE(mendingPoints, 2) }}</span>
{{ pluralize("Multiversal Remain", mendingPoints) }}.
<span v-if="isKPVisible">
<br>
You have <span class="c-mending-tab__mending-points">{{ formatNE(kohlerPoints, 2) }}</span> {{ pluralize("Kohler Point", kohlerPoints) }}.</span>
</div>
</template>
<!--<template>
<div
v-show="isKPVisible"
class="c-mending-points"
>

</div>
</template>-->

<style scoped>
.c-mending-points {
Expand Down
Loading

0 comments on commit 318a191

Please sign in to comment.