Don't overwrite global Screen table.

This commit is contained in:
Colby Klein
2011-06-10 23:24:46 -07:00
parent 1b5853c5ea
commit fb8c45066a
+9 -10
View File
@@ -98,16 +98,15 @@ end
-- Get a metric from the currently-loading screen. This is only valid while loading -- 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. -- an actor, such as from File or InitCommand attributes; not from commands.
Screen = { Screen.Metric = function ( sName )
Metric = function ( sName ) local sClass = Var "LoadingScreen"
local sClass = Var "LoadingScreen" return THEME:GetMetric( sClass, sName )
return THEME:GetMetric( sClass, sName ) end
end,
String = function ( sName ) Screen.String = function ( sName )
local sClass = Var "LoadingScreen"; local sClass = Var "LoadingScreen";
return THEME:GetString( sClass, sName ) return THEME:GetString( sClass, sName )
end end
};
function TextBannerAfterSet(self,param) function TextBannerAfterSet(self,param)
local Title=self:GetChild("Title"); local Title=self:GetChild("Title");