Commit Graph

120 Commits

Author SHA1 Message Date
Ben Marsh
149375b14b Update copyright notices to 2015.
[CL 2379638 by Ben Marsh in Main branch]
2014-12-07 19:09:38 -05:00
Mieszko Zielinski
1c8602c71e A fix for not being able to open composite BT decorators in BT editor merged over from dev branch #UE4
[CL 2377078 by Mieszko Zielinski in Main branch]
2014-12-04 23:13:22 -05:00
Jamie Dale
f440490671 Converted the property editor to use FText
The display name, filter string, and tooltips for the property editor (and associated detail customizations) are now stored as FText rather than FString. This allows us to remove SLATE_TEXT_ARGUMENT from the detail customization widgets.

[CL 2372595 by Jamie Dale in Main branch]
2014-12-01 11:19:41 -05:00
Mieszko Zielinski
6952a6f2fc Refactored a bunch of BT functions taking BehaviorTreeComponent pointers to require references instead #UE4
[CL 2371640 by Mieszko Zielinski in Main branch]
2014-11-27 15:56:48 -05:00
Matthew Griffin
f1c4513760 Renaming FVector ClampSize and SafeNormal functions for clarity
Used DEPRECATED Macro to keep old names around in case I've missed anything

[CL 2370785 by Matthew Griffin in Main branch]
2014-11-26 10:01:12 -05:00
Matt Kuhlenschmidt
d647c8f5ed Fix cases of constant FName recreation in the editor which is affecting performance
[CL 2363352 by Matt Kuhlenschmidt in Main branch]
2014-11-18 09:57:20 -05:00
Mikolaj Sieluzycki
51f5333986 Prepare cpp files for header cleanup.
#codereview Robert.Manuszewski

[CL 2356864 by Mikolaj Sieluzycki in Main branch]
2014-11-12 04:58:53 -05:00
Ben Cosh
3650f14795 This change makes the comment bubbles interactive widgets which allow the user to double click the comment to edit and have extra optional pinning and visibility options.
#UE-2764 - ROCKET: TASK: K2: PUNTABLE: Allow double clicking on comment bubble to edit it.
#Branch UE4
#Proj Engine, UnrealEd, Slate, GraphEditor, BehaviourTreeEditor, EnvironmentQueryEditor, EditorStyle, ReferenceViewer, WorldBrowser

#codereview Nick.Atamas

[CL 2346951 by Ben Cosh in Main branch]
2014-11-03 10:40:57 -05:00
Chris Gagnon
0e6d657c3d Refactor to unify keyboard and controller input and focus.
Native controller navigation support.

[CL 2345039 by Chris Gagnon in Main branch]
2014-10-30 12:29:36 -04:00
Thomas Sarkanen
22df8494db Fixed crash selecting sub-nodes in Behavior Trees
Crash was caused by the removal of the call to UpdateGraphNode() in SGraphPanel::AddNode(). This meant that sub-nodes didnt get a valid parent panal pointer set.
Allowing nodes to override SetOwner() lets BT sub-nodes correctly recieve their parent.
Also removed previous checks put in place to try to prevent the crash.

#codereview Mieszko.Zielinski

[CL 2332786 by Thomas Sarkanen in Main branch]
2014-10-17 05:01:49 -04:00
Mieszko Zielinski
7a4baf714d Fixed BTEditor crashing on selecting a service node #UE4
#codereview thomas.sarkanen, nick.atamas

[CL 2332267 by Mieszko Zielinski in Main branch]
2014-10-16 18:45:09 -04:00
Wes Hunt
31e2bb00ac Removed a bunch of stuff from Slate standard include, created SlateBasics.h
* Moved Slate.h into SlateBasics.h and began shifting less commonly used headers into SlateExtras.h.
* Slate.h now simply includes SlateBasics.h and SlateExtras.h.
* Slate.h includes a deprecated warning now to indicate that SlateBasics.h + specific includes should be used instead.
* Moved dozens of inlined functions using Slate widgets into .cpp files to avoid header dependencies.
* All code samples now include SlateBasics.h and SlateExtras.h so future shifts will not break most those projects, but not trigger the deprecation warning of including Slate.h.
#BUN

[CL 2329610 by Wes Hunt in Main branch]
2014-10-14 22:50:06 -04:00
Marc Audy
e9c81cd4d8 Fix variable shadowing
[CL 2328994 by Marc Audy in Main branch]
2014-10-14 15:03:01 -04:00
Jaroslaw Palczynski
7c41927cf4 Rename FPostConstructInitializeProperties to something simpler
Changed it with FObjectInitializer.

UECORE-7

[CL 2328384 by Jaroslaw Palczynski in Main branch]
2014-10-14 10:29:11 -04:00
Nick Atamas
b55716b6b2 Owner of behavior tree node was invalid; fixed crash by checking for invalid ptr.
#codereview Mieszko.Zielinski

[CL 2325857 by Nick Atamas in Main branch]
2014-10-10 15:47:56 -04:00
Dan Hertzka
7d053de086 Asset context menu refactor & polish
- Duplicate now works properly in the asset view.

- Consolidated common asset actions into the asset context menu and removed the duplicate code from all asset type actions that had implemented them. The affected actions are Edit, Reimport, Find in Explorer, and Open in External Editor. The latter three actions are only visible for imported assets.

- Added IsImportedAsset() and GetSourceFilePaths() to IAssetTypeActions for use by the context menu.

- Compressed the bottom matter on the context menu by removing section headers and compressing Source Control options into a sub-menu (when connected, otherwise there's just a "connect" menu entry).

- Added lots of icons! (The missing ones are TTP'd)

- Fixed FAssetEditorManager::OpenEditorForAssets to work in a useful fashion. IAssetTypeActions::OpenAssetEditor() already took in a UObject array, so it is up to the class's asset type actions to decide how to handle editing multiple assets. (It appeared to be before, but wasn't really).

- Removed the "Details" option from the context menu (since it's redundant when there's a guaranteed "Edit" option)

- Consolidated all skeleton-related actions into AnimationEditorUtils and removed the duplicate code from FAssetTypeActions_SkeletalMesh and FAssetTypeActions_Skeleton

- Compressed the Paper2D sprite options for textures into a submenu

- Renamed "New" to "Create" in content browser

[CL 2324288 by Dan Hertzka in Main branch]
2014-10-09 12:35:10 -04:00
Dan Hertzka
f3092790eb Window menu refactor & polish
- Window menu is now sectioned and labeled based on the current editor. There's now a local workspace root member in FTabManager and a workspace category in FAssetEditorToolkit (both are FWorkspaceItem objects). Individual editors attach their local category to the tab manager's local root. Workflow app modes have their own category members that are swapped out when the mode changes.

- Finally, the AssetEditorCategory of FWorkspaceMenuStructure has been removed entirely.

- Replaced the AddMenuSeparator() call in FTabManager::PopulateSpawnerMenu_Helper() with a section of the same title as the workspace category.

- Tab spawner menu entries for the local editor now properly show the icon of the associated tab. To accomplish this it was necessary to change FWorkflowTabFactory::TabIcon to be an FSlateIcon instead of an FSlateBrush*. All factory instances have been updated accordingly.

- Added & updated lots of icons! (those missing will be TTP'd)

- The nomad tab spawner section (named "General" in the menu) has been largely compressed into the Developer Tools submenu, which has also been organized into sections for readability.

- Unreal frontend options were also moved into a context menu within the General section

- Moved all experimental tools to their own section of the Window menu. When they're no longer experimental they should register as nomads in the appropriate category

- Undo history now under Edit menu

[CL 2324285 by Dan Hertzka in Main branch]
2014-10-09 12:34:55 -04:00
Thomas Sarkanen
e730683520 Fixed behavior tree pasting nodes offscreen
Average origin of pasted nodes was being calculated with the wrong divisor, so the position was miscalculated for nodes with any services or decorators.

TTP# 344625 - Editor: Copy/Paste of any node with a Decorator or Service in Behavior Trees pastes to the wrong location

[CL 2322478 by Thomas Sarkanen in Main branch]
2014-10-08 06:33:31 -04:00
Thomas Sarkanen
0f1f095b18 Breaking behavior tree links is now undo-able
Added transactions for link breaking actions.
Removed call to unrelated sound schema delegate.

TTP# 347732 - EDITOR: BEHAVIOR TREES: Cannot undo Break Link action

[CL 2321095 by Thomas Sarkanen in Main branch]
2014-10-07 07:37:03 -04:00
Thomas Sarkanen
62631fa588 Behavior Trees: Fixed crash dragging off an input node & creating a task
GetOutput() was returning NULL as task/leaf nodes have no outputs

TTP# 347894 - AI: BehaviorTree: CRASH: Dragging off of an input pin to create a "tasks" node will cause a crash

[CL 2317112 by Thomas Sarkanen in Main branch]
2014-10-02 05:18:30 -04:00
Thomas Sarkanen
3446ac1e0d Fixed blocked links in the Behavior Tree editor
Made more link conditions valid when editing behavior trees.

TTP# 345628 - EDITOR: BEHAVIOR TREES: Blocked from wiring an already wired node

[CL 2314052 by Thomas Sarkanen in Main branch]
2014-09-30 06:10:04 -04:00
Bob Tellez
fa1a7542ca Merging Dev->Main using CL#2312419 UE4-Fortnite-To-UE4
[CL 2313759 by Bob Tellez in Main branch]
2014-09-29 21:43:13 -04:00
Thomas Sarkanen
2f0fb3a2b9 Subgraphs for composite decorators and run behavior nodes are now 'complex' preview tooltips
Subgraph/composites now display their graph in a 'complex' tooltip, further informing the user that they can be double-clicked and edited.

TTP# 346130  - AI: BEHAVIORTREE: RunBehavior node has inconsistent color

[CL 2312745 by Thomas Sarkanen in Main branch]
2014-09-29 07:49:17 -04:00
Jaroslaw Palczynski
65ba5d456f TArray documentation and a coupld of methods deprecation.
Changes mostly in Array.h. The changes in other files are only renames for deprecated functions.

[CL 2312616 by Jaroslaw Palczynski in Main branch]
2014-09-29 04:23:44 -04:00
Mieszko Zielinski
cb9944d993 Refactored some BT API functions taking UBehaviorTree pointer to accept reference instead #UE4
[CL 2310226 by Mieszko Zielinski in Main branch]
2014-09-25 15:52:27 -04:00