add dialog picker on chat-control-icon
This commit is contained in:
@@ -122,11 +122,7 @@ Hooks.once("ready", function () {
|
|||||||
Hooks.on("renderSidebarTab", (app, html, data) => {
|
Hooks.on("renderSidebarTab", (app, html, data) => {
|
||||||
// Add button on dice icon
|
// Add button on dice icon
|
||||||
html.find(".chat-control-icon").click(async (event) => {
|
html.find(".chat-control-icon").click(async (event) => {
|
||||||
// let user = {
|
new game.l5r5e.DicePickerDialog().render();
|
||||||
// data: game.user.data,
|
|
||||||
// };
|
|
||||||
|
|
||||||
await DicePickerDialog.show();
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user