app 0.1.0

openFl UI libary devolped for ThinQbator production Use

Released 2018-04-01.

To install, run:

haxelib install app 0.1.0

See using Haxelib in Haxelib documentation for more information.

MaintainerPXshadow
Websitehttps://github.com/PXshadow/App
Current version0.1.0
StatisticsInstalled 33 times
LicenseMIT
Tags

README.md

App, is an openFl UI libary devolped for ThinQbator production use.

Features

States - Mobile Native Scrolling mimiced to be IOS - Web Socket Client Networking - Url States - Camera Restrictions - Buttons - Input text with Placeholder and NativeText implementation for ios and android. - Easy Asset creation - Custom Scaling Engine with setting Object Headers (No streching or black bars)

Installation

Add the library to your project.xml:

<haxelib name="app" />

And use haxelib to install it:

Github Version

haxelib git app https://github.com/PXshadow/App

Haxelib Version

haxelib install app

Inital Setup

Main.hx File

package;
import core.*;
import openfl.display.Sprite;

class Main extends Sprite
{
    public function new()
    {
        super();
        //set width and height
        new App(640,480);
        App.state = new Menu();
        //Configure
        /*
        //Boolean to enable InfoDebugText Only works in DebugMode, infoDebugText in Release is never rendered.
        App.infoBool = true;
        //InfoText color as an int 
        App.infoColor = 16777215;
        //InfoTextfield size
        App.infoSize = 15;
        //set bitmap background
        App.background = new openfl.display.Bitmap(new openfl.display.BitmapData(App.setWidth,App.setHeight,false,0));
        //creates a tcp socket on Native/Neko and WebSocket on html5, boolean controls if the same message can be sent again. 
        App.network = new Network("127.0.0.1",200,false);
        //array of Integer colors to be used throughout the App, defualt is a blue, yellow and green for ThinQbator.
        App.colorArray = [0,16777215];
        //toggle full screen, can Also use openfl.Lib.application.window.fullscreen = true;
        App.toggleFullscreen();
        //UrlArray sub directories to the html5 page used to direct to States. Contact me if you would like to use this, It also needs code on every State and is not extremly automated yet.
        //App.urlArray = ["Menu",Menu]; 
        */
        removeChild(this);
    }
}

class Menu extends State
{
    public function new()
    {
        super();
        
    }
}

TODO

  • Create more Widgets and get feedback.
  • Optomization
  • Demo Projects