Commit Graph

97 Commits

Author SHA1 Message Date
Michael Schoell
1703ebd57a Holding Alt+RMB in a graph panel will zoom on the initial mouse position instead of the corner of the panel.
#ttp 343146 - BP: NUX:  Alt+RMB zooming is wonky

[CL 2248761 by Michael Schoell in Main branch]
2014-08-08 14:49:33 -04:00
Mark Satterthwaite
c96860cc5c Fix Mac build.
#codereview ben.cosh

[CL 2248327 by Mark Satterthwaite in Main branch]
2014-08-08 06:22:15 -04:00
Ben Cosh
e6daaf5878 Fix for my changes that broke unity builds with cl 2247425
[CL 2247826 by Ben Cosh in Main branch]
2014-08-07 19:49:53 -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 Trepka
3293117f09 More fixes for Clang warnings
[CL 2238624 by Michael Trepka in Main branch]
2014-07-31 15:43:08 -04:00
Matthew Griffin
5a89a2b090 Adding search capability to key selection
Added new SKeySelector widget to take care of selecting keys in various situations
Used new widget for Key detail customization and Blueprint Key Pins

TTP#335356 - EDITOR: Input axis dropdown menu not filterable

[CL 2238263 by Matthew Griffin in Main branch]
2014-07-31 09:33:45 -04:00
Michael Trepka
5bd6255fde More Clang compile warning fixes
[CL 2237347 by Michael Trepka in Main branch]
2014-07-30 14:51:27 -04:00
Michael Trepka
ee353ed1d1 Fixed some issues with Ctrl+{Key} shortcuts on Mac
[CL 2237306 by Michael Trepka in Main branch]
2014-07-30 14:31:25 -04:00
Ben Cosh
1ffd17e1c4 This adds category tracking in the blueprint class to allow sorting of categories in MyBlueprint
#TTP 333452 - BLUEPRINTS: Can't rearrange component categories in the my blueprint tab
#TTP 341990 - LIVE: BLUEPRINTS: Cannot drag and drop into subcategories
#Branch UE4
#Proj Engine, Kismet, UnrealEd, GraphEditor

#Change Added UBlueprint::CategorySorting TArray to store an ordered sort list of categories for variables and components.
#Change Modified dropped on category to update the CategorySorting array in the blueprint
#Change Modified FGraphActionNode to store a categorychain for category nodes only.
#Change Modified FGraphActionNode::AddChild to build and hand off the full category chain to new category nodes.
#Change Modified SMyBlueprint::CollectAllActions to reference the sorting array stored in the blueprint, participating actions are added into a mutimap with the respective sort index and the map is sorted before populating the graph action list.
#Change Added an additional pass when the sorted categories are modified to strip any unused categories out of the blueprint and shrink the array as a lazy maintenance.
#Removed FBlueprintEditorUtils::MoveCategoryBeforeCategory

#info I stopped short of marking the blueprint dirty on category sorting changes after initially having this in. the logic behind this is that marking blueprints dirty for minor changes can be annoying, you can always just manually save your changes and its seems a contrived workflow that you would open a blueprint and change the category sort in my blueprint without making any other changes. Easy to change if there is any real objection to it.

#codereview Mike.Beach

[CL 2237060 by Ben Cosh in Main branch]
2014-07-30 11:06:40 -04:00
Michael Schoell
b0ba598f75 Sub-graphs (such as collapsed graphs or state machines) will display under their parent graph in the My Blueprint's tab rather than a category with the same name.
#ttp 334222 - Regression: BP: In the my blueprints tab, collapsed graphs are incorrectly put into a 'Functions' category when created

[CL 2235799 by Michael Schoell in Main branch]
2014-07-29 10:18:54 -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
Olaf Piesche
8312a2d140 Niagara rebuild, first iteration; sim framework works, simple actor with a single simuation;
[CL 2234616 by Olaf Piesche in Main branch]
2014-07-28 13:15:12 -04:00
Nick Atamas
badf62c330 Slate slots now use a common base class, which has a private '.Widget' member; use GetWidget() instead.
Slate TPanelChildren, TSlotlessChildren are no longer full-fledged arrays; removed any unused Array API.
Fixed up a lot of improper use cases.

This better encapsulates the action of adding/removing Slate Widgets from the runtime tree as a Slate Core concern.
Alows us to add parent pointers in the future with significantly less effort.

#codereview Wes.Hunt
#codereview Nick.Darnell
#codereview Matt.Kuhlendschmidt
#codereview Justin.Sargent

[CL 2234301 by Nick Atamas in Main branch]
2014-07-28 06:53:40 -04:00
Nick Atamas
978a62ee0f Slate Hittesting 2.0 : Hittesting no longer bound to logical widget hierarchy.
Merged from usr/Nick.Atamas/UE4_SlateDev => /UE4

[CL 2228155 by Nick Atamas in Main branch]
2014-07-23 08:23:21 -04:00
Thomas Sarkanen
ff7d2bdb1b Added Behavior Tree execution order index widgets
Added new widget overlay system for graph panels, designed to allow more flexibilty than the current brush-only implementation. This requred a small refactor to avoid the assumption that all child widgets of an SNodePanel are SNodes (and because there is no usable RTTI present).

Added index widget overlay to BT graph nodes.

Added flag to parent nodes to allow us to change the appearance of child nodes when another child is hovered.

TTP# 339733 - Editor: Behaviour Tree: Add better execution order indicators

reviewed by Lukasz.Furman

[CL 2226658 by Thomas Sarkanen in Main branch]
2014-07-22 04:03:40 -04:00
Michael Schoell
446495b74c Functions and macros now will display with their category in the My Blueprint panel.
Also mass delete and changing categories allowed to functions, macros, and delegates.

#ttp 341290 - BP:  Add support for categories for functions in the My Blueprints tab

[CL 2222608 by Michael Schoell in Main branch]
2014-07-17 16:10:13 -04:00
Michael Trepka
5097b0e10c Improved RMB handling in SNodePanel for Magic Mouse and trackpad
[CL 2222518 by Michael Trepka in Main branch]
2014-07-17 15:10:02 -04:00
Michael Trepka
ed17805fe7 Fixed issues with zooming blueprint and material editor viewports with Magic Mouse
[CL 2219466 by Michael Trepka in Main branch]
2014-07-15 13:26:50 -04:00
Dan Oconnor
daf119cbc7 #ue4 default values read from CDO of spawned class, displayed to user, assignment nodes generated if the pin values differ from the values in the CDO...
[CL 2215022 by Dan Oconnor in Main branch]
2014-07-14 17:15:42 -04:00
Michael Trepka
3318bdb7e6 Improved trackpad magnify gesture responsiveness in SNodePanel
[CL 2176786 by Michael Trepka in Main branch]
2014-07-08 18:23:55 -04:00
Fred Kimberley
63fb8b3e89 GameplayAbility Editor improvements
- properly hook up schema
 - custom nodes for gameplay effects

[CL 2170702 by Fred Kimberley in Main branch]
2014-07-07 15:29:15 -04:00
Marc Audy
c48a46d303 Display labels on split struct array get node
[CL 2170474 by Marc Audy in Main branch]
2014-07-07 13:47:02 -04:00
Richard TalbotWatkin
af3fcd5b99 Removed code to clamp the graph focus position to the bounding box of all graph nodes, as it creates a jarring visual glitch, particularly in an empty graph.
#ttp 332013 - The scroll wheel doesnt work properly in the material editor when a large comment box is created
#ttp 339978 - Graph Editor's Zoom to Cursor is super weird (bad) compared to ortho viewport's (good)
#branch UE4
#proj Editor.GraphEditor
#reviewedby Max.Preussner

[CL 2136463 by Richard TalbotWatkin in Main branch]
2014-07-04 05:07:00 -04:00
Gil Gribb
9ef277bc62 UE4 - more command list work, remove "either render thread or game thread" routines from canvas
[CL 2125102 by Gil Gribb in Main branch]
2014-07-02 14:13:59 -04:00
Marc Audy
129dc32d1e Differentiate between rotator and vector in labelling on "vector" graph pins
[CL 2124856 by Marc Audy in Main branch]
2014-07-02 13:23:46 -04:00