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

Languages Markers #510

Merged

Conversation

FoxxoTrystan
Copy link
Member

@FoxxoTrystan FoxxoTrystan commented Jul 4, 2024

Description

Require #459

Add 3 optional settings for LanguagePrototypes to play with richtext tags to they could be reconized as Makings

color - Set a specefic color to the text.
fontId - Set a font to the text by using the Id.
fontSize - Set the size of the text

All 3 are optional if not set message will be handeled like normal.

This should be mostly used to know what language your currently speaking and assist with markings.
Take note those changes happent only in the TextBox chat, bubblechat is left unchanged.


TODO

  • Add Markings
  • Add Fonts

Media

image
image


Changelog

🆑 FoxxoTrystan

  • add: Languages are now marked in the chat!

@github-actions github-actions bot added Changes: C# Changes any cs files Changes: Localization Changes any ftl files Changes: UI Changes any XAML files Changes: YML Changes any yml files labels Jul 4, 2024
@PuroSlavKing
Copy link

Will there be language icons in the language selection menu, chat and in the text cloud? 🥺

@DangerRevolution
Copy link
Contributor

Will there be language icons in the language selection menu, chat and in the text cloud? 🥺

Not the author of the PR; but from what I've spoke to them:

  1. Menu can support icons
  2. Chat menu cannot support icons
  3. Chat cloud cannot support icons

2 and 3 would need very big changes to how the Chat Menu and Chat Cloud are formatted.

@FoxxoTrystan
Copy link
Member Author

Will there be language icons in the language selection menu, chat and in the text cloud? 🥺

Not the author of the PR; but from what I've spoke to them:

  1. Menu can support icons
  2. Chat menu cannot support icons
  3. Chat cloud cannot support icons

2 and 3 would need very big changes to how the Chat Menu and Chat Cloud are formatted.

They could but you would need to change compleatly the UI of both ends and by god... im not going to try to touch ANCIENT UI.

@github-actions github-actions bot added the Status: Merge Conflict FIX YOUR PR AAAGH label Jul 5, 2024
Copy link
Contributor

github-actions bot commented Jul 5, 2024

This pull request has conflicts, please resolve those before we can evaluate the pull request.

Copy link
Member

@DEATHB4DEFEAT DEATHB4DEFEAT left a comment

Choose a reason for hiding this comment

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

I haven't looked at this in-game, but the code is fine.

Copy link
Contributor

@DangerRevolution DangerRevolution left a comment

Choose a reason for hiding this comment

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

Font is a little Sus but yaml is changeable if people don't like it

@DangerRevolution DangerRevolution merged commit 849b330 into Simple-Station:master Jul 9, 2024
11 checks passed
SimpleStation14 added a commit that referenced this pull request Jul 9, 2024
OldDanceJacket pushed a commit that referenced this pull request Jul 26, 2024
# Description
This refactors #510 and #553. #553 specifically was reverted and
re-implemented from scratch. As a consequence to all of this, the chat
system was refactored a bit too, hopefully for the best.

Changes:
- InGameICChatType, InGameOOCChatType, ChatTransmitRange were all moved
to shared and made serializable
- Added a method to wrap whisper messages to reduce code duplication in
chat system
- Both WrapPublicMethod and WrapWhisperMessage call the same generic
WrapMessage method, which allows to add speech verbs to whispers and
more. That method is also fully responsible for adding language markers
and deducing speech verbs now.
- Everything related to speech was moved out of LanguagePrototype and
into SpeechOverrideInfo. LanguagePrototype now holds an instance of
that.
- Added AllowRadio, RequireSpeech, ChatTypeOverride,
SpeechVerbOverrides, MessageWrapOverrides to SpeechOverrideInfo, all of
which are used in implementing the sign language.
- Suffered a lot

# TODO
- [X] Cry
- [X] Fix the sign language not displaying properly over the character.
- [X] Find a way to circumvent being unable to speak??

<details><summary><h1>Media</h1></summary><p>


![image](https://github.com/user-attachments/assets/845ec5d3-20aa-4786-bdc8-c39c80e0a4a3)

See below

</p></details>

# Changelog
No cl no fun

---------

Signed-off-by: Mnemotechnican <[email protected]>
Co-authored-by: Danger Revolution! <[email protected]>
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: Localization Changes any ftl files Changes: YML Changes any yml files
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants