Garry's Mod Wiki

Garry's Mod Wiki

  PANEL:OnScreenSizeChanged( number oldWidth, number oldHeight, number newWidth, number newHeight )

Description

Called when the player's screen resolution of the game changes.

ScrW and ScrH will return the new values when this hook is called.

Arguments

1 number oldWidth
The previous width of the game's window
2 number oldHeight
The previous height of the game's window
3 number newWidth
The new/current width of the game's window.
4 number newHeight
The new/current height of the game's window.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...