[r192] Function with too many parameters

Bugs will be moved here once resolved.

Post » Tue Dec 16, 2014 7:40 pm

Problem Description
Functions can't have 17~18 or more parameters, as it breaks the call function window, or it doesn't fit (specially if a parameter has multiple lines)

With 20 parameters, the "Add parameter" and "Remove parameter" buttons disappear

Steps to Reproduce Bug
    Call a function with a lot of parameters

Observed Result
functionbroke.png


Expected Result
A scroll bar, probably

Operating System and Service Pack
Windows 7 Ultimate 64-bit

Construct 2 Version ID
r192
You do not have the required permissions to view the files attached to this post.
B
84
S
22
G
15
Posts: 1,039
Reputation: 15,249

Post » Tue Dec 16, 2014 7:45 pm

This is how the function call looks using "Set return value". It would be nice to have an action like "Call function by expression" or something like that, that would look like this, but without it requiring a return value

functionbroke2.png
You do not have the required permissions to view the files attached to this post.
B
84
S
22
G
15
Posts: 1,039
Reputation: 15,249

Post » Tue Jan 06, 2015 3:33 pm

For the next build I added a 'Call expression' action to the Function object which should be more convenient for long parameter lists. Closing as that's probably a better solution than using the UI.
Scirra Founder
B
398
S
236
G
88
Posts: 24,441
Reputation: 194,681


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 7 guests