Files
itgmania212121/Themes/MouseTest/Graphics/ScreenTitleMenu scroll.lua
T

43 lines
1.3 KiB
Lua
Raw Normal View History

2011-03-17 01:47:30 -04:00
local gc = Var("GameCommand");
local index = gc:GetIndex();
local name = gc:GetName();
local text = gc:GetText();
local itemColors = {
HSV(128, 0.6, 0.85), -- play
HSV(192, 0.6, 0.85), -- options
HSV(160, 0.6, 0.85), -- customization
HSV( 64, 0.6, 0.85), -- edit
HSV( 0, 0.6, 0.85), -- exit
};
local t = Def.ActorFrame{
2013-07-18 17:41:35 -04:00
--[[
Def.Actor{
Name="TitleMenuController";
2013-07-01 21:41:29 -04:00
GainFocusCommand=function(self)
2013-07-18 17:41:35 -04:00
MESSAGEMAN:Broadcast("TitleChange",{NewColor=itemColors[index+1]});
2013-07-01 21:41:29 -04:00
end;
2011-03-17 01:47:30 -04:00
};
2013-07-18 17:41:35 -04:00
]]
LoadFont("Common Normal")..{
Text=Screen.String(text);
InitCommand=cmd(diffuse,color("1,1,1,1"));
DisabledCommand=cmd(diffuse,color("0.5,0.5,0.5,0.85"));
--GainFocusCommand=cmd(stoptweening;linear,0.25;diffuse,itemColors[index+1]);
GainFocusCommand=cmd(stoptweening;linear,0.25;diffuse,color("1,0.2,0.2,1"));
LoseFocusCommand=cmd(stoptweening;linear,0.25;diffuse,color("1,1,1,1"));
};
2011-03-17 01:47:30 -04:00
--[[ begin triangle ]]
Def.Quad{
2013-07-18 17:41:35 -04:00
InitCommand=cmd(x,-SCREEN_WIDTH*0.105;zoomto,8,24;zwrite,true;blend,'BlendMode_NoEffect');
2011-03-17 01:47:30 -04:00
};
Def.Quad{
2013-07-18 17:41:35 -04:00
InitCommand=cmd(x,-SCREEN_WIDTH*0.1;zoomto,12,12;rotationz,45;diffuselowerleft,color("0,0,0,0");ztest,true);
GainFocusCommand=cmd(stoptweening;visible,true);
LoseFocusCommand=cmd(stoptweening;visible,false);
2011-03-17 01:47:30 -04:00
};
--[[ end triangle ]]
};
2011-02-23 21:23:51 -06:00
return t;