Giter Site home page Giter Site logo

UI editor about flixel-ui HOT 10 OPEN

haxeflixel avatar haxeflixel commented on July 22, 2024
UI editor

from flixel-ui.

Comments (10)

kevinmw avatar kevinmw commented on July 22, 2024

I quite agree with you

from flixel-ui.

larsiusprime avatar larsiusprime commented on July 22, 2024

So, obviously we can use Flixel-UI to make a ui builder for flixel-ui. So the question is what do we want this thing to do? Here's what I'm thinking:

  1. Call up in-game (kind of like the debugger)
  2. Ability to resize/move around so it's not in your way and you can actually use it
  3. Ability to select objects on the screen
  4. Property inspector for selected objects
    • Expose variables as editable widgets (Editable text fields, numeric steppers, etc)
    • Show raw XML
    • Optionally reload interface on change (hopefully fast enough to use in real time)
  5. Save current layout as XML (pick place to save)
  6. Save xml to your assets folder

Anything else?

from flixel-ui.

impaler avatar impaler commented on July 22, 2024

This may also give you ideas for an initial version http://www.bit-101.com/MinimalDesigner/
Expose variables can maybe look like this properties panel, I like the rest of your ideas.

from flixel-ui.

larsiusprime avatar larsiusprime commented on July 22, 2024

Yeah, the real question is whether it should be it's own standalone application, or something you can run from within your app (probably with a compiler flag so the UI-editor bloat doesn't appear in a release version).

If I do it right, presumably both would work.

from flixel-ui.

impaler avatar impaler commented on July 22, 2024

Interesting I have only used ui editors as a separate tool, if you could
make quick edits in game that would be pretty cool. If it does this in your
game, you could maybe make use the native targets file.io to update the
ui's xml file. I remember you added better indentation / readability etc
with the parser?

Also feel free to make use of any flixel-tools commands for it. Maybe there
could be a flixel ui -n "MainMenu" to create a new template. It could
then have an option to launch this ui editor automatically, I would be
happy to add this.

Maybe even a different extension to flixel-ui xml would be useful eg
main-menu.flxui.

On Sat, Aug 31, 2013 at 12:25 PM, Lars Doucet [email protected]:

Yeah, the real question is whether it should be it's own standalone
application, or something you can run from within your app (probably with a
compiler flag so the UI-editor bloat doesn't appear in a release version).

If I do it right, presumably both would work.


Reply to this email directly or view it on GitHubhttps://github.com//issues/5#issuecomment-23599093
.

from flixel-ui.

Gama11 avatar Gama11 commented on July 22, 2024

Not sure about compiler flags for this. I'm definitely all for an in-game editor, that would be amazing.

How about realizing this via a FlxPlugin? The user would then need to create and add it himself to use the editor:

FlxG.plugins.add(new FlxUIEditor());

from flixel-ui.

larsiusprime avatar larsiusprime commented on July 22, 2024

Yeah, that might be the best bet (making it as a plugin). That seems really straightforward and easy.

As for flixel-tools, I'm all for that, I just don't know much about the system. It'll be a while more before I get started on this, but if you guys want to start working on a "wish list" or hammering out some details, I'll come back when we have a clearer picture of what we want to do and start implementing it.

from flixel-ui.

IkonOne avatar IkonOne commented on July 22, 2024

Has anything been done on this since Aug 2013? I was trying to just get a live preview going and was having some issues that I am hoping someone else might have solved.

from flixel-ui.

larsiusprime avatar larsiusprime commented on July 22, 2024

There is not currently any actual UI editor, it's just a "nice to have" feature at this point. That said, there are two ways to enable something like "live preview" in FlxUI:

  1. provide a liveFilePath parameter during FlxUI construction (kinda hacky, and only works on sys targets)
  2. Make changes to your flixel-ui xml while your app is running, open a command line to where your haxe project is and type "lime update windows" (or whatever your target is) to refresh your asset manifest, then in your game press some key you've set up to reload the state.

from flixel-ui.

larsiusprime avatar larsiusprime commented on July 22, 2024

This issue should be closed and added to flixel-editors instead?

from flixel-ui.

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.