Граф коммитов

336 Коммитов

Автор SHA1 Сообщение Дата
Lasse Öörni c85528de50 Allow to prevent modal window's auto dismissing with ESC by calling Window::SetAutoDismiss(false). Purposefully not an attribute to avoid locking up the editor. Closes #471. 2014-09-29 23:06:07 +03:00
Lasse Öörni 3e4882bfa5 Unify SetDeepEnabled() API between UI & Node. Removed IsDeepEnabled() function & "Is Deep Enabled" attribute as it may return different value than last SetDeepEnabled() and can not therefore serialize/deserialize accurately. Instead added IsEnabledSelf() which returns the enabled state before SetDeepEnabled(). Changed Node::SetEnabled(bool, bool) to SetEnabledRecursive(). Unlike SetDeepEnabled() it does not preserve node's self enabled state. Added AngelScript binding for SetDeepEnabled operations. 2014-09-25 00:10:56 +03:00
Lasse Öörni 30e39afdd6 Merge remote-tracking branch 'remotes/hdunderscore/UIElement_SetDeepEnabled' 2014-09-23 21:17:00 +03:00
Lasse Öörni 0f9e8c6762 Move DebugHud update to PostUpdate event so that values set during Update will be displayed on the same frame. Additionally, exposed DebugHud::Update() to script to allow calling it manually and forcing update of values, if necessary. Closes #466. 2014-09-23 10:14:26 +03:00
hdunderscore f382ab895f Fixed a compile error with LUA. 2014-09-23 14:11:02 +10:00
hdunderscore 2966800ffc Added UIElement methods SetDeepEnabled / ResetDeepEnabled / IsDeepEnabled to allow setting enable on an element + all it's child elements / reset it to previous state.
Example usage: On scroll view, could disable all children while touch-scrolling to prevent accidental triggering of items.
2014-09-23 12:35:43 +10:00
Lasse Öörni 066589b67d Fixed warnings. Added script bindings for scroll deceleration parameters. 2014-09-21 18:06:51 +03:00
Lasse Öörni 552a323b84 Allow non-const access to a Connection's identity also in C++. 2014-09-17 01:01:14 +03:00
Lasse Öörni ec7c262be6 Expose Matrix4 * Matrix3x4 to scripting. Move the multiply as a Matrix4 member function so that it can be properly exposed to lua. 2014-09-16 23:52:44 +03:00
Lasse Öörni 5ce05d4cb6 Fixed missing horizontal flip from the vertical cross cubemap layout. 2014-09-15 15:04:27 +03:00
Lasse Öörni 6f980453b6 Added success return value to Image::FlipVertical(). Fixed return value of Image::Resize() in AngelScript bindings. 2014-09-12 01:16:37 +03:00
Yao Wei Tjong 姚伟忠 b4e857ab4f Set all the headings in Urho2D and scripting API pages to proper case. 2014-09-10 13:06:38 +08:00
Lasse Öörni 3a93866936 Add LZ4 compression functions to public API. Expose the VectorBuffer compression/decompression functions also to script. Closes #438. 2014-08-30 01:03:25 +03:00
Lasse Öörni 3f5280aa3a Add one second delay to file change notifications by default. Possibly helps with #408. Removed FileWatcher from Lua bindings as it's not a class you can readily use from script and it is not exposed to AngelScript either. 2014-08-28 14:04:09 +03:00
aster2013 c82759de85 Add STAGGERED tile map support. 2014-08-28 12:18:35 +08:00
aster 649edf054d Rename TileObject2D to TileMapObject2D, rename some functions. 2014-08-27 22:21:29 +08:00
aster2013 f0e874c69f Merge branch 'master' of https://github.com/urho3d/Urho3D 2014-08-25 10:27:13 +08:00
Lasse Öörni 0472b4d410 Allow sending client observer rotation in addition to position. Note that rotation is not used by the NetworkPriority component, but can be used for custom logic. Do not send the observer pos/rot until actually set by the client. Closes #428. 2014-08-24 02:42:27 +03:00
aster 46fcd67794 Add name and type support for tile map objects. 2014-08-23 20:57:53 +08:00
aster2013 937ed5f732 Merge branch 'more-options' 2014-08-22 17:47:06 +08:00
aster2013 a2ead6f404 Add index to position convert function in TileMap2D 2014-08-22 12:52:41 +08:00
aster2013 a04edb1108 Refactor tile map, add TileMapInfo2D struct. 2014-08-21 21:03:03 +08:00
aster2013 25132bd4a0 ADD URHO3D_PHYSICS AND URHO3D_NAVIGATION OPTIONS. 2014-08-21 12:41:24 +08:00
Lasse Öörni 9246a5cfdb Dump a class list to AngelScript & Lua API dox pages. Also add a table of contents to both. Closes #426. 2014-08-20 20:16:42 +03:00
aster 8c99b8d866 Merge branch 'tile-map' 2014-08-13 22:16:19 +08:00
aster 85bcdaecf4 Add screen to world convert functions, PhysicsWorld2D use these function to pick rigid body. 2014-08-13 22:07:46 +08:00
Lasse Öörni 89f6b31a47 Enhance the ConvexCast function to take a start pos,rot & end pos,rot instead of just a ray, so that the swept shape can be rotated. Ignore collision to self during convex cast, if the supplied shape belongs to a RigidBody. 2014-08-12 22:26:53 +03:00
Lasse Öörni a717793e3e Added ConvexCast function to PhysicsWorld, which performs a sweep test with user-specified collision shape. Closes #420. 2014-08-11 23:20:01 +03:00
Lasse Öörni 8357e50afb Merge remote-tracking branch 'remotes/ninjastone/master' 2014-08-11 21:00:49 +03:00
ninjastone 390016fd76 Added script bindings 2014-08-11 23:41:31 +09:00
aster d13338f793 Add isometric map support. 2014-08-11 21:13:13 +08:00
aster 56c677c759 Add tile map AngelScript binding and sample. 2014-08-11 18:15:46 +08:00
aster2013 a3c819f32a Add tile map Lua binding and sample. 2014-08-11 13:26:39 +08:00
aster 9e716da779 Dump used resource file name at sample exiting. 2014-08-04 22:02:59 +08:00
Lasse Öörni 46be516f56 Improved CustomGeometry API for vertex updates, and possibility to make the vertex buffer dynamic. Closes #415. 2014-08-02 12:57:56 +03:00
Lasse Öörni e68c051a35 Added rest of geometry types. Closes #413. 2014-07-31 22:04:16 +03:00
Lasse Öörni ad737e0d6e Documentation for background resource loading. Expanded Scene::LoadAsync() to either background load resources only, load scene + resources synchronously, or background load resources first, then load the scene. Closes #406. 2014-07-24 22:45:31 +03:00
Lasse Öörni 8ab908b1c9 Configurable max work time in ms per frame for finishing background loaded resources, and for non-threaded work in WorkQueue. Fix iteration bug if finishing several background loaded resources in one go. 2014-07-23 15:11:45 +03:00
Lasse Öörni 8463393377 Initial resource background loading API and implementation. Background loading-capable implementation for textures (load image in background thread, upload image to GPU in main thread), other resources todo.
Allow dynamically created profiler block names by copying the name C string.
Texture Load() function with image pointer renamed to SetData() to not confuse with the threaded/nonthreaded resource loading functions.
2014-07-22 01:30:02 +03:00
Lasse Öörni e82b3d53a1 Added support for zones defining a texture (either cube or 3D), that will be available in pixel shaders when rendering objects inside the zone. 2014-07-16 16:30:08 +03:00
Lasse Öörni b80fbc8817 Added Clone() function to Model, which deep-copies all data including vertex/index buffers, so that the clone can be individually animated. Closes #402. 2014-07-15 21:48:15 +03:00
aster f9e555c19d Merge branch 'remove-short-string-hash'
Conflicts:
	Source/Engine/Script/CoreAPI.cpp
2014-06-30 10:59:49 +08:00
Lasse Öörni 10046d4b26 Added integer API for setting Image pixels. 2014-06-28 09:57:13 +03:00
Aster@中国上海 84fe0946c8 Remove ShortStringHash, Now all of ShortStringHash are replaced by StringHash. 2014-06-21 21:45:05 +08:00
Lasse Öörni 016296a860 Remove unused variable. Fix Terrain Lua binding. 2014-06-21 02:08:09 +03:00
Lasse Öörni c85499b695 Allow relatively fast partial updates to a terrain by modifying the heightmap image and calling ApplyHeightMap(). Added WorldToHeightMap() function to Terrain for converting world coordinates to heightmap pixel positions. 2014-06-21 01:51:32 +03:00
Lasse Öörni 3bbc756aeb Merge branch 'particle-emitter-refactor' 2014-06-18 21:11:37 +03:00
Lasse Öörni c3fc39132b Made ParticleEmitter::ApplyEffect() public, as it's necessary if changing certain properties of the effect programmatically. Also mark network update if the emitter's effect is changed to none. 2014-06-17 23:28:32 +03:00
Lasse Öörni 6a044a324b Fix missing viewMask parameter in Lua Raycast & RaycastSingle. 2014-06-17 16:17:06 +03:00
Aster@中国上海 7616457c21 Fix some functions name, add AS binding. 2014-06-16 18:38:55 +08:00