Garry's Mod Wiki

ControlPanel:KeyBinder

ControlPanel:KeyBinder

  Panel ControlPanel:KeyBinder( string label1, string convar1, string label2 = "nil", string convar2 = "nil" )

Just Added

This was just added in the latest version (2021.12.15). It might only be available on the Dev Branch right now.

Description

Creates a CtrlNumPad (a Sandbox key binder) panel and adds it as an item.

Arguments

1 string label1
The label for the left key binder.
2 string convar1
The name of the convar that will store the key code for player selected key of the left key binder.
3 string label2 = "nil"
If set and convar2 is set, the label for the right key binder.
4 string convar2 = "nil"
If set and label2 is set, the name of the convar that will store the key code for player selected key of the right key binder.

Returns

1 Panel
The created CtrlNumPad panel.

Special Pages


Wikis

?

Render Time: 29ms

DB GetPage 2
Generate Html 10
SaveChanges (1) 8
Render Body 0
Render Sidebar 7