Skip to content

#67 Support for legacy color/format codes and multi-space formatting#69

Merged
danthedaniel merged 1 commit intomainfrom
legacy-text-formatting
Feb 4, 2025
Merged

#67 Support for legacy color/format codes and multi-space formatting#69
danthedaniel merged 1 commit intomainfrom
legacy-text-formatting

Conversation

@danthedaniel
Copy link
Copy Markdown
Member

@danthedaniel danthedaniel commented Feb 4, 2025

Fixes: #67

Adds support for:

  • Setting colors with §[0-9a-f]
  • Formatting with §[rklmno]
  • Non-breaking space formatting, used by some plugins (would work better if we used a monospaced font like the game does)

@danthedaniel danthedaniel requested a review from creesch February 4, 2025 00:14
@danthedaniel danthedaniel force-pushed the legacy-text-formatting branch 6 times, most recently from 5cd2acd to 7684116 Compare February 4, 2025 00:47
@danthedaniel danthedaniel force-pushed the legacy-text-formatting branch from 7684116 to 6aaedf9 Compare February 4, 2025 01:38
@creesch
Copy link
Copy Markdown
Collaborator

creesch commented Feb 4, 2025

Looks good to me!

(would work better if we used a monospaced font like the game does)

How do you feel about Jetbrains Mono? It is imho a nicely legible font that also somewhat resembles the minecraft font. Doesn't have to be part of this PR as it does require a bit more css finessing to align everything properly.

image

@danthedaniel
Copy link
Copy Markdown
Member Author

I'll do a comparison with other fonts

@danthedaniel danthedaniel merged commit cf7ff24 into main Feb 4, 2025
@danthedaniel danthedaniel deleted the legacy-text-formatting branch February 4, 2025 08:25
creesch added a commit that referenced this pull request Mar 12, 2025
This release contains a variety of new features and improvements.  Things like support for newer minecraft versions, tab complete of usernames, hover events and a bunch more! 

# Main

## New

- Translations are now retrieved per chat message from the game at run time and stored with the message. (#84) Meaning that mod messages will display, messages will show in the language you will have set and that the mod now officially supports **1.21.1 and up** as messages will always have the correct translation for that minecraft version. 
- Support added for the `/tell`, `/msg`, `/w` and `/me` commands. (#82)   Note: This mod is never going to support all commands as this easily can be used for abuse. 
- Click events are now supported (#86)
- Tab completion of usernames (#78)
- Use "Jetbrains Mono" font for chat message/input/player names making it look more like minecraft chat (#80)
- Support for legacy color/format codes and multi-space formatting (#69)

## Fixes/enhancements 
- Make pingPatterns case insensitive (#63) 
- Added aria labels and use semantic elements (#58)
- Hover text now renders similar to in game (#85) and supports color code (#87)

# Technical
- Restructured front-end code to not only be modules but classes (#59)
- Simplify player heads rendering (#70)
- A variety of dependencies has been updated. 

# Various other 
For a complete overview see the [commit history](https://github.com/creesch/minecraft-web-chat/commits/main/)

# Screenshots 
![image](https://github.com/user-attachments/assets/91d4e140-c1a5-4fe2-ab74-9bee12ca0a7a)
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.

Improve formatting (color and spaces)

2 participants