lucascassiano / cards_ui Goto Github PK
View Code? Open in Web Editor NEWSimple UI kit for Processing
Simple UI kit for Processing
This is not a bug report, just an update. I needed a UI for a project and I though this was a great idea. However I found several bugs and needed new features so I spent some time cleaning it up and simplifying things and thought I would post my cleaned up file here for anyone interested in it. I don't claim any rights to this, however whatever rights the original author has remain in effect.
https://drive.google.com/file/d/199Ly3y6dL2_oZllhplNh8GkLxDo-Ee5R/view?usp=sharing
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.