Commit Graph

10192 Commits

Author SHA1 Message Date
Lasse Öörni
7d51c583a8 Entity & component cut/copy/paste.
Entity & component data is now displayed in the same window (though entity only displays its name.)
Smoother edits for numeric values.
Minor API improvements.
Changed UI & render update order, so that deleting entities or the whole scene inside UI event handling does not result in a crash.
2011-03-10 20:06:48 +00:00
Lasse Öörni
02ffc5801c Component enum & resource editing.
API improvements & fixes.
2011-03-10 16:26:29 +00:00
Lasse Öörni
803953f41c Added choose resource path & reload resources functionality to editor.
Fixed menu accelerators.
2011-03-10 07:28:34 +00:00
Lasse Öörni
52ea7484d3 Drag and drop operations for moving components and reparenting scene nodes.
Added prevention of assigning self as a child in Node & UIElement.
2011-03-09 22:29:53 +00:00
Lasse Öörni
05edd77856 Fixed toggling child item visibility. 2011-03-09 14:00:47 +00:00
Lasse Öörni
d04a135ce5 Fix UI element drag outside window.
Enable console in the editor.
2011-03-09 13:04:40 +00:00
Lasse Öörni
24a76f7d99 Notice when the scene has been modified. 2011-03-09 09:36:26 +00:00
Lasse Öörni
5707722337 Editor fixes and cleanup. Handle changing amount of component attributes as a result of edit.
API improvements.
Minor scene XML format changes to accomodate editing.
2011-03-09 08:27:06 +00:00
Lasse Öörni
e2335ec26e Initial component editing.
API improvements & fixes. Drawing the debug geometry is manual again.
2011-03-09 01:27:24 +00:00
Lasse Öörni
9d8228f55c Registered Node::getChildren() to script.
Proper handling of child nodes in scene hierarchy window.
2011-03-08 15:59:22 +00:00
Lasse Öörni
781a1681cf Initial scene hierarchy view in the editor.
Script API additions & fixes.
2011-03-08 07:50:33 +00:00
Lasse Öörni
d7b57c45f2 Missing file. 2011-03-07 21:20:49 +00:00
Lasse Öörni
a7b269d79f Added camera settings dialog.
Respect fixed size when updating layout.
2011-03-07 21:20:19 +00:00
Lasse Öörni
5a4957b7a3 Added debug geometry drawing to Octree.
Added possibility to insert UI child elements at any position.
2011-03-07 20:21:52 +00:00
Lasse Öörni
e43c591f6e Added Renderer::setWindowTitle().
Added accelerator key support to menus.
UI bugfixes.
Changed binary scene extension to bin.
2011-03-07 07:59:45 +00:00
Lasse Öörni
bec3a65ee3 Fixed UIElement priority bug when bringing element to front and no elements to compare to. 2011-03-07 01:00:06 +00:00
Lasse Öörni
5c98ad85df Initial file menu in the editor.
Added getFilterIndex() to FileSelector. 
Popup menus hide themselves when another unrelated element focused.
2011-03-07 00:13:17 +00:00
Lasse Öörni
1f0bfd8b76 Moved to FreeType font rendering. 2011-03-06 22:44:27 +00:00
Lasse Öörni
ec327701e5 Initial skeleton of the scene editor.
Font scaling/positioning fixes.
API improvements.
2011-03-06 19:09:36 +00:00
Lasse Öörni
a31265fb65 Further input fixes.
Added getAttributeNames() to XMLElement.
Renamed EVENT_WINDOWRESIZED to EVENT_SCREENMODE.
Renamed EVENT_MOUSEMOVE delta & position parameters.
2011-03-06 11:17:32 +00:00
Lasse Öörni
c42dfa060d Added application activation & deactivation events.
Fixed mouseclick in wrong position when application reactivated in non-confined mode.
2011-03-06 01:23:23 +00:00
Lasse Öörni
962c4ec9a7 Input bugfixes. Enabled mouse move also in non-confined mode and removed the EVENT_MOUSEPOS event. 2011-03-06 01:07:56 +00:00
Lasse Öörni
1eb8498291 Added systemOpenFile() function, which will open a file in an external program.
Added non-confined mouse cursor mode.
Added Input functionality, such as setting the operating system cursor position manually.
2011-03-06 00:34:03 +00:00
Lasse Öörni
cb326b7fdf Fixed quaternion to Euler conversion and changed its signature.
Added save function to CollisionShape.
Exposed entity properties & UI element userdata directly as a map property.
Exposed Material::save() to script.
In Urho3D Shell, try to load the script or scene first from resource directories or packages, then from the filesystem.
2011-03-05 19:03:27 +00:00
Lasse Öörni
2b1bfa75f6 Register readID() & writeID() to script. 2011-03-04 22:36:36 +00:00
Lasse Öörni
f9ef9957b7 Added four-byte identifiers to binary files.
Fixed point light shape texture when used with shadows.
Removed direction from Light. Instead scene nodes now have setDirection(), which sets the node rotation from a vector.
2011-03-04 22:31:08 +00:00
Lasse Öörni
609422cc81 Initial masked pointlight support. 2011-03-04 16:38:01 +00:00
Lasse Öörni
3ca81fd464 Added support for colored spotlight texture. 2011-03-03 22:01:40 +00:00
Lasse Öörni
97d3e56a1f Split data files to Data & CoreData. CoreData contains the bare necessary files needed to run, like shaders and default materials.
Added systemCommand() function.
Added file extensions to ignore in PackageTool.
Optimized Console text update.
Cleaned up ShaderCompiler code.
2011-03-03 21:08:27 +00:00
Lasse Öörni
d33562e87a Fixed UI layout bugs. 2011-03-03 13:49:10 +00:00
Lasse Öörni
c2e9d8abf7 Added getResolutions() to Renderer, and exposed it and getMultiSampleLevels() to script.
Scene::getComponentTypes() now sorts the list alphabetically.
2011-03-03 08:04:51 +00:00
Lasse Öörni
1a04680907 Remember the current row being edited in Console. 2011-03-02 22:51:21 +00:00
Lasse Öörni
97370cc707 Added getComponentTypes() function to component factories & Scene.
Added unhandled key event also to LineEdit.
Added Console command history.
Fixed scanDirectory() returning full path for directories.
Code cleanup.
2011-03-02 22:45:02 +00:00
Lasse Öörni
2e5c04b5c0 Cache the typeid into asCDataType for increased performance. 2011-03-02 20:55:33 +00:00
Lasse Öörni
f950a3ca24 Registered VariantVector related functions to script.
Changed the array type method names to insert/remove(), push/pop() and size().
2011-03-02 17:32:28 +00:00
Lasse Öörni
c7175d4820 Variant refactoring. Uses less memory, added nested VariantVector & VariantMap support. 2011-03-02 08:29:24 +00:00
Lasse Öörni
2037d4daed GCC fixes. 2011-03-01 09:05:57 +00:00
Lasse Öörni
327e037bec Removed test code. 2011-03-01 07:24:03 +00:00
Lasse Öörni
cbbd044d95 Refactored & unified viewport handling. Now RenderSurfaces also set a viewport. Exposed Viewport struct to script.
Fixed missing auxiliary view rendering if camera is the same as in another view.
DebugRenderer takes a pointer to Pipeline when it's time to render, instead of storing subsystem pointers permanently.
Removed unnecessary includes.
Fixed profiling block names.
2011-02-28 22:58:18 +00:00
Lasse Öörni
9cd5fc423b Default resource paths are added on Engine construction.
The current working directory is no longer changed, instead the default resources are added with absolute paths.
Refactored some File operations.
2011-02-28 13:43:40 +00:00
Lasse Öörni
4a18fd3dff Draw Pipeline & PhysicsWorld debug geometry automatically if enabled. 2011-02-28 07:42:37 +00:00
Lasse Öörni
3f492e729f Fixed script registration bug. 2011-02-28 00:22:19 +00:00
Lasse Öörni
20b23ced83 Engine & script API improvements.
Multiple viewport support.
Refactoring of scene updates & debug geometry handling.
Urho3D Shell can now either load a script, or load a scene.
More helper macros for script-safe exceptions.
Fixed InstancedModel::setMaterial().
Optimized functions that return a std::vector by value to take a reference instead.
Close button UI graphics.
2011-02-28 00:16:18 +00:00
Lasse Öörni
fd141c7cf1 Registered XML file creation to script.
Registered component & entity XML load/save to script.
Fixed possible null pointer access in loading XML parameter files.
2011-02-27 00:18:03 +00:00
Lasse Öörni
ab3bec9d3f Added AngelScript 2.20.2.
Fixed ParticleEmitter not initializing particle count correctly.
Removed ParticleEmitter public functions whose effect would not be saved or replicated across network (practically, this means that ParticleEmitter must be exclusively configured via the particle XML file.)
Fixed Octree resize to not remove scene nodes. Instead, they are temporarily moved to the root octant.
Removed LogListener. Instead log messages are also sent as events.
Fixed FileSelector ListView no longer being focused after changing directory.
Optimized Text::setStyle(). The text is recalculated last, once everything has been setup.
AngelScript garbage collection is now intentionally disabled also from script classes, to ensure objects are destroyed immediately once their refcount reaches zero. As a downside, this means that any circular references in script will leak memory.
2011-02-26 16:27:16 +00:00
Lasse Öörni
63ccafc437 Added optional clearing of selection on defocus to ListView.
Added -uitest switch to GraphicsTest script, which will instantiate test UI layouts.
2011-02-25 20:38:54 +00:00
Lasse Öörni
10d59b4c92 Fix crash when no mouse cursor in UI. 2011-02-25 16:20:19 +00:00
Lasse Öörni
e46c13a8a9 ListView bugfixes. 2011-02-25 12:22:58 +00:00
Lasse Öörni
f52a494b1a ListView multiselect mode.
Documentation update.
2011-02-25 08:14:49 +00:00
Lasse Öörni
748a1fe381 Documentation update and code cleanup. 2011-02-23 22:17:41 +00:00