Lua API
  • 🔎Overview
  • Introduction
    • 🚀Creating scripts
      • 🧠First Steps
      • 🖥️Adding UI
      • 📚Creating Libraries
  • API
    • 🌐Global Functions
    • ⚙️Instances
      • 🔢Math
      • ☎️Events
        • event_t
      • 🎮Game
        • global_vars_t
        • cengine_client
          • cnet_chan
        • ccsgo_input
        • cinput_system
        • cgame_ui_funcs
        • ccvar
          • convar
      • 🕹️Mods
        • events_t
      • ✏️Draw
        • ⚙️Types
          • ⚙️rect
          • ⚙️vec2
          • ⚙️color
          • ⚙️accessor
        • 🖥️Adapter
        • ✏️Layer
          • outline_mode
          • rounding
          • glow_parts
          • text_params
            • text_alignment
          • shadow_dir
          • command
            • render_mode
        • 🖼️Managed
          • 🖼️texture
            • svg_texture
            • animated_texture
          • 🖼️shader
          • ™️font_base
            • font
            • font_gdi
            • glyph_t
            • font_flags
      • 🙋Entities
        • entity_list_t
          • entity_entry_t
        • base_entity
          • schema_accessor_t
          • cs2_weapon_base_gun
          • cs2_player_pawn
          • cs2_player_controller
          • cs2_weapon_base
          • cs2_grenade_projectile
        • ccsweapon_base_vdata
          • cfiring_mode
        • chandle
        • csweapon_mode
        • csweapon_type
        • weapon_id
        • csweapon_category
        • observer_mode_t
      • 🖥️Gui
        • ⚙️Types
          • ⚙️bits
          • ⚙️control_id
        • context
          • user_t
        • context_input
          • mouse_button
        • notification_system
          • notification
        • control
          • control_type
          • value_param
          • checkbox
          • slider
          • label
          • selectable
          • button
          • color_picker
          • spacer
          • text_input
          • combo_box
          • image
        • container
          • control_container
            • layout
            • group
      • ⚙️Utils
    • ⚙️Types
      • ⚙️ptr
      • ⚙️ref_holder_t
      • ⚙️vector
      • ⚙️vector4d
      • 🎮veccolor
      • 🎮color
      • 🎮cview_setup
      • 🎮cuser_cmd
      • 🎮game_event_t
    • 🟰Enums
      • 🟰client_frame_stage
      • 🟰input_bit_mask
Powered by GitBook

© 2025 - FATALITY

On this page
  • default
  • button
  • checkbox
  • child_tab
  • color_picker
  • combo_box
  • control_container
  • group
  • hotkey
  • hsv_slider
  • label
  • layout
  • list
  • loading
  • notification_control
  • popup
  • selectable
  • slider
  • spacer
  • tab
  • tabs_layout
  • weapon_tabs_layout
  • text_input
  • toggle_button
  • window
  • widget
  • settings
  • image
Export as PDF
  1. API
  2. Instances
  3. Gui
  4. control

control_type

This enum determines the current control's type.

You can only construct types that are listed below in the navigation, and only if those have a constructor.

default

Default control. You are very unlikely to ever stumble upon this type.


button

Button control.


checkbox

Checkbox control.


child_tab

Child tab control. Only possible to find within tab_layout controls.


color_picker

Color picker control.


combo_box

Combo box control.


control_container

Default control with a container. You are very unlikely to ever stumble upon this type.


group

Groupbox control.


hotkey

Hotkey input control.


hsv_slider

HSB slider (Saturation/Brightness box, Hue slider and Opacity slider).


label

Label control.


layout

Layout control.


list

Listbox control.


loading

Loading spinner.


notification_control

Notification item control. One of the types in the core UI framework, never actually used within Fatality.


popup

Basic popup window.


selectable

Basic selectable item.


slider

Slider item. This type doesn't tell the internal value type used.


spacer

Spacer control.


tab

Horizontal or vertical tab.


tabs_layout

A variant of layout that is used specifically to operate tabs.


weapon_tabs_layout

A variant of layout that is used specifically to operate weapon tabs.


text_input

Text input control.


toggle_button

A variant of button that looks like button, but works like a checkbox.


window

Basic window control.


widget

Basic widget control.


settings

Settings control.


image

Image control.

PreviouscontrolNextvalue_param

Last updated 3 months ago

⚙️
🖥️