add title on dice button and translations for chat successes/strives...

This commit is contained in:
Vlyan
2020-12-10 18:31:41 +01:00
parent 534a02a323
commit 88162a11c4
6 changed files with 48 additions and 15 deletions

View File

@@ -108,6 +108,8 @@ Hooks.once("setup", function () {
/* ------------------------------------ */
Hooks.once("ready", function () {
// Do anything once the system is ready
// Add title on button dice icon
$.find(".chat-control-icon")[0].title = game.i18n.localize("l5r5e.chatdices.dicepicker");
});
/* ------------------------------------ */
@@ -115,7 +117,7 @@ Hooks.once("ready", function () {
/* ------------------------------------ */
Hooks.on("renderSidebarTab", (app, html, data) => {
// Add button on dice icon
html.find(".chat-control-icon").click(async (event) => {
html.find(".chat-control-icon").click(async () => {
new game.l5r5e.DicePickerDialog().render();
});
});