Registers the Manage Config system, which lists the config keys and lets admins edit their values in-game.

The page is shown to players with access to /CfgSetVar. Keys and values are requested over the SystemCfgKeys and SystemCfgValue Cable messages, with private values masked, and SystemCfgSet applies a change on the server, optionally for a single map. The server answers all three only for players with that access.

Summary

Methods

Shows the Manage Config system to players who may use the CfgSetVar command.
Builds the config key list and the (hidden) edit form, requesting the key list from the server if needed.
Fills the config list with the keys in self.configKeys and reselects the active key, if any.
Fills the edit form for the selected config key (self.activeKey).

Methods

Shows the Manage Config system to players who may use the CfgSetVar command.

Returns

  • Boolean Whether the player has the command's access flags

SYSTEM:OnDisplay(systemPanel, systemForm)

client gamemodes/catwork/gamemode/core/system/sh_manage_config.lua:29

Builds the config key list and the (hidden) edit form, requesting the key list from the server if needed.

Selecting a row requests that key's value with the SystemCfgValue Cable message.

Parameters

  • systemPanel Panel The system panel to add the forms to
  • systemForm Panel The system's form (unused, the system does not create one)

Fills the config list with the keys in self.configKeys and reselects the active key, if any.

Keys without system data in config.GetFromSystem are skipped.

Fills the edit form for the selected config key (self.activeKey).

Shows the key's help text, a map entry and a text entry, slider or checkbox depending on the value's type; the okay button sends the new value to the server with the SystemCfgSet Cable message.

Defined in