mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-13 09:26:11 -04:00
eros: obfuscated monospace font fixes
This commit is contained in:
parent
2efe05d61b
commit
218eeb08fc
@ -33,7 +33,7 @@ import javafx.util.Duration
|
||||
open class TextComponent(
|
||||
message: Any? = "",
|
||||
override var color: RGBColor? = null,
|
||||
override val formatting: MutableSet<ChatFormattingCode> = DEFAULT_FORMATTING.toMutableSet(),
|
||||
override val formatting: MutableSet<ChatFormattingCode> = DEFAULT_FORMATTING.toSynchronizedSet(),
|
||||
var clickEvent: ClickEvent? = null,
|
||||
var hoverEvent: HoverEvent? = null,
|
||||
) : ChatComponent, TextStyle {
|
||||
@ -117,6 +117,9 @@ open class TextComponent(
|
||||
}
|
||||
}
|
||||
for (formattingCode in this.formatting) {
|
||||
if (formattingCode == PreChatFormattingCodes.SHADOWED) {
|
||||
continue
|
||||
}
|
||||
stringBuilder.append(ProtocolDefinition.TEXT_COMPONENT_SPECIAL_PREFIX_CHAR)
|
||||
stringBuilder.append(formattingCode.char)
|
||||
}
|
||||
|
@ -263,3 +263,7 @@
|
||||
.text-area .content {
|
||||
-fx-background-color: -secondary-color;
|
||||
}
|
||||
|
||||
.obfuscated {
|
||||
-fx-font-family: 'monospaced';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user