mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-16 13:41:07 +01:00
Limited views are no longer resizable
This commit is contained in:
parent
86297bd14b
commit
22eb1a64e7
3 changed files with 33 additions and 0 deletions
|
|
@ -56,6 +56,17 @@ export default class AdversarySheet extends DHBaseActorSheet {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/** @inheritdoc */
|
||||||
|
_initializeApplicationOptions(options) {
|
||||||
|
const applicationOptions = super._initializeApplicationOptions(options);
|
||||||
|
|
||||||
|
if (applicationOptions.document.testUserPermission(game.user, 'LIMITED', { exact: true })) {
|
||||||
|
applicationOptions.window.resizable = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return applicationOptions;
|
||||||
|
}
|
||||||
|
|
||||||
/**@inheritdoc */
|
/**@inheritdoc */
|
||||||
async _prepareContext(options) {
|
async _prepareContext(options) {
|
||||||
const context = await super._prepareContext(options);
|
const context = await super._prepareContext(options);
|
||||||
|
|
|
||||||
|
|
@ -147,6 +147,17 @@ export default class CharacterSheet extends DHBaseActorSheet {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @inheritdoc */
|
||||||
|
_initializeApplicationOptions(options) {
|
||||||
|
const applicationOptions = super._initializeApplicationOptions(options);
|
||||||
|
|
||||||
|
if (applicationOptions.document.testUserPermission(game.user, 'LIMITED', { exact: true })) {
|
||||||
|
applicationOptions.window.resizable = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return applicationOptions;
|
||||||
|
}
|
||||||
|
|
||||||
/** @inheritDoc */
|
/** @inheritDoc */
|
||||||
async _onRender(context, options) {
|
async _onRender(context, options) {
|
||||||
await super._onRender(context, options);
|
await super._onRender(context, options);
|
||||||
|
|
|
||||||
|
|
@ -51,6 +51,17 @@ export default class DhpEnvironment extends DHBaseActorSheet {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/** @inheritdoc */
|
||||||
|
_initializeApplicationOptions(options) {
|
||||||
|
const applicationOptions = super._initializeApplicationOptions(options);
|
||||||
|
|
||||||
|
if (applicationOptions.document.testUserPermission(game.user, 'LIMITED', { exact: true })) {
|
||||||
|
applicationOptions.window.resizable = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return applicationOptions;
|
||||||
|
}
|
||||||
|
|
||||||
/**@inheritdoc */
|
/**@inheritdoc */
|
||||||
async _preparePartContext(partId, context, options) {
|
async _preparePartContext(partId, context, options) {
|
||||||
context = await super._preparePartContext(partId, context, options);
|
context = await super._preparePartContext(partId, context, options);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue