Commit Graph

9869 Commits

Author SHA1 Message Date
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
Lasse Öörni
fd24ca3c69 UI improvements and cleanup.
Drag and drop & window resize visualization by changing the mouse cursor shape.
2011-02-23 18:38:45 +00:00
Lasse Öörni
c30b162267 Support for different UI cursor shapes. 2011-02-23 08:01:33 +00:00
Lasse Öörni
f2492935d4 Initial UI drag and drop support. No visualization yet. 2011-02-22 23:03:23 +00:00
Lasse Öörni
bc79209861 Added simple hierarchical mode to ListView.
UIElement userdata is now a VariantMap.
2011-02-22 22:17:50 +00:00
Lasse Öörni
e343f0c631 Replaced TryFocus event with UIMouseClick.
Added ListViewKey event for unhandled keypressed while the ListView is focused. Now ListView no longer equates enter press as a doubleclick by itself.
2011-02-22 19:40:21 +00:00
Lasse Öörni
d02e959f9a Improved replaceInPlace().
Focus FileSelector file list initially.
2011-02-22 16:39:10 +00:00
Lasse Öörni
c3acff9a2d Added entity group flags for group-based scene queries.
Fixed Input error message in headless mode.
2011-02-22 07:40:12 +00:00
Lasse Öörni
0dc5690767 Exposed FileSelector to script fully.
Added safety checks to Entity::onEvent.
Replaced scanDirectory() booleans with flags.
UI tweaks.
2011-02-21 22:23:37 +00:00
Lasse Öörni
fa7cf0041f EventListener refactoring for safety.
ScriptEventListener simplification.
2011-02-21 17:42:04 +00:00
Lasse Öörni
cafd3c1491 Proper stacking of eventsenders for getEventSender().
Fixed crash if event sender is destroyed while sending.
Tweaked default UI style.
2011-02-21 12:25:37 +00:00
Lasse Öörni
24cec6fac5 Initial FileSelector implementation.
Console & DebugHud changed to load style from XML file.
UI bugfixes.
2011-02-21 09:13:23 +00:00
Lasse Öörni
ae7efc8683 Added doubleclick event to ListView.
Send ListView item selected event even if selection is the same.
2011-02-20 11:47:56 +00:00
Lasse Öörni
9350f4056e UI layout system refactoring.
DropDownList improvements.
UI bugfixes.
2011-02-19 18:59:11 +00:00
Lasse Öörni
93632f9e54 Small fix to DropDownList. 2011-02-18 16:22:56 +00:00
Lasse Öörni
dd24a35ab6 Initial DropDownList implementation.
Renamed MenuItem to Menu.
Bugfixes.
2011-02-18 08:43:09 +00:00
Lasse Öörni
4aa57980fb ListView API & code cleanup.
Fixed bug in Node & UIElement where moving a child from one parent to another, with no other references, would cause its deletion and a crash.
2011-02-17 21:04:54 +00:00
Lasse Öörni
c4d329d86f Exposed ListView to script, added functionality.
Added mouse wheel input to UI.
2011-02-17 13:49:13 +00:00
Lasse Öörni
cae8301062 Initial ListView implementation.
UI bugfixes.
2011-02-17 08:23:27 +00:00
Lasse Öörni
abc4b39adb Normalized scrollbar step size, by default on.
UI code cleanup.
2011-02-16 11:02:14 +00:00
Lasse Öörni
0d79f489d9 Simplified the default UI style. 2011-02-16 07:26:47 +00:00
Lasse Öörni
0bea69e546 ScrollView refactoring. Now ScrollView creates its own scrollbars.
Added UI element visibility change event.
UI bugfixes.
2011-02-15 23:16:51 +00:00
Lasse Öörni
7930515a57 Bugfixes. 2011-02-15 19:58:13 +00:00
Lasse Öörni
cb4d88a8f2 Replaced explicit image rect settings with offsets.
Added project() to Ray.
2011-02-15 19:30:22 +00:00