godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
91.55k stars 21.26k forks source link

Visual Scripting takes too much effort to call a function #18831

Closed fire closed 6 years ago

fire commented 6 years ago

Targeting 3.1

Issue description: Visual Scripting UX takes too much effort to call a function. It takes too many clicks.

Steps to reproduce:

Current flow:

  1. Add a new str input to the function. Add new str input
  2. Drag from str input Drag from str input
  3. Click call (a dialog that says call / set / get) Drag from str input
  4. Type name of function constrained by type
  5. Move mouse to open and click / double click open Move mouse to open and click.

New flow:

  1. Add a new str input to the function. (This is still bad...) Add new str input
  2. Drag from str input Drag from str input
  3. Do a search constrained by type
  4. Single click / press enter to create

Rid of the current flow's B, you can put those into the search bar and have it so clicking on the function name once is enough (not double clicking)

fire commented 6 years ago

Other ideas:

  1. Right click on the background calls function call search
  2. A plus button to add inputs and outputs on the create a function ui on the graph area
  3. Create the first function _ready. Every visual script has an empty _ready function that can be deleted. It is a template.
newbie2356 commented 6 years ago

I will agree that it's not intuitive and a bit fiddly to get anything done in visualscript at the moment. I'm exploring it as an option for my friend who is primarily interested in Art and VERYLIGHT scripting and even this feels too difficult to explore and figure out.

Perhaps node based programming is not the solution... hmm.

fire commented 6 years ago

Able to do this through tweaking. Anyways, the battle is winnable!

https://i.imgur.com/vUXKOLn.gifv

ghost commented 6 years ago

that looks like it's just 1 step less lol

fire commented 6 years ago

https://github.com/fire/godot/commits/better_vx_us_rebase_02 (rebased, note changed.)

This is my branch.

A) Has the new workflow for both the white line actions and methods / properties. B) Zoom is now scroll wheel C) Right drag moves the canvas

fire commented 6 years ago

Was merged. Some changes were made.