Skip to content

Commit

Permalink
0.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
lineville committed Jul 7, 2023
1 parent 67a8b40 commit b40dfde
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "break-even",
"version": "0.3.1",
"version": "0.3.2",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "break-even"
version = "0.3.1"
version = "0.3.2"
description = "A simple blackjack game"
authors = ["lineville"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"package": {
"productName": "break-even",
"version": "0.3.1"
"version": "0.3.2"
},
"tauri": {
"allowlist": {
Expand Down
5 changes: 5 additions & 0 deletions src/BlackJack.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,10 @@
showHandTotal = !showHandTotal;
};
const toggleHintEnabled = () => {
hintEnabled = !hintEnabled;
};
const cardTotalColorTheme = (score: number): string => {
if (score > 21) {
return "is-danger";
Expand Down Expand Up @@ -696,6 +700,7 @@

<SettingsModal
{toggleShowHandTotal}
{toggleHintEnabled}
{showHandTotal}
{newGameState}
{hintEnabled}
Expand Down
11 changes: 3 additions & 8 deletions src/SettingsModal.svelte
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<script lang="ts">
export let toggleShowHandTotal;
export let toggleHintEnabled;
export let showHandTotal;
export let newGameState;
export let hintEnabled;
</script>


<div id="settings-modal" class="modal">
<div class="modal-background" />
<div class="modal-card">
Expand Down Expand Up @@ -35,12 +35,7 @@
</span>
</button>

<button
class="button is-primary is-outlined"
on:click={() => {
hintEnabled = !hintEnabled;
}}
>
<button class="button is-primary is-outlined" on:click={toggleHintEnabled}>
<span>{hintEnabled ? "Hide Hint" : "Ask Don"}</span>
<span class="icon is-medium">
<i class="fas fa-question-circle" />
Expand All @@ -62,4 +57,4 @@

<footer class="modal-card-foot" />
</div>
</div>
</div>

1 comment on commit b40dfde

@vercel
Copy link

@vercel vercel bot commented on b40dfde Jul 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.