Scripting/Client/GUI/RescaleGUIElement

Recomputes position, size and font from the size the element was designed at, relative to the current screen. Call it for each element from onGameWindowResize; it never compounds.

Syntax

RescaleGUIElement(element)

Arguments

Returns

bool

Example

function onScriptLoad()
{
	local result = RescaleGUIElement( 0 );
	MessagePlayer( "RescaleGUIElement returned: " + result, player );
}

This sample was generated from the signature – adapt the values to your gamemode.

Section: Layer functions

Categories: Client functions | Layer functions