feat # 继续补全遗物系统

This commit is contained in:
2026-10-08 23:46:57 +08:00
parent 623f53a1d2
commit 1c93c77f4f
335 changed files with 11528 additions and 1797 deletions
+2
View File
@@ -1,5 +1,6 @@
import { ui } from "../../../../noname.js";
import { mountMenu } from "./navigation.js";
import { createRelicIcon } from "./relic-icon.js";
export const chooseButtons = (title, choices, description = "", options = {}) => new Promise(resolve => {
const previousFocus = document.activeElement;
@@ -33,6 +34,7 @@ export const chooseButtons = (title, choices, description = "", options = {}) =>
button.type = "button";
button.className = "mengsan-choice-shuying";
button.dataset.choice = choice.id;
const icon=createRelicIcon(choice.image);if(icon){button.classList.add("has-relic-image");button.appendChild(icon);}
if (choice.danger) button.classList.add("danger");
const name = document.createElement("span");
name.className = "mengsan-choice-name-shuying";