MouseTest theme covered.

This commit is contained in:
Jason Felds
2013-07-01 21:41:29 -04:00
parent c31d1f1c9d
commit ca1b8cb942
4 changed files with 74 additions and 24 deletions
@@ -1,6 +1,9 @@
local t = Def.ActorFrame{
LoadActor(THEME:GetPathG("_click","target"))..{
InitCommand=cmd(diffusealpha,0;Real);
InitCommand=function(self)
self:diffusealpha(0);
self:Real();
end;
LeftClickMessageCommand=function(self)
MESSAGEMAN:Broadcast("MouseInput", { Input = "Left" });
end;
@@ -31,7 +34,11 @@ local t = Def.ActorFrame{
};
LoadFont("common normal")..{
Name="Coords";
InitCommand=cmd(shadowlength,1;zoom,0.5;align,0,1);
InitCommand=function(self)
self:shadowlength(1);
self:zoom(0.5);
self:align(0, 1);
end;
MouseInputMessageCommand=function(self,param)
local cX = INPUTFILTER:GetMouseX()
local cY = INPUTFILTER:GetMouseY()