-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Token hud 1334 #1364
Token hud 1334 #1364
Conversation
* now shows the alive/total minion group size on tokens #1334
* now shows ranks in adversary #1334
* now shows a different symbol for minion groups which exceed a certain threshold #1334
# Conflicts: # lang/en.json # modules/swffg-main.js
* adds custom images for adversary levels based on community feedback #1334
* add outline and scale images down instead of raw resize #1334
const borderWidth = 0.35; | ||
const friendlyColor = "0x00A2E84D"; | ||
const enemyColor = "0x8800154D"; | ||
const overflowColor = "0xDAA520"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For accessibility / customisability these sorts of things would probably be better as CSS variables, or system settings, so that other modules can interact with them, and users can easily tweak them. But that's a long term concern, not a "get it working" concern.
if (token?.actor?.type === "minion") { | ||
drawMinionCount(token); | ||
} | ||
if (["character"].includes(token?.actor?.type)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The if
format switcheroo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
haha, FWIW that is because I expect the one on line 898 to be expanded in the future, whereas 895 is static. fair point, though.
No description provided.