Module GUIInputs

This module provides functions to create various input panels within a GUI.

Usage:

    local Inputs = NGUI.Inputs
    

Functions

Inputs:Bool (title, defaultValue) Boolean input field creator
Inputs:Resize (inp) Resizes input panel based on text length and type of input
Inputs:Fields (tblFields, acceptFunc) Creates a panel with many inputs grouped by categories


Functions

Inputs:Bool (title, defaultValue)
Boolean input field creator

Parameters:

  • title string The label for the checkbox
  • defaultValue boolean Default state of the checkbox (checked or not)

Returns:

    panel Returns a panel containing a checkbox
Inputs:Resize (inp)
Resizes input panel based on text length and type of input

Parameters:

  • inp panel The input panel to resize
Inputs:Fields (tblFields, acceptFunc)
Creates a panel with many inputs grouped by categories

Parameters:

  • tblFields table Key-values of input definitions
  • acceptFunc function Callback function for when inputs are accepted

Returns:

    panel Panel containing categorized inputs
generated by LDoc 1.5.0 Last updated 2024-04-15 17:47:35