ditch typhon in favor of doing it raw

This commit is contained in:
iamBadgers
2025-07-11 20:26:57 -07:00
parent b7948d18d7
commit fcb1b25cec
17 changed files with 40 additions and 6400 deletions

View File

View File

4
scripts/common.js Normal file
View File

@@ -0,0 +1,4 @@
export const MODULE_ID = "rush-character-archive-foundry-module";
export const URI_SETTING_NAME = "uri_setting";

20
scripts/index.js Normal file
View File

@@ -0,0 +1,20 @@
import { initializeSettings } from "./settings.js";
Hooks.on('init', async function () {
initializeSettings();
});
Hooks.on("getActorSheetHeaderButtons", (app, buttons) => {
let theatreButtons = [];
theatreButtons.push({
label: "Archive",
class: "send-to-archive",
icon: "fas fa-mask",
onclick: (ev) => {
console.log("ARCHIVE ME!");
}
});
buttons.unshift(...theatreButtons);
});

12
scripts/settings.js Normal file
View File

@@ -0,0 +1,12 @@
import {MODULE_ID, URI_SETTING_NAME} from "./common.js"
export function initializeSettings() {
game.settings.register(MODULE_ID, URI_SETTING_NAME, {
name: "Archive Server URI",
hint: "Address of the character archive server.",
scope: "world",
config: true,
default: "https://chararchive.cyberpunkrush.com",
type: String,
});
}