Center pointy_rectangle to the window and field_of_movement input #134
-
Hi, I have two issues; The first one is that I am struggling to center a 15 by 11 sized pointy_rectangle. The only way I manage to do so at the moment is by doing something like Is there an easy way to solve this? I assume it would involve not using Edit; I 'solved' the first problem by continuing to use with
and inverting x, y on the layout so I can present 0,0 in the top left corner of the rectangle and 14, 10 in the bottom right. Of course, this is purely to visualize the tile's x, y with text, and I continue to use the Not ideal but it works for my purposes. The other issue is that the visual placement is for some reason not the same as the coords that Thank you so much for this amazing crate! Let me know if I need to clarify anything. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
You could change the world origin in the |
Beta Was this translation helpful? Give feedback.
-
Thank you! I will look into it. |
Beta Was this translation helpful? Give feedback.
You could change the world origin in the
HexLayout
to offset everything, but if you are using theshapes
module you might need to rewrite the rectangle function to do what you intend and offset all hexagons to avoid negative values, this combined with theorigin
change would make a centered rectangle