-
Notifications
You must be signed in to change notification settings - Fork 258
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
Add macro functions for token Flipped X/Y/Iso settings #2879
Comments
@melek I think you brought this up. Comments? |
It is often desirable to store how a token looks so that you can reset its position later, or to otherwise set up a token's visual appearance with macros. Flipped status is one of the only, if not the only, visual token parameter that doesn't have corresponding macro functions. Exposing flipping to macros may also enable some cool uses of flipping that we haven't thought of. :) |
So the functions as described are good enough? Note that the flipToken functions toggle whatever the current setting is just like the right-click menu options because they call the same code. If you want to explicitly set the flipped status then I'll have to add some new methods and update types to the Token class. |
Interesting - I think a common pattern for me would quickly emerge:
So, in that case,
Then Token ID and Map could be second and third optional paramters, like most other similar functions. |
Regarding the overall suite of functions, the basic getting and setting stuff is all there, and even if I have to check flip status before flipping with an if statement, these would do great to expose the flip settings. If setting the flip status explicitly were an option, I don't know if separating toggling and flipping (like a |
I was thinking about having both toggle flip and explicit set flip functions but decided against it to avoid the bloat of extra functions. They can be added later if needed. For now simple [h, if(isFlippedX() == 1):flipTokenX()] will explicitly unflip and changing So all 6 functions will look like this:
|
Wiki docs added: |
No further comments. Closing. |
Is your feature request related to a problem? Please describe.
Currently lacking functions to get the status and flip tokens on the X/Y axis as well as for Iso grids.
Describe the solution you'd like
All functions to work on current token or with token id and optional map name.
Describe alternatives you've considered
None.
The text was updated successfully, but these errors were encountered: