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
Lasse Öörni
c8ee94c9aa
Fixed GLEW Linux build.
2013-03-20 22:28:16 +00:00
Lasse Öörni
ff564d3360
Switched to GLEW library for OpenGL extensions.
2013-03-20 21:52:53 +00:00
Wei Tjong Yao
cddaa40080
Fixed ScriptInstance.cpp to compile under GCC and LLVM. Better Eclipse build environment setup. General code cleanup. During Editor startup, resets scene when loading requested scene from file specified by the parameter fails.
2013-03-19 09:20:54 +00:00
Lasse Öörni
78be6bf40b
Clarified event description.
2013-03-18 23:25:37 +00:00
Lasse Öörni
852047545e
Added section on bytecode precompilation to the scripting documentation page.
...
ScriptInstance sends an event when the script object is created, so that the attribute inspector can be refreshed in case attributes change.
2013-03-18 22:55:41 +00:00
Lasse Öörni
893133e1cd
Fixed root CMakeLists.txt
2013-03-18 15:01:38 +00:00
Lasse Öörni
7c1ed151fa
Merged the functionality of ScriptCompiler & ScriptAPIDumper.
2013-03-18 14:13:01 +00:00
Lasse Öörni
5cc2b497fd
Reset dependency tracking also at ScriptFile destruction.
2013-03-18 08:13:06 +00:00
Lasse Öörni
74c01e7da5
Added compiled AngelScript bytecode support.
...
Removed unnecessary nullcheck from View.
TODO: merge ScriptCompiler & ScriptAPIDumper.
2013-03-18 08:09:27 +00:00
Wei Tjong Yao
7f4f0fb60d
Further refinement.
2013-03-18 05:07:15 +00:00
Wei Tjong Yao
741badfade
Fixed the ScriptFile to prevent it from amending the path for include file unnecessarily and added a new error log to help identifying script file that have problematic include. Refactored ListView to support persistent expand/collapse state at each parent item in hierarchy mode, the exposed API is slightly changed. Renamed 'Scene Hierarchy' window to just 'Hierarchy' in the Editor app in preparation for future work, also created new function to differentiate between scene creation and scene reset.
2013-03-18 00:18:48 +00:00
Lasse Öörni
321d9ef74b
Fixed GLSL shaders not updating source code on live reload.
2013-03-17 19:28:18 +00:00
Lasse Öörni
cf36528fd4
Return the texture usage accurately for OpenGL textures.
2013-03-17 17:10:11 +00:00
Lasse Öörni
6382d476f8
Dependency tracking for GLSL shaders. Does not actually effect rendering yet, needs investigation.
...
When reloading a resource, do not remove it from cache if failed.
2013-03-17 12:28:45 +00:00
Lasse Öörni
87aa8baeb4
Fixed variable name in resource reloading loop.
2013-03-17 11:24:50 +00:00
Lasse Öörni
245e678fd6
Refactored resource dependency tracking.
...
Reset material to defaults when reloading.
2013-03-17 11:21:23 +00:00
Lasse Öörni
8e908c2c60
Added dependency tracking for HLSL shaders, allows live shader reload if HLSL file or any of its includes changes.
2013-03-17 01:16:55 +00:00