Created
May 14, 2014 20:45
-
-
Save jadar/56c3dfeb3f270a4b3201 to your computer and use it in GitHub Desktop.
Heisen ui class spec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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