From fb8c45066aceea9a2143201eb59ca66c7a81f013 Mon Sep 17 00:00:00 2001 From: Colby Klein Date: Fri, 10 Jun 2011 23:24:46 -0700 Subject: [PATCH] Don't overwrite global Screen table. --- Themes/_fallback/Scripts/02 Other.lua | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/Themes/_fallback/Scripts/02 Other.lua b/Themes/_fallback/Scripts/02 Other.lua index f9f2532a6f..ea544d1dd4 100644 --- a/Themes/_fallback/Scripts/02 Other.lua +++ b/Themes/_fallback/Scripts/02 Other.lua @@ -98,16 +98,15 @@ end -- Get a metric from the currently-loading screen. This is only valid while loading -- an actor, such as from File or InitCommand attributes; not from commands. -Screen = { - Metric = function ( sName ) - local sClass = Var "LoadingScreen" - return THEME:GetMetric( sClass, sName ) - end, - String = function ( sName ) - local sClass = Var "LoadingScreen"; - return THEME:GetString( sClass, sName ) - end -}; +Screen.Metric = function ( sName ) + local sClass = Var "LoadingScreen" + return THEME:GetMetric( sClass, sName ) +end + +Screen.String = function ( sName ) + local sClass = Var "LoadingScreen"; + return THEME:GetString( sClass, sName ) +end function TextBannerAfterSet(self,param) local Title=self:GetChild("Title");