Giter Club home page Giter Club logo

Comments (7)

Guillemsc avatar Guillemsc commented on September 26, 2024

Hey @digiwombat, thanks for taking the time to report all the bugs and suggestions! I really helps me improve the tool :)
During this week I will look into every one of them and start fixing/improving.

from juce-feedbacks.

digiwombat avatar digiwombat commented on September 26, 2024

No worries. Thanks for the tools, man. Hopefully when I get some free time I can dig in a bit more and maybe add some more stuff with a proper pull request. Haha.

from juce-feedbacks.

Guillemsc avatar Guillemsc commented on September 26, 2024

@digiwombat Is there a particular reason why you use the AnchorMin as the base, and then you get the AnchorMax with the offset? How do you normally use this? Doesn't it make more sense that the tweened Anchor position is the center between the Min and the Max?

Example: If you have AnchorMin of x:0 y:0, and AnchorMax of x:1 y:1, the position is x:0.5 y:0.5. So if you set the position x:0, y:0 on the feedback, the final values are AnchorMin of x:-0.5 y:-0.5, and AnchorMax of x:0.5 y:0.5.

I don't know if what I'm saying makes sense. It's just a matter of usability, and how to make it as clear as possible.

from juce-feedbacks.

digiwombat avatar digiwombat commented on September 26, 2024

The short version is I just adapted logic of this Unity Screen Transition page: https://docs.unity3d.com/2020.1/Documentation/Manual/HOWTO-UIScreenTransition.html

I think ideally you'd be able to set Min and Max values independently (which is how must things handle it and allows you to do more complex shape stuff). However, I mostly just arbitrarily picked a value to use as my baseline (the Min) and used the calculation as a way to make sure the shape was maintained over the tween. The reason I did that was because I wasn't sure how to get clear labeling for the two different Vector2s with your attributes and would ideally have done a custom layout for Anchor values to begin with but I'm the only programmer on my game so I went with the quick and dirty option.

Any version that doesn't allow editing of both Min and Max values independently is going to be confusing and I'd definitely recommend allowing the editing of both and having a UI which makes it clear what you're editing.

from juce-feedbacks.

Guillemsc avatar Guillemsc commented on September 26, 2024

What do you think about two different feedbacks, one for min and another for max? Or it would be better to have both combined on one feedback?

from juce-feedbacks.

digiwombat avatar digiwombat commented on September 26, 2024

It should definitely be both in one Feedback, I think since the most common use case is going to be tweening both min and max to maintain the same size of RectTransform. The other, less common, use case could be achieved by using two anyway, so the people who need it could use it that way, whereas I'd guess 99% of Anchor-based tweens are just going to be moving something onto the screen or off of the screen, which requires tweening Min and Max at the same ratio for Stretched canvases to keep the size constant.

from juce-feedbacks.

Guillemsc avatar Guillemsc commented on September 26, 2024

Closing this. New features are available on the last release. Thanks for your suggestions, they have been very useful :)
Don't hesitate on reaching again if you find more problems/suggestions.

from juce-feedbacks.

Related Issues (15)

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.