Skip to content

scrollable

s0600204 edited this page May 2, 2016 · 1 revision

scrollable

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.

Known problems:

  • 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.

0AD - Local

Home


Current

3670_reqTooltips - trac

gatherer_count

rmgen_walls - trac / phab

scrollCleanup - phab

horiz_scroll - ...


Abandoned

civselect

cts - trac

maxSize - trac


Guides

Adding/Removing Resources

Clone this wiki locally