Request – Native GUI module

About Monkey 2 Forums Monkey 2 Development Request – Native GUI module

Tagged: 

This topic contains 18 replies, has 4 voices, and was last updated by  codifies 2 years, 3 months ago.

Viewing 15 posts - 1 through 15 (of 19 total)
  • Author
    Posts
  • #5864

    degac
    Participant

    Hi

    this is the point: to port my current applications (so many!) in Monkey2 I need a native OS-GUI support.
    What I’m looking for is a sort of MaxGUI for Monkey2
    – small footprint of the final applications
    – easy to program (no problem if it’s OOP or not)
    – easy to use (for the final user – they fear if something is different in the UX!!!)
    – that implements/allows to be ‘extended’ (like the ProxyGadgets in MaxGUI)
    – integrated with the OS (copy, paste, drag & drop etc)

    At the moment I’m only on Windows (XP/Vista/7/8/10) – so other systems are not needed.

    I would pay for a module like this between 20/30 USD.

    ps: I don’t know if this is the right place to post this ‘announce’ – and it’s open to anyone.

    #5867

    codifies
    Participant

    Am I right in thinking that GTK either does or can use “native” GUI widgets in Windows ?

    although something like GTK would rule out web targets, it would at least work on the main three of Linux, MacOS and Windows….

    #5874

    degac
    Participant

    Ok, thanks.
    But does this mean the final user need to install something else (GTK lib) or any other dependencies?

    In any case a ‘universal’ GUI is impossible: it should be usable on mobile devices (phone and tablet), web, smart-tv, desktop. Too much confusion.
    I think it’s better having different (and with high performance) solutions for any single target/UX.

    #5899

    codifies
    Participant

    html5 is about the only truly “universal” GUI, and that *does* work nearly everywhere… you might want to look at the litehtml module…

    #5906

    Richard Betson
    Participant

    you might want to look at the litehtml module

    Are there any examples on how to use the litehtml module?

    I would like to implement an HtmlView like mojox does. Does mojox use litehtml for it’s HtmlView?

    #5907

    codifies
    Participant

    I think it must do – if for example if you grep the build directory of the calculator banana you’ll for litehtml, i was looking for an example myself as documentation is so much more than api docs…

    If i get chance i’ll nail a simple example together if only so i can grok it myself…

    #5908

    Richard Betson
    Participant

    Let me know what you come up with. 😉 I’ll try to have a look at how mojox implements it’s HtmlView.

    Maybe Mark is out there lurking and has a tip or two.

    #5921

    CopperCircle
    Participant

    I had a little play with litehtml awhile ago and got a mojox view that loaded local html with images, just add a html file and images to assets and you can also hook in to hyperlinks being pressed:

    #5925

    codifies
    Participant

    Thanks for sharing…

    #5929

    Richard Betson
    Participant

    @CopperCircle

    Thanks. Can you post the about.html file? Posting it would be helpful.

    #5930

    codifies
    Participant

    @Richard Betson just nail together any old page, one caveat tho… resource paths must include asset::

    [/crayon]

    for example

    @coppercircle I might take this code further and develop a blog post about making a simple UI with HTML and monkey if you don’t mind me using this code…

    #5931

    CopperCircle
    Participant

    Hi, yes feel free to use it how ever.

    #5932

    Richard Betson
    Participant

    @codifies

    Thanks. I tried to build and run the litehtml example that CopperCircle posted but it crashed and burned. The asset path was probably the issue which is why I wanted a look at the about.html file. I’ll give it a try.

    might take this code further and develop a blog post about making a simple UI with HTML and monkey

    Right on. I’m planning on integrating litehtml into my Alien Phoenix project and it’s GUI should really work well for this kind of thing.  I’ll be interested in anything you come up with so let us know when you have something more. 😉

    #5933

    codifies
    Participant

    just
    #import “assets/”

    then throw all the junk in there, it should “just work” (famous last words)

    I have issues when trying to use it as a gui, I tried opening another window with a link – which works, but the GL state in the second window seems messed up somehow (text printed as filled in blocks)

    ideally I’d want to somehow magically morph the htmlview window into a glwindow (so you can then render the “game”) in the same window you used for the htmlview…

    but I’m thinking really the html should be rendered to a GL texture, but I’m not sure what is the best way to proceed for now…

    #5935

    codifies
    Participant

    I’ve hacked together using HTML as a game menu that can start a “game” that uses Mojo and GL…

    http://bedroomcoders.co.uk/monkey2-using-html-for-your-game-menu/

Viewing 15 posts - 1 through 15 (of 19 total)

You must be logged in to reply to this topic.