diff --git a/public/assets/icons/increase-size-option.svg b/public/assets/icons/increase-size-option.svg new file mode 100644 index 0000000..76cad03 --- /dev/null +++ b/public/assets/icons/increase-size-option.svg @@ -0,0 +1,51 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/components/Effects.vue b/src/components/Effects.vue index 76d18c6..fba077c 100644 --- a/src/components/Effects.vue +++ b/src/components/Effects.vue @@ -62,7 +62,7 @@ const createFogEffect = (scene: Phaser.Scene) => { const updateEffects = () => { const effects = zoneStore.zone?.zoneEffects || [] - effects.forEach(effect => { + effects.forEach((effect) => { switch (effect.effect) { case 'light': updateLightEffect(effect.strength) @@ -79,7 +79,7 @@ const updateEffects = () => { const updateLightEffect = (strength: number) => { if (!lightEffect.value) return - const darkness = 1 - (strength / 100) + const darkness = 1 - strength / 100 lightEffect.value.clear() lightEffect.value.fillStyle(0x000000, darkness) lightEffect.value.fillRect(0, 0, window.innerWidth, window.innerHeight) @@ -105,4 +105,6 @@ watch(() => zoneStore.zone?.zoneEffects, updateEffects, { deep: true }) onBeforeUnmount(() => { if (sceneRef.value) sceneRef.value.scene.remove('effects') }) - \ No newline at end of file + +// @TODO : Fix resize issue + diff --git a/src/components/gameMaster/GmPanel.vue b/src/components/gameMaster/GmPanel.vue index b003e8b..d4ace4d 100644 --- a/src/components/gameMaster/GmPanel.vue +++ b/src/components/gameMaster/GmPanel.vue @@ -1,7 +1,6 @@