IsHidden
Overview
Section titled “Overview”Checks if the specified PrismaView is currently hidden. This method allows you to query a view’s visibility state, which is useful for conditional UI logic and state management.
Syntax
Section titled “Syntax”bool IsHidden(PrismaView view);Parameters
Section titled “Parameters”view (required)
Section titled “view (required)”- Type:
PrismaView - Description: The
PrismaViewto check for hidden state
Return Value
Section titled “Return Value”- Type:
bool - Returns:
trueif the view is hidden (or not found),falseif the view is visible
Usage Examples
Section titled “Usage Examples”// Check if view is hiddenif (PrismaUI->IsHidden(view)) { SKSE::log::info("View is hidden");}Behavior Details
Section titled “Behavior Details”- Returns
trueif the view’sisHiddenflag is set totrue - Returns
falseif the view is visible - Returns
trueif the view is not found (with a warning logged)
Best Practices
Section titled “Best Practices”- State Validation: Check visibility before show/hide operations
- Conditional Logic: Use for UI state-dependent behavior
- Toggle Operations: Essential for implementing toggle functionality
- Error Handling: Check for
truereturn with invalid views