Ticket #822 (closed enhancement: fixed)

Opened 2 years ago

Last modified 2 years ago

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

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

Change History

Changed 2 years ago by historic_bruno

square map in circle

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.

comment:5 Changed 2 years ago by ben

  • Status changed from assigned to closed
  • Resolution set to fixed

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

comment:6 follow-up: ↓ 7 Changed 2 years ago by michael

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

comment:7 in reply to: ↑ 6 Changed 2 years ago by historic_bruno

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.