Garry's Mod Wiki

Revision Difference

Panel:SetCursor#517749

<function name="SetCursor" parent="Panel" type="classfunc"> <description>Sets the appearance of the cursor.</description> <realm>Client</realm> <args> <arg name="cursor" type="string">The cursor to be set. Can be one of the following:&#xA;&#xA;* arrow&#xA;* beam&#xA;* hourglass&#xA;* waitarrow&#xA;* crosshair&#xA;* up&#xA;* sizenwse&#xA;* sizenesw&#xA;* sizewe&#xA;* sizens&#xA;* sizeall&#xA;* no&#xA;* hand&#xA;* blank&#xA;&#xA;Set to anything else to set it to &quot;none&quot;, the default fallback. Do note that a value of &quot;none&quot; does not, as one might assume, result in no cursor being drawn - hiding the cursor requires a value of &quot;blank&quot; instead.</arg>⤶ <arg name="cursor" type="string">The cursor to be set. Can be one of the following:⤶ ⤶ * arrow⤶ * beam⤶ * hourglass⤶ * waitarrow⤶ * crosshair⤶ * up⤶ * sizenwse⤶ * sizenesw⤶ * sizewe⤶ * sizens⤶ * sizeall⤶ * no⤶ * hand⤶ * blank⤶ ⤶ Set to anything else to set it to "none", the default fallback. Do note that a value of "none" does not, as one might assume, result in no cursor being drawn - hiding the cursor requires a value of "blank" instead.</arg>⤶ </args> </function>