Garry's Mod Wiki

Revision Difference

Panel:ColorTo#560825

<function name="ColorTo" parent="Panel" type="classfunc"> <file line="240-L250">lua/includes/extensions/client/panel/animation.lua</file>⤶ <description>Fades panels color to specified one. It won't work unless panel has SetColor function.</description> <realm>Client and Menu</realm> <args> <arg name="color" type="table">The color to fade to</arg> <arg name="length" type="number">Length of the animation</arg> <arg name="delay" type="number">Delay before start fading</arg> <arg name="callback" type="function">Function to execute when finished</arg> </args> </function>