fixes to CSS, added black background icons
This commit is contained in:
@@ -560,16 +560,17 @@ export class DeltaGreenActorSheet extends ActorSheet {
|
||||
};
|
||||
|
||||
if(type == "weapon"){
|
||||
itemData.system.skill = "firearms"; //default skill to firearms, since that will be most common
|
||||
itemData.system.expense = "Standard";
|
||||
//itemData.system.skill = "firearms"; //default skill to firearms, since that will be most common
|
||||
//itemData.system.expense = "Standard";
|
||||
}
|
||||
else if(type == "armor"){
|
||||
itemData.system.armor = 3;
|
||||
itemData.system.expense = "Standard";
|
||||
//itemData.system.armor = 3;
|
||||
//itemData.system.expense = "Standard";
|
||||
}
|
||||
else if(type == "bond"){
|
||||
// try to default bonds for an agent to their current CHA
|
||||
itemData.system.score = this.object.system.statistics.cha.value; // Can vary, but at character creation starting bond score is usually agent's charisma
|
||||
itemData.img = "icons/svg/mystery-man.svg"
|
||||
//itemData.img = "icons/svg/mystery-man.svg"
|
||||
}
|
||||
|
||||
// create the item
|
||||
|
||||
+23
-4
@@ -310,12 +310,12 @@ Hooks.once("ready", async function() {
|
||||
Hooks.on("ready", ()=> {
|
||||
|
||||
//let backgroundImageSetting = game.settings.get("deltagreen", "characterSheetBackgroundImageSetting");
|
||||
let characterSheetStyle = game.settings.get("deltagreen", "characterSheetStyle");
|
||||
//let characterSheetStyle = game.settings.get("deltagreen", "characterSheetStyle");
|
||||
|
||||
let customCss = "";
|
||||
//let customCss = "";
|
||||
|
||||
let customStyle = document.createElement("style");
|
||||
customStyle.id = "dg-custom-css";
|
||||
//let customStyle = document.createElement("style");
|
||||
//customStyle.id = "dg-custom-css";
|
||||
|
||||
/*
|
||||
if(backgroundImageSetting === "OldPaper1"){
|
||||
@@ -330,6 +330,7 @@ Hooks.on("ready", ()=> {
|
||||
}
|
||||
*/
|
||||
|
||||
/*
|
||||
if(characterSheetStyle === "cowboy"){
|
||||
customCss += `div.deltagreen.sheet.actor section.window-content{
|
||||
background: url("systems/deltagreen/assets/img/old_paper.jpg") !important;
|
||||
@@ -346,9 +347,27 @@ Hooks.on("ready", ()=> {
|
||||
if(customCss != ""){
|
||||
//document.querySelector("head").appendChild(customStyle);
|
||||
}
|
||||
*/
|
||||
|
||||
});
|
||||
|
||||
Hooks.on("preCreateItem", (item) => {
|
||||
console.log("preCreateItem");
|
||||
console.log(item.img);
|
||||
console.log(item.type);
|
||||
|
||||
if(item.img === 'icons/svg/item-bag.svg'){
|
||||
|
||||
if(item.type === 'bond'){
|
||||
item.updateSource({ img: 'systems/deltagreen/assets/icons/person-black-bg.svg'});
|
||||
}
|
||||
else{
|
||||
item.updateSource({ img: 'systems/deltagreen/assets/icons/swap-bag-black-bg.svg'});
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
Hooks.on("renderSidebarTab", async (app, html) => {
|
||||
if (app.options.id == "actors") {
|
||||
let button = $("<button class='import-cd'><i class='fas fa-file-import'></i> Parse Stat Block</button>")
|
||||
|
||||
+2
-2
@@ -1,14 +1,14 @@
|
||||
export const registerSystemSettings = function () {
|
||||
game.settings.register("deltagreen", "characterSheetStyle", {
|
||||
name: "Character Sheet Style",
|
||||
hint: "Choose how actor sheets should be styled. 'Program' is a more modern government style, where 'Cowboy' is an older, grittier looking typewriter style.",
|
||||
hint: "Choose how actor sheets should be styled. 'Program' is a more modern government style, where 'Cowboy/Outlaw' is an older, grittier looking typewriter style.",
|
||||
scope: "world", // This specifies a world-stored setting
|
||||
config: true, // This specifies that the setting appears in the configuration view
|
||||
requiresReload: true,
|
||||
type: String,
|
||||
choices: {
|
||||
// If choices are defined, the resulting setting will be a select menu
|
||||
cowboy: "The Cowboys",
|
||||
cowboy: "The Cowboys/Outlaws",
|
||||
program: "The Program",
|
||||
},
|
||||
default: "program", // The default value for the setting
|
||||
|
||||
Reference in New Issue
Block a user