Commit Graph

255 Commits

Author SHA1 Message Date
orefkov
4a6e16344b
Update AngelScript to 2.35.1. (#2831)
* Update AngelScript to 2.35.1. Now it support native calling convention for ARM64.

* Change comment.
2021-10-05 20:22:27 +03:00
Wang Kai
ffa6a9d6e2
Fix UI scale issues. (#2779)
* Fix UI scale issues.

* Fixing of UI scaling issue.

* Unify cursor in UI scaled position.

* Scaled UI issue: JSCanvasSize modification

* Remove extra space.

* Fixed Editor viewport related issues when UI scaled.
2021-02-21 21:08:16 +03:00
PencilAmazing
2dcefeb54f
Added checkbox for editor to parent spawned nodes to selected node (#2766)
* Added checkbox for editor to parent spawned nodes to selected node (and renamed the option above it)

* Convert tabs to spaces.

* Curly braces

* More formatting.

* Formatting

* Changed default setting to false.

* Removed redundant null check

* Update EditorSpawn.as

Co-authored-by: 1vanK <1vanK@users.noreply.github.com>
2021-01-26 17:11:27 +03:00
PencilAmazing
0dfd145018
Fix conditional typo in EditorSpawn.as (#2764)
* Fix typo in EditorSpawn.as

* Update EditorSpawn.as

* Update EditorSpawn.as

Co-authored-by: 1vanK <1vanK@users.noreply.github.com>
2021-01-21 21:40:41 +03:00
1vanK
ef1dfe3417
AS Autobindings 2020-10-28 19:18:41 +08:00
1vanK
7ec6290d68 Add sRGB option to editor 2020-07-07 23:28:53 +03:00
fredakilla
b6325ac172
Editor addon : Duplicator Editor (#2193)
* add mulyiply editor

* update multiply editor

* remove unused pretransform and create new checckbox options, : clones in node, and swicth transform

* rename to Duplicator editor
2020-02-14 09:34:50 +02:00
Igor Segalla
488eb1303c
Fix Terrain Editor brush #2471 (#2558)
* Fix Terrain Editor brush #2471

Now is possible to leave from painting mode on Terrain Editor . You can simply press the button to reset window next to close button on title bar, or close/hide Terrain Editor window.

* Fix hide brush visualizer on OSX
2020-02-06 09:20:35 +02:00
Yao Wei Tjong 姚伟忠
c8469ba8c3
Fix Editor crash after a component is selected.
Fix #2384
2019-05-19 15:50:37 +08:00
Yao Wei Tjong 姚伟忠
8b644c22ce
Quick fix for Editor segfault during starting up. 2019-05-19 15:50:37 +08:00
Neal_Nicdao
b1c3ce30ec
Added new EmitterTypes
* Added SphereVolume, Cylinder, and Ring enum with calculations
 * Modified EditorParticle to incorporate new emitter shapes
2018-11-25 21:25:58 +08:00
Yao Wei Tjong 姚伟忠
81d66be594
Fix editor's OK button due to StringHash is now case-senstive. 2018-08-26 11:57:55 +08:00
1vanK
2482502b84 Editor: more info about models 2018-05-14 07:43:45 +08:00
Yao Wei Tjong 姚伟忠
80668bf125 Add Scene::IsReplicatedID() static helper method for code reuse.
Modify the Angelscript binding of the Component::IsReplicated() to use asMETHODPR macro to keep VS happy.
2018-01-28 07:38:58 +08:00
Yao Wei Tjong 姚伟忠
23a696676d Add IsReplicated() method for Node and Component classes.
Close #2211.
2018-01-28 00:11:31 +08:00
Yao Wei Tjong 姚伟忠
c29cb530b6 Clang-Tidy - google-default-arguments.
Refactor Serializable::Load(), Seriazable::LoadXML(), and Serializable::LoadJSON() virtual methods.
2017-12-31 13:48:27 +08:00
SuperWangKai
395651fafd Improved robustness when view closer 2017-09-11 10:26:56 +08:00
SuperWangKai
f258f10c0c Fixed bounding box merging problem for node and component 2017-09-09 00:29:17 +08:00
SuperWangKai
fcc1071f64 Add 'Rotate Around Selection' to simulate the legacy way of camera orbit 2017-09-08 16:31:21 +08:00
SuperWangKai
2367f9eec8 Interrupt camera interpolation when user pan/orbit/zoom camera 2017-09-08 15:42:28 +08:00
SuperWangKai
0e88ed738e Editor camera improved:
1. Camera now has a virtual look-at point. Camera can now rotate around the look-at point or as well as itself. No focus will be lost during camera operation (issue #2039). New object can place at this look-at point(view center).
2. Better camera close-look - adjust pos/zoom of camera and make view frustum fit the calculated bounding box of selected nodes and components.
3. Double click component in Hierarchy Window can also look close to the node.
4. Camera smooth interpolation - pos/rot/zoom smooth interpolating for close-look, top/front/side view switching.
5. Removed MouseWheelCameraPosition to make camera less confusing.
6. Key/Mouse changed - Added F key(Standard Hotkey, many popular tools use this key) and NumPad Period(Blender Hotkey) for camera close-look. Moving middle mouse button for orbiting around look-at and right button movement for orbiting around camera itself (For standard Hotkey).
2017-09-06 16:51:30 +08:00
Eugene Kozlov
b617a576c4 Added attribute metadata. Removed attribute variant structure element names. Resolves #1766. 2017-08-27 12:02:47 +03:00
Lasse Öörni
83c17c7dc6 Robustness improvements for terrain editor brush loading. Closes #2011. 2017-07-06 18:13:13 +03:00
Lasse Öörni
f413945c98 Fix editor UI resolution detection for whether to lay out the status text on 1 or 2 rows. 2017-05-03 02:00:53 +03:00
Lasse Öörni
5fecffe8bd Fix dialog centering in the editor to use UI root size instead of screen size, which may not be the same. 2017-04-22 13:03:06 +03:00
orefkov
1556605471 Clear tabs 2017-04-08 20:50:44 +03:00
orefkov
fa71240346 Add color wheel in editor for Text3D component. 2017-04-08 20:50:44 +03:00
Lasse Öörni
5f2b2132d7 Fix use of fileSystem.programDir in the terrain editor. Use the resource system / scene resource path instead. Closes #1852. 2017-03-19 12:12:35 +02:00
Lasse Öörni
48a1f3dcdd Take fix from AngelScript WIP version to fix temp variable corruption. Remove now unnecessary fix from Editor script code. Closes #1850. 2017-03-08 14:26:52 +02:00
Lasse Öörni
ac821d21c1 Fix editor resource browser preview camera position and failure to assign model by drag & drop. Closes #1848. 2017-03-07 17:25:17 +02:00
Lasse Öörni
9999c44809 Fix resource browser scene node addition/removal getting reflected in the editor hierarchy window. 2017-03-07 16:55:52 +02:00
Lasse Öörni
4c877d98ee Merge remote-tracking branch 'luveti/editor-terrain' 2017-02-18 22:47:57 +02:00
luveti
1ce189361d Added brush visualizer to the TerrainEditor. 2017-02-16 23:16:12 -05:00
luveti
8d7b4b0b58 Make sure to clip undo / redo buffer bounds to the heightMap bounds in the TerrainEditor 2017-02-16 01:14:31 -05:00
luveti
7798f1f2ca Added basic undo / redo support 2017-02-15 23:21:37 -05:00
luveti
3511050a96 Updates to Terrain Editor
+ Added settings for the currently selected tool. This includes brush size, brush opacity, and brush height
+ Improved the speed of the smoothing algorithm by removing the new Array that was being created
+ Ignore transparent pixels in the smoothing algorithm
+ The "Create Terrain" action now creates a new image, saves it to Textures folder and adds it to the scene
+ Hid the "Paint" tools, as they have yet to be implemented
2017-02-14 00:52:49 -05:00
1vanK
4b901d2c05 Editor: F3 also toggle Physics2D debug geometry 2017-02-13 12:34:32 +03:00
luveti
79dc24003c More coding convention updates to Terrain Editor 2017-02-11 23:53:56 -05:00
luveti
d56ccd619d Use 4 spaces instead of tabs in Terrain Editor 2017-02-11 23:50:15 -05:00
luveti
6e250289a8 Merge remote-tracking branch 'github/master' into editor-terrain
# Conflicts:
#	bin/Data/Scripts/Editor.as
#	bin/Data/Textures/Editor/EditorIcons.png
2017-02-11 23:46:00 -05:00
luveti
6950ad7c7d Updated Terrain Editor UI to work with latest version of Urho3D. 2017-02-11 23:41:16 -05:00
Lasse Öörni
337056b657 Squashed commit of the following:
commit 53b7204fded9ce69fa69e96b0531a12161c1036d
Author: Liichi <lisandrobruzzo@gmail.com>
Date:   Tue Feb 7 13:52:27 2017 -0300

    Restore windows positions when viewportmode switch

    Now the hierarchy and inspector windows will be restored to original state if you switch between viewport_compact and others.

commit 8a15c06ea468fd42268fa3d937433ff624b03a42
Author: Liichi <lisandrobruzzo@gmail.com>
Date:   Mon Feb 6 15:04:43 2017 -0300

    Replaced tabs by spaces.

commit 9663fef07f5dcebc3a78d2e82c875736cb6d1a70
Author: Liichi <lisandrobruzzo@gmail.com>
Date:   Mon Feb 6 14:56:06 2017 -0300

    Replaced tabs by spaces.

commit 6fbea29b26491675d9783769cc9f01e8f925dabe
Author: Liichi <lisandrobruzzo@gmail.com>
Date:   Mon Feb 6 14:49:15 2017 -0300

    Replaced tabs by spaces.

commit 6dbe8b451e444391f82c642374f1bcba506035ce
Author: Liichi <lisandrobruzzo@gmail.com>
Date:   Mon Feb 6 14:48:30 2017 -0300

    Replaced tabs by spaces.

commit 1d3c98689183abcc99271a65fe9ec3d9be5b6ca0
Author: Liichi <lisandrobruzzo@gmail.com>
Date:   Mon Feb 6 14:19:00 2017 -0300

    Fixed stats text position.

commit 9632876aee4470d722872223f62a072cef1e8137
Author: Liichi <lisandrobruzzo@gmail.com>
Date:   Mon Feb 6 13:54:20 2017 -0300

    Prevent inspector hide if viewport_compact

commit 46775b205bb340dddcb2f1950d9c1912845d36aa
Author: Liichi <lisandrobruzzo@gmail.com>
Date:   Mon Feb 6 13:52:25 2017 -0300

    Prevent hierarchy hide if viewport_compact

commit b301b244a47c4f374ca7b97f6c06029f95531c5e
Author: Liichi <lisandrobruzzo@gmail.com>
Date:   Mon Feb 6 13:47:10 2017 -0300

    Replaced .visible by functions.

commit a30879d68d2145c6521a9ed9f7d282e9f63b4404
Author: Liichi <lisandrobruzzo@gmail.com>
Date:   Mon Feb 6 13:42:51 2017 -0300

    Enable hierarchy/inspector on compact viewport mode.

commit d6f9d2748e96d8f7b76ea875e5079385f4d9af60
Author: Liichi <lisandrobruzzo@gmail.com>
Date:   Mon Feb 6 13:30:18 2017 -0300

    Clean version of code

    Now the content of SetCompactMode is inside of SetViewportMode.
    Code commented.
    Now the code match the engine code convention.

commit 9777750d41f6f45701438b65fae20ea008db3f71
Author: Liichi <lisandrobruzzo@gmail.com>
Date:   Sat Feb 4 17:21:57 2017 -0300

    Update EditorView.as

commit e00dbbac2a528a535dab2e1bbc24fe91933caf3b
Author: Liichi <lisandrobruzzo@gmail.com>
Date:   Sat Feb 4 17:18:11 2017 -0300

    Added compact option to viewport mode list.
2017-02-09 15:34:36 +02:00
Lasse Öörni
171896ddb4 Hide instead of skip UI element internal vars in AttributeEditor so that indexing works for user-added UI element variables (subindex 0 must always be found in current implementation.) Closes #1788. 2017-02-06 19:00:12 +02:00
Henrik Heino
2d8c0cf247 IntVector2 bindings, conversions, serialization, etc.
Also two typos "Intvector2" and "Intrect" fixed.
2017-01-29 17:57:16 +02:00
MonkeyFirst
0d91a1b412 minor fixes: sizes, font, adjust offsets, b.mode key 2017-01-17 23:56:49 +07:00
MonkeyFirst
8828740464 Use Ctrl instead Alt for deselecting with PaintSelection 2017-01-17 19:25:21 +07:00
MonkeyFirst
b0cade9697 add global handlers 2017-01-17 06:24:55 +07:00
MonkeyFirst
984ba731bb PaintSelection and Origins 2017-01-17 06:23:21 +07:00
Yao Wei Tjong 姚伟忠
53d213eb50 Minor refactor to remove the '***' as the repeat indicator.
The script already knows when the nested attributes repeat itself.
2017-01-07 14:08:37 +08:00
Yao Wei Tjong 姚伟忠
8fd264c73e Fix minor typo in editor resource browser script. 2017-01-07 13:02:36 +08:00