Commit Graph

46 Commits

Author SHA1 Message Date
Ben Cosh
8f104b0dfd Modified the comment bubbles on SGraphNodeKnot to display on node hover.
#UE-2353 - Feature Request: BP: Allow users to hide comments on nodes
#Branch UE4
#Proj GraphEditor

[CL 2350119 by Ben Cosh in Main branch]
2014-11-05 13:10:16 -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
Dan Oconnor
9786c96390 Conflict highlighting for the graph view in the merge tool
[CL 2341736 by Dan Oconnor in Main branch]
2014-10-27 19:34:03 -04:00
Olaf Piesche
a7eccc4333 Fix for a compilation error. This may be temporary - it's the only way I know of right now to fix a missing symbol error for NAME_DefaultPinLabelStyle.
[CL 2335071 by Olaf Piesche in Main branch]
2014-10-20 19:15:26 -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
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
Dan Oconnor
b4b1485891 Default Comment Node Color now pulled from GraphEditorSettings, rather than hard coded...
[CL 2321824 by Dan Oconnor in Main branch]
2014-10-07 17:04:37 -04:00
Michael Schoell
32c914eb8d [GitHub] 315 : Added an undo transaction for comment node resizing
#ttp 342708

[CL 2318917 by Michael Schoell in Main branch]
2014-10-03 16:16:40 -04:00
Mike Beach
62e585cb03 Consolidating where we call UEdGraphNode::AddNode() for newly spawned nodes (to avoid duplicated code... centralized in UBlueprintNodeSpawner).
[CL 2314667 by Mike Beach in Main branch]
2014-09-30 14:13:40 -04:00
Max Preussner
121fccd2ab Code and documentation cleanup pass
- removed dummy UClasses (no longer needed)
- removed file header comments (not used)
- removed duplicated function documentation in cpp files
- documentation cleanup, punctuation, spelling etc.
- pragma once include guards (now work on all platforms)
- relative public includes (are auto-discovered by UBT)
- fixed too many/too few line breaks
- deleted empty files
- missing override
- NULL to nullptr

[CL 2305058 by Max Preussner in Main branch]
2014-09-21 20:35:48 -04:00
James Golding
f7308f4b06 Fix non-unity in UGraphEditorSettings (missing FMargin decl)
#codereview michael.noland

[CL 2299444 by James Golding in Main branch]
2014-09-16 10:26:00 -04:00
Michael Noland
fa7eb3328f GraphEditor: Make various padding values adjustable to iterate on more compact nodes (WIP / Experimental)
#codereview nick.whiting

[CL 2299009 by Michael Noland in Main branch]
2014-09-15 21:48:46 -04:00
Michael Noland
a74fb28619 GraphEditor: Adjust spline tangent calculations to improve look and feel of wires in all of the graph editors
- Splines now take vertical travel into account in tangent generation, and use a stronger setting when going horziontally backwards (loopbacks)
- Various parameters related to tangent calculations can now be adjusted in the Graph Editor section of Editor Settings
#codereview nick.whiting

[CL 2298813 by Michael Noland in Main branch]
2014-09-15 17:43:07 -04:00
Mike Beach
c198f7016d Moving the option to enable/disable the new menuing system into experimental editor preferences.
[CL 2298767 by Mike Beach in Main branch]
2014-09-15 17:22:50 -04:00
Mike Beach
38afe161e0 Messaging users with empty graphs, how to start adding nodes.
[CL 2295781 by Mike Beach in Main branch]
2014-09-12 18:42:03 -04:00
Thomas Sarkanen
ff9594e679 Right-click menu operations on Behavior Tree sub-nodes now work
Added new GetNodeUnderMouse() call to SGraphNode. This gives each node type the option of returning child nodes, rather than always operating on the top-level node.

TTP# 346150 - AI: BEHAVIORTREE: Unable to delete decorator and service using right click menu

[CL 2293617 by Thomas Sarkanen in Main branch]
2014-09-11 07:02:40 -04:00
Nick Atamas
8453f13ba9 Slate: OnHitTest() is now deprecated.
[CL 2291133 by Nick Atamas in Main branch]
2014-09-09 13:58:35 -04:00
bruce nesbit
d60a5de509 Converted widget .Tag instances for tutorials to use MetaData
[CL 2286138 by bruce nesbit in Main branch]
2014-09-05 07:39:52 -04:00
Michael Schoell
d0033ce686 #summary Added a "Go to Definition" menu entry when right clicking on call function nodes in Blueprints
#change UK2Node_CallFunction::GetFunctionGraph now returns the proper graph from whatever Blueprint the function belongs to

#change Cleaned up double clicking on function call nodes

#ttp 316688 - UE4: BLUEPRINTS: Go to definition behavior should be available in the right-click context menu for function calls

[CL 2270980 by Michael Schoell in Main branch]
2014-08-25 15:47:12 -04:00
Joe Conley
413f955c2c DataTable/CurveTable Blueprint nodes: Drop down box for selecting row name
Remove requirement for blueprint node name pins to be non-numeric values (this requirement seems to no longer be present in other areas of the engine)

Modified SGraphPinNameList to use new SNameComboBox class

[CL 2266949 by Joe Conley in Main branch]
2014-08-21 23:21:25 -04:00
Ben Marsh
e9f8b8d3a1 Fixup multiline comments that are meant to be documentation. Need to start with /** for doxygen to parse them.
[CL 2265840 by Ben Marsh in Main branch]
2014-08-21 08:33:39 -04:00
Ben Cosh
3ca7ae8765 Modified the node title display and the way changing the excerpt works in the documentation nodes after noticing a few rough edges using it this morning.
#Branch UE4
#Proj GraphEditor, Kismet

#Change made the node title display the current excerpt name
#Change modified the details view so that the documentation excerpt only changes once a valid link and excerpt has been chosen and is valid. Previously this was a little bit dysfunctional .

[CL 2256037 by Ben Cosh in Main branch]
2014-08-14 07:13:03 -04:00
Ben Cosh
196cf342b5 Added a new documentation node to the blueprints to display udn documentation excerpts in the grapheditor.
#TTP 312311 - ROCKET: TASK: Add a "Documentation Node"
#Branch UE4
#Proj  BlueprintGraph, EdGraph, Kismet, KismetCompiler, GraphEditor, Documentation, EditorStyle

#Change Updated UEdGraphSchema to include an interface call to retrieve an FEdGraphSchemaAction to create documentation nodes. At this point only the K2 interfaces implement this.
#Change Updated UEdGraphSchema_K2 to include a call to retrieve an FEdGraphSchemaAction to create documentation nodes. This is used to add the actions to the blueprint palette and context menus.
#Add Added FEdGraphSchemaAction_K2AddDocumentation in EdGraphSchema_K2_Actions.h/cpp to implement the calls in UEdGraphSchema to create documenation nodes from palette and context menus.
#Change Modified FK2ActionMenuBuilder to provide a static call to create a documentation action in the same style as the comment. Additionally added calls to FK2ActionMenuBuilder::GetPaletteActions and FK2ActionMenuBuilder::GetContextAllowedNodeTypes to call this to add entries in the palette and context menus.
#Add Added a new Brush GraphEditor.Documentation_16x, for the context menu icon in SlateEditorStyle.cpp.
#Change Modified GetPaletteItemIcon in SBlueprintPalette.cpp to return the new icon for the DocumentationNode

#Change Modified FKismetCompilerContext::IsNodePure to include the Documentaton node in the drop through ensure test to prevent asserts on compling if a documentation node is present.

#Change Added an entry for Documentation node in FNodeFactory::CreateNodeWidget.

#Change Modified IDocumentationPage interface to provide the ability to provide a TextWrapAt Attribute so this can be set before creating excerpt content if desired.
#Change Modified the UDNParser to control text wrap at values in the created widgets using a float Attribute WrapAt, Added a set call in the DocumentationPage and made the default behaviour mimic the code it replaced.

#Add Added the class UEdGraphNode_Documentation implemented in EdGraphNode_Documentation.h and UEdGraph.cpp, this is the UObject implementation for the documentation nodes.
#Add Added the class SGraphNodeDocumentation as the GraphPanel implementation of the EdGraphNode_Documentation.
#Change Moved the resizable code from SGraphNodeComment into a SGraphNodeResizable and changed SGraphNodeComment and SGraphNodeDocumentation inherit from it to avoid duplicating code.

#Change Added a documentation specific details customisation so the excerpts can be displayed as combo button.
#Change Added FBlueprintDocumentationDetails into BlueprintDetailsCustomization.h/cpp to handle the user interaction with the documentation node in the BP Editor.

ReviewedBy Chris.Wood, Mike.Beach

[CL 2247425 by Ben Cosh in Main branch]
2014-08-07 15:33:55 -04:00
Michael Schoell
1161bc07d9 Modifying an item selected in My Blueprints using the details panel will no longer deselect the item.
Submitting a category in the BP details panel will no longer mark the Blueprint as structurally modified if nothing has changed.

#ttp 341162 - Regression: BP: After entering a tooltip for a variable, it gets deselected

[CL 2234979 by Michael Schoell in Main branch]
2014-07-28 16:56:10 -04:00