disable annoying screen resoultion too small warning
This commit is contained in:
parent
ef00bd029e
commit
04093d752e
@ -8,8 +8,17 @@ Hooks.once("i18nInit", async function() {
|
|||||||
game.i18n._fallback = foundry.utils.mergeObject(await game.i18n._getTranslations("de"), game.i18n._fallback);
|
game.i18n._fallback = foundry.utils.mergeObject(await game.i18n._getTranslations("de"), game.i18n._fallback);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
class DSA41_Notifications extends Notifications {
|
||||||
|
notify(message, type="info", {localize=false, permanent=false, console=true}={}) {
|
||||||
|
if (permanent && message.startsWith("Foundry Virtual Tabletop requires a minimum screen resolution"))
|
||||||
|
return;
|
||||||
|
return super.notify(message, type, { localize, permanent, console });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Hooks.once("init", async function() {
|
Hooks.once("init", async function() {
|
||||||
CONFIG.Combat.initiative.formula = "1d6 + @computed.ini_basiswert[INI-Basiswert]";
|
CONFIG.Combat.initiative.formula = "1d6 + @computed.ini_basiswert[INI-Basiswert]";
|
||||||
|
CONFIG.ui.notifications = DSA41_Notifications
|
||||||
|
|
||||||
CONFIG.Actor.dataModels.Player = DSA41_CharacterData;
|
CONFIG.Actor.dataModels.Player = DSA41_CharacterData;
|
||||||
CONFIG.Actor.documentClass = DSA41_CharacterDocument;
|
CONFIG.Actor.documentClass = DSA41_CharacterDocument;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user