Giter VIP home page Giter VIP logo

Comments (7)

Guillemsc avatar Guillemsc commented on June 11, 2024 1

Documentation here.

from juce-feedbacks.

digiwombat avatar digiwombat commented on June 11, 2024 1

Awesome, man. Thanks for the quick work. :D This will definitely help for more complex state control with my many UI elements.

An unrelated aside: Sorry to see the weird anti-open source haters that seem to be following you around. If open source alternatives to commercial projects were somehow a bad thing, the entire scene wouldn't exist. Thanks again for the hard work.

from juce-feedbacks.

github-actions avatar github-actions commented on June 11, 2024

Thanks for contributing to Juce-Feedbacks' first issue

from juce-feedbacks.

Guillemsc avatar Guillemsc commented on June 11, 2024

Hey @digiwombat, first of all, thanks for reaching out, I'm glad you like the tool :D

On the feature request, It actually sounds like a very cool idea, that I did not thought about (since I always use direct references for almost everything), but your approach could be very useful on certain situations, or for people that don't like using direct references.

I like the example that you proposed, but what would you think about, instead of doing FeedbacksManager.Instance.PlayFeedbacks("ShowUI"); we do FeedbacksManager.Instance.GetFeedback("ShowUI").Play();? That way you can use directly all the functionality of the component, without relying on a generic function.

I will start working on this asap, and I will probably have this ready in 6-7 days.

from juce-feedbacks.

Guillemsc avatar Guillemsc commented on June 11, 2024

I also added a new category on the README.md with upcoming features.

from juce-feedbacks.

Guillemsc avatar Guillemsc commented on June 11, 2024

As the development of the request was very small, the feature is already here ready to use. A new version was also submitted to the AssetStore, and will ve available on the following 1-2 days. The documentation for this is still not ready, but if you want to try this out:

Select the new toggle on any FeedbacksPlayer named Used By Script, and set the id that you want
image

Then on the code, just do: (while using namespace Juce.Feedbacks)
FeedbacksPlayer player = JuceFeedbacks.GetFeedbacksPlayer(id);
or
bool found = JuceFeedbacks.TryGetFeedbacksPlayer(id, out player))
to get the FeedbacksPlayer component

and finally
player.Play();

Keep in mind that if you don't select the toggle Used By Script, you won't be able to get the FeedbacksPlayer from the code.

from juce-feedbacks.

Guillemsc avatar Guillemsc commented on June 11, 2024

No problem! I hope you find it useful :)

I don't think there are any haters, I already recieved threats from the creator of MMFeedbacks, and my guess is that he's the only one sending me bad comments/reviews. But in the end, I really don't mind.

I'm closing this, since it's already resolved. If you find an issue or an improvement, you can open another issue.

Thank you very much for the contribution and the thoughts :)

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.