Files
Bubberstation/tgui/packages/tgui-dev-server
SkyratBot e7573ea80f [MIRROR] Fix ExoFab UI and Section bugs, improve Tabs, upgrade deps (#3213)
* Fix ExoFab UI and Section bugs, improve Tabs, upgrade deps (#56721)

    Fixes #56237
    Unblocks #56704

Besides fixing the above mentioned issue with ExoFab UI, I fixed a few tgui component bugs and added a few improvements. Not really atomizable, sorry.
Section changes

    level property is now gone, section level is automatically calculated.
    Nested sections automatically become transparent.
    Nested sections are now properly incapsulated and won't inherit properties of parent sections.
        This allows using nested non-scrollable sections, while parent is, for example, scrollable.

Tabs changes

    Tabs without a parent section will pretend they are a section (and will look as such, with dark background).
    Top corners of tabs are a bit rounded to make it look more like a tab.
    Background color for selected and hovered tabs (previously it was just an underline).
    2px margin around the tabs, to make them stand out a bit from the section background.

Two new props:

    fill - Same as <Section fill>
    fluid - Tabs use full width of the container.

scrollable property was not implemented because it's a bit complicated (requires converting it into a class, registering its scrollable node with tgui, etc). If you need scrollable, just wrap tabs with a Section like a good man.

* Fix ExoFab UI and Section bugs, improve Tabs, upgrade deps

Co-authored-by: Aleksej Komarov <stylemistake@gmail.com>
2021-02-08 23:49:17 +00:00
..