Skip to content

Commit

Permalink
Add icons for menus
Browse files Browse the repository at this point in the history
  • Loading branch information
damien.fayol committed Aug 3, 2023
1 parent 84ff915 commit b2c3495
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 4 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,5 @@ You can preview the production build with `npm run preview`.
- [ ] Better handling of game over
- [ ] Gold & shop
- [ ] Default weapon (fist) ?
- [ ] Quest menu
- [ ] Better direction icons
7 changes: 7 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"postcss-load-config": "^4.0.1",
"prettier": "^2.8.0",
"prettier-plugin-svelte": "^2.8.1",
"rpg-awesome": "^0.2.0",
"svelte": "^3.54.0",
"svelte-check": "^3.0.1",
"svelte-cubed": "^0.2.1",
Expand Down
2 changes: 2 additions & 0 deletions src/app.postcss
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/* Write your global styles here, in PostCSS syntax */
@import "rpg-awesome/css/rpg-awesome.css";

@tailwind base;
@tailwind components;
@tailwind utilities;
16 changes: 12 additions & 4 deletions src/components/UI.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,18 @@
{/each}
</div>
<div class="m-[10px] grid grid-cols-2">
<button on:click={() => {store.navigateTo('main') }} on:keypress={noop}>M</button>
<button on:click={() => {store.navigateTo('stats')}} on:keypress={noop}>C</button>
<button on:click={() => {store.navigateTo('main')}} on:keypress={noop}>Q</button>
<button on:click={() => {store.navigateTo('inventory')}} on:keypress={noop}>I</button>
<button on:click={() => {store.navigateTo('main') }} on:keypress={noop} class="w-[30px]">
<i class="ra ra-cog"></i>
</button>
<button on:click={() => {store.navigateTo('stats')}} on:keypress={noop} class="w-[30px]">
<i class="ra ra-scroll-unfurled "></i>
</button>
<button on:click={() => {store.navigateTo('main')}} on:keypress={noop} class="w-[30px]">
<i class="ra ra-quill-ink "></i>
</button>
<button on:click={() => {store.navigateTo('inventory')}} on:keypress={noop} class="w-[30px]">
<i class="ra ra-sword"></i>
</button>
</div>
<button
class="weapon w-[80px] h-[80px] m-[10px] cursor-pointer border-4 border-dark-color"
Expand Down

0 comments on commit b2c3495

Please sign in to comment.