Implement battle controls icons

This commit is contained in:
thepaperpilot 2023-02-25 11:28:57 -06:00
parent 010e81baf7
commit cb3075dba6
6 changed files with 18 additions and 15 deletions

View file

@ -48,6 +48,9 @@
<link rel="prefetch" href="wins_small.png" /> <link rel="prefetch" href="wins_small.png" />
<link rel="prefetch" href="money_small.png" /> <link rel="prefetch" href="money_small.png" />
<link rel="prefetch" href="Freeze icon.png" /> <link rel="prefetch" href="Freeze icon.png" />
<link rel="prefetch" href="autoplay.png" />
<link rel="prefetch" href="play.png" />
<link rel="prefetch" href="fast forward.png" />
<title>Profectus</title> <title>Profectus</title>
<meta name="description" content="A project made in Profectus"/> <meta name="description" content="A project made in Profectus"/>

BIN
public/autoplay.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

BIN
public/fast forward.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

BIN
public/play.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

View file

@ -255,20 +255,20 @@
.battle-controls { .battle-controls {
display: flex; display: flex;
margin-top: -2vmin;
} }
.battle-controls .button { .battle-controls .button {
display: flex;
flex-direction: column;
font-size: 2vmin;
margin: 1vmin; margin: 1vmin;
border: solid 2px var(--link);
border-radius: var(--border-radius);
} }
.battle-controls .button.active { .battle-controls .button.active {
background: var(--link); filter: brightness(0.65);
color: var(--feature-foreground); }
.battle-controls .button img {
height: 7vmin;
image-rendering: pixelated;
} }
.outcome { .outcome {

View file

@ -12,6 +12,9 @@ import settings from "game/settings";
import { formatWhole } from "util/bignum"; import { formatWhole } from "util/bignum";
import { render } from "util/vue"; import { render } from "util/vue";
import { computed, ref, TransitionGroup } from "vue"; import { computed, ref, TransitionGroup } from "vue";
import autoplay from "../../public/autoplay.png";
import fast from "../../public/fast forward.png";
import freezeShop from "../../public/Freeze shop.png";
import heart_small from "../../public/heart_small.png"; import heart_small from "../../public/heart_small.png";
import ludwig from "../../public/Ludwig Coots.png"; import ludwig from "../../public/Ludwig Coots.png";
import maid from "../../public/Maid Coots.png"; import maid from "../../public/Maid Coots.png";
@ -19,15 +22,15 @@ import mail from "../../public/Mogul Mail Coots.png";
import money from "../../public/Mogul Money Coots.png"; import money from "../../public/Mogul Money Coots.png";
import money_small from "../../public/money_small.png"; import money_small from "../../public/money_small.png";
import coots from "../../public/Normal Coots.png"; import coots from "../../public/Normal Coots.png";
import play from "../../public/play.png";
import star_small from "../../public/presence_small.png"; import star_small from "../../public/presence_small.png";
import qt from "../../public/QT Coots.png"; import qt from "../../public/QT Coots.png";
import shopGif from "../../public/shop.gif"; import shopGif from "../../public/shop.gif";
import shopStill from "../../public/shop1.png"; import shopStill from "../../public/shop1.png";
import sellShop from "../../public/shop_Sell1.png";
import stanz from "../../public/Stanz Coots.png"; import stanz from "../../public/Stanz Coots.png";
import startStream from "../../public/start stream.png"; import startStream from "../../public/start stream.png";
import vespa from "../../public/Vespa Coots.png"; import vespa from "../../public/Vespa Coots.png";
import sellShop from "../../public/shop_Sell1.png";
import freezeShop from "../../public/Freeze shop.png";
import CharacterSlot from "./CharacterSlot.vue"; import CharacterSlot from "./CharacterSlot.vue";
import "./common.css"; import "./common.css";
import "./socket"; import "./socket";
@ -480,8 +483,7 @@ export const main = createLayer("main", function (this: BaseLayer) {
prepareMove(); prepareMove();
}} }}
> >
<span class="material-icons">play_arrow</span> <img src={play} />
<span>Play</span>
</button> </button>
<button <button
class={{ button: true, active: settings.autoplay }} class={{ button: true, active: settings.autoplay }}
@ -492,15 +494,13 @@ export const main = createLayer("main", function (this: BaseLayer) {
} }
}} }}
> >
<span class="material-icons">all_inclusive</span> <img src={autoplay} />
<span>Autoplay</span>
</button> </button>
<button <button
class={{ button: true, active: settings.fast }} class={{ button: true, active: settings.fast }}
onClick={() => (settings.fast = !settings.fast)} onClick={() => (settings.fast = !settings.fast)}
> >
<span class="material-icons">fast_forward</span> <img src={fast} />
<span>Fast</span>
</button> </button>
</div> </div>
<div <div