I did something really stupid...

This commit is contained in:
Alberto Ramos
2010-08-07 20:41:22 -06:00
parent dba5744435
commit e6e9941d17
5 changed files with 38 additions and 28 deletions
+5 -11
View File
@@ -58,7 +58,11 @@ local function func()
local sElement = Var "Element"
if Noteskin.bBlanks[sElement] then
return Def.Actor {}
local t = Def.Actor {};
if Var "SpriteOnly" then
t = LoadActor( "_blank" );
end
return t
end
--local ButtonToLoad = Noteskin.ButtonRedirs[sButton]
@@ -84,17 +88,7 @@ local function func()
end
local t = LoadActor(path)
--Rotaciones independientes por elemento
--[[local dRotationX = Noteskin.BaseRotX[sButton][ElementToLoad]
if not dRotationX then
dRotationX = Noteskin.BaseRotX[sButton]["Common"]
end
local dRotationY = Noteskin.BaseRotY[sButton][ElementToLoad]
if not dRotationY then
dRotationY = Noteskin.BaseRotY[sButton]["Common"]
end]]
t.BaseRotationX=Noteskin.BaseRotX[sButton]
t.BaseRotationY=Noteskin.BaseRotY[sButton]
+18 -3
View File
@@ -46,8 +46,23 @@ return Def.ActorFrame {
HeldCommand=cmd(playcommand,"Glow");
GlowCommand=cmd(setstate,0;finishtweening;diffusealpha,1;zoom,1;linear,0.2;diffusealpha,0;zoom,1.2);
};
Def.Quad {
InitCommand=cmd(diffuse,1,1,1,0;zoomto,SCREEN_WIDTH*100,SCREEN_HEIGHT*100;zoomz,SCREEN_WIDTH*SCREEN_HEIGHT);
HitMineCommand=cmd(finishtweening;diffusealpha,1;linear,0.3;diffusealpha,0);
Def.Actor {
HitMineCommand=function(self) MESSAGEMAN:BroadCast("AMineWasHit"); end;
};
--[[Def.Quad {
InitCommand=function(self)
local style = GAMESTATE:GetCurrentStyle()GetStyleType()
local maxzoom = SCREEN_WIDTH
if style == 'StyleType_OnePlayerTwoSides' then
maxzoom = 320
end
self:diffuse(1,1,1,0);
self:zoomx(maxzoom);
self:zoomy(SCREEN_HEIGHT*5)
end;
--cmd(diffuse,1,1,1,0;zoomy,SCREEN_HEIGHT*100);
HitMineCommand=function(self) MESSAGEMAN:BroadCast("AMineWasHit"); end;
--cmd(finishtweening;diffusealpha,1;linear,0.3;diffusealpha,0);
};]]
}