From 47430763141d1106a9349bc622e900779f8171ce Mon Sep 17 00:00:00 2001 From: Jenny Crowe Date: Fri, 26 Jan 2024 19:01:05 -0700 Subject: [PATCH] Added % as a unit to not include a space for when displaying in the event tooltip --- source/funkin/data/event/SongEventSchema.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/funkin/data/event/SongEventSchema.hx b/source/funkin/data/event/SongEventSchema.hx index ac7e44373..ca63f62f8 100644 --- a/source/funkin/data/event/SongEventSchema.hx +++ b/source/funkin/data/event/SongEventSchema.hx @@ -81,7 +81,7 @@ abstract SongEventSchema(SongEventSchemaRaw) var unit:String = field.units; // These units look better when placed immediately next to the value, rather than after a space. - if (unit == 'x' || unit == '°') return value + '${unit}'; + if (unit == 'x' || unit == '°' || unit == '%') return value + '${unit}'; return value + ' ${unit}'; }