Commit Graph

9836 Commits

Author SHA1 Message Date
Lasse Öörni
5ef102695d Fixed poor script performance in NinjaSnowWar, which was caused by each AI controller scanning for new target each frame. Now choose target only once, or when old target has died. 2013-03-09 15:21:50 +00:00
Wei Tjong Yao
4efdfc87dc Tidied up AttributeEditor.as, better way to handle attribute that has multiple components. Exposed a few more math constants to script. 2013-03-09 12:39:01 +00:00
Wei Tjong Yao
96f8cdabd0 Attribute with different values from multi-select is shown as non-editable and its value strikes out (if possible). Renamed 'Node / component edit' window to 'Attribute inspector'. 2013-03-09 06:18:54 +00:00
Wei Tjong Yao
9f674d25d9 Removed left-over code. 2013-03-09 00:59:10 +00:00
Lasse Öörni
53d87516b5 Documentation update.
Code formatting consistency.
Handle underscore escaping in DocConverter.
2013-03-08 21:43:14 +00:00
Lasse Öörni
b756022eb6 DocConverter improvements: ä / ouml; handling, [] escaping, and removal of automatic links from upper-camelcase words. 2013-03-08 19:47:29 +00:00
Lasse Öörni
6b28127751 DocConverter improvements. 2013-03-08 16:49:13 +00:00
Lasse Öörni
424e1750f4 Added note of online Doxygen documentation. 2013-03-08 15:58:56 +00:00
Wei Tjong Yao
34a849e00e Speed up TTF loading time. Tidied up code for loading/getting bitmap font. 2013-03-08 15:08:14 +00:00
Lasse Öörni
5064b43c1a Fix multithreading page. 2013-03-08 14:50:41 +00:00
Lasse Öörni
783ad6e147 Documentation fixes. 2013-03-08 14:46:55 +00:00
Lasse Öörni
57ab758ffd DocConverter fixes / additions. 2013-03-08 14:41:15 +00:00
Lasse Öörni
22ead3645c Started work on doxygen-to-wiki conversion for Urho3D documentation. 2013-03-08 14:23:46 +00:00
Wei Tjong Yao
c6bbe91faa Set the execute-bit on for *.sh. 2013-03-07 15:36:29 +00:00
Wei Tjong Yao
8957ef2126 Slightly darker background for non-editable LineEdit element. 2013-03-07 13:40:20 +00:00
Lasse Öörni
ecd89d7442 Fixed GCC build. 2013-03-06 21:47:40 +00:00
Lasse Öörni
c55c9cf064 Exposed AnimationTriggerPoint to script.
Exposed Material::SetTechnique() to script.
Added camera functions from Magic.Lixin.
2013-03-06 19:50:42 +00:00
Lasse Öörni
a2f2d4eccd Applied AngelCode bitmap font support from Magic.Lixin. 2013-03-06 16:26:57 +00:00
Lasse Öörni
7d3ba86a15 Revert test code. 2013-03-06 16:10:30 +00:00
Lasse Öörni
9964055dda Applied physics patch from Magic.Lixin.
Added selection only -mode to editor. This changes the key mappings.
2013-03-06 15:53:41 +00:00
Lasse Öörni
924225c11b Applied editor patch from weitjong. 2013-03-06 14:07:19 +00:00
Lasse Öörni
091fe0b15f In scene mode, output material lists for all imported models.
Do not apply empty material if a material from a material list can not be found. Instead retain the old.
Fixed outdated documentation.
2013-03-06 13:26:23 +00:00
Lasse Öörni
cbc5ccbe58 Fixed wrong signature for ReplaceExtension() function in script.
Fixed initial scene resource path in editor.
Fixed loading of editor UI configuration.
Allow casting AnimatedModel & Skybox to StaticModel in script.
Warn and redirect if StaticModel::SetModel() called on AnimatedModel().
Always output material list in AssetImporter model mode.
Editor reads imported model's material list when choosing model via component edit (Configurable, can be disabled from settings dialog.)
Simplified editor config file structure.
2013-03-06 12:31:51 +00:00
Lasse Öörni
ebcc766ac0 Minor code cleanup. Added GetAttribute() to Context, which returns a named attribute. 2013-03-05 22:52:51 +00:00
Lasse Öörni
12bddee240 Whether to use derived opacity can be configured per UI element. By default true, except for Text.
Added note of d3dcompiler_46.dll when compiling with the Windows 8 SDK.
2013-03-05 21:07:59 +00:00
Lasse Öörni
14ccd3b1f1 Applied attribute editor refactoring from Magic.Lixin. 2013-03-05 19:22:36 +00:00
Lasse Öörni
1eda3844f0 Applied further UI and editor patch from weitjong. Text is now shown at full opacity in the editor, and the min/max opacity is also configurable. 2013-03-05 18:43:06 +00:00
Lasse Öörni
c935966c36 Minor code cleanup in CreateConsole() & CreateDebugHud(). 2013-03-05 18:35:36 +00:00
Lasse Öörni
75a8823705 Use default zone's fog color to fill background when no viewports.
Expose default zone to script.
2013-03-05 18:07:51 +00:00
Lasse Öörni
b2645460ef Refactored view queuing in Renderer.
RenderSurface can define multiple viewports.
RenderSurface viewports can be set to update when visible in the scene (default, same as previous functionality), update always, or to update only when manually queued. The last two modes are useful when rendering a scene view eg. for use in a UI widget.
2013-03-05 16:30:53 +00:00
Lasse Öörni
c65842c361 Reversed the default attribute logic: by default do not save, but always save node transforms for readability, and scene's attributes so that they are correctly reset on scene load. 2013-03-05 08:18:14 +00:00
Lasse Öörni
da243eb31b Applied UI & editor related patch from weitjong.
Changelog:
- Urho3D engine returns proper exit code, supports window resizing and quite mode, supports setting of any log level regardless of built type.
- Change the default graphic resolution in windowed mode from 800x600 to 1024x768 which I believe should be more common now.
- Log subsystem distinguishes between standard output and standard error streams. Error log entries are sent to stderr, so even in quite mode which stops sending to stdout, the error entries would still be shown on console. This is handy to weed out mundane entries from error entries during debugging/development.
- For UI elements, only save attribute values that are different than default attribute values during save serialization.
- Misc. UI enhancement: slider supports paging on 'empty' area along the slider; scrollbar responds to the slider hover and click on 'paging' area; menu supports passing the popup state to its sibling when mouse hovering pass the sibling; (bug fix) prevent button to generate release event erroneously (click outside, drag, hover inside, then release), plus now it should behave correctly on other situation (e.g. click inside, drag outside, then drag inside again); file-selector, list view, and line edit accept keypad 'Enter' as well; cursor supports defining shape for OS mouse too when it is set to visible, new busy cursor shape; (bug fix) fix the text default attribute values for selection and hover color to match the color assigned by constructor; line edit supports double-click to select all; scrollview hides the horizontal and vertical scrollbars automatically if not needed (still does not hide correctly on a few cases though :-).
- Refactoring the scripts in Editor application to take advantage of the Urho3D UI potential and other small improvements, like: fade out the UI when moving or rotating the scene; relayout the UI element when main window resize in windowed mode; demo the usage of busy cursor when loading scene from file; modified node/component attribute values are shown with different text label color; store the configuration file in hidden folder under user home folder as per normal practice for applications runs on MacOSX and Linux platforms; use the OS mouse so the it can move freely between Editor in windowed mode and other graphical apps.
The UI attributes in *.xml files are adjusted accordingly. The most important change is, the cursor shape now uses Image resourceref instead of Texture2D.
- Refactoring to replace code constructing the empty instance with reference to static const 'empty' instance whenever it is available; refactoring to remove redefinition of VariantMap and VariantVector in Serializer.h.
- Bug fixes: prevent double posting of error messages in the log on MacOSX and Linux platforms when Urho3D exits on error; fix DumpAPI() from erroneously substituting 'doubleClickInterval' to 'floatClickInterval'.
- Added a new tool to make dumping of the Script API even easier. I have managed to initialize a minimalist engine's subsystems to start the DumpAPI() function.
2013-03-05 08:01:29 +00:00
Lasse Öörni
54991f9f04 Added documentation page on shaders. 2013-03-04 13:49:01 +00:00
Lasse Öörni
dca5f4fe03 Only close TCP sockets if received 0 bytes. 2013-02-27 20:22:30 +00:00
Lasse Öörni
4e836e574f Migrated to AngelScript 2.26.1 WIP.
Octree code cleanup.
Added nullchecks to RigidBody in case Bullet callbacks are fired when the body's scene node has been destroyed.
2013-02-20 11:16:27 +00:00
Lasse Öörni
8d68690cf4 Applied documentation patch from weitjong. 2013-02-19 14:16:22 +00:00
Lasse Öörni
4f948028e4 Fixed bounding box center & halfsize not being updated in Octree::Resize(). 2013-02-19 14:05:15 +00:00
Lasse Öörni
3002776ea4 Fixed incorrect octree insertion of drawables in some cases (eg. large terrain.)
Added ToString() to BoundingBox.
Removed unnecessary defined_ variable from Frustum.
2013-02-19 13:55:17 +00:00
Lasse Öörni
fbe4591414 Fixed missing range expansion from unpacked normal maps. 2013-02-14 20:03:26 +00:00
Lasse Öörni
14fa3b3d6e Added SavePNG() function to Image. 2013-02-09 23:16:13 +00:00
Lasse Öörni
92eb073cb7 Applied cmake patch from weitjong.
Renamed finalize_exe and finalize_lib cmake macros to setup_executable & setup_library, as they already do much more than finalization.
2013-02-07 09:46:23 +00:00
Lasse Öörni
e6410af3cd Reverted unused variable optimization due to iOS compile error. 2013-02-03 22:17:20 +00:00
Lasse Öörni
cdc9226b34 Fixed GCC build on OS X. 2013-02-03 21:57:42 +00:00
Lasse Öörni
3dc3c836a6 Applied patch from weitjong, which improves OSX/iOS build, and removes dead code. 2013-02-03 21:31:24 +00:00
Lasse Öörni
d867b3da2e Fixed error in documentation. 2013-02-03 13:22:43 +00:00
Lasse Öörni
aa1c2b8605 Added warning for creating any of the physics components into the root scene node, as that is unsupported and may not eg. reload properly. 2013-02-01 17:23:37 +00:00
Lasse Öörni
193735e090 Reverted the enum optimization from Serializable. 2013-02-01 15:44:47 +00:00
Lasse Öörni
9d82a32c9e Added constraint & collision shape type "none" as default value to avoid unnecessary creation of shapes on scene load, before proper attribute values are deserialized. Do not create shape/constraint in OnNodeSet(), as the type is always "none" at that time.
Reactivate a rigid body when any constraint is removed from it.
2013-02-01 13:37:31 +00:00
Lasse Öörni
26f23adb14 Applied UI patch from primitivewaste. 2013-01-30 13:52:51 +00:00
Lasse Öörni
e4d3046a50 Removed unused function from Octant. 2013-01-30 00:35:43 +00:00