diff --git a/src/components/box.vue b/src/components/box.vue index 5521735..367f485 100644 --- a/src/components/box.vue +++ b/src/components/box.vue @@ -67,7 +67,9 @@ let topB: HTMLDivElement; let bottomB: HTMLDivElement; let drag: HTMLElement; -const width = ref(isMobile ? window.innerWidth - 100 : 300); +const width = ref( + isMobile ? window.innerWidth - 100 : window.innerWidth * 0.175 +); const height = ref(isMobile ? 250 : window.innerHeight - 100); const left = ref(50); const top = ref(50); diff --git a/src/ui/statusBar.vue b/src/ui/statusBar.vue index 345d427..9115ae8 100644 --- a/src/ui/statusBar.vue +++ b/src/ui/statusBar.vue @@ -18,8 +18,12 @@
- {{ format(hero.hp!) }} - {{ + format(hero.hp!) + }} + +{{ format(hero.hpmax!) }}/t - {{ format(hero.atk!) }} - {{ + format(hero.atk!) + }} + +{{ format(hero.mana!) }}
-
+
{{ format(hero.def!) }}
-
+
{{ format(hero.mdef!) }}
-
+
{{ format(hero.money!) }}
-
+
{{ format(up) }}
-
+
{{ keys[0]?.toString().padStart(2, '0') }} @@ -97,7 +105,9 @@ import { status } from '../plugin/ui/statusBar'; import { isMobile } from '../plugin/use'; import { has } from '../plugin/utils'; -const width = ref(isMobile ? window.innerWidth - 100 : 300); +const width = ref( + isMobile ? window.innerWidth - 100 : window.innerWidth * 0.175 +); const height = ref(isMobile ? 250 : window.innerHeight - 100); const updateStatus = ref(false); const format = core.formatBigNumber; @@ -163,8 +173,8 @@ function update() { .status-item { position: relative; - max-width: 300px; - font-size: 32px; + max-width: 17.5vw; + font-size: 1.9vw; width: 100%; margin-bottom: 1vh; text-shadow: 3px 2px 3px #000, 0px 0px 3px #111; @@ -173,9 +183,13 @@ function update() { align-items: center; } +.status-item-bold { + font-weight: bold; +} + .status-icon { - width: 48px; - height: 48px; + width: 2.8vw; + height: 2.8vw; margin-right: 10%; margin-left: 10%; } @@ -195,15 +209,15 @@ function update() { } #status-floor { - max-width: 300px; - font-size: 28px; + max-width: 17.5vw; + font-size: 1.9vw; width: 100%; text-align: center; } #status-lv { - max-width: 300px; - font-size: 28px; + max-width: 17.5vw; + font-size: 1.9vw; width: 100%; text-align: center; } @@ -212,22 +226,22 @@ function update() { position: absolute; right: 15%; bottom: 0; - font-size: 24px; + font-size: 1.6vw; } #status-mana { line-height: 1; - text-shadow: 1px 0 0 #c66, 0 1px 0 #c66, -1px 0 0 #c66, 0 -1px 0 #c66; + color: rgb(255, 211, 211); } #status-hpmax { line-height: 1; - text-shadow: 1px 0 0 #0c0, 0 1px 0 #0c0, -1px 0 0 #0c0, 0 -1px 0 #0c0; + color: rgb(167, 255, 167); } #status-spring { line-height: 0; - text-shadow: 1px 0 0 #0c0, 0 1px 0 #0c0, -1px 0 0 #0c0, 0 -1px 0 #0c0; + color: rgb(167, 255, 167); } #status-key {