Resourceful Config

Resourceful Config

73M Downloads

[Bug]: Allow typing the § character in the input box for color codes

Saotzuri opened this issue · 0 comments

commented

Bug Description

Currently, it is not possible to type the § character into the input box (picture below).
This makes it difficult to directly test and preview Minecraft color codes in the UI

Image

How to Reproduce?

  1. Make a setting that would look like this:
    var customChimMessage by strings("§6[SBO] §6§lRARE DROP! §d§lChimera! §b{mf} §b#{amount}") {
        this.name = Translated("Custom Chim Message Text")
        this.description = Translated("use: {mf} for MagicFind, {amount} for drop Amount this event and {percentage} for chimera/inquis ratio.")
    }
  1. Open the Settings gui and navigate to the setting mentioned above.
  2. Edit the Setting and try to type in § wich doesnt work

Expected Behavior

The input box should accept the § character so users can immediately test how text will appear with Minecraft color codes.

Version

3.5.13

Mod Loader Version

1.21.5

Mod Loader

Fabric

Logs or additional context

Additional Context:
Confirmed with ThatGravyBoat in Discord that this works in another project and may just need to be backported to this one.
Would be helpful for quickly previewing formatted text without having to set it in the config manually.