Code Monkey home page Code Monkey logo

cards_ui's People

Contributors

lucascassiano avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cards_ui's Issues

Does this project still alive ? ( some suggestions)

Hi there,

I searched an ImGui for processing, and it seems your project is the only one available.

First, I found out how to draw last, and be able to add element over the main draw, wherever is called the ui elements.

I made a class, cardsui, and in the object initiator, the only argument is a PApplet.

By getting a reference to the main PApplet, let call it parent, I can call the "parent.registerMethod("methodName", this)" and add a draw, mouseEvent and keyEvent method, which is synchronized with the sketch ones. More info there : https://github.com/processing/processing/wiki/Library-Basics

Then I created an arraylist, with a special type, and instead of draw when I add an UI element in the main draw, I add it to the arraylist, and finally draw all the GUI in the cardsUi.draw() method.

I think the DearImGui way, to keep simple functioncall, by example Button(String Label), and manage the position automatically, with the possibility to custom it, much more easy to manage, than how you do as now. https://github.com/ocornut/imgui

By using a class, it makes it much more easy to manage this.

And what is possible with a class ( using its own mouseEvent or draw method), can be done with a library.

Regards

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.