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

feat(color): 为高版本渐变颜色增加 加粗 斜体 下划线 等特殊功能 #9

Closed
RedCarl opened this issue Aug 28, 2023 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@RedCarl
Copy link
Contributor

RedCarl commented Aug 28, 2023

功能简述

兼容 &l &m &n &k &o &r

需求来源

需要对渐变颜色进行加粗等特殊效果。

附加内容

需要注意有的时候加粗可能不是开头,也可能是在中间,只加粗渐变字中的某个字。

@RedCarl RedCarl added the enhancement New feature or request label Aug 28, 2023
@RedCarl
Copy link
Contributor Author

RedCarl commented Aug 28, 2023

如果可以建议整合MiniMessage让Component使用起来更加方便。velocity 无法使用颜色符号

@CarmJos
Copy link
Owner

CarmJos commented Aug 28, 2023

如果可以建议整合MiniMessage让Component使用起来更加方便。velocity 无法使用颜色符号

暂不考虑整合MiniMessages,微型项目不应捆绑大型类库,有相关需要的可以自行依赖。

@CarmJos CarmJos changed the title 为高版本渐变颜色增加 加粗 斜体 下划线 等特殊功能 feat(color): 为高版本渐变颜色增加 加粗 斜体 下划线 等特殊功能 Aug 28, 2023
@CarmJos CarmJos self-assigned this Aug 28, 2023
@CarmJos
Copy link
Owner

CarmJos commented Sep 4, 2023

检查了一下,好像已经支持给中间的某个字添加特殊形式了。回忆起来先前不做格式传递正是如此。

@CarmJos
Copy link
Owner

CarmJos commented Sep 4, 2023

// 在渐变中,允许使用格式字符与颜色字符来改变其中某个字的颜色/格式,以支持更多形式内容。

@CarmJos
Copy link
Owner

CarmJos commented Sep 4, 2023

该功能已在 https://github.com/CarmJos/EasyPlugin/releases/tag/1.5.8 中支持,请帮助测试使用。

@CarmJos CarmJos closed this as completed Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants