IsChatBoxInputActive: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(New page: __NOTOC__ {{Client functions}} This function returns whether the ingame chatbox is being used (accepting chatbox input) or not. ==Syntax== <syntaxhighlight lang="lua"> bool isChatBoxInputActive () </c...)
 
 
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
__NOTOC__  
__NOTOC__  
{{Client functions}}
{{Client function}}
This function returns whether the ingame chatbox is being used (accepting chatbox input) or not.
This function returns whether the ingame chatbox is being used (accepting chatbox input) or not.


Line 6: Line 6:
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
bool isChatBoxInputActive ()
bool isChatBoxInputActive ()
</syntaxhighlight>  
</syntaxhighlight>
{{OOP||[[GUI widgets|GuiElement]].isChatBoxInputActive|chatBoxInputActive|}}


===Returns===
===Returns===
Line 12: Line 13:


==Example==  
==Example==  
This example does...
This example shows how you can check if a user has the chat box active (and presumably typing a message).
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
--This line does...
if isChatBoxInputActive() then
blabhalbalhb --abababa
    outputChatBox("You're typing")
--This line does this...
end
mooo
</syntaxhighlight>
</syntaxhighlight>


==See Also==
==See Also==
{{GUI_functions}}
{{GUI_functions}}
[[Category:Needs Example]]
{{GUI_events}}

Latest revision as of 17:21, 21 November 2018

This function returns whether the ingame chatbox is being used (accepting chatbox input) or not.

Syntax

bool isChatBoxInputActive ()

OOP Syntax Help! I don't understand this!

Method: GuiElement.isChatBoxInputActive(...)
Variable: .chatBoxInputActive


Returns

Returns true if the chatbox is receiving input, false if not active.

Example

This example shows how you can check if a user has the chat box active (and presumably typing a message).

if isChatBoxInputActive() then
    outputChatBox("You're typing")
end

See Also

General functions

Browsers

Buttons

Checkboxes

Comboboxes

Edit Boxes

Gridlists

Memos

Progressbars

Radio Buttons

Scrollbars

Scrollpanes

Static Images

Tab Panels

Tabs

Text Labels

Windows

Input

GUI