]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
- Fix for bug 1106 - .wad files don't get listed in the textures menu (Shaderman)
authornamespace <namespace>
Sun, 8 Oct 2006 21:13:50 +0000 (21:13 +0000)
committernamespace <namespace>
Sun, 8 Oct 2006 21:13:50 +0000 (21:13 +0000)
  (http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=1106)
- Added initial support for Prey (Shaderman)
- Fixed entity inspector sliders to always show (Shaderman)
- Added NOTES subsection to the entity inspector listing .def editor_usage* values (Shaderman)

git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@114 8a3a26a2-13c4-0310-b231-cf6edde360e5

CHANGES
TODO
plugins/vfspk3/vfs.cpp
radiant/eclass_doom3.cpp
radiant/entityinspector.cpp
setup/win32/gtkradiant-1.5.0.xml

diff --git a/CHANGES b/CHANGES
index be96d4199a19fc4105a497b946afcede8ee13ed2..149b4c0daa8184b8548db68ccaf394f7b3fc13f3 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,7 +1,16 @@
 This is the changelog for developers, != changelog for the end user 
 that we distribute with the binaries. (see changelog)
 
+08/10/2006
+namespace
+- Fix for bug 1106 - .wad files don't get listed in the textures menu (Shaderman)
+  (http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=1106)
+- Added initial support for Prey (Shaderman)
+- Fixed entity inspector sliders to always show (Shaderman)
+- Added NOTES subsection to the entity inspector listing .def "editor_usage*" values (Shaderman)
+
 07/10/2006
+namespace
 - Added "select inside" and "select touching"
   Both functions now work with multiple selectionbrushes, allowing complex
   selection operations.
diff --git a/TODO b/TODO
index dcb862f1fec419383394b869eb36af42ade4e356..b21c149350145d26b76d4fe435a89c9c030e7bc9 100644 (file)
--- a/TODO
+++ b/TODO
@@ -145,6 +145,7 @@ Selection: Customisable manipulator size - +/- to change the size of the transla
 Selection: Add optional screen-relative control for constrained rotations.
 Clipper: Change selection/manipulation to be consistent with other component editing.
 Filtering: Either deselect filtered nodes, or render filtered nodes that are selected.
+Filtering: Add customisable filter presets to set/unset multiple filters at once.
 Texdef: Make texdef formats abstract, add conversion between texdef formats (use generic affine-texture-matrix format for conversions).
 Textures Window: Precise display of texture size when selecting.  (tooltip, possibly)
 Status: 'Size of brush' display on status bar.
index cbe0812a554c10977078ba6f8bac40a05df292db..688374830ea7727ab8adf9eca47a8ac72ffa6bbb 100644 (file)
@@ -57,7 +57,6 @@ ArchiveModules& FileSystemQ3API_getArchiveModules();
 
 #include "generic/callback.h"
 #include "string/string.h"
-#include "container/array.h"
 #include "stream/stringstream.h"
 #include "os/path.h"
 #include "moduleobservers.h"
@@ -142,13 +141,7 @@ static void InitPakFile (ArchiveModules& archiveModules, const char *filename)
   if(table != 0)
   {
     archive_entry_t entry;
-
-    std::size_t length = string_length(filename);
-    Array<char> tmp(length + 2);
-    std::copy(filename, filename + length, tmp.begin());
-    tmp[length] = ':';
-    tmp[length + 1] = '\0';
-    entry.name = tmp.begin();
+    entry.name = filename;
 
     entry.archive = table->m_pfnOpenArchive(filename);
     entry.is_pakfile = true;
index b172a36a7dd18a93414d17640c1b026d83afbbd9..217c4ec5ff105a67f183ab29e05486a81fab2c48 100644 (file)
@@ -452,12 +452,12 @@ static bool EntityClass_parse(EntityClass& entityClass, Tokeniser& tokeniser)
     }
     else if(string_equal_n(key, "editor_usage", 12))
     {
-      usage << "\n";
       PARSE_RETURN_FALSE_IF_FAIL(EntityClassDoom3_parseString(tokeniser, usage));
       currentString = &usage;
     }
     else if(string_equal(key, "editor_rotatable")
       || string_equal(key, "editor_showangle")
+         || string_equal(key, "editor_showangles") // typo? in prey movables.def
       || string_equal(key, "editor_mover")
       || string_equal(key, "editor_model")
       || string_equal(key, "editor_material")
@@ -556,6 +556,17 @@ static bool EntityClass_parse(EntityClass& entityClass, Tokeniser& tokeniser)
       PARSE_RETURN_FALSE_IF_FAIL(EntityClassDoom3_parseToken(tokeniser));
     }
     // end quake4-specific keys
+       // begin ignore prey (unknown/unused?) entity keys
+    else if(string_equal(key, "editor_light")
+         || string_equal(key, "editor_def def_debrisspawner")
+         || string_equal(key, "editor_def def_drop")
+         || string_equal(key, "editor_def def_guihand")
+         || string_equal(key, "editor_def def_mine"))
+    {
+      //const char* value =
+      PARSE_RETURN_FALSE_IF_FAIL(EntityClassDoom3_parseToken(tokeniser));
+    }
+       // end ignore prey entity keys
     else
     {
       CopiedString tmp(key);
@@ -794,7 +805,14 @@ public:
 
           StringOutputStream usage(256);
 
-          usage << "-------- KEYS --------\n";
+          usage << "-------- NOTES --------\n";
+
+          if(!string_empty((*i).second->m_comments.c_str()))
+          {
+            usage << (*i).second->m_comments.c_str() << "\n";
+          }
+
+          usage << "\n-------- KEYS --------\n";
 
           for(EntityClassAttributes::iterator j = (*i).second->m_attributes.begin(); j != (*i).second->m_attributes.end(); ++j)
           {
index f8a0cce99cc8c26fe9e4be02701c8ffff77cdd8d..de3086d8afa9fa6c018c0a7cae4e060ed5cbc235 100644 (file)
@@ -1678,15 +1678,19 @@ GtkWidget* EntityInspector_constructWindow(GtkWindow* toplevel)
 
 
   {
-    int x = g_entitysplit1_position;
-    if (x != -1)
+    // show the sliders in any case
+    if(g_entitysplit2_position > 22)
     {
-      gtk_paned_set_position(GTK_PANED(g_entity_split1), x);
-
-      x = g_entitysplit2_position;
-
-      if (x != -1)
-        gtk_paned_set_position (GTK_PANED(g_entity_split2), x);
+      gtk_paned_set_position (GTK_PANED(g_entity_split2), g_entitysplit2_position);
+    } else {
+      g_entitysplit2_position = 22;
+      gtk_paned_set_position (GTK_PANED(g_entity_split2), 22);
+    }
+    if((g_entitysplit1_position - g_entitysplit2_position) > 27)
+    {
+      gtk_paned_set_position (GTK_PANED(g_entity_split1), g_entitysplit1_position);
+    } else {
+      gtk_paned_set_position (GTK_PANED(g_entity_split1), g_entitysplit2_position + 27);
     }
   }
 
index 9f5087be69c3c5f8a400b52df0bf3991df726f52..e13bdfcc8f89db764ca61eeeede68f57f2ee5833 100644 (file)
@@ -75,6 +75,9 @@
     <feature name="Quake 4 Support" desc="Support for Quake 4.">
       <component name=".\components\q4.xml" root="..\..\games\Q4Pack\tools"/>
     </feature>
+    <feature name="Prey Support" desc="Support for Prey.">
+      <component name=".\components\prey.xml" root="..\..\games\PreyPack\tools"/>
+    </feature>
     <feature name="RTCW Support" desc="Support for Return To Castle Wolfenstein">
       <component name=".\components\wolf.xml" root="..\..\games\WolfPack\bin"/>
       <component name=".\components\wolf_docs.xml" root="..\..\games\WolfPack\docs"/>