Bill Currie
6b8df7f42a
Give EntityClassDict mapping access functions.
...
They just redirect to the actual entity class dictionary, but it saves a
lot of unnecessary code elsewhere.
2012-09-16 10:55:06 +09:00
Bill Currie
8416276cee
Remove a debug print.
2012-09-13 18:14:29 +09:00
Bill Currie
2760055a0f
Try to speed up entity relationship drawing a little.
2012-09-13 13:14:32 +09:00
Bill Currie
592222aba8
Don't attempt to draw a connecting line to a missing target.
2012-09-11 15:01:43 +09:00
Bill Currie
154d08a9c7
Gracefully handle unknown entity classes.
...
Unfortunately, the classname gets lost to blender at this stage, but I have
an idea for how to handle that.
2012-09-11 14:58:56 +09:00
Bill Currie
dade60863e
Move the entity class comment into its own box.
...
Blender doesn't support multiline text or word wrapping, so the tooltips
were rather ugly. The double spacing used by layout.label() is still a
little ugly, but the resulting text box just below the entity classname is
much more usable.
2012-09-10 13:19:38 +09:00
Bill Currie
a75fe213a6
Make entity lines post rather than pre.
...
I'm not sure what visual difference it makes, but it is pretty much what
I'd intended in the first place.
2012-09-10 12:16:23 +09:00
Bill Currie
2905cb69bc
Add entity relation lines.
...
It has many problems (eg, the lines won't update when target/targetname
change), but the basics are working.
2012-09-10 11:48:22 +09:00
Bill Currie
da6f57a23b
Get entity field key/value pair editing working.
2012-09-10 08:08:11 +09:00
Bill Currie
73cdd66c52
Set the entity properties as parsed from the map.
2012-09-09 17:11:57 +09:00
Bill Currie
825ce0dad6
Make the type of EntityClass.flagnames consistent.
...
Sometimes list and sometimes tuple makes for a mess.
2012-09-09 17:01:23 +09:00
Bill Currie
709ab05713
Add preliminary support for entity properties.
...
Only classname and flags are supported right now, and only classname gets
set when the entity is added (via the add menu).
2012-09-09 13:22:52 +09:00
Bill Currie
468f96902f
Use a tetrahedron for the default brush entity.
...
It seems to be a reasonable shape to show that editing is needed.
2012-09-09 11:10:03 +09:00
Bill Currie
18fcdb0ce7
Implement the add_entity operator.
...
Doesn't work for brush entities yet.
2012-09-09 10:29:43 +09:00