From 2158dc6c233e083ac2c111e88181111777238970 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 16 Feb 2007 07:41:09 +0000 Subject: [PATCH] add LoadFont --- stepmania/Themes/default/Scripts/ActorDef.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) 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