Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#1882 closed enhancement (fixed)

[PATCH] Location hotkeys

Reported by: alpha123 Owned by: peter
Priority: Should Have Milestone: Alpha 14
Component: UI & Simulation Keywords: patch
Cc: Patch:

Description

Allows saving a location and jumping the camera back there later.

The user presses one hotkey to save the location and another to jump back there. If they press the latter hotkey again while at the saved location, they jump back to where they were before the first jump. (Does that make sense? I feel like I'm not explaining this all that well....)

Scenario: I press Ctrl+U to save the location of my base. I go out to do a little raiding, and hit U to jump back to build a new house at my base, then hit U again to go back to my raid. Make sense now?

Unfortunately this patch requires recompiling, because there weren't functions to get the camera location exposed to JS.

Attachments (3)

location-hotkeys.3.patch (9.3 KB ) - added by alpha123 11 years ago.
location-hotkeys.2.patch (8.3 KB ) - added by alpha123 11 years ago.
Move hotkeys to F5-F8
location-hotkeys.4.patch (9.3 KB ) - added by alpha123 11 years ago.
Update manual to list the new hotkeys.

Download all attachments as: .zip

Change History (7)

comment:1 by alpha123, 11 years ago

Currently it supports 10 locations (well, the code supports infinite locations, but there are only hotkeys set up for 10). The first 4 are assigned to UIOP (and Ctrl+UIOP to set), and the other 6 are unassigned.

by alpha123, 11 years ago

Attachment: location-hotkeys.3.patch added

comment:2 by alpha123, 11 years ago

I decided to move these hotkeys to F5-F8 (still Ctrl+F5-F8 to set) in order to make more room for cycling through buildings.

by alpha123, 11 years ago

Attachment: location-hotkeys.2.patch added

Move hotkeys to F5-F8

by alpha123, 11 years ago

Attachment: location-hotkeys.4.patch added

Update manual to list the new hotkeys.

comment:3 by peter, 11 years ago

Owner: set to peter
Resolution: fixed
Status: newclosed

In 13463:

Implement location hotkeys. Fix #1882.

comment:4 by leper, 11 years ago

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