đģui
Last updated
Last updated
ui.get_alpha():
number
Returns the menu opacity as a unit interval (value in the range [0, 1]).
ui.get_size():
vector
Returns the current menu size.
ui.get_position():
vector
Returns the current menu position.
ui.get_mouse_position():
vector
Returns the current mouse position.
ui.get_binds():
table
Returns a table of pointers to hotkeys.
Hotkey
ui.get_style([ name: string ]):
color
/ table
Returns the color of the Style Option. Pass nil
to return a table with the style options.
ui.get_icon(name: string):
string
Returns the unicode converted string corresponding the fontawesome icon.
ui.create(group: string):
MenuGroup
Creates and returns a menu group object.
ui.find(category: string, tab: string, group: string, item: string):
MenuItem
Returns the MenuItem
object that corresponds to the specified path.
ui.find(category: string, tab: string, sub_tab: string, group: string, item: string):
MenuItem
Returns the MenuItem
object that corresponds to the specified path.
This can return multiple items or nil
on failure.
ui.sidebar([name: string, icon_name: string]):
string
, string
Gets or sets the sidebar tab name and an icon.
ui.localize(lang: string, str: string[, localized: string]):
string
/ nil
Returns the localized string for the specified language code. If localized
is present, the str
will be localized accordingly.
MenuGroup
group:switch(name: string[, init: boolean]):
MenuItem
Creates and returns a menu item object, or throws an error on failure.
group:slider(name: string, min: number, max: number[, init: number, scale: number, tooltip: function]):
MenuItem
Creates and returns a menu item object, or throws an error on failure.
group:combo(name: string, items: any[, ...]):
MenuItem
Creates and returns a menu item object, or throws an error on failure.
group:selectable(name: string, items: any[, ...]):
MenuItem
Creates and returns a menu item object, or throws an error on failure.
group:color_picker(name: string[, color: color]):
MenuItem
Creates and returns a menu item object, or throws an error on failure.
group:button(name: string[, callback: function, alt_style: boolean]):
MenuItem
Creates and returns a menu item object, or throws an error on failure.
group:hotkey(name: string[, default_key: number):
MenuItem
Creates and returns a menu item object, or throws an error on failure.
group:input(name: string[, text: string]):
MenuItem
Creates and returns a menu item object, or throws an error on failure.
group:list(name: string, items: any[, ...]):
MenuItem
Creates and returns a menu item object, or throws an error on failure.
group:listable(name: string, items: any[, ...]):
MenuItem
Creates and returns a menu item object, or throws an error on failure.
group:label(text: string):
MenuItem
Creates and returns a menu item object, or throws an error on failure.
đ Create the texture via the :load_image
function.
group:texture(texture: ImgObject[, size: vector, color: color, mode: string, rounding: number]):
MenuItem
Creates and returns a menu item object, or throws an error on failure.
MenuItem
item:get():
any
Returns the value of the menu item.
item:id():
number
Returns the unique id of the menu item.
item:list():
table
Returns the list of items. combo
/ selectable
menu item objects only.
item:type():
string
Returns the type of the menu item.
item:override(value: any[, ...])
Overrides the item value without changing the menu / config values. If the value
argument is nil
or missing, the override is undone.
item:get_override():
any
Returns the value of the menu item it's overriden to.
item:update(...)
Updates the values of the menu item.
item:reset()
Resets the menu item to it's original value.
item:set(value: any[, ...])
Sets the value of the menu item.
item:name([value: any])
Gets or sets the name of the menu item.
item:tooltip([value: any])
Gets or sets the tooltip of the menu item (depending on the presence of the value
parameter).
item:visibility([state: boolean])
Gets or sets the menu item visibility depending on the value of state
.
item:disabled([state: boolean])
Gets or sets the menu item disabled state depending on the value of state
.
item:set_callback(callback: function[, force_call: boolean])
Sets the callback to the specified menu item.
item:unset_callback(callback: function)
Unsets the callback that was set via the :set_callback
function.
item:color_picker([color: color]):
MenuItem
Attaches a color picker to the current menu item object.
item:create():
MenuGroup
Attaches a group (gear) to the current menu item object.
item:parent():
MenuItem
/ MenuGroup
Returns the parent object of the menu item.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
name
string
Hotkey name
mode
number
Hotkey mode (1
: Hold, 2
: Toggle)
value
any
Hotkey value
active
boolean
Hotkey state
reference
MenuItem
Pointer to the menu item
group
string
Group name
tab
string
Tab name
group
string
Group name
column
number
Optional. Column ID (1
: Left 2
: Right or nil
for automatic alignment.)
category
string
Category name, e.g. "Aimbot" or "Visuals".
tab
string
Tab name that belongs to the category.
group
string
Name of group with the item.
item
string
The needed item.
category
string
Category name, e.g. "Aimbot" or "Visuals".
tab
string
Tab name that belongs to the category.
sub_tab
string
Sub-tab name.
group
string
Name of group with the item.
item
string
The needed item.
category
string
Category name, e.g. "Aimbot" or "Visuals".
tab
string
Tab name that belongs to the category.
group
string
Name of group with the item.
item
string
The item with a group (gear) attached.
sub_item
string
The sub-item in the item group.
category
string
Category name, e.g. "Aimbot" or "Visuals".
tab
string
Tab name that belongs to the category.
sub_tab
string
Sub-tab name.
group
string
Name of group with the item.
item
string
The item with a group (gear) attached.
sub_item
string
The sub-item in the item group.
category
string
Category name, e.g. "Aimbot" or "Visuals".
tab
string
Tab name that belongs to the category.
group
string
Name of the needed group.
category
string
Category name, e.g. "Aimbot" or "Visuals".
tab
string
Tab name that belongs to the category.
sub_tab
string
Sub-tab name.
group
string
Name of the needed group.
group_name
string
Global group name, e.g. "Settings".
item_name
string
Item name, e.g. "Dpi Scale".
category
string
tab
string
sub_tab
string
group
string
item_category
string
item
string
name
string
Optional. Sidebar tab name
icon_name
string
Optional. Icon name (Brand icons are currently not supported)
lang
string
Language code.
str
string
String to localize or to get the localized string from.
localized
string
Optional. The localized variant.
name
string
Item name
init
boolean
Default value
name
string
Item name
min
number
Minimum allowed value
max
number
Maximum allowed value
init
number
Default value
scale
number
Display value multiplier. Can be used for decimal places.
tooltip
string / function
A string appends itself to the display value. A function allows you to access the raw display value and displays anything it returns.
name
string
Item name
items
any
One or more comma separated values that will be added to the combo. Alternatively, a table of strings that will be added
...
name
string
Item name
items
any
One or more comma separated values that will be added to the combo. Alternatively, a table of strings that will be added
...
name
string
Item name
color
color
Optional. Initial color value
name
string
Item name
colors
table
Table containing tables with a string index, and those tables should contain one or multiple color objects. Check UI examples.
name
string
Item name
callback
function
Optional. Function that will be called when the button is clicked
alt_style
boolean
Optional. Pass true
to enable the alternative style for the specified button
name
string
Item name
default_key
number
Optional. Default key
name
string
Item name
text
string
Optional. Default value
name
string
Item name
items
any
One or more comma separated values that will be added to the combo. Alternatively, a table of strings that will be added
...
name
string
Item name
items
any
One or more comma separated values that will be added to the combo. Alternatively, a table of strings that will be added
...
text
string
Label text
texture
ImgObject
Image object
size
vector
Optional. Size of the image
color
color
Optional. Color of the texture
mode
string
Optional. f
for fill, r
for repeat
rounding
number
Optional. Image border rounding
value
any
The value to which the menu item will be set
...
...
any
value
any
The value to which the menu item will be set
...
value
any
New name
value
any
New tooltip text
state
boolean
New visibility state
state
boolean
New disabled state
callback
function
Function that will be called when the menu item is interacted with
force_call
boolean
Pass true
to call the callback function after setup
callback
function
Lua function that was passed to the :set_callback
function
color
color
Optional. Initial color value
colors
table
Table containing tables with a string index, and those tables should contain one or multiple color objects. Check UI examples.