Release v1.13.0
This commit is contained in:
@@ -6,7 +6,7 @@ Date format : day/month/year
|
|||||||
> - `foundry-version`: Stick to the major version of FoundryVTT.
|
> - `foundry-version`: Stick to the major version of FoundryVTT.
|
||||||
> - `system-version`: System functionalities and Fixes.
|
> - `system-version`: System functionalities and Fixes.
|
||||||
|
|
||||||
## 1.13.0 - ??/??/2025 - Foundry v13 Compatibility (Thx to Litasa)
|
## 1.13.0 - 24/08/2025 - Foundry v13 Compatibility (Thx to Litasa)
|
||||||
__! Be certain to carefully back up any critical user data before installing this update !__
|
__! Be certain to carefully back up any critical user data before installing this update !__
|
||||||
- Updated the System to FoundryVTT v13.
|
- Updated the System to FoundryVTT v13.
|
||||||
- Compendiums
|
- Compendiums
|
||||||
|
|||||||
@@ -1,68 +0,0 @@
|
|||||||
/**
|
|
||||||
* L5R Help dialog
|
|
||||||
* @extends {FormApplication}
|
|
||||||
*/
|
|
||||||
export class HelpDialog extends FormApplication {
|
|
||||||
/**
|
|
||||||
* Payload Object
|
|
||||||
*/
|
|
||||||
object = {};
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Assign the default options
|
|
||||||
* @override
|
|
||||||
*/
|
|
||||||
static get defaultOptions() {
|
|
||||||
return foundry.utils.mergeObject(super.defaultOptions, {
|
|
||||||
id: "l5r5e-help-dialog",
|
|
||||||
classes: ["l5r5e", "help-dialog"],
|
|
||||||
template: CONFIG.l5r5e.paths.templates + "help/help-dialog.html",
|
|
||||||
title: game.i18n.localize("l5r5e.logo.title"),
|
|
||||||
width: 400,
|
|
||||||
height: 200,
|
|
||||||
closeOnSubmit: false,
|
|
||||||
submitOnClose: false,
|
|
||||||
submitOnChange: false,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Construct and return the data object used to render the HTML template for this form application.
|
|
||||||
* @param options
|
|
||||||
* @return {Object}
|
|
||||||
*/
|
|
||||||
async getData(options = null) {
|
|
||||||
return {
|
|
||||||
...(await super.getData(options)),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Listen to html elements
|
|
||||||
* @param {jQuery} html HTML content of the sheet.
|
|
||||||
* @override
|
|
||||||
*/
|
|
||||||
activateListeners(html) {
|
|
||||||
super.activateListeners(html);
|
|
||||||
|
|
||||||
// Buttons
|
|
||||||
html.find(`button`).on("click", (event) => {
|
|
||||||
event.preventDefault();
|
|
||||||
event.stopPropagation();
|
|
||||||
const name = $(event.currentTarget).data("type");
|
|
||||||
ui.notifications.info(`l5r5e.logo.${name}.info`, {localize: true});
|
|
||||||
window.open(game.i18n.localize(`l5r5e.logo.${name}.link`), "_blank");
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method is called upon form submission after form data is validated
|
|
||||||
* @param event {Event} The initial triggering submission event
|
|
||||||
* @param formData {Object} The object of validated form data with which to update the object
|
|
||||||
* @returns {Promise} A Promise which resolves once the update operation has completed
|
|
||||||
* @override
|
|
||||||
*/
|
|
||||||
_updateObject(event, formData) {
|
|
||||||
// Nothing, but needed to be override
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -38,7 +38,7 @@ export default class HooksL5r5e {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// For some reasons, not always really ready, so wait a little
|
// For some reason, not always really ready, so wait a little
|
||||||
await new Promise((r) => setTimeout(r, 2000));
|
await new Promise((r) => setTimeout(r, 2000));
|
||||||
|
|
||||||
// Settings TN and EncounterType
|
// Settings TN and EncounterType
|
||||||
@@ -47,11 +47,6 @@ export default class HooksL5r5e {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// ***** UI *****
|
// ***** UI *****
|
||||||
// Open Help dialog on clic on logo
|
|
||||||
$("#logo")
|
|
||||||
.on("click", () => new game.l5r5e.HelpDialog().render(true))
|
|
||||||
.prop("title", game.i18n.localize("l5r5e.logo.alt"));
|
|
||||||
|
|
||||||
// If any disclaimer "not translated by Edge"
|
// If any disclaimer "not translated by Edge"
|
||||||
const disclaimer = game.i18n.localize("l5r5e.global.edge_translation_disclaimer");
|
const disclaimer = game.i18n.localize("l5r5e.global.edge_translation_disclaimer");
|
||||||
if (disclaimer !== "" && disclaimer !== "l5r5e.global.edge_translation_disclaimer") {
|
if (disclaimer !== "" && disclaimer !== "l5r5e.global.edge_translation_disclaimer") {
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ import { SocketHandlerL5r5e } from "./socket-handler.js";
|
|||||||
import { RegisterSettings } from "./settings.js";
|
import { RegisterSettings } from "./settings.js";
|
||||||
import { PreloadTemplates } from "./preloadTemplates.js";
|
import { PreloadTemplates } from "./preloadTemplates.js";
|
||||||
import { RegisterHandlebars } from "./handlebars.js";
|
import { RegisterHandlebars } from "./handlebars.js";
|
||||||
import { HelpDialog } from "./help/help-dialog.js";
|
|
||||||
import HooksL5r5e from "./hooks.js";
|
import HooksL5r5e from "./hooks.js";
|
||||||
// Actors
|
// Actors
|
||||||
import { ActorL5r5e } from "./actor.js";
|
import { ActorL5r5e } from "./actor.js";
|
||||||
@@ -95,7 +94,6 @@ Hooks.once("init", async () => {
|
|||||||
RollnKeepDialog,
|
RollnKeepDialog,
|
||||||
GmToolbox,
|
GmToolbox,
|
||||||
GmMonitor,
|
GmMonitor,
|
||||||
HelpDialog,
|
|
||||||
storage: new Storage(),
|
storage: new Storage(),
|
||||||
sockets: new SocketHandlerL5r5e(),
|
sockets: new SocketHandlerL5r5e(),
|
||||||
migrations: MigrationL5r5e,
|
migrations: MigrationL5r5e,
|
||||||
|
|||||||
Reference in New Issue
Block a user