Garry's Mod Wiki

Revision Difference

Global.Derma_DrawBackgroundBlur#514784

<function name="Derma_DrawBackgroundBlur" parent="Global" type="libraryfunc">⤶ <description>Draws background blur around the given panel.</description>⤶ <realm>Client and Menu</realm>⤶ <args>⤶ <arg name="panel" type="Panel">Panel to draw the background blur around</arg>⤶ <arg name="startTime" type="number">Time that the blur began being painted</arg>⤶ </args>⤶ </function>⤶ ⤶ <example>⤶ <description>Blur being drawn around a panel</description>⤶ <code>⤶ function PANEL:Init()⤶ self.startTime = SysTime()⤶ end⤶ ⤶ function PANEL:Paint()⤶ Derma_DrawBackgroundBlur(self, self.startTime)⤶ end⤶ </code>⤶ <output>Background blur is drawn around the panel</output>⤶ ⤶ </example>