Added AppearanceMenu allowing modification of DiceSoNice Duality presets

This commit is contained in:
WBHarry 2025-05-27 17:35:53 +02:00
parent e135c4134e
commit 565d3d9d88
13 changed files with 542 additions and 281 deletions

View file

@ -247,51 +247,43 @@ export const diceTypes = {
d20: 'd20'
};
export const diceSoNicePresets = {
hope: {
colorset: 'inspired',
foreground: '#FFFFFF',
background: '#ffe760',
outline: '#000000',
edge: '#FFFFFF',
texture: 'bloodmoon',
material: 'metal',
font: 'Arial Black',
system: 'standard'
},
fear: {
colorset: 'bloodmoon',
foreground: '#000000',
background: '#0032b1',
outline: '#FFFFFF',
edge: '#000000',
texture: 'bloodmoon',
material: 'metal',
font: 'Arial Black',
system: 'standard'
},
advantage: {
colorset: 'bloodmoon',
foreground: '#FFFFFF',
background: '#008000',
outline: '#000000',
edge: '#FFFFFF',
texture: 'bloodmoon',
material: 'metal',
font: 'Arial Black',
system: 'standard'
},
disadvantage: {
colorset: 'bloodmoon',
foreground: '#000000',
background: '#b30000',
outline: '#FFFFFF',
edge: '#000000',
texture: 'bloodmoon',
material: 'metal',
font: 'Arial Black',
system: 'standard'
}
export const getDiceSoNicePresets = () => {
const { diceSoNice } = game.settings.get(SYSTEM.id, SYSTEM.SETTINGS.gameSettings.appearance);
return {
hope: {
...diceSoNice.hope,
colorset: 'inspired',
texture: 'bloodmoon',
material: 'metal',
font: 'Arial Black',
system: 'standard'
},
fear: {
...diceSoNice.fear,
colorset: 'bloodmoon',
texture: 'bloodmoon',
material: 'metal',
font: 'Arial Black',
system: 'standard'
},
advantage: {
...diceSoNice.advantage,
colorset: 'bloodmoon',
texture: 'bloodmoon',
material: 'metal',
font: 'Arial Black',
system: 'standard'
},
disadvantage: {
...diceSoNice.disadvantage,
colorset: 'bloodmoon',
texture: 'bloodmoon',
material: 'metal',
font: 'Arial Black',
system: 'standard'
}
};
};
export const refreshTypes = {

View file

@ -25,16 +25,5 @@ export const gameSettings = {
AbilityArray: 'AbilityArray',
RangeMeasurement: 'RangeMeasurement'
},
DualityRollColor: 'DualityRollColor'
};
export const DualityRollColor = {
colorful: {
value: 0,
label: 'DAGGERHEART.Settings.DualityRollColor.Options.Colorful'
},
normal: {
value: 1,
label: 'DAGGERHEART.Settings.DualityRollColor.Options.Normal'
}
appearance: 'Appearance'
};