A simple imgui style library for Haxegon
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
examples
plugins
.gitignore
LICENSE
README.md

README.md

imGui (version 0.1.0 (2018-02-26))

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:

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!

Setup

To install the imGui plugin, download this Gui.hx file, and copy it into your own project's plugins folder.

Usage

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.

Documentation

Not available yet. Check back later! For now, refer to the examples.

About imGui

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

About Haxegon

imGui is a plugin for Haxegon. For more plugins, see http://www.haxegon.com/plugins/