Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow table initializers in TOOL.ClientConVar and TOOL.ServerConVar #2085

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Denneisk
Copy link
Contributor

Extends the TOOL.ClientConVar and TOOL.ServerConVar to use tables to initialize the convars, in case developers want to extend the definitions in the tool easily.

The following presents the tables and their default values (these values are virtual and they're really just nil substitution).

Shared:

{
Value = "", -- string/number The default value of the convar
HelpText = "Tool specific <server/client> setting (<mode>)", -- string The help text of the convar
Min = nil, -- number The minimum value of the convar
Max = nil -- number The maximum value of the convar
}

Server:

{
Flags = FCVAR_ARCHIVE -- number/table The convar flags to initialize the convar with
}

@robotboy655 robotboy655 added the Addition The pull request adds new functionality. label Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Addition The pull request adds new functionality.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants