Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

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/

About

A simple imgui style library for Haxegon

Resources

License

Releases

No releases published

Packages

No packages published

Languages