diff --git a/stepmania/Themes/default/Scripts/ActorDef.lua b/stepmania/Themes/default/Scripts/ActorDef.lua index ff4b465eda..f5a25475cf 100644 --- a/stepmania/Themes/default/Scripts/ActorDef.lua +++ b/stepmania/Themes/default/Scripts/ActorDef.lua @@ -157,6 +157,16 @@ function LoadActorWithParams( path, params, ... ) return lua.RunWithThreadVariables( function(...) return t(...) end, params, ... ); end +function LoadFont(a, b) + local sSection = b and a or ""; + local sFile = b or a; + local sPath = THEME:GetPathF(sSection, sFile); + return Def.BitmapText { + _Level = 2; + File = sPath; + } +end + function WrapInActorFrame( t ) return Def.ActorFrame { children = t } end