Opened 14 years ago

Closed 13 years ago

Last modified 8 years ago

#582 closed task (fixed)

Add camera reset command

Reported by: Philip Taylor Owned by:
Priority: Nice to Have Milestone: Alpha 4
Component: Atlas editor Keywords: simple
Cc: Patch:

Description

In the map editor, sometimes you can get the camera lost (badly rotated or scrolled off the side of the world) so it's hard to recover. There should be some way (hotkey? button? menu command?) to reset the camera to an on-world position and default orientation.

Also there should probably be a way to reset to the game's default camera orientation without changing position, so designers can see the same perspective players will usually see. Maybe this should be combined with the recovery thing - always reset to default orientation, and if the camera's still off the side of the map then move it back on.

Attachments (1)

cam_reset.patch (3.7 KB ) - added by Slawomir Zborowski 13 years ago.

Download all attachments as: .zip

Change History (8)

comment:1 by (none), 14 years ago

Milestone: Unclassified

Milestone Unclassified deleted

comment:2 by Andrew, 14 years ago

Milestone: Backlog

by Slawomir Zborowski, 13 years ago

Attachment: cam_reset.patch added

comment:3 by Slawomir Zborowski, 13 years ago

Keywords: review added

Please review my patch.

comment:4 by Philip Taylor, 13 years ago

Milestone: BacklogAlpha 4

Thanks, looks good! Applied with a few trivial changes:

  • Changed the 'c' to be recognised in OnChar - that seems a more appropriate place than KeyScroll since this isn't really scrolling.
  • Changed the POST_MESSAGE second argument to () instead of being empty - doesn't make any real difference but it looks less weird.
  • Fixed some whitespace to be more consistent with the existing code (e.g. no space before the ( in function declarations).
  • Changed the MESSAGEHANDLER to only call GetFocus once, since GetFocus does quite a lot of work.
  • Moved the MESSAGE to be with the other camera control messages rather than cinematics messages.

comment:5 by Kieran P, 13 years ago

Resolution: fixed
Status: newclosed

comment:6 by Philip Taylor, 13 years ago

(Oops, yes - see r8911 (I forgot to use the right keyword to automatically close the ticket))

comment:7 by sanderd17, 8 years ago

Keywords: review removed
Note: See TracTickets for help on using tickets.