#822 closed enhancement (fixed)
Make square maps fit within the minimap circle
Reported by: | Kieran P | Owned by: | historic_bruno |
---|---|---|---|
Priority: | Should Have | Milestone: | Alpha 6 |
Component: | Core engine | Keywords: | |
Cc: | Patch: |
Description
We need the corners around the circular minimap for buttons.
Make square maps fit into that circle, and rotate nicely.
Attachments (1)
Change History (8)
by , 13 years ago
Attachment: | squaremap.png added |
---|
comment:1 by , 13 years ago
Owner: | set to |
---|---|
Status: | new → assigned |
I've had a go at this, please take a look at the screenshot and see what you think. (Everything seems to be working here, camera and minimap texture coordinates are scaled properly, and it rotates like a circular map). If it looks OK I'll commit my changes.
comment:2 by , 13 years ago
Yup, looks good. Don't forgot to clean up old code related to the square one that might not be needed anymore, in particular, when to use the circle shape of the minimap.
When it's good, please commit :-)
Then we can get started on the next stage, moving the idle villagers button. Feel like having a crack at placing the button, getting indexing correct, and adding a new triangular click boundary state?
follow-up: 4 comment:3 by , 13 years ago
Does the view port (the red shape inside the minimap) stay at that rotation? If the entire map rotates nicely, that red thing should never need to rotate now. The only thing it should need to do is move up/down/left/right. Does that make sense?
comment:4 by , 13 years ago
Replying to k776:
Does the view port (the red shape inside the minimap) stay at that rotation?
Yep that's exactly how it works.
comment:5 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:7 by , 13 years ago
Replying to michael:
It works, but not as intended. The corners are cut off.
Any problems after the autobuild?
square map in circle