mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-14 09:56:37 -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(
|
open class TextComponent(
|
||||||
message: Any? = "",
|
message: Any? = "",
|
||||||
override var color: RGBColor? = null,
|
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 clickEvent: ClickEvent? = null,
|
||||||
var hoverEvent: HoverEvent? = null,
|
var hoverEvent: HoverEvent? = null,
|
||||||
) : ChatComponent, TextStyle {
|
) : ChatComponent, TextStyle {
|
||||||
@ -117,6 +117,9 @@ open class TextComponent(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (formattingCode in this.formatting) {
|
for (formattingCode in this.formatting) {
|
||||||
|
if (formattingCode == PreChatFormattingCodes.SHADOWED) {
|
||||||
|
continue
|
||||||
|
}
|
||||||
stringBuilder.append(ProtocolDefinition.TEXT_COMPONENT_SPECIAL_PREFIX_CHAR)
|
stringBuilder.append(ProtocolDefinition.TEXT_COMPONENT_SPECIAL_PREFIX_CHAR)
|
||||||
stringBuilder.append(formattingCode.char)
|
stringBuilder.append(formattingCode.char)
|
||||||
}
|
}
|
||||||
|
@ -263,3 +263,7 @@
|
|||||||
.text-area .content {
|
.text-area .content {
|
||||||
-fx-background-color: -secondary-color;
|
-fx-background-color: -secondary-color;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.obfuscated {
|
||||||
|
-fx-font-family: 'monospaced';
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user