#include "entity.h"
#include "mainframe.h"
#include "textureentry.h"
+#include "groupdialog.h"
GtkEntry* numeric_entry_new()
{
m_creators.insert(Creators::value_type("model", &StatelessAttributeCreator<ModelAttribute>::create));
m_creators.insert(Creators::value_type("sound", &StatelessAttributeCreator<SoundAttribute>::create));
m_creators.insert(Creators::value_type("vector3", &StatelessAttributeCreator<Vector3Attribute>::create));
+ m_creators.insert(Creators::value_type("real3", &StatelessAttributeCreator<Vector3Attribute>::create));
}
EntityAttribute* create(const char* type, const char* name)
{
GlobalEntityClassManager().detach(g_EntityInspector);
}
+const char *EntityInspector_getCurrentKey()
+{
+ if(!GroupDialog_isShown())
+ return 0;
+ if(GroupDialog_getPage() != g_page_entity)
+ return 0;
+ return gtk_entry_get_text(g_entityKeyEntry);
+}