IsChatBoxInputActive: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
Line 12: Line 12:


==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() == true then
blabhalbalhb --abababa
    outputChatBox("You're typing")
--This line does this...
end
mooo
</syntaxhighlight>
</syntaxhighlight>



Revision as of 00:55, 20 January 2008

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

Syntax

bool isChatBoxInputActive ()

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() == true 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