Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
theripper93 committed Oct 4, 2024
1 parent f1c5ec6 commit 7fc5195
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion index.js.map

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions scripts/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ export function initConfig() {
registerItems();
const ARGON = CoreHUD.ARGON;

class DND5eTooltip extends ARGON.CORE.Tooltip{
get classes() {
const original = super.classes;
return original.concat(["dnd5e2"]);
}
}

const isMIDI = game.modules.get("midi-qol")?.active;
const getMidiFlag = (actionType) => {
if (!isMIDI || !ui.ARGON._actor) return null;
Expand Down Expand Up @@ -1169,6 +1176,7 @@ export function initConfig() {
CoreHUD.defineMovementHud(DND5eMovementHud);
CoreHUD.defineButtonHud(DND5eButtonHud);
CoreHUD.defineWeaponSets(DND5eWeaponSets);
CoreHUD.defineTooltip(DND5eTooltip);
CoreHUD.defineSupportedActorTypes(["character", "npc"]);
});
}
Expand Down

0 comments on commit 7fc5195

Please sign in to comment.