1
0
mirror of https://github.com/Siccity/xNode.git synced 2025-12-20 09:16:01 +08:00

49 Commits

Author SHA1 Message Date
Thor Brigsted
05f7b4ca82 Tooltip shows static output values 2017-11-06 00:36:25 +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
432ce05bb5 Fixed dynamic node width.
Fixed field widths.
2017-11-03 10:11:07 +01:00
Thor Kramer Brigsted
90c3621795 Moved NodeEditor.[CustomNodeEditor].contextMenuName to Node.[CreateNodeMenu].menuName 2017-11-02 17:37:11 +01:00
Thor Kramer Brigsted
8eff75fa7f Bug fixes 2017-11-02 16:17:28 +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
5f394581d6 Made Node.inputs and Node.outputs private. Started introducing instanceInputs and instanceOutputs. 2017-11-02 01:47:22 +01:00
Thor Kramer Brigsted
ab74f8fd36 OnBodyGUI() remake
Default OnBodyGUI now uses default PropertyFields as suppied by UnityEditor.
This means fields are drawn on nodes the same way as they are drawn in the inspector.
out portPosition has also been moved to a static field. It is set automatically using the NodeEditorGuiLayout methods.
Alternatively, you can alter it manually during your node GUI drawing.
2017-10-31 14:52:10 +01:00
Thor Kramer Brigsted
eaeca48f69 Improved null handling 2017-10-30 11:38:36 +01:00
Thor Brigsted
b9e06be096 Made the tooltip type info more readable 2017-10-30 01:33:06 +01:00
Thor Brigsted
29b9841014 Fixed bug where a null node would stop node drawing 2017-10-29 21:11:39 +01:00
Thor Kramer Brigsted
4c6c10f15b Fixed incorrect position checking while zoomed 2017-10-26 13:33:55 +02:00
Thor Brigsted
2dc7450661 Improved userfriendlyness of [Input] and [Output] 2017-10-20 23:01:38 +02:00
Thor
9db84d1608 Replaced node Rect rect with node Vector2 position. Improved node hover check. 2017-10-19 15:15:34 +02:00
Thor Brigsted
554a85cb71 Node hover update finished 2017-10-16 23:43:23 +02:00
Thor Brigsted
23a3e0e732 Node hover update 2017-10-16 21:48:23 +02:00
Thor Brigsted
5b1026e698 Fixed field editor bug, added tooltip. 2017-10-14 18:18:25 +02:00
Thor Brigsted
5e68b6bcdc Big update.
Removal of scripts now also clears dependant nodes, to avoid null objects.
NodePorts now support fallback values.
UI Changes.
node.graph is now serialized as well.
2017-10-14 16:19:24 +02:00
Thor Brigsted
c1db2d9e4b Minor UI design changes 2017-10-14 10:52:20 +02:00
Thor Brigsted
812196184f Fixed minor format error 2017-10-14 08:40:03 +02: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
2bccb2ca3a Removed toolbar.
It might return later, but at this point there's no use for it.
2017-10-13 20:38:00 +02:00
Thor Brigsted
bc5c060dee Improved broken connection cleanup. Example updates 2017-10-13 20:28:40 +02:00
Thor Brigsted
147424ca73 Added DisplayValue and GetValue 2017-10-09 00:29:40 +02:00
Thor Brigsted
f6d92589dd UI changes
Brighter nodes, fatter wires, padding, prettier enum fields
2017-10-06 19:53:37 +02:00
Thor
efa1dc9ad5 Improved node body design 2017-10-06 14:18:26 +02:00
Thor
85069f72ea Draw node connections behind nodes 2017-10-06 13:55:59 +02:00
Thor Brigsted
965b086341 Started UI overhaul 2017-10-03 20:15:59 +02:00
Thor Brigsted
5f4da093f3 Fixed node headers 2017-10-01 21:53:29 +02:00
Thor Brigsted
6a92f18618 Connections now draw under port handles
Modulized code. Too many minor changes to address
2017-09-30 22:27:01 +02:00
Thor Brigsted
63808eb6a2 Removed GetInput and GetOutput and made inputs and outputs public 2017-09-27 22:45:28 +02:00
Thor Brigsted
2b0cf61435 Removed more JSON serialization
Also changed Rect "position" to Rect "rect"
2017-09-27 22:33:01 +02:00
Unknown
e40161684c Added colors to connections 2017-09-25 18:51:51 +02:00
Unknown
97bbc236be Minor OnValidate optimization
Code now only runs on selected node
2017-09-23 02:43:29 +02:00
Unknown
c66ac47ea9 Changed NodePort UI styling 2017-09-23 00:26:38 +02:00
Thor Brigsted
d88cf5b53d OnValidate added for nodes 2017-09-22 12:46:45 +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
Thor Brigsted
9ef6069ea7 Exposed node name 2017-09-22 10:28:44 +02:00
Thor Brigsted
72cd983f7b Automatically resize nodes to match contents 2017-09-21 18:56:05 +02:00
Thor Brigsted
372099b03d Minor bugfixes and cleanup
Changed:
 - Private fields with [Serializable] attributes are now also shown
 - Nodes can now only be dragged by the title
 - Output text alignment
Fixed:
 - NodeEditorWindow fields not resetting to null
 - Field editors
2017-09-21 18:15:40 +02:00
Thor Brigsted
846f7f30b1 Exposed fields and custom editors 2017-09-21 13:22:34 +02:00
Thor Brigsted
1606c583f9 Basic serialization 2017-09-20 23:04:49 +02:00
Thor Brigsted
d3f0d96954 Cleaned up 2017-09-20 20:25:21 +02:00
Thor Brigsted
f9152bf891 Editor core complete
Removed NodeConnection.cs: Node ports now operate by crossreferencing eachother
Changed from separate static classes to partial class
Removed UNEC Namespace
Added live hover info
2017-09-20 17:22:23 +02:00
Unknown
36ecfde3fe Connections, Ports 2017-09-19 00:15:17 +02:00
Unknown
10a56513df Base node manipulation finished
Zoom
Node Add / Remove
Node Drag
2017-09-18 13:10:29 +02:00
Thor Brigsted
5f0a776350 Started work on node graphs 2017-09-15 15:56:17 +02:00
Thor Brigsted
23c1d87988 Basic grid background 2017-09-15 00:46:21 +02:00