Giter Site home page Giter Site logo

Comments (4)

 avatar commented on August 11, 2024

We have a method under Scene class called searchAllForItemName, which I think is roughly similar to the function that you wanted to create, just that instead of searching by custom name, it would search by the actual name (prop:name).

I guess we could consider adding a method like searchAllForItemCName (or something along that line) or add a parameter on searchAllForItemName for searching by custom name rather than the actual name. (mentioning @Matrim-Cauthon and @SML-MeSo for your thoughts on this one if you guys think it's worth implementing)

There's a speed impact on using these methods since it basically iterates through all Scenes and would fetch all items within each scene, and then fetch the name using getName method. So the 'speed' of the method would most likely depend on how many items are placed on your scenes.

Also, please do note that we do not currently have any Flash Item object/class. What these translate to is that flash items would implement the base Item class, which does not have the setVisible method. We noticed that feature missing after releasing 0.7.0 version. But don't worry, we'll be releasing the next version that would include the FlashItem subclass ;)

from xjs.

hlevring avatar hlevring commented on August 11, 2024

add a parameter onsearchAllForItemName for searching by custom name rather
than the actual name

Definitely needed to be able to find items by custom name. Perhaps you may
also just consider that if cname is there then it replaces name

On Thu, Oct 8, 2015 at 2:36 PM, Daniel Cefram Ramirez <
[email protected]> wrote:

We have a method under Scene class called searchAllForItemName, which I
think is roughly similar to the function that you wanted to create, just
that instead of searching by custom name, it would search by the actual
name (prop:name).

I guess we could consider adding a method like searchAllForItemCName (or
something along that line) or add a parameter on searchAllForItemName for
searching by custom name rather than the actual name. (mentioning
@Matrim-Cauthon https://github.com/Matrim-Cauthon and @SML-MeSo
https://github.com/SML-MeSo for your thoughts on this one if you guys
think it's worth implementing)

There's a speed impact on using these methods since it basically iterates
through all Scenes and would fetch all items within each scene, and then
fetch the name using getName method. So the 'speed' of the method would
most likely depend on how many items are placed on your scenes.

Also, please do note that we do not currently have any Flash Item
object/class. What these translate to is that flash items would implement
the base Item class, which does not have the setVisible method. We
noticed that feature missing after releasing 0.7.0 version. But don't
worry, we'll be releasing the next version that would include the
FlashItem subclass ;)


Reply to this email directly or view it on GitHub
#9 (comment).

from xjs.

 avatar commented on August 11, 2024

Makes sense, we'll include that on the next version :)
That enhancement/method update will be tracked on issue #10

from xjs.

mikeybanez avatar mikeybanez commented on August 11, 2024

It appears that the question has been addressed now, so I'll be closing this item.

Changes/updates to the framework relevant to this question will be found at #10 (and possibly #22).

from xjs.

Related Issues (20)

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.