system.IsWindowed

From Garry's Mod
Jump to: navigation, search
 system.IsWindowed( )

Contents

Description

Returns whether the game is being run in a window or in fullscreen (you can change this by opening the menu, clicking 'Options', then clicking the 'Video' tab, and changing the Display Mode using the dropdown menu):

DisplayModeDropdown.jpeg

Returns

boolean

Is the game running in a window?

Examples

Example

If the game is windowed, then the game window will flash

if system.IsWindowed() then
	system.FlashWindow()
end


Personal tools
Navigation