Files
itgmania212121/stepmania/Themes/default/BGAnimations/ScreenWithMenuElements overlay.lua
T
2007-03-11 00:15:53 +00:00

35 lines
708 B
Lua

local children = { };
local function MakeHelpDisplay()
local X = ScreenMetric("HelpX");
local Y = ScreenMetric("HelpY");
local On = ScreenMetric("HelpOnCommand");
local Off = ScreenMetric("HelpOffCommand");
local t = Def.HelpDisplay {
File = THEME:GetPathF("HelpDisplay", "text");
InitCommand=function(self)
local s = ScreenString("HelpText");
self:SetTipsColonSeparated(s);
end;
SetHelpTextCommand=function(self, params)
self:SetTipsColonSeparated( params.Text );
end;
OnCommand=function(self)
self:x( X );
self:y( Y );
On(self);
end;
OffCommand=Off;
};
return t;
end
children[#children+1] = MakeHelpDisplay();
return Def.ActorFrame {
children = children;
};