Skip to content
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

Merged
merged 9 commits into from
Feb 19, 2024
Merged

Token hud 1334 #1364

merged 9 commits into from
Feb 19, 2024

Conversation

wrycu
Copy link
Collaborator

@wrycu wrycu commented Feb 15, 2024

No description provided.

wrycu added 9 commits February 2, 2024 20:39
* 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
@wrycu wrycu requested a review from Esrin February 15, 2024 02:20
Comment on lines +35 to +38
const borderWidth = 0.35;
const friendlyColor = "0x00A2E84D";
const enemyColor = "0x8800154D";
const overflowColor = "0xDAA520";
Copy link
Collaborator

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.

Comment on lines +895 to +898
if (token?.actor?.type === "minion") {
drawMinionCount(token);
}
if (["character"].includes(token?.actor?.type)) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The if format switcheroo.

Copy link
Collaborator Author

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.

@Esrin Esrin merged commit 8a728bc into main Feb 19, 2024
@Esrin Esrin deleted the token_hud_1334 branch February 19, 2024 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants