Commit Graph

69 Commits

Author SHA1 Message Date
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
1vanK
ef1dfe3417
AS Autobindings 2020-10-28 19:18:41 +08:00
Yao Wei Tjong 姚伟忠
8b644c22ce
Quick fix for Editor segfault during starting up. 2019-05-19 15:50:37 +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
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
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
1vanK
4b901d2c05 Editor: F3 also toggle Physics2D debug geometry 2017-02-13 12:34:32 +03: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
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
luveti
4e87e746f2 Merge remote-tracking branch 'github/master' into editor-terrain
# Conflicts:
#	Bin/Data/Textures/Editor/EditorIcons.png
#	bin/Data/Scripts/Editor.as
#	bin/Data/Scripts/Editor/EditorScene.as
#	bin/Data/Scripts/Editor/EditorUI.as
#	bin/Data/UI/EditorIcons.xml
2016-12-18 20:15:52 -05:00
1vanK
61f8fb5205 Draw navigation debug geometry in Editor 2016-09-03 14:05:24 +03:00
Lasse Öörni
812afaeb8f Fix PBR material demo to operate similarly on AS, Lua, C++. Remove forcing of alpha to 1 from Zone::SetAmbientColor() & Zone::SetFogColor(). Change "Enable HDR" to "HDR rendering" in editor settings dialog for consistency. 2016-07-29 16:44:57 +03:00
joshua Nuttall
e635ad2ed7 Removed Bloom from PBR demos, set zone texture ambleint to 1, and added HDR option in editor settings (needed for PBR in editor) 2016-07-28 22:16:30 +01:00
Lasse Öörni
4ce51e3cc0 Add gamma correction postprocess toggle to the editor. 2016-07-22 17:51:39 +03:00
Lasse Öörni
a794f9e59b Prefer key constants instead of ascii codes in keydown/keypress checks. (AngelScript & C++) 2016-05-30 20:45:13 +03:00
cosmy
b057434bfa Make escape key name consistent between keycode and scancode. 2016-05-27 13:27:53 +02:00
Lasse Öörni
e048afa496 Cleanup drag-instantiate code. Use mouse raycast position if possible. 2016-05-06 14:01:12 +03:00
Lasse Öörni
bf860499bd Remove unused function. 2016-05-06 14:01:11 +03:00
1vanK
65b639af13 Editor: info about selected model (thanks MonkeyFirst for idea) 2016-05-01 20:43:07 +03:00
Ivan K
3d9ea8eece Editor: fix some warnings 2016-03-16 15:47:39 +02:00
Ivan K
21d8906e7c Editor: set RenderPath for particle editor 2015-12-07 02:09:31 +04:00
Ivan K
044bb17208 editor: more space in status text 2015-12-02 19:57:55 +04:00
Ivan K
372c5b3481 editor: fix positioning of status text 2015-12-02 19:14:32 +04:00
Lasse Öörni
3859d6dd8c Do not export editor debug geometry to OBJ. 2015-09-29 20:52:52 +03:00
JSandusky
ebd3e67776 Correction of cubemap XML face names.
- Minor refinements to the camera
- Prevention of rendering debug/editor visualization
2015-09-10 13:09:10 -04:00
MonkeyFirst
77c7460342 add one space after "if" and fight with other spaces 2015-09-02 18:07:35 +03:00
MonkeyFirst
f484bfe915 add for B.mode distance related camera move 2015-09-02 18:07:34 +03:00
MonkeyFirst
3232b79cbe clear old updateIcons placement 2015-09-02 18:07:33 +03:00
Lasse Öörni
47fe410d06 Suppress scene changes while toggling the debug icons visibility during preview camera render so that the attribute editor doesn't constantly refresh, making attributes uneditable. Closes #854. 2015-08-24 11:48:21 +03:00
Lasse Öörni
70b871ebfa Code convention edits. Removed unused variable. Make debug icons use Basic shader for no fog. Do not render debug icons to camera preview viewport. Fixed Basic shader with VERTEXCOLOR define on D3D11. 2015-08-14 23:09:53 +03:00
MonkeyFirst
4424b98715 add debug icons 2015-08-12 00:45:17 +06:00
Lasse Öörni
d9d09909d4 Removed commented out code. Minor editor code formatting & typo fixes. 2015-08-05 21:28:47 +03:00
MonkeyFirst
99ad65844f add more event to main editor handlers 2015-08-05 15:43:15 +06:00
MonkeyFirst
5da0bea816 global-editor-handlers 2015-08-05 04:21:39 +06:00
Lasse Öörni
c14d6ba4b7 Editor code convention edits. Use Alt+W for color wheel in both hotkey modes. 2015-07-31 22:00:48 +03:00
MonkeyFirst
c3b52a9e47 hsv-color-wheel 2015-07-30 01:57:16 +06:00
Lasse Öörni
b74c2360f8 Restored original controls in standard hotkeys mode. The MMB pan option (standard hotkeys mode only) now changes the behavior of shift in relation to pan & orbit only. Editor code cleanup & code convention edits. 2015-07-27 17:35:10 +03:00
MonkeyFirst
f1625c6fc7 WeakHandle for last... some polishing for B.mode delete 2015-07-26 22:04:27 +06:00
MonkeyFirst
7807e88e30 default pan for 2d, viewCloser for 2d , alt+scroll-zoom 2015-07-26 04:24:01 +06:00
MonkeyFirst
8fc2ae9436 some fixes for smart duplicate 2015-07-25 22:47:02 +06:00
MonkeyFirst
c35ddfedcf fix ViewCloser camera placement 2015-07-25 01:31:09 +06:00
MonkeyFirst
892a353c2f add B.mode view closer on kp_period 2015-07-24 16:54:55 +06:00
MonkeyFirst
df91bae159 add force to selecting node instead component in view port 2015-07-24 03:59:56 +06:00
MonkeyFirst
7de2a25206 auto instance 2015-07-24 02:45:05 +06:00
Lasse Öörni
9e978e767c Merge remote-tracking branch 'monkeyfirst/material-editor-few-model-preview'
Conflicts:
	bin/Data/Scripts/Editor/EditorView.as
2015-07-23 15:40:41 +03:00