Garry's Mod Wiki

Revision Difference

DColorButton:SetID#562269

<function name="SetID" parent="DColorButton" type="panelfunc"> <description>Used internally by <page>DColorPalette</page> to detect which button is which.</description>⤶ <description>An <page>Global.AccessorFunc</page> that is used internally by <page>DColorPalette</page> to detect which button is which. ⤶ Pairs with <page>DColorButton:GetID</page>⤶ </description>⤶ <realm>Client and Menu</realm> <file line="10">lua/vgui/dcolorbutton.lua</file>⤶ <args> <arg name="id" type="number">A unique ID to give this button</arg> </args> </function>