Garry's Mod Wiki

Revision Difference

DButton:UpdateColours#514208

<function name="UpdateColours" parent="DButton" type="panelfunc">⤶ <ispanel>yes</ispanel>⤶ <file line="85-93">lua/vgui/dbutton.lua</file>⤶ <description>A hook called from within <page>DLabel</page>'s <page>PANEL:ApplySchemeSettings</page> to determine the color of the text on display.</description>⤶ <realm>Client</realm>⤶ <args>⤶ <arg name="skin" type="table">A table supposed to contain the color values listed above.</arg>⤶ </args>⤶ </function>⤶ ⤶ Condition | Value |⤶ ----------|-------|⤶ | | skin.Colours.Button.Disabled |⤶ | self.Depressed | skin.Colours.Button.Down |⤶ | self.m_bSelected | skin.Colours.Button.Down |⤶ | self.Hovered | skin.Colours.Button.Hover |