forked from Inq8/CAmod
-
Notifications
You must be signed in to change notification settings - Fork 3
feat(encyclopedia): add clickable cross-reference links #11
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
Open
schultzp2020
wants to merge
33
commits into
darkademic:dev
Choose a base branch
from
schultzp2020:clickable-links
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+5,629
−1,069
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Deliverance Co-op low power announcement fix.
…t. Reduced range by 1.
…vision. - Fixed Marauder not firing from Battle Fortress.
Signed-off-by: Paul Schultz <pschultz@pobox.com>
Signed-off-by: Paul Schultz <pschultz@pobox.com>
Signed-off-by: Paul Schultz <pschultz@pobox.com>
2b24618 to
70ebc91
Compare
f76e1da to
c7882b3
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This adds clickable cross-reference links to the encyclopedia, allowing users to Ctrl+Click on entity names to navigate directly to their encyclopedia entries.
A new
LinkableLabelWidgetextends the standard label widget to support two link syntaxes:[[actorName]]which displays the actor's tooltip name, and[[Display Text|actorName]]for custom display text. Links are validated against encyclopedia entries and only highlighted when valid. The widget supports customizable link colors, hover states, and fonts via YAML configuration.The encyclopedia logic now builds lookup tables at initialization for fast actor name resolution and faction-aware prerequisite linking. When viewing a building's prerequisites, clicking on a requirement like "Refinery" navigates to the correct faction-specific entry rather than a generic one. The system handles actors that belong to multiple factions by checking all category paths.
2026-01-04.17-13-13.mp4