GuiGetInputMode
From Multi Theft Auto: Wiki
This function returns the current input mode as set by guiSetInputMode. Default mode is "allow_binds".
Syntax
Returns
Returns a string defining the current input mode, potential values are:
- "allow_binds": binds are enabled, hence using a key such as t in an editbox will still activate the chatbox
- "no_binds": binds are disabled, hence using a key such as t in an editbox will not activate the chatbox
- "no_binds_when_editing": binds are always enabled except when an editable editbox or memo has input focus
Example
Click to collapse [-]
ClientaddCommandHandler( "checkmode", function () outputChatBox( string.format( "The current input mode is: '%s'", guiGetInputMode () ) ) end )
Note
This function, introduced in 1.1, is not a replacement of guiGetInputEnabled, indeed for the mode "no_binds_when_editing" the actual state of binds depends on the currently focused GUI widget. However:
- when guiGetInputMode ( ) returns "allow_binds" you can be sure that guiGetInputEnabled () will return false
- when guiGetInputMode ( ) returns "no_binds" you can be sure that guiGetInputEnabled () will return true
See Also
- getChatboxLayout
- guiBringToFront
- guiCreateFont
- guiGetAlpha
- guiGetEnabled
- guiGetFont
- guiGetInputEnabled
- guiGetInputMode
- guiGetPosition
- guiGetProperties
- guiGetProperty
- guiGetScreenSize
- guiGetSize
- guiGetText
- guiGetVisible
- guiMoveToBack
- guiSetAlpha
- guiSetEnabled
- guiSetFont
- guiSetInputEnabled
- guiSetInputMode
- guiSetPosition
- guiSetProperty
- guiSetSize
- guiSetText
- guiSetVisible
- isChatBoxInputActive
- isConsoleActive
- isDebugViewActive
- isMainMenuActive
- isMTAWindowActive
- isTransferBoxActive
Buttons
Checkboxes
Comboboxes
- guiCreateComboBox
- guiComboBoxAddItem
- guiComboBoxClear
- guiComboBoxGetItemText
- guiComboBoxSetItemText
- guiComboBoxRemoveItem
- guiComboBoxGetSelected
- guiComboBoxSetSelected
Edit Fields
Gridlists
- guiCreateGridList
- guiGridListAddColumn
- guiGridListAddRow
- guiGridListAutoSizeColumn
- guiGridListClear
- guiGridListGetItemData
- guiGridListGetItemText
- guiGridListGetRowCount
- guiGridListGetSelectedItem
- guiGridListInsertRowAfter
- guiGridListRemoveColumn
- guiGridListRemoveRow
- guiGridListSetItemData
- guiGridListSetItemText
- guiGridListSetScrollBars
- guiGridListSetSelectedItem
- guiGridListSetSelectionMode
- guiGridListSetSortingEnabled
- guiGridListGetSelectedCount
- guiGridListGetSelectedItems
- guiGridListSetColumnWidth
- guiGridListGetColumnCount
- guiGridListGetItemColor
- guiGridListSetItemColor
- guiGridListGetHorizontalScrollPosition
- guiGridListSetHorizontalScrollPosition
- guiGridListGetVerticalScrollPosition
- guiGridListSetVerticalScrollPosition
Memos
Progressbars
Radio Buttons
Scrollbars
Scrollpanes
- guiCreateScrollPane
- guiScrollPaneGetHorizontalScrollPosition
- guiScrollPaneGetVerticalScrollPosition
- guiScrollPaneSetHorizontalScrollPosition
- guiScrollPaneSetScrollBars
- guiScrollPaneSetVerticalScrollPosition
Static Images
Tab Panels
Tabs
Text Labels
- guiCreateLabel
- guiLabelGetFontHeight
- guiLabelGetTextExtent
- guiLabelSetColor
- guiLabelSetHorizontalAlign
- guiLabelSetVerticalAlign
Windows