Skip to content

[Feature] Allow arbitrary GuiContainers to be scrollable #2771

@oznogon

Description

@oznogon

Scrolling elements are currently implemented at the GuiElement subclass level (i.e. GuiListbox, GuiScrollText). So is clipping. Implement clipping and scrolling as options for either the standard GuiContainer or as a GuiContainer subclass.

This might be accomplishable using glScissor, similar to how the radar is clipped, plus translation of the child elements on scroll events and storing and reapplying scroll offset on hide/show events.

Having scrolling GuiContainers within scrolling GuiContainers might require intersecting scissor areas.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions