A plugin for Haxegon: http://www.haxegon.com
imGui is a simple immediate mode style gui plugin for Haxegon. imGui allows you to write simple GUI code that looks like this:
import haxegon.*;
class Main {
function update(){
if(Gui.button("click me")){
trace("You clicked the button!");
}
}
}
For more information about the idea behind imgui systems, check out:
- Casey Muratori's introduction video
- Ocornut's Dear ImGui, a major inspiration for this plugin
- Sol on Immediate Mode GUIs (IMGUI)
This imGui plugin currently supports:
- Automatic layouts of GUI elements
- Buttons, Radio Buttons, Sliders and Scrollbars
- Windows
- Menubars
imGui is a work in progress. Stay tuned for more updates as Haxegon approaches 1.0!
To install the imGui plugin, download this Gui.hx file, and copy it into your own project's plugins folder.
Here is a simple example:
import haxegon.*;
class Main {
function update(){
if(Gui.button("click me")){
trace("You clicked the button!");
}
radioactive = Gui.radio("toggle me", radioactive);
inputbox = Gui.input(inputbox);
}
var radioactive:Bool = false;
var inputbox:String = "type something here";
}
See the examples folder for more examples.
Not available yet. Check back later! For now, refer to the examples.
version: 0.1.0
dependancies: Haxegon 0.12.0 or newer.
Targets: imGui works on all current Haxegon targets - Native, HTML5 and Flash.
Author: @terrycavanagh
imGui is a plugin for Haxegon. For more plugins, see http://www.haxegon.com/plugins/