]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/entityinspector.cpp
Experimental: add "XactCylinder" to make a better patch cylinder
[xonotic/netradiant.git] / radiant / entityinspector.cpp
index ab9cabd7073c03281a3588a7ee0f5b7d661ed2d6..95f03f7378326bd34f4cd01a204b1589fce58056 100644 (file)
@@ -76,6 +76,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 #include "entity.h"
 #include "mainframe.h"
 #include "textureentry.h"
+#include "groupdialog.h"
 
 GtkEntry* numeric_entry_new()
 {
@@ -1058,6 +1059,7 @@ public:
     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)
   {
@@ -1759,3 +1761,11 @@ void EntityInspector_destroy()
   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);
+}