Skip to content

HeisenUI Class Spec #3

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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