User Tools

Site Tools



gui_api

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
gui_api [2024/06/23 13:08] – [Widgets Utilities] husbandomaxgui_api [2024/06/23 13:09] (current) – [Layout] husbandomax
Line 324: Line 324:
     *Returns: //number//  FontSize + style.FramePadding.y * 2 + style.ItemSpacing.y (distance in pixels between 2 consecutive lines of framed widgets)     *Returns: //number//  FontSize + style.FramePadding.y * 2 + style.ItemSpacing.y (distance in pixels between 2 consecutive lines of framed widgets)
  
 +  ***''GUI:BeginTable()''**
 +    *Description: Begins a new table.
  
 +  ***''GUI:EndTable()''**
 +    *Description: Ends the current table.
 +
 +  ***''GUI:TableNextRow()''**
 +    *Description: Moves to the next row in the table.
 +
 +  ***''GUI:TableNextColumn()''**
 +    *Description: Moves to the next column in the current row of the table.
 +
 +  ***''GUI:TableSetColumnIndex(//number// column_index)''**
 +    *Description: Sets the current column index.
 +    *Parameter:
 +    *column_index: //number// — The index of the column to set.
 +
 +  ***''GUI:TableGetColumnIndex()''**
 +    *Returns: //number// — The current column index.
 +
 +  ***''GUI:TableGetRowIndex()''**
 +    *Returns: //number// — The current row index.
 +
 +  ***''GUI:TableGetColumnCount()''**
 +    *Returns: //number// — The //number// of columns in the table.
 +
 +  ***''GUI:TableGetColumnFlags(//number// column_index)''**
 +    *Returns: //number// — The flags of the specified column.
 +    *Parameter:
 +    *column_index: //number// — The index of the column.
 +
 +  ***''GUI:TableSetBgColor(//number// color)''**
 +    *Description: Sets the background color for the table.
 +    *Parameter:
 +    *color: //number// — The color value.
 +
 +  ***''GUI:TableSetColumnWidth(//number// column_index, //number// width)''**
 +    *Description: Sets the width of the specified column.
 +    *Parameters:
 +    *column_index: //number// — The index of the column.
 +    *width: //number// — The width to set.
 +
 +  ***''GUI:TableSetColumnSortDirection(//number// column_index, //boolean// ascending)''**
 +    *Description: Sets the sort direction for the specified column.
 +    *Parameters:
 +    *column_index: //number// — The index of the column.
 +    *ascending: //boolean// — true for ascending, false for descending.
 +
 +  ***''GUI:TableSetupColumn(//string// label, //number// flags, //number// init_width_or_weight)''**
 +    *Description: Sets up a column with the specified label and parameters.
 +    *Parameters:
 +    *label: //string// — The label of the column.
 +    *flags: //number// — The flags for the column.
 +    *init_width_or_weight: //number// — The initial width or weight of the column.
 +
 +  ***''GUI:TableHeadersRow()''**
 +    *Description: Adds a row of headers to the table.
 +
 +  ***''GUI:TableHeader(//string// label)''**
 +    *Description: Adds a header to the table.
 +    *Parameter:
 +    *label: //string// — The label of the header.
 +
 +  ***''GUI:TableSetupScrollFreeze(//number// cols, //number// rows)''**
 +    *Description: Freezes the specified number of columns and rows for scrolling.
 +    *Parameters:
 +    *cols: //number// — The number of columns to freeze.
 +    *rows: //number// — The number of rows to freeze.
 +
 +  ***''GUI:TableGetColumnName(//number// column_index)''**
 +    *Returns: //string// — The name of the specified column.
 +    *Parameter:
 +    *column_index: //number// — The index of the column.
 +
 +  ***''GUI:TableSetColumnEnabled(//number// column_index, //boolean// enabled)''**
 +    *Description: Sets the specified column as enabled or disabled.
 +    *Parameters:
 +    *column_index: //number// — The index of the column.
 +    *enabled: //boolean// — true to enable, false to disable.
 +
 +  ***''GUI:BeginTabBar()''**
 +    *Description: Begins a new tab bar.
 +
 +  ***''GUI:EndTabBar()''**
 +    *Description: Ends the current tab bar.
 +
 +  ***''GUI:BeginTabItem(//string// label)''**
 +    *Description: Begins a new tab item with the specified label.
 +    *Parameter:
 +    *label: //string// — The label of the tab item.
 +
 +  ***''GUI:EndTabItem()''**
 +    *Description: Ends the current tab item.
 +
 +  ***''GUI:TabItemButton(//string// label)''**
 +    *Description: Adds a button to the tab item with the specified label.
 +    *Parameter:
 +    *label: //string// — The label of the button.
 +
 +  ***''GUI:SetTabItemClosed(//string// label)''**
 +    *Description: Closes the tab item with the specified label.
 +    *Parameter:
 +    *label: //string// — The label of the tab item to close.
 ===Cursor=== ===Cursor===
   ***''GUI:GetCursorPos( )''**   ***''GUI:GetCursorPos( )''**
gui_api.1719148100.txt.gz · Last modified: 2024/06/23 13:08 by husbandomax