Don't overwrite global Screen table.
This commit is contained in:
@@ -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");
|
||||||
|
|||||||
Reference in New Issue
Block a user