Skip to content

Instantly share code, notes, and snippets.

@jadar
Created May 14, 2014 20:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jadar/56c3dfeb3f270a4b3201 to your computer and use it in GitHub Desktop.
Save jadar/56c3dfeb3f270a4b3201 to your computer and use it in GitHub Desktop.
Heisen ui class spec
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment