ditch typhon in favor of doing it raw
This commit is contained in:
1 parent
b7948d18d7
commit
fcb1b25cec
17 files changed
+40
-6400
No files matched your search
Whitespace-only changes.
Whitespace-only changes.
@@ -0,0 +1,4 @@
|
||||
|
||||
export const MODULE_ID = "rush-character-archive-foundry-module";
|
||||
|
||||
export const URI_SETTING_NAME = "uri_setting";
|
||||
@@ -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);
|
||||
});
|
||||
@@ -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