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

Add Codeword Highlighting (#30092) #429

Merged
merged 1 commit into from
Dec 23, 2024
Merged

Add Codeword Highlighting (#30092) #429

merged 1 commit into from
Dec 23, 2024

Conversation

Fansana
Copy link
Owner

@Fansana Fansana commented Dec 23, 2024

🆑

  • add: Added code word highlight

* Added codeword highlighting

* Updated to support more codeword roles, color is set serverside

* Review feedback

* Change to a Component-based system using SessionSpecific

* Tidied up CanGetState, set Access restrictions on component

* Clean-up

* Makes the injection ignore brackets, restore some codewords, remove "Taste/Touch" from adjectives

(cherry picked from commit 61a1e89339d0187f1a59b37284108935669c6826)
@github-actions github-actions bot added Status: Needs Review Someone please review this Changes: C# Changes any cs files Changes: YML Changes any yml files labels Dec 23, 2024
@Floof-Station-Bot Floof-Station-Bot changed the title Add codeword highlighting (#30092) Add Codeword Highlighting (#30092) Dec 23, 2024
[DataField, AutoNetworkedField]
public Dictionary<string, CodewordsData> RoleCodewords = new();

public override bool SessionSpecific => true;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Would be better to have SendOnlyToOwner => true instead of reinventing the wheel here and in OnCodewordCompGetStateAttempt, but if it works, it works.

Copy link
Owner Author

Choose a reason for hiding this comment

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

I mean we can improve on it but it's straight from wizden so I don't really wanna mess with it.

@Fansana Fansana merged commit a69c6a9 into master Dec 23, 2024
16 checks passed
Floof-Station-Bot added a commit that referenced this pull request Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changes: C# Changes any cs files Changes: YML Changes any yml files Status: Needs Review Someone please review this
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants