prevent text wrapping, prevent logintimer from reloading (preserve time)

This commit is contained in:
downthecrop 2024-10-14 23:24:14 -07:00
parent 5e90004474
commit f8dcbfafdb
3 changed files with 9 additions and 3 deletions

View file

@ -191,8 +191,10 @@ object Helpers {
} }
fun formatHtmlLabelText(text1: String, color1: Color, text2: String, color2: Color): String { fun formatHtmlLabelText(text1: String, color1: Color, text2: String, color2: Color): String {
return "<html><span style='color:rgb(${color1.red},${color1.green},${color1.blue});'>$text1</span>" + return "<html><div style='white-space:nowrap;'>" +
"<span style='color:rgb(${color2.red},${color2.green},${color2.blue});'>$text2</span></html>" "<span style='color:rgb(${color1.red},${color1.green},${color1.blue});'>$text1</span>" +
"<span style='color:rgb(${color2.red},${color2.green},${color2.blue});'>$text2</span>" +
"</div></html>"
} }
fun formatNumber(value: Int): String { fun formatNumber(value: Int): String {

View file

@ -35,6 +35,10 @@ class plugin : Plugin() {
displayMessageCounter = 0 displayMessageCounter = 0
} }
override fun OnPluginsReloaded(): Boolean {
return true
}
override fun Draw(timeDelta: Long) { override fun Draw(timeDelta: Long) {
if (component == null) if (component == null)
return return

View file

@ -1,3 +1,3 @@
AUTHOR='Woahscam, Ceikry' AUTHOR='Woahscam, Ceikry'
DESCRIPTION='Displays the session time played, system time, or no time over the "Report Abuse" button.' DESCRIPTION='Displays the session time played, system time, or no time over the "Report Abuse" button.'
VERSION=1.2 VERSION=1.1