refac: utilGame/getNPCColor

This commit is contained in:
2022-08-26 01:06:43 +09:00
parent 63771da876
commit 8a5a3b67f7
17 changed files with 52 additions and 30 deletions
+2 -2
View File
@@ -3,7 +3,7 @@
<div
class="bg1 nameHeader"
:style="{
color: getNpcColor(officer?.npcType ?? 0),
color: getNPCColor(officer?.npcType ?? 0),
textDecoration: isMe ? 'underline' : undefined,
}"
>
@@ -30,7 +30,7 @@
</div>
</template>
<script setup lang="ts">
import { getNpcColor } from "@/common_legacy";
import { getNPCColor } from "@/utilGame";
import type { ChiefResponse } from "@/defs/API/NationCommand";
import { mb_strwidth } from "@/util/mb_strwidth";
import type { PropType } from "vue";
+2 -2
View File
@@ -16,7 +16,7 @@
<div
class="col-7 align-self-center"
:style="{
color: getNpcColor(officer?.npcType ?? 0),
color: getNPCColor(officer?.npcType ?? 0),
}"
>
{{ officer?.name }}
@@ -64,7 +64,7 @@
</div>
</template>
<script setup lang="ts">
import { getNpcColor } from "@/common_legacy";
import { getNPCColor } from "@/utilGame";
import { formatTime } from "@/util/formatTime";
import { mb_strwidth } from "@/util/mb_strwidth";
import { parseTime } from "@/util/parseTime";