Anonymous avatar Anonymous committed 7706337

Fixed some things that may or may not have needed fixing.

Comments (0)

Files changed (3)

src/ui_core/HUDPart.h

 
 namespace UICore {
 
-class HUDPart : ComponentInterface {
+class HUDPart {
 public:
 	int x;
 	int y;

src/ui_core/UIEngine.cpp

 	void UIEngine::Shutdown() {delete hud;delete input;}
 
 	void UIEngine::Message(int msg,EnvelopeAny* e) {
-
+		if (msg==701) {
+			int x = e->GetData(0);
+			int y = e->GetData(1);
+			hud->click(x,y);
+		}
 	}
 
 	void UIEngine::addPart(HUDPart* a) {

src/ui_core/UIEngine.h

 #include <map>
+#include <string>
 #include "HUD.h"
+#include "HUDPart.h"
+#include "../CoreInterface.h"
+#include "../lib/boost/any.hpp"
 
 namespace UICore {
 
 		void Startup();
 		void Shutdown();
 		void Message(int msg, EnvelopeAny* e);
+		void CreateComponent(std::string type, std::map< std::string, std::string > &attributes, Entity* e) { }; // Called to create a component of type (type), with the set of attributes (attributes), and with parent entity (e)
+		void CreateComponent(std::string type, std::map< std::string, boost::any > &attributes, Entity* e) { }; // Called to create a component of type (type), with the set of attributes (attributes), and with parent entity (e)
+		void RegisterComponent(ComponentInterface* comp) { }; // Used to register a component created in another core for use in this core
+
 
 		void addPart(HUDPart* part);
 		void addPart(HUDPart* part,char* label);
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.