sui

Fixes and updated package for thx.core
https://github.com/fponticelli/sui

To install, run:

haxelib install sui 0.5.0 

See using Haxelib in Haxelib documentation for more information.

README.md

SUI

Simple User Interface: Html + Haxe

Example:

var ui = new sui.Sui();
ui.bool("boolean", function(v) trace('bool: $v'));
ui.color("color", {
    list : [
      { value : "#FF0000", label : "red" },
      { value : "#00FF00", label : "blue" },
      { value : "#0000FF", label : "green" }]
  }, function(v) trace('color: $v'));
ui.int("int range", 20, {
    min : 10,
    max : 30
  }, function(v) trace('int range: $v'));
ui.trigger("trigger", function() trace("triggered"));
ui.attach();

A live sample of some of the available controls.

TODO

API

  • Sui.add(): macro automap field/variable to control
  • append to container (with position and close controls)
  • Sui.hide()/Sui.show() (with default keyboard control H)
  • Sui.open()/Sui.close()
  • presets? save/restore?
  • listen?

Controls

  • folder (with open/collapse)
  • select string (options)
  • select float
  • select int
  • select date
  • text area
  • objects and nested objects
  • arrays
  • unstructured objects (create field together with values)

Inspiration

dat-gui

Contributors
fponticelli
Version
0.5.0
Published
2 years ago
License
MIT

All libraries are free

Every month, more than thousand developers use haxelib to find, share, and reuse code — and assemble it in powerful new ways. Enjoy Haxe; It is great!

Explore Haxe

Haxe Manual

Haxe Code Cookbook

Haxe API documentation

You can try Haxe in the browser! try.haxe.org

Join us on Github!

Haxe is being developed on GitHub. Feel free to contribute or report issues to our projects.

Haxe on Github