Commit Graph

33 Commits

Author SHA1 Message Date
Eric Newman
f3569dae41 Fortnite dev to main merge up to cl # 2564489
Merging using UE4-Fortnite-To-UE4

[CL 2573959 by Eric Newman in Main branch]
2015-06-02 11:44:27 -04:00
Michael Schoell
db9c8e2240 UProperty and UFunction metadata for Category can now be localized and have improved FText usage throughout the editor (Blueprints, Behavior Trees, Materials, etc).
Big conversion of FStrings and FNames to FText.

Version bump to move some MaterialFunction UProperty from a TArray<FString> to TArray<FText> (some Engine assets are older than being allowed to auto-convert the UProperty)

Auto conversion of FName to FText (and back) now supported (as well as TArrays of those types).

Searching categories by both the localized string and the source string is now supported in Blueprints.

#jira UE-14481 - We are missing ability to translate node categories

#codereview Justin.Sargent

[CL 2542875 by Michael Schoell in Main branch]
2015-05-08 10:46:42 -04:00
Maciej Mroz
18035166ac UE-14706 Need a way to abort a UK2Node_BaseAsyncTask node
#codereview Mieszko.Zielinski

[CL 2532969 by Maciej Mroz in Main branch]
2015-04-30 20:45:10 -04:00
Maciej Mroz
4d804326e0 K2Nodes::HasExternalBlueprintDependencies and K2Nodes::HasExternalUserDefinedStructDependencies were changed into HasExternalDependencies and can return native structs
[CL 2525803 by Maciej Mroz in Main branch]
2015-04-25 17:47:39 -04:00
Michael Schoell
63b7360ae0 Removed the Blueprint Editor's legacy node menu system.
#jira UE-13391 - Delete old BP menu system (is causing confusion)

#codereview Mike.Beach

[CL 2514361 by Michael Schoell in Main branch]
2015-04-16 11:47:54 -04:00
Michael Schoell
5f3f433198 Can drag and drop pins onto a variety of K2Node_EditablePinBase nodes to add pins to them.
Shifted a lot of pin adding functionality from Blueprint Details customizion to the nodes themselves or BlueprintEditorUtils.

#jira UE-11334 - Dragging a pin to a node that can add pins (function entry/exit, custom events...) should add a pin of the type to the node.

[CL 2497224 by Michael Schoell in Main branch]
2015-03-31 10:32:10 -04:00
Dan Oconnor
ae4723c838 [UE-12083] Fix for function used in async task that was not merged over. We can never compile this, but we shouldn't crash!
[CL 2494153 by Dan Oconnor in Main branch]
2015-03-27 14:07:28 -04:00
Michael Schoell
ece860ea64 Blueprint Call Function nodes will now display localized function names.
FriendlyName metadata is now deprecated and all uses have been removed, a metadata redirector has been setup.

Changed most/all current instances of FriendlyName metadata over to DisplayName.

#jira UE-12048 - Ability to translate Blueprint node names (UFunction names)

[CL 2494033 by Michael Schoell in Main branch]
2015-03-27 12:54:58 -04:00
Ben Marsh
149375b14b Update copyright notices to 2015.
[CL 2379638 by Ben Marsh in Main branch]
2014-12-07 19:09:38 -05:00
Phillip Kavan
ead8c218f1 [UE-2345] BP - enforce const-correctness in native const class method overrides
this change introduces enforcement of 'const-correctness' into implemented function graphs.

summary:
if you have a function declared in C++ like this:
UFUNCTION(BlueprintImplementableEvent)
int32 MyFunctionThatReturnsSomeValue() const;
if you implement that (BPIE) function in a Blueprint that's parented to that native class, it will now be flagged as 'const'. this makes any properties of 'self' read-only within the context of that graph, which means the compiler will emit an error if you try to set a property or otherwise call a non-const, non-static function with 'self' as the target.
if there happens to already be an implemented const function in a Blueprint that was in place prior to this change, the compiler will emit a warning instead of an error, in order to allow existing Blueprints that may currently be "violating" const within the context of a const BPIE function to still compile, while still alerting to issues that should probably be addressed.
notes:
1) this also applies to BlueprintNativeEvent (BPNE) implementations, and also when implementing BPIE/BPNE interface methods that are also declared as const
2) a const BPIE/BPNE function with no return value and no output parameters will be implemented as a "normal" impure function, and not as an event as in the non-const case
3) a const BPIE/BPNE function with a return value and/or output parameters will currently be implemented as a pure function, regardless of whether or not BlueprintCallable is specified
4) this CL also retains some consolidation of static function validation code that i had previously done, mostly to allow static functions to more easily be whitelisted for const function graphs
#codereview Nick.Whiting, Michael.Noland

[CL 2368059 by Phillip Kavan in Main branch]
2014-11-21 17:47:17 -05:00
Maciej Mroz
22281886d7 BP: ExpandNode() functions don't check "if (CompilerContext.bIsFullCompile)". The function should be called only when necessary.
[CL 2332863 by Maciej Mroz in Main branch]
2014-10-17 06:37:11 -04:00
Michael Schoell
985a2b04a7 Any latent action nodes derived from BaseAsyncTask are now supported in macros. Reminder, these macros will prevent themselve from being placeable in functions.
Added an error for BaseAsyncTask nodes to inform when they find themselves in a function graph, detailing the function and the macro that expanded.

[CL 2331954 by Michael Schoell in Main branch]
2014-10-16 14:38:52 -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
David Ratti
34e3879d6e Better error message when proxyclass fails to load
[CL 2303082 by David Ratti in Main branch]
2014-09-18 16:46:00 -04:00
Mike Beach
27b65e9cab Keeping nodes from spawning unessecery menu actions (was causing a big memory spike for the new menu system).
[CL 2292953 by Mike Beach in Main branch]
2014-09-10 17:09:26 -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
873e72ebc9 Removing "Call Function" root category (requested through the NUX trello board).
[CL 2276842 by Mike Beach in Main branch]
2014-08-28 17:40:36 -04:00
Michael Schoell
3c14989ee1 Macros will allow latent functions to be added and functions will no longer allow macros with latent functions to be added.
#ttp 332475 - BLUEPRINTS: Allow macros to support latent actions

[CL 2270793 by Michael Schoell in Main branch]
2014-08-25 13:56:40 -04:00
Mike Beach
cc74a27828 Fixing up various build errors.
[CL 2269188 by Mike Beach in Main branch]
2014-08-23 23:06:59 -04:00
Mike Beach
768b7801d9 Adding a new method to graph nodes that determines if that node is compatible with certain graphs (split out functionality from CanPasteHere() so we can leverage it in the new blueprint menu system).
[CL 2242673 by Mike Beach in Main branch]
2014-08-04 12:39:34 -04:00
Dan Oconnor
5716ca7381 #UE4 fix #342132 for async tasks..
[CL 2237816 by Dan Oconnor in Main branch]
2014-07-30 21:01:24 -04:00
Mike Beach
02f47adea1 (WIP) Setting up async task nodes so that they're listed for the new blueprint action menus.
[CL 2214305 by Mike Beach in Main branch]
2014-07-14 14:09:47 -04:00
David Ratti
cc642d066c Move FBaseAsyncTaskHelper to protected struct so that child classes can use it
[CL 2130655 by David Ratti in Main branch]
2014-07-03 10:59:02 -04:00
Michael Schoell
788de6f349 Removed GetNodeNativeTitle from the editor entirely, now uses BuildSourceString to obtain the source string in a more reliable way.
#codereview Justin.Sargent

[CL 2114371 by Michael Schoell in Main branch]
2014-06-23 15:36:50 -04:00
Nick Whiting
dda0f56e86 #ue4 Fix case where literal entry field would be hidden on async task nodes erroneously
[CL 2108290 by Nick Whiting in Main branch]
2014-06-17 13:25:57 -04:00