Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/riccardobl/jme-igui
A minimalistic immediate gui for jmonkeyengine
https://github.com/riccardobl/jme-igui
gui imediate java jmonkeyengine ui
Last synced: 9 days ago
JSON representation
A minimalistic immediate gui for jmonkeyengine
- Host: GitHub
- URL: https://github.com/riccardobl/jme-igui
- Owner: riccardobl
- License: unlicense
- Created: 2020-10-12T17:09:32.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2024-09-04T06:54:32.000Z (4 months ago)
- Last Synced: 2024-12-23T02:55:04.060Z (17 days ago)
- Topics: gui, imediate, java, jmonkeyengine, ui
- Language: Java
- Homepage: https://library.jmonkeyengine.org/#!entry=16283%2Fjme-igui
- Size: 1.9 MB
- Stars: 8
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# jme-IGUI
IGUI is a minimalistic immediate gui for [jMonkeyEngine](https://jmonkeyengine.org). It is built around Picture and BitmapText classes.
It can only draw text and images, ~~no input handling whatsoever~~ with very basic input handling and i think i will keep it this way, since this is intended only for very simple usecase (ie. debugging or simple apps) for which more sophisticated ui libraries, such as [Lemur](https://github.com/jMonkeyEngine-Contributions/Lemur) or [Nifty Gui](https://wiki.jmonkeyengine.org/docs/3.3/core/gui/nifty_gui.html), would be overkill.
This is an immediate UI, you don't need to worry about keeping references, updating states etc... you can just call the methods whenever you want as long as you are inside the update loop, what you define will be rendered for exactly 1 frame. You want to render the exact same thing again in the next frame? Just run the same code again.
If something really never changes for a long time, you can use the image() and text() methods that accept a `boolean persistent` arg. In this case the generated component will live forever until you call `.destroy()` on it.
That's all. Usage example in [src/test/java/IGuiTest.java](src/test/java/IGuiTest.java).
## Jitpack coordinates
```gradle
plugins {
id "io.github.0ffz.github-packages" version "1.2.1"
}repositories {
maven githubPackage.invoke("riccardobl")
}dependencies {
implementation 'wf.frk:jme-igui:$VERSION'
}
```--------
![img1](media/img1.jpg)
![img2](media/img2.jpg)
![img3](media/img3.jpg)
![img4](media/img4.jpg)