Skip to content

Commit

Permalink
Added UI notification
Browse files Browse the repository at this point in the history
  • Loading branch information
emdant committed Feb 4, 2023
1 parent 3d41937 commit 6501b46
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 4 deletions.
20 changes: 20 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Copyright (c) 2023 Marco D'Antonio

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Easy Artwork
This module allows to easily display the artwork of any Item or Actor from within their own sheet.
There is no restriction on which user is permitted to display the artwork.
The module will add a self-explanatory button on the sheet's header.
4 changes: 3 additions & 1 deletion easy-artwork.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ function addButton(sheet, buttons) {
title: doc.name,
uuid: doc.uuid
});

ui.notifications.info("Artwork shown to all other users");
}
});
}

Hooks.on('getActorSheetHeaderButtons', addButton);
Hooks.on('getItemSheetHeaderButtons', addButton);
Hooks.on('getItemSheetHeaderButtons', addButton);
6 changes: 3 additions & 3 deletions module.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{
"id": "easy-artwork",
"title": "Easy Artwork",
"description": "Adds a button to show the artwork of any Item or Actor on the entity's title bar",
"description": "Allows to easily display the artwork of any Item or Actor from within their own sheet.",
"authors": [
{
"name": "emdant"
}
],
"url": "https://github.com/emdant/easy-artwork",
"changelog": "https://github.com/emdant/easy-artwork/commits/master",
"version": "1.0.1",
"version": "1.0.2",
"scripts": [
"easy-artwork.js"
],
"socket": true,
"download": "https://github.com/emdant/easy-artwork/releases/download/v1.0.0/module.zip",
"download": "https://github.com/emdant/easy-artwork/releases/download/v1.0.2/module.zip",
"manifest": "https://github.com/emdant/easy-artwork/releases/latest/download/module.json",
"compatibility": {
"minimum": "10",
Expand Down

0 comments on commit 6501b46

Please sign in to comment.