Giter Club home page Giter Club logo

Comments (7)

zicklag avatar zicklag commented on May 30, 2024 1

Almost finished! Got it hooked up to the ECS. Needs a change to RAUI that still needs review, but I think we'll be able to make it work somehow.

We can now get access to the Bevy World inside of the widget components allowing us to send events, mutate entities, read resources, etc. Already the Radishmark examle is using it to display the FPS counter and the new UI example can send events to move the background image when you click the button!

ui

from bevy_retrograde.

zicklag avatar zicklag commented on May 30, 2024

It will take more investigation, but I think building on top of Iced might be a good idea. It's so modularized that we could potentially just take it's very core features and the Elm-like runtime and then totally design our own widgets and layout stuff to be simple however we need it for Bevy Retro.

We could try out Bevy's UI, too, but I have a feeling using Bevy's UI with our own renderer will not work quite right, and the I think Bevy UI is going to be changing a lot so I'm not sure that I want to bet on it just yet. Not that Iced isn't changing either, I just feel that it's going to be more fleshed out.

from bevy_retrograde.

zicklag avatar zicklag commented on May 30, 2024

And I'm re-thinking that again, actually. We've already got the ECS for state storage so the ELM architecture might not make a ton of sense here. Anyway, going to be doing some searching around and running experiments.

from bevy_retrograde.

zicklag avatar zicklag commented on May 30, 2024

Just finished implementing render hooks which give us a way to modularly extend the renderer. This will allow us to add the UI renderer as a separate render hook.

For UI we are looking into using the RAUI crate which appears to have all the features we need.

from bevy_retrograde.

zicklag avatar zicklag commented on May 30, 2024

Great progress has been made supporting UI with RAUI: RAUI-labs/raui#17!

There's currently an example that needs work, but is functional: https://github.com/katharostech/bevy_retro/blob/8a44707cb1324951127b62c612d061862dd745c0/examples/ui.rs#L1

bevyRetroUi

from bevy_retrograde.

zicklag avatar zicklag commented on May 30, 2024

Got the rendering finished up, just have to get it hooked up so you can interact with the ECS world somehow. We've gotten a good rendering example going now:

working-button

from bevy_retrograde.

zicklag avatar zicklag commented on May 30, 2024

Well, I'm going to consider UI "finished"! There might be more work to do, but I'll create more issues for those. Our PR to RAUI has been accepted and should be merged soon and UI is usable right now in Bevy Retro as it points to our RAUI fork.

🎉 🎉 🎉

from bevy_retrograde.

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.