woka icon inside menu
This commit is contained in:
parent
b36f39d3d9
commit
731f616cce
@ -15,7 +15,7 @@
|
|||||||
import btnProfileSubMenuCamera from "../images/btn-menu-profile-camera.svg";
|
import btnProfileSubMenuCamera from "../images/btn-menu-profile-camera.svg";
|
||||||
import btnProfileSubMenuIdentity from "../images/btn-menu-profile-identity.svg";
|
import btnProfileSubMenuIdentity from "../images/btn-menu-profile-identity.svg";
|
||||||
import btnProfileSubMenuCompanion from "../images/btn-menu-profile-companion.svg";
|
import btnProfileSubMenuCompanion from "../images/btn-menu-profile-companion.svg";
|
||||||
import btnProfileSubMenuWoka from "../images/btn-menu-profile-woka.svg";
|
import Woka from "../Woka/Woka.svelte";
|
||||||
|
|
||||||
function disableMenuStores() {
|
function disableMenuStores() {
|
||||||
menuVisiblilityStore.set(false);
|
menuVisiblilityStore.set(false);
|
||||||
@ -65,7 +65,10 @@
|
|||||||
<span class="btn-hover">Edit your name</span>
|
<span class="btn-hover">Edit your name</span>
|
||||||
</button>
|
</button>
|
||||||
<button type="button" class="nes-btn" on:click|preventDefault={openEditSkinScene}>
|
<button type="button" class="nes-btn" on:click|preventDefault={openEditSkinScene}>
|
||||||
<img src={btnProfileSubMenuWoka} alt="Edit your WOKA" />
|
<!-- <div class="woka-icon">
|
||||||
|
</div> -->
|
||||||
|
<Woka userId={-1} placeholderSrc="" width="26px" height="26px" />
|
||||||
|
<!-- <img src={btnProfileSubMenuWoka} alt="Edit your WOKA" /> -->
|
||||||
<span class="btn-hover">Edit your WOKA</span>
|
<span class="btn-hover">Edit your WOKA</span>
|
||||||
</button>
|
</button>
|
||||||
<button type="button" class="nes-btn" on:click|preventDefault={openEditCompanionScene}>
|
<button type="button" class="nes-btn" on:click|preventDefault={openEditCompanionScene}>
|
||||||
|
@ -5,6 +5,8 @@
|
|||||||
|
|
||||||
export let userId: number;
|
export let userId: number;
|
||||||
export let placeholderSrc: string;
|
export let placeholderSrc: string;
|
||||||
|
export let width: string = "62px";
|
||||||
|
export let height: string = "62px";
|
||||||
|
|
||||||
const gameScene = gameManager.getCurrentGameScene();
|
const gameScene = gameManager.getCurrentGameScene();
|
||||||
const playerWokaPictureStore = gameScene.getUserWokaPictureStore(userId);
|
const playerWokaPictureStore = gameScene.getUserWokaPictureStore(userId);
|
||||||
@ -17,16 +19,14 @@
|
|||||||
onDestroy(unsubscribe);
|
onDestroy(unsubscribe);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<img {src} alt="" class="nes-pointer" />
|
<img {src} alt="" class="nes-pointer" style="--theme-width: {width}; --theme-height: {height}" />
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
img {
|
img {
|
||||||
display: block;
|
display: inline-block;
|
||||||
pointer-events: auto;
|
pointer-events: auto;
|
||||||
width: 60px;
|
width: var(--theme-width);
|
||||||
height: 60px;
|
height: var(--theme-height);
|
||||||
left: calc(50% - 30px);
|
|
||||||
top: calc(50% - 30px);
|
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
image-rendering: pixelated;
|
image-rendering: pixelated;
|
||||||
|
Loading…
Reference in New Issue
Block a user