Commit Graph

250 Commits

Author SHA1 Message Date
Konstant
40907e4ec1 Return " >areaCost" variables to AttributeEditor. 2017-01-01 20:29:14 +02:00
Konstant
7244503cef Update AttributeEditor. 2017-01-01 20:24:09 +02:00
luveti
ba5e3a3097 Moved Editor resources into correct bin folder 2016-12-18 20:18:47 -05: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
Lasse Öörni
467729bae7 Minor comment edits and missing bindings. Move VAR_RECT last in the enum to not break potential binary scenes/prefabs. Set StaticSprite2D rect attribute default values to Rect::ZERO for more pleasant editing. Editing of VAR_RECT attributes. 2016-11-07 22:04:46 +02:00
Eugene Kozlov
a8f4728951 Optimize object spawn via script in Editor. Closes #1664. 2016-11-05 19:54:33 +03:00
eugeneko
e44dda965c Merge pull request #1669 from eugeneko/master
Optimize Editor work with temporary objects
2016-11-01 20:58:18 +03:00
Eugene Kozlov
5482ae7396 Optimize Editor work with temporary objects, part 2. 2016-11-01 09:09:13 +03:00
Eugene Kozlov
7a24d5b2c7 Optimize Editor work with temporary objects. 2016-10-30 00:21:59 +03:00
Johnathan Jenkins
d78fc4020f minor typos 2016-10-28 13:07:14 -07:00
TheComet
82e09e8632 UIElement::CreateChildXML() returns child instead of bool. If loading fails, child is destroyed instead of keeping an empty child around 2016-10-15 21:47:16 +03:00
Lasse Öörni
bca26b74eb Fix color wheel being created outside the screen in small resolutions. 2016-10-05 10:57:02 +03:00
Lasse Öörni
f8ebf2dbc9 Line antialiasing support in Graphics, Material, DebugRenderer classes. Closes #1627. 2016-10-05 00:17:05 +03:00
Lasse Öörni
72c2e82ee8 Support for bool & int constants in materials on OpenGL & Direct3D11. Added int uniform support to OpenGL. Removed code duplication for setting a Variant shader parameter. 2016-09-30 18:55:00 +03:00
Lasse Öörni
f13a10cb0c Fix behavior of SoundSource debug icons in editor. Closes #1620. 2016-09-27 20:21:16 +03:00
Lasse Öörni
1017e82fd9 Ignore files with no filename component for XML parsing in EditorResourceBrowser. .gitignore etc. 2016-09-24 19:36:03 +03:00
Lasse Öörni
b22768227f Possibility to enable alpha-to-coverage in either pass or material (all passes). Requires D3D11 or OpenGL and hardware multisampling enabled. Seems to look slightly different on D3D / OpenGL. Fixed depth bias not being copied in Material::Clone(). Closes #1578. 2016-09-12 23:43:45 +03:00
Lasse Öörni
48f779e234 Add possibility for materials to define vertex & pixel shader compilation defines, like techniques & passes. Related to #1566. As a consequence, removed the "alphamask" hint from techniques (render order can be used instead) and automatic determination if material should occlude. Fixed bugs in Material JSON save. Allow JSONValue::Size() to also work in object mode. Added porting notes as necessary. 2016-09-06 10:01:32 +03:00
1vanK
61f8fb5205 Draw navigation debug geometry in Editor 2016-09-03 14:05:24 +03:00
Lasse Öörni
05f1883873 Allow drag-drop of generic (unrecognized) XML files from resource browser into attribute edit fields. Do not put slash in beginning of root folder resources in resource browser. Closes #1539. 2016-08-26 01:36:40 +03:00
Lasse Öörni
c817428fb7 When multiple source nodes selected in the hieranchy window, disable the drag/drop reorder function, as ctrl-click can be used to multiselect, and user might be still holding ctrl down after that. Fix component hierarchy items created as not draggable; components would not be reorderable after being reordered once. 2016-07-31 18:12:26 +03:00
Lasse Öörni
34ddcdc294 Component reorder in editor. Fix attribute inspector not updating when nodes are added to e.g. StaticModelGroup via dragging. Clean up reorder related code. Set Urho icon as window icon in the editor. Closes #1463. 2016-07-30 16:24:14 +03:00
Lasse Öörni
b3e492e18c Scene node and UI element reordering (within the same parent) by Ctrl-dragging. Closes #1088. Expose Node::SetID() in script, as it was necessary for this, though not recommended to be called. 2016-07-30 00:02:49 +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
489356a29f Cleanup editor debug icon code to not do constant resizes of billboardsets to zero and back, and to use fixed screen size mode to eliminate need for manual sizing. BillboardSet::SetNumBillboards() is no-op if count remains same. Fix BillboardSet fixed size bug when changing between ortho & perspective camera. Do not care to resize scratch buffer smaller if it's below 1MB. Add scratch buffer debug messages also to OpenGL Graphics class for consistency. Closes #1434. 2016-06-21 22:19:42 +03:00
Yusuf Umar
f9e65027e3 Implementing RibbonTrail 2016-06-15 21:14:58 +03:00
Yao Wei Tjong 姚伟忠
1243d8bcda Regex replace all the uppercase key bindings with their constants. 2016-06-11 02:56:39 +08:00
Lasse Öörni
5fa3cff841 Prevent unnecessary fullupdate when node attributes are edited. 2016-06-06 21:30:13 +03:00
Lasse Öörni
b386b76c23 Fix "Is enabled" checkbox getting moved on gizmo / cursor key node editing. Closes #1401. 2016-06-06 20:13:34 +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
caf663eac3 Possibility for BillboardSet / ParticleEffect billboards to be fixed screen size. In this case the billboard size is measured in pixels. 2016-05-25 15:39:26 +03:00
svifylabs
d304d941d1 Add import only animation 2016-05-18 09:50:12 +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
Golden Li
b463ed5a05 align to aabb bottom 2016-05-06 14:01:10 +03:00
Golden Li
3e35bb0afa support resource drag to scene 2016-05-06 14:01:09 +03:00
1vanK
65b639af13 Editor: info about selected model (thanks MonkeyFirst for idea) 2016-05-01 20:43:07 +03:00
Lasse Öörni
ede04a46f1 Added equality operator to VertexElement. Add multiple color & UV channel (up to 4) support to AssetImporter. Make editor's resource browser recognize the UMD2 model format. Closes #707. 2016-04-13 13:43:33 +03:00
Lasse Öörni
8af9f4785e Remove the special script attribute storage mechanism. 2016-03-30 20:54:43 +03:00
Ivan K
086cfa1687 Editor: fix all warnings; Complete UITemplate 2016-03-19 20:01:41 +04:00
Ivan K
3d9ea8eece Editor: fix some warnings 2016-03-16 15:47:39 +02:00
Lasse Öörni
1877fb3b90 Minor space fix in code. Make editor stop itself when minimized and reduce defocused FPS to 10. Increase hierarchy window initial size to match inspector window initial size. 2016-03-16 11:51:17 +02:00
Lasse Öörni
27a290bf66 Add .hdr to image & texture picker filter lists. 2016-03-08 01:48:06 +02:00
dragonCASTjosh
103fe32dd1 Now working and Added initial .HDR support 2016-02-28 23:50:21 +00:00
Lasse Öörni
3e15c400ff Fix uninitialized bool variable in editor script. Closes #1189. 2016-02-11 17:24:11 +02:00
MonkeyFirst
17a8d6c450 fix-for-ui-typing-in-b.mode 2016-02-08 04:34:56 +06:00
MonkeyFirst
ff24dc3a12 fix double adding tag from scene 2016-01-29 00:11:16 +06:00
MonkeyFirst
f6ba2b1195 Add tags menu for editUIElement 2016-01-28 00:55:13 +06:00
MonkeyFirst
31e2f56808 tags menu 2016-01-27 23:40:02 +06:00
Lasse Öörni
a3411274f3 Node tag editing. 2016-01-22 17:51:32 +02:00
Lasse Öörni
474276fc17 Code convention & minor logic edits. Unify tag API between UIElement & Node. Use ; as the default tag separator to match the editor. Do not allow adding empty tags. 2016-01-22 17:51:31 +02:00
Ivan K
68668266d2 Add tags to UIElement 2016-01-21 21:42:17 +02:00
Lasse Öörni
25ed4020a0 Match the enum order in EmitterType edit field. 2016-01-14 21:14:43 +02:00
Yusuf Umar
353c459e0d Adding direction for particle/billboard. It can create pseudo 3d effect inspired by Unity stretched billboard. Can be used by using face camera option 'Rotate Along Direction'. 2016-01-12 10:46:23 +07:00
Lasse Öörni
6a3bbb8aab Fix D3D11 constant buffers for VSM. Fix editor shadow mode selection. Fix script API for new shadow modes. Fix debughud for new shadow modes. Edit documentation to refer to new shadow modes. Added contributor credit. Some code convention edits, e.g. VSM instead of Vsm. Dump new NinjaSnowWarShaders.xml file. 2015-12-18 14:22:24 +02:00
Lasse Öörni
42ba4f9824 Fix material JSON save in editor. Fix AngelScript API bindings where XMLElement or JSONValue is passed as reference and should be modified (needs to be unsafe inout reference.) 2015-12-12 00:08:38 +02:00
Lasse Öörni
5165aa91fb Remove GetJsonType() function from editor resource browser code since JSON files don't have a similar root element name, and it was causing the editor not to compile. Fix save of ResourceRef / ResourceRefList in JSON. Fix missing child nodes in JSON scenes. Fix editor to use the correct function to save / load JSON nodes. Fix number of attempts in finding the attribute matching JSON data. 2015-12-11 22:57:33 +02:00
Nick Royer
10bad1e36a Added JSON animation triggers as well as a few quick file filter
settings for the editor and documentation changes.
2015-12-10 14:31:05 -06: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
7901b9cae5 Cleanup unused node var names from the scene. Closes #1068. 2015-12-01 12:05:31 +02:00
Lasse Öörni
74e7d027b0 Code convention edits. Added contributor credit. 2015-11-26 18:16:33 +02:00
Yusuf Umar
8eac7a3d01 Updating particle editor with these changes:
- Adding grid with option to hide it
- Gizmo now always visible in the left corner
- Change particle preview viewport camera to behave more predictably
2015-11-26 18:06:27 +02:00
Lasse Öörni
88c07f952d If the original node is still selected in paste, behave as if duplicating. Closes #1034. 2015-11-21 13:31:23 +02:00
Lasse Öörni
30a26fcfc5 Code formatting. Use node pointer in compare instead of node id. 2015-11-12 12:02:55 +02:00
Vladimir
bf34fc8afb Urho3D Editor: Spawn on selected node in Spawn Editor 2015-11-11 19:51:35 +10:00
Lasse Öörni
2cd28f10a8 Merge remote-tracking branch 'cin/master' 2015-11-09 21:09:51 +02:00
Lasse Öörni
304c866dd0 Separate functions to toggle/show/hide editor sub-windows to prevent mistaken action e.g. when editing a material. Update changelog. 2015-11-09 21:03:01 +02:00
Vladimir
48e62be7ca Urho3D Editor: Local offset for Spawn Editor 2015-11-09 21:01:46 +10:00
JSandusky
f0da08b140 Urho3D Editor: Correct misnaming of function call for hiding spawn editor 2015-11-08 20:18:09 -05:00
JSandusky
80ba2ed375 Urho3D Editor: Show "Window" commands now toggle visibility
example: CTRL + I, will show the inspector if not visible and hide it if
it is visible
2015-11-08 19:54:41 -05:00
JSandusky
ec7aebfa2d Urho3D Editor: Enter/return executes first Quick Action in the quick action results 2015-11-08 19:53:38 -05:00
Lasse Öörni
cb0e6caa24 Apply material list in CreateModelWithStaticModel() & CreateModelWithAnimatedModel(). Closes #1018. 2015-11-08 13:12:03 +02:00
Lasse Öörni
77603f30df Exclude .atlas file type from resource browser XML parsing attempt. 2015-11-04 13:52:53 +02:00
Lasse Öörni
13bc777ab6 Fix using old attribute name in the editor. Closes #979. 2015-10-25 20:57:05 +02:00
JSandusky
83d0f9a23c Add Z-up and handedness options to OBJ export 2015-10-22 22:44:28 -04:00
Lasse Öörni
4bdd80775b Add accelerator keys for reset pos/rot/scale also in editor standard mode. Add reset transform function (Alt-Q). 2015-10-10 01:09:06 +03:00
Lasse Öörni
57310eed00 Fix editor to load the produced temporary scene correctly if AssetImporter -b option is specified. 2015-10-01 18:23:17 +03:00
Lasse Öörni
3859d6dd8c Do not export editor debug geometry to OBJ. 2015-09-29 20:52:52 +03:00
JSandusky
4a16d34367 Implement OBJ export functionality in editor
- Global utility method for writing Drawables to an OBJ in Drawable
- AllContentOctreeQuery added
- Minor fixes to Octree query angelscript bindings
2015-09-29 20:24:33 +03:00
Lasse Öörni
dc7eb0d17a Make the editor's cube map save path setting relative to the scene resource path, instead of being a relative filesystem path. Ensure that the generated cube map XML does not have double slashes and uses resource path relative filenames. Minor code cleanup. 2015-09-14 23:42:26 +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
JSandusky
da0463ec49 Add cubemap generation capability to the Urho3D editor 2015-09-10 00:13:38 -04:00
Lasse Öörni
5bd672f02a Add missing Lua bindings to SplinePath. Make hierarchy & inspector windows the same width on editor startup. Remove unnecessary attributes from EditorHierarchyWindow.xml. 2015-09-02 18:07:42 +03:00
MonkeyFirst
77c7460342 add one space after "if" and fight with other spaces 2015-09-02 18:07:35 +03:00
MonkeyFirst
150865c3ee change icons default size 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
4ee86ced6f revert group-types-clear-commits 2015-09-02 18:07:34 +03:00
MonkeyFirst
7c403d88d9 collapse hierarchy then loading new scene 2015-09-02 18:07:34 +03:00
MonkeyFirst
50502df4a4 add option for IDs show and oneclick button for collapse tree to scene-root scope 2015-09-02 18:07:33 +03:00
MonkeyFirst
3232b79cbe clear old updateIcons placement 2015-09-02 18:07:33 +03:00
MonkeyFirst
14f35757cd add SplinePath check for length 2015-09-02 18:07:33 +03:00
MonkeyFirst
06e186bd73 fix-ghost-icons 2015-09-02 18:07:33 +03:00
Lasse Öörni
56b218a236 Fix indent & if statement space. 2015-08-27 09:45:16 +03:00
MonkeyFirst
46aa0c52e1 fix-m-typing 2015-08-26 23:51:13 +06: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