Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HeisenUI Class Spec #3

Open
jadar opened this issue May 14, 2014 · 2 comments
Open

HeisenUI Class Spec #3

jadar opened this issue May 14, 2014 · 2 comments

Comments

@jadar
Copy link

jadar commented May 14, 2014

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
@hunterboerner
Copy link
Member

com.heisenbugdev.controller.HeisenViewController

Just HeisenController works

guiWillDisappear()
guiWillDisappear()

You derped

I think having HeisenUI and HeisenGUI seems a little confusing. Is HeisenUI meant to be different UI objects?

@jadar
Copy link
Author

jadar commented May 14, 2014

HeisenGUIController better expresses what the class does.

Sorry about the derp

It is. HeisenUI is the base mod class. HeisenGUI is the base class for GUI objects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants