-
-
Notifications
You must be signed in to change notification settings - Fork 506
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(legacy): chatcontrol module #4836
base: legacy
Are you sure you want to change the base?
Conversation
pr will be on pending |
Progress? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Add a ToggleableConfigurable object like in Nextgen so the module settings aren't cluttered, and use that here for the settings for each of these.
- chatControl in hookChatClear is declared as final, be consistent & make
chatControl
inhookNoLengthLimit
final.
src/main/java/net/ccbluex/liquidbounce/injection/forge/mixins/gui/MixinGuiNewChat.java
Outdated
Show resolved
Hide resolved
public String message; | ||
|
||
@Inject(method = "<init>(Ljava/lang/String;)V", at = @At("RETURN"), cancellable = true) | ||
public void injectForceUnicodeChat(String p_i45240_1_, CallbackInfo ci) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Searge be like:
❌ map the parameter names
✔️ leave it there, happens 99.99% of the time.
val noChatClear by boolean("NoChatClear", true) | ||
// TODO: Add stackMessage | ||
val stackMessage by boolean("StackMessage", true) | ||
val noLengthLimit by boolean("NoLengthLimit", true) | ||
val forceUnicodeChat by boolean("ForceUnicodeChat", false) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a ToggleableConfigurable
object like in Nextgen so the module settings aren't cluttered, and use that here for the settings for each of these.
TODO:
value
x]Closes: #4243