Commit Graph

9612 Commits

Author SHA1 Message Date
Lasse Öörni
188867739c Fixed hierarchy window not updating correctly when component is removed. 2013-04-02 00:17:45 +00:00
Wei Tjong Yao
2bf7facaa7 Laying the groundwork in the Attribute Inspector for showing the UIElement's attributes (still need more work). Enhanced UI subsystem to support modal element, currently only support modal Window. Exposed a new Variant readonly property to test for 'empty' variant. New UIElement's method to get a child by matching the child's user-defined variant map and exposed it to script, also exposed the existing GetVar() method to script. 2013-04-01 16:04:41 +00:00
Lasse Öörni
0705a15c11 Further small fixes to the main loop documentation. 2013-04-01 15:22:55 +00:00
Lasse Öörni
9532e7fdd1 Renamed documentation page. 2013-04-01 15:14:59 +00:00
Lasse Öörni
a963ce7d37 Documented missing LogName parameter. 2013-04-01 14:54:03 +00:00
Lasse Öörni
b28621a3a4 Documented engine initialization parameters. 2013-04-01 14:33:38 +00:00
Lasse Öörni
3803983c3b Fixed Assimp's BoostWorkAround for GCC. 2013-03-31 23:19:33 +00:00
Lasse Öörni
42448b8924 Updated to AngelScript 2.26.2.
Small fixes to "Quickstart in C++" documentation.
2013-03-31 22:09:28 +00:00
Lasse Öörni
34df8b5e82 Fixed headless mode.
Allow StringHash & ShortStringHash to be constructed implicitly.
Code cleanup related to the above.
2013-03-31 21:41:50 +00:00
Lasse Öörni
ce562fb894 Refactored Engine to use a startup parameters VariantMap.
Enhanced VariantMap to accept indexing via strings.
2013-03-31 13:14:21 +00:00
Lasse Öörni
217682a696 Require Ogre .mesh.xml & .skeleton.xml files to have correctly named root elements. 2013-03-31 10:46:16 +00:00
Wei Tjong Yao
89bc93069a Refactored EditorUI.as to use funcdef callback for menu handling. 2013-03-31 08:42:34 +00:00
Wei Tjong Yao
8bdd0d7a5b Added new file for the UI element editor. 2013-03-31 01:50:05 +00:00
Lasse Öörni
31abcd7158 Fixed warning & off-by-one error. 2013-03-30 22:44:04 +00:00
Lasse Öörni
6a7ffdcd19 Updated to newest AssImp from git repository.
Fixed File::GetChecksum() logging numerous errors if file open in write mode. This prevented AssetImporter scene mode from working properly.
Fixed DocConverter asserting in debug mode. Added safe IsAlpha() & IsDigit() functions to StringUtils and exposed them to script.
2013-03-30 22:35:11 +00:00
Lasse Öörni
1c533b5611 Fixed camera position incorrectly depending on view angle in CharacterDemo first person mode. 2013-03-30 19:41:39 +00:00
Lasse Öörni
3539fcd26e Improved the final error message printed when an include file is missing.
Split CharacterDemo into multiple files.
Fixed missing VectorBuffer.h include in AnimationController.h.
2013-03-30 18:56:53 +00:00
Wei Tjong Yao
29b23c16d9 Cleanup source code indentation. 2013-03-30 14:11:05 +00:00
Wei Tjong Yao
75df330fe3 Started work on UI element editor, pardon the dust. Added 'traversalMode' property to UIElement and exposed it to ScriptAPI to control the children UI batches generation. Enhanced Scene to safe keep the filename used in last serialization, fixed to perform a Clear() before Load()/LoadXML(). Exposed String's Clear() method to Script API. Fixed ListView to insert multiple top-level items in hierarchy mode correctly. 2013-03-30 13:59:47 +00:00
Lasse Öörni
895f909297 Include cleanup. 2013-03-30 00:54:14 +00:00
Lasse Öörni
dde474149f Fixed camera raycast when character has back to wall. 2013-03-30 00:23:33 +00:00
Lasse Öörni
47438c4a35 Set character & static objects on different physics collision layers so that the camera raycast does not hit the character mistakenly. 2013-03-30 00:04:28 +00:00
Lasse Öörni
6fbd76183b Comment cleanup. Use a WeakPtr for the character because the scene already owns it. 2013-03-29 23:49:08 +00:00
Lasse Öörni
1d60bc59fa Added check to ListView to see if has been destroyed as a response to the selection event.
Added CharacterDemo C++ example to Extras.
Improved the QuickStart in C++ to be cross-platform.
2013-03-29 23:40:51 +00:00
Wei Tjong Yao
4f0fad1d54 Fixed the copy paste error which caused an inbalance in the layout update control. 2013-03-29 17:26:25 +00:00
Lasse Öörni
8aee95c85b Fixed editor doing always a fullupdate on attributes (caused a crash as ListView was destroyed while it was sending the selection event.)
Fixed LOD mode in AssetImporter not saving vertex & index buffers.
2013-03-29 16:01:59 +00:00
Lasse Öörni
62e3d47f6b Added option to ParseArguments() to not skip the first argument. 2013-03-29 12:04:56 +00:00
Wei Tjong Yao
aa820590fb Fixed the Editor crash when selecting node and scene at the same time in the Hierarchy window. 2013-03-28 16:33:57 +00:00
Wei Tjong Yao
06f3580948 Enhanced the Attribute Inspector to show the 'Is Enabled' check box on the node/component 'title bar' instead of in the attribute list; and small refactoring to reduce the number of parameters being passed in a number of functions. Refactored to modify AttributeInfo's name to become a String. Exposed 'internal' property of UIElement to Script API. Enhanced Text class so that it renders the selected text being hovered by mouse a little differently than those without. 2013-03-28 11:00:18 +00:00
Lasse Öörni
f226c4bc4a Added equality operators for Matrix classes. 2013-03-27 21:27:51 +00:00
Lasse Öörni
1930041147 Optimization: DecalSet & ScriptInstance unsubscribe from scene update when disabled. 2013-03-27 17:30:10 +00:00
Wei Tjong Yao
aea4ca178c Fixed the Editor so it does not change the opacity of the 'popup' window (e.g. menu popup or file selector) when hiding the UI. The string representation of the accel key is now auto computed instead of passing by parameter manually. 2013-03-27 11:14:02 +00:00
Wei Tjong Yao
827035e36e Fixed the UIElement to perform the parent's UpdateLayout() when an element's indent or indentSpacing is changed. Fixed the UIElement from altering the child element's alignment during UpdateLayout(). Enhanced Editor to show menu accelerator keys in the menu popup. Replaced the accel key for attribute inspector window to 'Ctrl+I' to match its current window name. Added accel key for new scene menu item. 2013-03-27 09:02:10 +00:00
Wei Tjong Yao
a26fe6eba0 Updated the comment and moved back audio initialization to before scene initialization as it does not depends on it once more. 2013-03-27 06:07:00 +00:00
Lasse Öörni
251e31eb23 Update also attributes when updating node icons, to ensure the "Is Enabled" checkboxes are in sync. 2013-03-27 00:10:05 +00:00
Lasse Öörni
d35f3b5035 Removed duplicate error message from ScriptCompiler when script compilation fails.
Removed the "None" constraint & collision shape type for editing convenience. Note: Either the SetBox() etc. functions or ApplyAttributes() needs to be called to create the initial shape. This is to prevent a dummy shape first being created on scene load, then immediately being destroyed.
Do not debug draw disabled components.
Fixed music cutting off in networked NinjaSnowWar.
Fixed signed/unsigned mismatch in LightTest script code.
2013-03-26 22:23:39 +00:00
Lasse Öörni
f5b837f460 Exposed recursive SetEnabled() differently, to match convention of the rest of recursive Node functions and eliminate code duplication.
Added Ctrl+E in editor to toggle enabled/disabled state of selected node hierarchies and components.
2013-03-26 21:23:15 +00:00
Lasse Öörni
e037de8c74 Added Enable/Disable flag for RigidBody.
Reduced GCC optimization level to -O2 for stability.
2013-03-26 18:54:15 +00:00
Lasse Öörni
305ab9a5f4 Fixed Physics example. 2013-03-26 17:00:19 +00:00
Lasse Öörni
5a6ff56b1e Added Enable flag to CollisionShape & Constraint (RigidBody still missing.)
Draw CollisionShape debug geometry in white if its associated RigidBody is active.
Set plane CollisionShape plane parameter to a fixed 0, as it can be offsetted using offset position/rotation, like other shapes.
2013-03-26 16:58:23 +00:00
Wei Tjong Yao
ec4db66a46 When node or component has mixed enabled state, show the icon with mixed color also. 2013-03-26 09:41:21 +00:00
Lasse Öörni
3cbf2cd402 Detach AnimationController & ParticleEmitter from the scene post-update when disabled. 2013-03-26 08:37:07 +00:00
Lasse Öörni
eabed117ac Fixed the terrain example for new convention. 2013-03-26 07:53:09 +00:00
Wei Tjong Yao
c3f4906bd0 Fixed the NinjaSnowWar demo to 'attach' the BGM SourceSource component to the main scene node to make it (effectively) enabled. 2013-03-26 05:39:38 +00:00
Wei Tjong Yao
2a4a089fc1 Detached component is considered as not enabled effectively regardless of its own enabled flag. Tweaked the 'expansion triangle' icon. 2013-03-26 05:11:46 +00:00
Lasse Öörni
5830f0e5d1 Convention change: prefer Enabled instead of Active where possible.
Do not transmit hover to input-disabled UI elements.
Documented the node/component enable/disable mechanism.
2013-03-26 00:37:02 +00:00
Lasse Öörni
9be174c473 Disabled Camera does not render.
Disabled SoundListener does not hear 3D sounds.
2013-03-25 22:43:57 +00:00
Lasse Öörni
5b2d3bc430 Icon tweaks. 2013-03-25 21:50:32 +00:00
Lasse Öörni
b21a1ed0aa Fixed LightTest. 2013-03-25 21:09:55 +00:00
Lasse Öörni
af8825047a Started work on node/component enable & disable.
Converted Drawable components to use the Enabled flag (replaces Visible attribute.) 
Converted ScriptInstance to use the Enabled flag.
Converted SoundSource & SoundSource3D to use the Enabled flag.
Show disabled node/component icons in red.
2013-03-25 21:02:35 +00:00