SetDebugViewActive

From Multi Theft Auto: Wiki
Jump to: navigation, search

This function enables or disables the debug window.

Syntax

bool setDebugViewActive ( bool enabled )

OOP Syntax Help! I don't understand this!

Method: GuiElement.setDebugViewActive(...)
Variable: .debugViewActive
Counterpart: isDebugViewActive

Required Arguments

  • enabled: true if debug window should be visible, false otherwise.

Returns

Returns true, false if invalid parameters are passed.

Example

This example enables or disables the debug window.

function enableDebug()
	local state = not isDebugViewActive()
	setDebugViewActive(state)
end
addCommandHandler("debug", enableDebug)

See Also

General functions

FROM VERSION 1.5.6 r16361 ONWARDS

Browsers

Buttons

Checkboxes

Comboboxes

Edit Boxes

Gridlists

FROM VERSION 1.5.6 r16204 ONWARDS

Memos

Progressbars

Radio Buttons

Scrollbars

Scrollpanes

Static Images

Tab Panels

Tabs

Text Labels

Windows

Input

GUI