refac: utilGame/getNPCColor

This commit is contained in:
Hide_D committed 2022-08-26 01:06:43 +09:00
1 parent 63771da876
commit 8a5a3b67f7
17 files changed
+52 -30

No files matched your search

@@ -94,7 +94,7 @@ import {
type procNationItem,
type procNationList,
} from "../processingRes";
import { getNpcColor } from "@/common_legacy";
import { getNPCColor } from "@/utilGame";
import { isBrightColor } from "@/util/isBrightColor";
const commandName = staticValues.commandName;
@@ -106,7 +106,7 @@ const toggleZoom = ref(true);
const selectedGeneralID = ref(generalList[0].no);
function textHelpGeneral(gen: procGeneralItem): string {
const nameColor = getNpcColor(gen.npc);
const nameColor = getNPCColor(gen.npc);
const name = nameColor ? `<span style="color:${nameColor}">${gen.name}</span>` : gen.name;
return name;
}