Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Calling setTokenLayoutProps() with five parameters says error #3900

Closed
fw opened this issue Apr 6, 2023 · 0 comments · Fixed by #3901
Closed

[Bug]: Calling setTokenLayoutProps() with five parameters says error #3900

fw opened this issue Apr 6, 2023 · 0 comments · Fixed by #3901
Assignees
Labels

Comments

@fw
Copy link

fw commented Apr 6, 2023

Describe the Bug

On the "setTokenLayoutProps()"'s document in the wiki, that seems to allow to have five parameters, but calling with five parameters says error.

http://wiki.rptools.info/index.php/setTokenLayoutProps

OK: [r: setTokenLayoutProps(2, 50, 50, "Hero")]
Not: [r: setTokenLayoutProps(2, 50, 50, "Hero", "Grasslands")]
Error message: Function 'setTokenLayoutProps' requires no more than 4 parameters; 5 were provided.

To Reproduce

  1. Add the "Hero" token on the map of "Grasslands".
  2. Run the setTokenLayoutProps() with five parameters, such as [r: setTokenLayoutProps(2, 50, 50, "Hero", "Grasslands")]
  3. Will get the error: Function 'setTokenLayoutProps' requires no more than 4 parameters; 5 were provided.

Expected Behaviour

Allow to call with five parameters or revise that document.

Screenshots

No response

MapTool Info

1.12.2, 1.13.0-beta.1

Desktop

Windows 10 Pro

Additional Context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants