Table of Contents

Method IsOnScreen

Namespace
GrindFest
Assembly
GrindFest.dll

IsOnScreen(VisualElement)

Is this element on screen at all - visible AND overlapping the root's rect?

IsVisible(VisualElement) answers a different question, and the difference is not academic: a DraggablePanel parked at its 9999 fallback is display:flex with a real 400x400 rect, so every "is it open?" check said yes while the panel sat 10 000 px to the right. Settings, Character, Achievements, Mods, Feedback and BotConfig were all in that state and all six passed the checks that existed (2026-09-17). Use this for "did it open where the player can see it".

public static bool IsOnScreen(VisualElement ve)

Parameters

ve VisualElement

Returns

bool