Skip to content

popout[n]

Extra windows that show pieces of the game - your lanes, a fighter, the score - anywhere on the screen. Borderless, see-through, always on top.

How to use it

popout[0] to popout[7] - set show to a list of parts and the window opens, "" closes it. A part shown in a pop-out leaves the game window (unless keep). Pop-outs need a system that lets programs place windows (not Wayland) and the player's OK (Options › MineFunkin › Song effects › Let songs use windows).

The whole picture: Game window and pop-outs.

Example code

-- Your fighter jumps out of the game, onto the desktop next to it.
function onEvent(p)
    popout[0].show = "player"
    tween(popout[0].x, -400, beats(2), "backOut")
    after(beats(8), function() reset(popout[0], beats(1)) end)
end

Properties

Property Kind Default
popout[n].show text "" What it shows: one or more parts, separated by commas - …
popout[n].x number 0 Moved to the right from its home (where its parts are in the game window), in screen …
popout[n].y number 0 Moved down from its home, in screen pixels.
popout[n].width number 0 Its width in pixels; 0 = just big enough for its parts.
popout[n].height number 0 Its height in pixels; 0 = just big enough for its parts.
popout[n].zoom number 1 How big its parts are drawn (1 = as big as in the game window).
popout[n].cropX number 0 What it looks at, moved from its parts' middle to the right, in the pop-out's own pixels …
popout[n].cropY number 0 The same downwards.
popout[n].alpha number 1 Its opacity (0 = hidden).
popout[n].keep switch false true = its parts stay in the game window too (a copy instead of a move).
popout[n].view choice "full" For a fighter in a fight: "full" = the whole fighter, big, framed to fit; "camera" = …
popout[n].homeX number, read 0 Where its middle is on the desktop while x is 0, in pixels.
popout[n].homeY number, read 0 Where its middle is on the desktop while y is 0, in pixels.
popout[n].open switch, read false Whether the window is really there (false: closed, switched off, or this computer can't).
popout[n].status text, read "closed" What it does: "closed", "opening", "open", "off" (switched off), "unsupported" …

popout[n].show

text popout[n].show = ""

What it shows: one or more parts, separated by commas - "player", "strums", "left, right", "score, health". "" = closed.

popout[n].x

number popout[n].x = 0

pixels

Moved to the right from its home (where its parts are in the game window), in screen pixels.

popout[n].y

number popout[n].y = 0

pixels

Moved down from its home, in screen pixels.

popout[n].width

number popout[n].width = 0

0 – 8192pixels

Its width in pixels; 0 = just big enough for its parts.

popout[n].height

number popout[n].height = 0

0 – 8192pixels

Its height in pixels; 0 = just big enough for its parts.

popout[n].zoom

number popout[n].zoom = 1

0.05 – 20

How big its parts are drawn (1 = as big as in the game window).

popout[n].cropX

number popout[n].cropX = 0

pixels

What it looks at, moved from its parts' middle to the right, in the pop-out's own pixels (after the zoom). With a small width this picks the cut-out - a facecam.

popout[n].cropY

number popout[n].cropY = 0

pixels

The same downwards.

popout[n].alpha

number popout[n].alpha = 1

0 – 1share of the screen

Its opacity (0 = hidden).

popout[n].keep

switch popout[n].keep = false

true = its parts stay in the game window too (a copy instead of a move).

popout[n].view

choice popout[n].view = "full"

For a fighter in a fight: "full" = the whole fighter, big, framed to fit; "camera" = as the fight camera sees it, the window as big as the game's picture.

One of: "full", "camera".

popout[n].homeX

number popout[n].homeX = 0

read onlypixels

Where its middle is on the desktop while x is 0, in pixels.

popout[n].homeY

number popout[n].homeY = 0

read onlypixels

Where its middle is on the desktop while y is 0, in pixels.

popout[n].open

switch popout[n].open = false

read only

Whether the window is really there (false: closed, switched off, or this computer can't).

popout[n].status

text popout[n].status = "closed"

read only

What it does: "closed", "opening", "open", "off" (switched off), "unsupported" (this system can't place windows), "over budget" (too many big pop-outs: its parts stay in the game window for a moment), "retrying" (couldn't be opened, tried again soon), "failed" (given up for this song).