-
Notifications
You must be signed in to change notification settings - Fork 0
scrollable
s0600204 edited this page May 2, 2016
·
1 revision
Note: This branch hasn't been pushed from my local repo yet, so don't worry if you can't find it.
Note: You will need you to recompile 0ad in order to try out the changes in this branch.
My attempt at ticket #3038. I have implemented a new UI element scrollable. It inherits from both CImage and CScrollbarOwner. It can be used as a simple replacement for any <object/> or <object type="image"/> UI element : <object type="scrollable"/>.
This may not be the optimal solution, and other suggestions are welcome.
- Clipping, that is to say elements being hidden when not 'inside' the visual boundaries of the parent object, is not implemented. I'm actually a little unsure how to implement this as I have a feeling it might require major modification to how the UI system currently works within 0AD.