REDNODE / DOCS

Fill test

Example apps / fill-test / v0.1.0

Overlay app

A see-through page that covers the whole game view at any aspect ratio, with "fill": "screen": a frame on its four edges, its size in the middle, and a panel kept at the right edge.

Simulated game
Mod log

    The preview is a browser window, so the page takes the preview's size rather than a game view's.

    How it works

    The manifest says "fill": "screen". REDnode makes the page 1080 high and as wide as the game view in the same scale: 1920 at 16:9, 2580 at 21:9, 3840 at 32:9. It sits at the top-left, cannot be dragged or resized, and keeps no saved place.

    The page lays out from innerWidth and follows resize, which comes when the game's resolution changes. Only the frame, the size and the panel are drawn, so clicks elsewhere reach the game.

    What it uses

    "fill": "screen" innerWidth resize event

    Try this

    Use it

    Copy the files into red4ext/plugins/REDnode/apps/fill-test/ in the game folder, or start your own package from them: change id and name in the manifest first. The whole folder is on GitHub.