Commit Graph

9836 Commits

Author SHA1 Message Date
Wei Tjong Yao
a16998dc41 Code cleanup. 2013-04-13 00:15:29 +00:00
Wei Tjong Yao
5d698d9ad1 Turned on XPath feature in pugixml thirdparty library. Added new XPath query and resultset wrapper classes and exposed them to Script. Reimplemented UI-element serialization filtering function using XPath query. 2013-04-12 12:20:07 +00:00
Wei Tjong Yao
c31961bd6a Fixed gcc build. 2013-04-12 00:00:05 +00:00
Lasse Öörni
78a5a2ed89 Updated to newest stable kNet. 2013-04-11 20:59:58 +00:00
Lasse Öörni
362e6a6f95 Added functionality to NavigationMesh. 2013-04-11 07:15:49 +00:00
Wei Tjong Yao
2ffd92b9f0 Code cleanup. 2013-04-11 04:05:31 +00:00
Wei Tjong Yao
e57bc3987b Serialized UI-element's user variable names in its own UI-element file instead of in scene file. Automatically determine the right UI-element level to perform the serialization when it is being requested. Fixed a bug in Scene class to unregister all the scene variable names when the scene is being cleared. 2013-04-10 17:48:24 +00:00
Wei Tjong Yao
0af8f6afda Applied the UI-element child sorting fix recursively. 2013-04-10 12:30:08 +00:00
Wei Tjong Yao
f7195a0e6b Prevent unnecessary update on attribute inspector if it is not showing attributes of UI-element having the attribute changed event detected. 2013-04-10 11:58:45 +00:00
Wei Tjong Yao
5106e4cf00 Fixed the UI-element editor issue caused by child sorting. 2013-04-10 11:49:16 +00:00
Wei Tjong Yao
6925853d0c Fixed the signature of the UIElement 'parent' property setter. 2013-04-10 08:49:37 +00:00
Wei Tjong Yao
17714cb198 Further fine tuning on the UI subsystem. 2013-04-10 08:38:51 +00:00
Lasse Öörni
c1e1c20ea2 Added documentation page on navigation. 2013-04-09 21:26:10 +00:00
Lasse Öörni
606d374936 Added GetWorldBoundingBox() to CollisionShape.
Prefer physics geometry (trimesh, convex hull, box supported) when generating navigation mesh.
2013-04-09 19:02:26 +00:00
Wei Tjong Yao
05fd7419a7 Fixed UI-element debug draw overdrawing the modal element and menu popup. Refactored UI subsystem to support multiple modal elements and auto-dismissal of modal elements when ESC is pressed. The 'Is Modal' attribute of Window UI-element type can be tested in Editor. 2013-04-09 10:32:16 +00:00
Lasse Öörni
56a7f36a0c Store the indices of a physics convex hull in preparation to using it for navigation data.
Generalized the geometry collection list in NavigationMesh to hold any components.
2013-04-09 07:05:10 +00:00
Lasse Öörni
3fac48401a Added support for partial navmesh rebuild.
Added navmesh properties (bounding box, number of tiles) to the script API.
Serialize navmesh tiles directly from Detour data, do not keep a duplicate.
2013-04-08 23:14:47 +00:00
Lasse Öörni
d623481ad0 Changed to use a tiled navmesh to allow for larger navigable areas.
Fixed Navigation example using a detached navmesh component if scene was loaded.
2013-04-08 20:42:33 +00:00
Lasse Öörni
3c43ccb3f1 Transform geometry to local space of the navigation mesh root node to allow moving the root without invalidating navigation data. 2013-04-08 16:24:02 +00:00
Wei Tjong Yao
0eced5780e Implemented 'Save UI-element' functionality (currently the 'UI style' is also getting serialized, which is not preferable). Fixed UI debug draw from being rendered on top of modal window. 2013-04-08 08:15:58 +00:00
Wei Tjong Yao
2e57e55e84 Fixed a bug in XMLElement::RemoveChild() method. Implemented 'Save child UI-element' functionality. 2013-04-08 07:02:05 +00:00
Lasse Öörni
00eac389f9 Added "Is Enabled" attribute to Navigable. This only affects the build process of the navmesh. 2013-04-08 06:42:05 +00:00
Wei Tjong Yao
712de11c99 Debug draw UI-elements in Editor. 2013-04-08 03:51:54 +00:00
Lasse Öörni
be3b304836 Added batch files to start the navigation example.
Added recursive flag to Navigable to optionally disable recursive collection of geometries.
Check that Navigable is enabled before collecting navigation geometry.
2013-04-07 22:49:06 +00:00
Lasse Öörni
c11f65dfea Added FindPath() function to NavigationMesh.
Added navigation test script.
2013-04-07 19:12:29 +00:00
Lasse Öörni
a8d9904467 Debug-draw the navmesh.
Moved navmesh build data to a separate class so that it's cleaned up automatically when it goes out of scope.
2013-04-07 16:47:21 +00:00
Lasse Öörni
49ec63e620 To be safe, store the navmesh data for later serialization before Recast patches it. 2013-04-07 14:59:27 +00:00
Lasse Öörni
03dce6b988 Serialize navigation data along with the scene.
Added icons for Navigable & NavigationMesh.
2013-04-07 11:56:14 +00:00
Wei Tjong Yao
2d8d3705d7 Able to pick non enabled UI-elements as well. 2013-04-07 06:48:41 +00:00
Wei Tjong Yao
1c38290e77 Added functionality to select UI-elements by using cursor (Only enabled elements at this moment). Changed implementation of creating new component so that it also works for multi-edit nodes. 2013-04-07 06:12:57 +00:00
Lasse Öörni
0e713bd509 Generate Recast/Detour data. 2013-04-06 23:28:37 +00:00
Wei Tjong Yao
4d66b554c3 Fixed exit crashes issue in Editor (manifested itself when 'Edit' menu has been popped up). 2013-04-06 15:59:48 +00:00
Wei Tjong Yao
156b69e75a Fixed duplicate ID when copying/pasting UI-elements having more than one level deep. 2013-04-06 12:22:30 +00:00
Wei Tjong Yao
1230087620 Implemented all the common edit functionalities under 'Edit' menu for UI-element with undo/redo support. Exposed Variant's SetUInt() and GetUInt() to script. Enhanced UIElement's CreateChild() and LoadXML() to insert newly created child at the request child index, added new FindChild() method and exposed it. Added new XMLElement's SetUInt() and GetUInt() methods and exposed them. Simplified the Menu's hover logic to resolve stability issue. 2013-04-06 08:56:41 +00:00
Lasse Öörni
360af96588 Instead of just the "generate tangents" toggle, allow to pass any parameters to AssetImporter from the editor. Default "-t". 2013-04-05 20:30:09 +00:00
Lasse Öörni
a69999894b Fixed incorrect default value for WindowResizable (should be false.) 2013-04-05 17:22:36 +00:00
Lasse Öörni
b45fac020f Applied AssetImporter & MathAPI patch from primitivewaste. 2013-04-05 06:44:47 +00:00
Lasse Öörni
35c2d83370 Added code to collect navigation mesh geometry.
Added Recast/Detour build parameters to NavigationMesh.
Register navigation components to script.
2013-04-04 22:31:22 +00:00
Wei Tjong Yao
d5ddc3b3d6 Implemented 'Create new UI Element' functionality in the editor with undo/redo support. Some cosmetic changes in editor. Enhanced UI Script API to be able to define element event sender. Enhanced Menu to auto popup child menu when parent menu item is being hovered. 2013-04-04 18:00:52 +00:00
Lasse Öörni
b2ac526678 Added missing files. 2013-04-04 11:37:36 +00:00
Lasse Öörni
08075f0915 Reversed if's in Variant code to favor the correct type.
Added non-const Variant functions to get modifiable collection objects (buffer, variant vector, variant map.)
Added Recast & Detour libraries. Added skeleton of a Navigation library & component, no functionality yet.
2013-04-04 07:49:18 +00:00
Lasse Öörni
4fd43cc290 Check for quadratic / linear attenuation being zero. 2013-04-03 20:29:31 +00:00
Lasse Öörni
8adee0c3fd Support lights in AssetImporter scene mode (untested.)
Support lightmapped materials in AssetImporter (untested.)
2013-04-03 19:19:52 +00:00
Lasse Öörni
ba1eb8ef11 Added lightmapped LitSolid shader variation.
Fixed enviroment mapping not being affected by fog in deferred mode.
2013-04-03 17:30:39 +00:00
Wei Tjong Yao
fad0ce5a3f Fixed loading child UIElement. 2013-04-03 16:56:47 +00:00
Wei Tjong Yao
3599b1e038 Fixed the editor crash when recreating var with existing var name. Fixed editing problem with multi-coordinate user-defined variable (Vector3 and Color). 2013-04-03 15:50:47 +00:00
Wei Tjong Yao
eead67f02b Fixed handling of user-defined variables for UIElement in attribute inspector, hide editor internal variables (id, filename, modification flag). 2013-04-03 13:17:49 +00:00
Lasse Öörni
b492108ff0 Fixed missing enum attribute list null termination for Text. 2013-04-03 11:08:44 +00:00
Wei Tjong Yao
7d5fbf6759 Created new event for UIElement name changed. Enhanced Hierarchy window to update the list item when the UIElement's 'Name' and 'Is Visible' attribute value changes. Changed editor to ignore other shortcut keys (except ESC) when file selector is modal. 2013-04-03 10:25:13 +00:00
Wei Tjong Yao
2349fabdb4 Modified ESC key handling to give priority to dismiss file selector when it is displayed. 2013-04-03 07:46:02 +00:00