Skip to content

HeisenUI Class Spec #3

@jadar

Description

@jadar

Just wrote this up. Please comment.

com.heisenbugdev.HeisenUI
--

// JSON, ModID
registerView(HashMap, String)
registerView(HeisenUI, String)

com.heisenbugdev.gui.HeisenGUIPool (Enum Singleton)

---

HashMap<HeisenUI> views;

// HashMap is JSON data.
static registerView(HashMap)
static registerView(HeisenUI)

// note, maybe call it HeisenGUIController
com.heisenbugdev.controller.HeisenViewController

---

HeisenViewController parentViewController;
HeisenUI view;

// how outlets are going to work
@UIOutlet("MyLabelOutlet")
HeisenUILabel outlet;

HeisenViewController()

// goes through the outlets in the view and plugs them here.
private connectOutlets()
private connectTargets()

// note, not called by constructor
init()
dismiss()


guiWillAppear()
guiDidAppear()
guiWillDisappear()
guiWillDisappear()

@UITarget("MyLabelTarget")
void target(HeisenUILabel label)

com.heisenbugdev.gui.HeisenGUI

---

HashMap<HeisenUI> elements; // map of all variables
HashMap<HeisenUIOutlet> outlets;
HashMap<HeisenUITarget> targets;

draw(float delta); // draws all the views in the map 
awakeFromJSON() // loads the view pats

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions