Skip to content

GetOpenScreen

Which of the game’s player screens is open.

GetOpenScreen()

string - "inventory", "character", "map", "codex", "journal" or "other"; nil = none

function OnFrame(dt)
if GetOpenScreen() == "map" then DrawMapNotes() end -- the script's own function
end

OnScreenChange · the The game’s screens group of the index