1
0
mirror of https://github.com/Siccity/xNode.git synced 2025-12-20 17:26:02 +08:00

27 Commits

Author SHA1 Message Date
Thor Brigsted
822b7ae156 Formatting 2020-12-17 13:50:11 +01:00
juliocp
1b32e2ec03 Added new methods at NodeEditorUtilities
_ HasCompatiblePortType:
Looking for ports with value Type compatible with a given type.

- GetCompatibleNodesTypes:
Filter only node types that contains some port value type compatible with an given type
2020-10-07 19:00:56 -03:00
Dan Erhardt
e704b97c77
A fix for an ArgumentException error. (#250)
This is the fix proposed by nostravaganza on discord.
It works 100%. Could not reproduce the error again.
2020-04-20 16:21:19 +02:00
Simon Rodriguez
72ff273b5c Rewrite that caches the ordered property attributes so the gui layout drawer can draw them in the correct order.
Rewrote how the property attributes are drawn, more compact less messy code.
2019-11-12 22:37:29 +01:00
Thor Brigsted
788b8d8a0b Automatically remove "Node" postfix from creation menu 2019-08-12 00:11:14 +02:00
Thor Brigsted
bb847a3044 Moved IsMac to NodeEditorUtilities 2019-07-24 10:25:29 +02:00
Thor Brigsted
891ecebc3f Put NodeEditorReflection into its own static class 2019-07-24 10:04:05 +02:00
Simon Rodriguez
5d45300935 Unified all functions that set the default node name (#161) 2019-06-23 11:54:14 +02:00
Sergi Tortosa Ortiz-Villajos
43038cfcc1 Support inherited attributes (#116) 2019-02-19 22:50:45 +01:00
Thor Brigsted
3a8ae366f2 Fixed #103
Similar issue as #100

GetField was not returning private fields. The method now not only looks for private fields, but also fields inside inherited classes
2019-02-16 03:06:25 +01:00
Thor Brigsted
8c731a9947 Fixed #100 again 2019-01-21 21:07:07 +01:00
Thor Brigsted
4c9264fed5 Fixed #100 2019-01-20 22:01:26 +01:00
Thor Brigsted
c321c276d1 Fixed formatting 2018-12-27 02:55:09 +01:00
Simon Rodriguez
3d1da00652 Caches attributes, generates no garbage after first fetch.
Cache gets reset on recompilation of code.
2018-12-21 14:54:12 +01:00
Thor Brigsted
5ef958f298 Added c# script templates
Create > xNode > Node/NodeGraph
2018-02-19 17:09:59 +01:00
Thor Kramer Brigsted
215a3475ea Small editor erformance gain. Removed PrettifyCamelCase.
Use ObjectNames.NicifyVariableName instead
2017-11-28 09:38:21 +01:00
Thor Brigsted
fe057a7be2 Added ShowBackingValue options for Input and Output
Added NodeEditorUtilities.GetAttrib<T>(Type classType, string fieldName, out T attribute)
2017-11-27 00:59:16 +01:00
Thor Kramer Brigsted
dcff69979c Moved NodeEditorGUI.TypeToString to NodeEditorUtilities.PrettyName
Improved custom type color handling
Removed default color overrides
2017-11-21 13:21:34 +01:00
Thor Brigsted
c6a4735c71 Renamed to xNode
Added XNode and XNodeEDitor namespaces
Removed unnecessary usings
2017-11-05 23:42:31 +01:00
Thor Kramer Brigsted
d3bb36fe0e Big update: Warning: Updating to this commit will break all node connections.
Internal NodePorts now uses dicts instead of lists. This is faster and more manageable.
Added instance ports.
Added Node.Ports, Node.Outputs, Node.Inputs, Node.InstanceOutputs, Node.InstanceInputs
Changed public GetInputByFieldName to GetInputValue and GetInputPort
2017-11-02 14:54:03 +01:00
Thor Brigsted
64282028aa Code FixFormat
None of the code was changed, just moved around.
2017-10-14 08:37:33 +02:00
Thor Brigsted
9abdf2995e Added Node Editor entry in Preferences. Custom colors for value types can now be assigned 2017-10-14 08:33:46 +02:00
Thor Brigsted
8ce0d63903 NodeDataCache changed from ScriptableObject to static class.
Nodes still don't load properly, but we're getting there.
2017-10-12 00:18:40 +02:00
Unknown
b10ff1a938 Prettified field names 2017-09-25 00:05:46 +02:00
Unknown
59085db16a Streamlined creation of custom node ports
Instead of initializing port arrays in Init();, ports are now defined by attributes on public fields
2017-09-24 21:54:53 +02:00
Unknown
c66ac47ea9 Changed NodePort UI styling 2017-09-23 00:26:38 +02:00
Thor Brigsted
638e784ca9 Added custom context menu path in attribute
Created NodeEditorUtilities
Renamed 'RightClickContextMenu' to 'ShowContextMenu'
Excluded abstract classes from nodeTypes and nodeEditorTypes
2017-09-22 12:19:21 +02:00