When adding a RunScript Action, we would normally want to quickly define the ScriptFile and Function and jump directly into the ScriptFile path, create a function and start coding it.
What could be added is:
Singe click on the Function value lets you edit the name as usual, but also tries to:
If the function doesn't exist yet, gives an option to create a basic definition inside the lua ScriptFile
If the function already exists, it displays a hovering lua editor, positioned in the function:
Double click on the Function name could do something similar:
If it doesn't exists, create it and enter the full editor (not hovering as scripts can be long and use helper functions internally), just open in another tab and position the cursor at the beginning of the function.
If it exists, open the full editor and position the cursor at the beginning of the functio
or if you want to go full awesome, the last recorded position where the user left editing it!
When adding a RunScript Action, we would normally want to quickly define the ScriptFile and Function and jump directly into the ScriptFile path, create a function and start coding it.
What could be added is: