Ticket #822 (closed enhancement: fixed)
Make square maps fit within the minimap circle
| Reported by: | k776 | Owned by: | historic_bruno |
|---|---|---|---|
| Priority: | Should Have | Milestone: | Alpha 6 |
| Component: | Core engine | Keywords: | |
| Cc: |
Description
We need the corners around the circular minimap for buttons.
Make square maps fit into that circle, and rotate nicely.
Attachments
Change History
Changed 2 years ago by historic_bruno
- Attachment squaremap.png added
comment:1 Changed 2 years ago by historic_bruno
- Owner set to historic_bruno
- Status changed from new to 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 Changed 2 years ago by k776
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?
comment:3 follow-up: ↓ 4 Changed 2 years ago by k776
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 in reply to: ↑ 3 Changed 2 years ago by historic_bruno
Replying to k776:
Does the view port (the red shape inside the minimap) stay at that rotation?
Yep that's exactly how it works.

square map in circle