Files
itgmania212121/Themes/default/Graphics/ScreenSelectPlayMode Icon/default.lua
T
ListenerJubatus 67099e520c Merge a major revamp of Lambda
Besides a few other minor retouches and additions, the biggest change is
that the theme now has a fixed color scheme of yellow, orange, and dark
magenta, and that many of the glossy graphics have been replaced by
flatter versions with subtle shadows.
2018-02-08 23:35:28 -06:00

44 lines
1.5 KiB
Lua

local gc = Var("GameCommand")
--local string_expl = THEME:GetString(Var "LoadingScreen", gc:GetName().."Explanation")
local icon_color = ModeIconColors[gc:GetName()]
local icon_size = 192
local t = Def.ActorFrame {}
t[#t+1] = Def.ActorFrame {
OnCommand=cmd(diffusealpha,0;linear,0.4;diffusealpha,1),
GainFocusCommand=cmd(stoptweening;bob;effectmagnitude,0,0,3;decelerate,0.1;zoom,0.95),
LoseFocusCommand=cmd(stoptweening;stopeffect;decelerate,0.1;zoom,0.9),
OffCommand=cmd(decelerate,0.2;zoom,0.7;diffusealpha,0),
LoadActor("_background base") .. {
LoseFocusCommand=cmd(diffuse,icon_color),
GainFocusCommand=cmd(diffuse,ColorLightTone(icon_color)),
},
LoadActor( gc:GetName() ) .. {
InitCommand=cmd(addy,-20;diffuse,Color.Black),
GainFocusCommand=cmd(diffusealpha,1.0),
LoseFocusCommand=cmd(diffusealpha,0.4)
},
-- todo: generate a better font for these.
LoadFont("_overpass 48px")..{
Text=string.upper(gc:GetText()),
InitCommand=cmd(horizalign,center;y,icon_size/3.4;zoom,0.5;maxwidth,icon_size*1.3;diffusecolor,color("#000000")),
GainFocusCommand=cmd(diffusealpha,1),
LoseFocusCommand=cmd(diffusealpha,0.5)
},
-- Will this ever actually be used?
-- LoadFont("Common Normal")..{
-- Text=string.upper(string_expl),
-- InitCommand=cmd(y,27.5;maxwidth,232)
-- },
LoadActor("_highlight") .. {
LoseFocusCommand=cmd(stopeffect;decelerate,0.1;diffuse,Color.Invisible),
GainFocusCommand=cmd(decelerate,0.2;diffuse,Color.Black;diffuseshift;effectcolor1,Color.White;effectcolor2,color("#FFFFFF99"))
}
}
return t