[Feature] Allow arbitrary GuiContainers to be scrollable
Nobody has claimed this yet.
- Dominant language
- Lua
- Stars
- 869
- Forks
- 222
- Avg merge
- 18h 33m
- Merged PRs (30d)
- 1
Description
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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the GuiContainer and GuiElement implementations, then compare the existing GuiListbox and GuiScrollText scrolling and the radar's glScissor clipping. Determine how scrolling and clipping should work for nested containers, including preserving offsets when hidden or shown. Done means arbitrary containers can scroll and nested clipping behaves correctly; the issue names no files or tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, lua
- Domain
- game-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100