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

Fancier units: "% of width", "% of height", "center", "centered" etc. #299

Open
andymeneely opened this issue Mar 18, 2020 · 2 comments
Open

Comments

@andymeneely
Copy link
Owner

It would be nice if we had a layout that had something like:

hitpoints:
  x: 17.5% of width

So it would look up the deck width and then multiple 0.175 to it.

And then things like center would be half of the width of the deck.

And then centered would be center - width/2 for the thing if width is specified.

Figuring out how this works with *= and += in layouts will be tricky. Maybe warrants some warnings. But it's worth looking into.

@andymeneely
Copy link
Owner Author

Thought of another one: turn and deg. Like in CSS. So 0.5turn would be "half a turn" or 180 degrees. And then 180 degrees would be 180deg

@andymeneely
Copy link
Owner Author

Another idea for this: width: to_edge would be the card_width - x. We can also use width: to_cut and width: to_safe for similar things.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant