Skip to content

Added more output nodes#52

Merged
HungryProton merged 3 commits intoprotongraph:developfrom
christinoleo:develop
May 24, 2020
Merged

Added more output nodes#52
HungryProton merged 3 commits intoprotongraph:developfrom
christinoleo:develop

Conversation

@christinoleo
Copy link
Contributor

@christinoleo christinoleo commented May 18, 2020

This PR is for two new output nodes:

  1. A debug node which just prints out the information passed to it onto the console
  2. An output which saves the scene as a tscn resource in the res:// filesystem.

I also did some changes to accept any node with a name ending on "_output" to be considered an output node. Hopefully there is no lingering bugs..

@HungryProton
Copy link
Member

Sorry I took some time to answer.
I think it's fine to overwrite existing files as long as it's simple for the user to select them. I'm working on something to bring up a file selector from a GraphNode, I'll let you know when it's ready

@HungryProton
Copy link
Member

So, I've added a new option to display a file dialog from a graph node
image
All you have to do is to pass these options when calling set_input with a string type.

var opts = {
	"file_dialog": {
		"mode": FileDialog.MODE_SAVE_FILE,
		"filters": ["*.scn", "*.tscn"]
	}
}
set_input(0, "File", ConceptGraphDataType.STRING, opts)

And I see you fixed your issue on the file override, good job!

@HungryProton HungryProton merged commit d07298b into protongraph:develop May 24, 2020
@christinoleo
Copy link
Contributor Author

Pretty nice stuff on the file chooser! Good job!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants