Commit Graph

9886 Commits

Author SHA1 Message Date
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
Lasse Öörni
978f098841 Tweaked the terrain icon. 2013-03-25 17:45:42 +00:00
Lasse Öörni
f8e309a07d Added initial editor icons. 2013-03-25 17:36:00 +00:00
Wei Tjong Yao
30ec39c8e3 Updated Editor to support iconized texts. Removed redundant code. 2013-03-25 12:59:28 +00:00
Lasse Öörni
b865108ecd Applied patch for poor CPU performance on MinGW builds. 2013-03-25 12:35:54 +00:00
Wei Tjong Yao
141ef101a9 Fixed a few issues in Editor: reselect the nodes back after unparenting; correct the child components and nodes insertion index after unparenting or dragdropfinishing; removed duplicate call to update node attributes. 2013-03-25 07:43:57 +00:00
Lasse Öörni
a3c66ca360 Detect sRGB capability also on Direct3D9.
Detect sRGB sampling & writing capability separately.
2013-03-24 23:56:19 +00:00
Lasse Öörni
6b6ab3da74 Fixed sRGB flag in renderpath RT definitions not being taken into account. 2013-03-24 23:25:29 +00:00
Lasse Öörni
6fe17dd966 Documentation and wiki update. 2013-03-24 23:07:58 +00:00
Lasse Öörni
5cda61c090 OpenGL sRGB framebuffer write mode.
If sRGB mode changed on a OpenGL Texture after it has already been created, recreate.
2013-03-24 22:45:41 +00:00
Lasse Öörni
3068d3c46c Fixed D3D9 build. 2013-03-24 21:32:14 +00:00
Lasse Öörni
b4599e046d Hardware sRGB texture support. OpenGL sRGB framebuffer writing implementation still missing. 2013-03-24 20:05:08 +00:00
Wei Tjong Yao
25372fafd8 Added new ListView attribute to control the root base indent in hierarchy mode. Enhanced the Hierarchy window in Editor to show icon for each item. Need better and more assets for the icons though. 2013-03-24 19:00:19 +00:00
Lasse Öörni
e9aacd1df9 Removed the AttributeListChanged event for now, as it was causing stack overflows in the editor. It was only needed to track changed attributes on script file reload.
Added fast path optimization into Text when has only one texture page (construct vertex data directly without creating the GlyphLocation structure.)
2013-03-24 12:10:57 +00:00
Wei Tjong Yao
dbc4f4b2f0 Fixed a regression issue where existing node was not updated correctly. 2013-03-24 07:13:38 +00:00
Wei Tjong Yao
cb357e8859 Fixed the default UIBatch constructor to init all new member variables. Reapply speed optimisation logic in Text batch. 2013-03-24 05:44:14 +00:00
Lasse Öörni
1032a1db4b Cleaned up includes. 2013-03-24 00:53:24 +00:00
Lasse Öörni
802530deb5 Use SetData() instead of locking the UI vertex buffer to simplify code. 2013-03-24 00:51:40 +00:00
Lasse Öörni
f166775a1d If UI element does not have a gradient, only convert the color once. 2013-03-24 00:24:59 +00:00
Lasse Öörni
c54a81c261 Calculate inverse texture size once during UIBatch construction. 2013-03-24 00:14:07 +00:00
Lasse Öörni
895819e8d2 Removed use of the UIQuad intermediate structure. Instead construct vertex data directly. 2013-03-23 23:28:59 +00:00
Lasse Öörni
1c7f970e30 Synchronize float and integer position of sprites.
Added sprite example application.
2013-03-23 19:52:10 +00:00
Lasse Öörni
5160610e25 Refactored freely rotating / scaling UIElements into a separate Sprite class; removed rotation from the base class as it would not work correctly with element hierarchies in most cases. 2013-03-23 17:50:11 +00:00
Wei Tjong Yao
d7f6b4d0b6 Enhanced UIElement to be able to set a default style file for later reference by children elements, added horizontal indentation feature, and added new E_LAYOUTUPDATED event. Enhanced ListView to better support hierarchy mode and added feature to show 'expansion triangle' in hierarchy mode. Fixed a bug in ScrollView to update view size correctly when resizing content element. Fixed a bug in Log's WriteRaw() method so it sends error message to stderr even in quite mode. Refactored Editor to take advantage of the enhancement. 2013-03-23 12:53:47 +00:00
Lasse Öörni
8d0692740b Added change event for node name. Fixes correct node names not showing up in editor when using "Load Node" and removes need for hardcoded name update.
Removed code for manual resource reload in the editor, as now automatic live-reload should work on all desktop platforms.
2013-03-23 12:47:04 +00:00
Lasse Öörni
171e802c8f Scene change events. Removes need for hardcoded hierarchy updates in the editor. May potentially have caused regressions, so needs to be approached with care. 2013-03-22 13:46:08 +00:00
Lasse Öörni
9ef8625e33 Fixed BorderImage attributes (tiled, blendmode) missing from script API.
Added possibility to rotate UI element contents around a pivot point. Note: UI::GetElementAt(), child elements and child element scissoring do not currently respect rotation.
2013-03-21 23:31:36 +00:00