From 8813e9a9462b1373625a86f2dc7e8522fd144e0f Mon Sep 17 00:00:00 2001 From: N Date: Thu, 14 May 2026 14:43:34 -0300 Subject: [PATCH 1/2] Document: Allow support for returning a font in calculation functions --- Calculate-Functions.md | 1 + 1 file changed, 1 insertion(+) diff --git a/Calculate-Functions.md b/Calculate-Functions.md index 0302d65..7395b2b 100644 --- a/Calculate-Functions.md +++ b/Calculate-Functions.md @@ -73,6 +73,7 @@ There are a range of different keys that you can return in this table. These key - will automatically be put on the scored card unless `message_card` is also returned - colour of message background will be `G.C.FILTER` unless `colour` is returned - text colour will be `G.C.WHITE` unless `text_colour` is returned + - the message font can be changed by returning `font`, which can either be the vanilla index, an `SMODS.Font` key, or font object from `G.FONTS` or `SMODS.Fonts` - a custom sound can be added to a custom message by using `sound` - you can use `pitch` and `volume` to modify the pitch and volume of your sound - `func` - return a function to be called at the correct timing *(advanced)* From a74feb5bd249c4a43455117c8b86e5e2a50c14dd Mon Sep 17 00:00:00 2001 From: N Date: Sun, 14 Jun 2026 12:16:45 -0300 Subject: [PATCH 2/2] version --- Calculate-Functions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Calculate-Functions.md b/Calculate-Functions.md index 7395b2b..6b0e452 100644 --- a/Calculate-Functions.md +++ b/Calculate-Functions.md @@ -73,7 +73,7 @@ There are a range of different keys that you can return in this table. These key - will automatically be put on the scored card unless `message_card` is also returned - colour of message background will be `G.C.FILTER` unless `colour` is returned - text colour will be `G.C.WHITE` unless `text_colour` is returned - - the message font can be changed by returning `font`, which can either be the vanilla index, an `SMODS.Font` key, or font object from `G.FONTS` or `SMODS.Fonts` + - *(Added in 1814a)* the message font can be changed by returning `font`, which can either be the vanilla index, an `SMODS.Font` key, or font object from `G.FONTS` or `SMODS.Fonts` - a custom sound can be added to a custom message by using `sound` - you can use `pitch` and `volume` to modify the pitch and volume of your sound - `func` - return a function to be called at the correct timing *(advanced)*