ditch typhon in favor of doing it raw
This commit is contained in:
0
scripts/apps/CharacterArchiver.js
Normal file
0
scripts/apps/CharacterArchiver.js
Normal file
0
scripts/apps/CharacterCatalog.js
Normal file
0
scripts/apps/CharacterCatalog.js
Normal file
4
scripts/common.js
Normal file
4
scripts/common.js
Normal 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
20
scripts/index.js
Normal 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
12
scripts/settings.js
Normal 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,
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user