mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2025-01-25 02:41:22 +00:00
- 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) git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@114 8a3a26a2-13c4-0310-b231-cf6edde360e5
This commit is contained in:
parent
8d4bd599b6
commit
d403cec8ee
6 changed files with 46 additions and 18 deletions
9
CHANGES
9
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.
|
||||
|
|
1
TODO
1
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.
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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"/>
|
||||
|
|
Loading…
Reference in a new issue