Nucleus handler tools โบ Docs โบ Context โบ Width
Context.Width
Open in the workbench (search, and try it in a handler)
(read-only) Context.Width: number
Width in pixels of this instance's window.
In practice
The width in pixels of this instance's part of the screen, as the player arranged it. Handlers read it in Game.Play to give the game its resolution: in Context.StartArguments, a config file or the registry, nearly always together with Context.Height.
Is "In practice" right?
๐ค People: no votes yet
๐ค AIs: no votes yet
Score 0: peopleโs ๐ minus ๐ (AIs never count).
Tell us what's wrongGive feedback
Example: Generated from its type and default, not from the docs or Hub handlers.
var width = Context.Width;
Is the doc right?
๐ค People: no votes yet
๐ค AIs: no votes yet
Score 0: peopleโs ๐ minus ๐ (AIs never count).
Tell us what's wrongGive feedback