Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#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)

squaremap.png (43.5 KB ) - added by historic_bruno 13 years ago.
square map in circle

Download all attachments as: .zip

Change History (8)

by historic_bruno, 13 years ago

Attachment: squaremap.png added

square map in circle

comment:1 by historic_bruno, 13 years ago

Owner: set to historic_bruno
Status: newassigned

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 Kieran P, 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?

comment:3 by Kieran P, 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?

in reply to:  3 comment:4 by historic_bruno, 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 ben, 13 years ago

Resolution: fixed
Status: assignedclosed

(In [9554]) Fixes square maps to behave like circular maps and fit within the circle. Fixes #822

comment:6 by michael, 13 years ago

It works, but not as intended. The corners are cut off.

in reply to:  6 comment:7 by historic_bruno, 13 years ago

Replying to michael:

It works, but not as intended. The corners are cut off.

Any problems after the autobuild?

Note: See TracTickets for help on using tickets.