Giter Site home page Giter Site logo

unitydynamicpanels's People

Contributors

i-xt avatar yasirkula avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

unitydynamicpanels's Issues

[Feature Request] Ability to preview layouts at Edit time

Right now there is not a way to see the final layout at Edit time, you have to run to see it constructed. It would be nice to have a the Canvas automatically build the Panels as the settings are being tweaked or at a minimum a button in the Canvas inspector to build the layout so you can see what it will look like without running.

Collapsible panels

I'm curious if it might be possible to support collapsible panels, similar to these ones in Blender:
GIF 2-13-2022 2-14-09 PM

It would probably only make sense to allow docked panels to be collapsed, and I think ideally it should be optionally enabled for individual panels.

MIN_SIZE_TOLERANCE check does not account for negative numbers

This issue is pretty widespread. In the resizing logic you're doing this a lot:

float flexibleWidth = newSize.x - element.Size.x;
if(flexibleWidth > MIN_SIZE_TOLERANCE)

Which is supposed to check if our size delta is sufficiently large to warrant a change. However, this does not account for when flexibleWidth is negative... meaning you effectively can't shrink a panel using ResizeElementTo. It should check absolute value when doing this comparison. Here's my solution:

	private const float MIN_SIZE_TOLERANCE = 1E-4f;
        protected bool OutsideMinSizeTolerance(float f)
        {
            return Mathf.Abs(f) > MIN_SIZE_TOLERANCE;
        }

[Suggestion] Close Button

Seems a bit silly, but in Unity, you can close panels by right clicking them and clicking "Close Tab" or the "X" button.

image

It's great that you can already do this using PanelTab.Destroy(), but a in-built "X" button would be nice.

Other than that, really well done in terms of ease of going from a random RectTransform to a panel managed by your system.

Notification delegates for individual Panels and Tabs

OnPanelClosed and OnTabClosed works globally for all panels/tabs.
I would love to be able to define different delegate methods for different tabs. This way I could specify individual behavior on close or even make some tabs closeable and others not.
Sadly I'm not experienced with C# delegates so I'm having a hard time thinking of a workaround that works for me.

Thanks for this great Plugin!

Information about InternalSettings

I'm making some pretty substantial changes to this code and I can't for the life of me figure out what the purpose of the InternalSettings design pattern is. From what I can tell it mostly just contains passthrough functions for the owning class. Why oh why is it written like this? Where did the idea come from? What does it accomplish?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.