Commit Graph

46 Commits

Author SHA1 Message Date
Mike Beach
2d68c1fd7b Setting up a call function node with a dynamic output value (determined by an class picker input). #NUX
TTP #345805

[CL 2324254 by Mike Beach in Main branch]
2014-10-09 12:04:45 -04:00
Nick Darnell
92932acbc9 Blueprint - Fixing a crash in Call Function node not checking for null of the function pointer.
[CL 2324168 by Nick Darnell in Main branch]
2014-10-09 11:28:08 -04:00
Maciej Mroz
745d0c927b ôAutoCreateRefö û is handled in UK2Node_CallFunction::ExpandNode. The additional variable is created in local scope.
#codereview Nick.Whiting, Michael.Noland

[CL 2323899 by Maciej Mroz in Main branch]
2014-10-09 06:06:10 -04:00
Phillip Kavan
222914ba50 [346160] Do not allow unsafe functions to be placed in a construction script.
- Modified CanPaletteItemBePlaced() in SBlueprintSubPalette.cpp to leverage the UEdGraphSchema_K2::CanFunctionBeUsedInClass() API.
- Modified UEdGraphSchema_K2::CanFunctionBeUsedInClass() to accept an optional parameter for a "reason" FText on failure and added localizable strings.
- Added a UK2Node_CallFunction::CanPasteHere() override impl to also invoke UEdGraphSchema_K2::CanFunctionBeUsedInClass() in order to gate function nodes on paste into a graph.

#codereview Marc.Audy,Mike.Beach

[CL 2320925 by Phillip Kavan in Main branch]
2014-10-07 00:54:59 -04:00
Mike Beach
10ef2fc1e0 Finally giving in, and letting the new blueprint action database govern how those actions are presented in the ui :(
#codereview Dan.OConnor

[CL 2313188 by Mike Beach in Main branch]
2014-09-29 14:31:08 -04:00
Mike Beach
d82aa27dba Favoring skeleton property/function signatures for variable/function node pins.
[CL 2310036 by Mike Beach in Main branch]
2014-09-25 13:31:55 -04:00
Mike Beach
9ab3347a1e Guarding against null function outer(when attempting to log an warning during node validation).
[CL 2309066 by Mike Beach in Main branch]
2014-09-24 19:47:30 -04:00
Mike Beach
3beb0cd5f6 FMemberReferences now default to the authoritative class (unless set through the SetDirect() function).
This is to support references being set for the skeleton class (in the new BP menu system).

#codereview Nick.Whiting

[CL 2308582 by Mike Beach in Main branch]
2014-09-24 14:15:01 -04:00
Michael Noland
490178feb1 Blueprints: Changed logic for hiding the target pin on a pure node to take into account the compatibility of the BP and the function
[CL 2306387 by Michael Noland in Main branch]
2014-09-22 21:51:18 -04:00
Marc Audy
799ea859e3 Strip '-' after @param for pin tooltips
[CL 2304896 by Marc Audy in Main branch]
2014-09-21 20:34:32 -04:00
Marc Audy
cb0766b302 Make Event nodes strip @param from tooltip
Apply @param from function comment to Event node pins

[CL 2304895 by Marc Audy in Main branch]
2014-09-21 20:34:20 -04:00
Zak Middleton
56440d88d8 #ue4 - Strip "@see" from the end of all tooltips for enums. Make enums use UEnum::GetToolTipText() rather than reading metadata directly.
- Also converted related functions to use static strings.

#codereview Marc.Audy, Saul.Abreu

[CL 2303296 by Zak Middleton in Main branch]
2014-09-18 18:44:50 -04:00
Zak Middleton
318d083871 #ue4 - Strip lines with "@see" from function tooltips.
[CL 2301907 by Zak Middleton in Main branch]
2014-09-17 19:58:36 -04:00
James Golding
9a4ddbfb1e Add 'raycast' and 'sweep' keywords to BP query functions
Stop Kismet library headers being globally included
#codereview nick.whiting

[CL 2300737 by James Golding in Main branch]
2014-09-17 05:39:56 -04:00
Mike Beach
1424e089f3 Shrinking the template node database by removing the need for function/variable nodes to be cached.
[CL 2295284 by Mike Beach in Main branch]
2014-09-12 12:56:24 -04:00
Marc Audy
b6e79ff641 Prevent functions that require a World Context from being placed in a Graph that does not implement GetWorld() and report a warning for functions that already exist
A function with a World Context pin can also be flagged with new metadata CallableWithoutWorldContext which indicates it can be used in any context, even if GetWorld() is not implemented, the called function is responsible for providing a working alternative when World is null
World Centric functions can also be used in classes tagged with the ShowWorldContextPin metadata which indicates the class has a well defined method of supplying the world context that will be connected

[CL 2292921 by Marc Audy in Main branch]
2014-09-10 16:39:25 -04:00
Marc Audy
fcaf05abab Change ShowHiddenSelfPins to ShowWorldContextPin
[CL 2292818 by Marc Audy in Main branch]
2014-09-10 15:23:52 -04:00
Marc Audy
4ad81351db Change how types are displayed in blueprint pin tooltips
Deprecate TypeToString
Make ConstructBasicPinTooltip take FText for Description
Make SpawnActorFromClass pin tooltips consistent with other nodes

[CL 2286449 by Marc Audy in Main branch]
2014-09-05 13:06:18 -04:00
Mike Beach
42a36b542a Caching tooltips that use FText::Format() (optimizing for the new BP menu system).
[CL 2283623 by Mike Beach in Main branch]
2014-09-03 18:17:44 -04:00
Mike Beach
1b87f7d3ee Deprecating EdGraphNode's GetTooltip() (in exchange for one that returns FText over FString).
[CL 2283396 by Mike Beach in Main branch]
2014-09-03 18:14:09 -04:00
Mike Beach
e165ed2973 (WIP) A more robust solution to binding blueprint actions with specific objects.
[CL 2272867 by Mike Beach in Main branch]
2014-08-26 16:25:42 -04:00
Marc Audy
faf0465fa4 Better fix for removing @param and @return from call function tooltips (works for menu as well as actual nodes)
[CL 2272741 by Marc Audy in Main branch]
2014-08-26 15:45:27 -04:00
Marc Audy
45e30f3bff Don't display the @param and @return portions of a blueprint callable function in its tooltip
[CL 2272575 by Marc Audy in Main branch]
2014-08-26 15:01:07 -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
Mike Beach
6d68a84123 (WIP) Readdressing how we handle bound nodes in the new blueprint menu system (can't cache all permutations in the database, so we bind at menu construction time).
[CL 2262664 by Mike Beach in Main branch]
2014-08-19 12:36:44 -04:00