Module GUIButtons

This module provides functions to create and manage GUI buttons.

Usage:

    local Buttons = NGUI.Buttons
    

Functions

Buttons:Create (text, clickFunc) Creates a button
Buttons:Accept (text, clickFunc) Accept button green colored
Buttons:Decline (text, clickFunc) Decline button red colored
Buttons:AddToCMenu (title, icon, iconSize, func) Adds button to C button menu
Buttons:HudSettings () Specific HUD Settings button


Functions

Buttons:Create (text, clickFunc)
Creates a button

Parameters:

  • text string Button text
  • clickFunc function OnClick function

Usage:

    Buttons:Create('Accept',function(btn)
         -- OnClick function
    	btn:SetColor(NC:Red())
    end)
Buttons:Accept (text, clickFunc)
Accept button green colored

Parameters:

  • text
  • clickFunc

See also:

Buttons:Decline (text, clickFunc)
Decline button red colored

Parameters:

  • text
  • clickFunc

See also:

Buttons:AddToCMenu (title, icon, iconSize, func)
Adds button to C button menu

Parameters:

  • title string
  • icon string
  • iconSize number
  • func function
Buttons:HudSettings ()
Specific HUD Settings button

See also:

generated by LDoc 1.5.0 Last updated 2024-04-15 17:47:35