Commits

Sl...@Sloth-PC  committed 8419881

Fixed a couple of things that may or may not have been wrong.

  • Participants
  • Parent commits 5db7fcf

Comments (0)

Files changed (2)

File 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) {

File 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);