Mod for city view keyboard shortcuts?

spyrule

Chieftain
Joined
Mar 2, 2014
Messages
1
Hey guys,

I like to play huge city maps, and the only annoyance that I have is when I want to manage my purchase queues, and buying tiles around a city.

If you have 50+ cities, this can be an enormous amount of repeat clicking that is quite annoying to have to do.

Is there a plugin that would allow for keyboard shortcuts to bring up the purchase/build windows, and then another shortcut to click the "buy a tile" button (especially useful if your buying a bunch of tiles on a new city later in the game, and you want to "grab" certain tiles without waiting for natural expansion).

Any help, suggestions is appreciated!

Spyrule
 
Well, it involves replacing CityView.lua, which will make it incompatible with other mods that do so... but it's pretty easy to do. I assume you use BNW; otherwise it needs to be changed slightly.

I could make the hotkeys act as toggles, and change it back to the normal city view on a second keypress. However, the Escape key does that consistently, so I don't know if it matters to you.

B: Buy a plot
M: Production menu
P: Purchase menu
Q: Enable production queue

That reminds me... I added the queue button as an afterthought, but I didn't test it yet. [EDIT: Apparently the production menu and queue aren't working right.] [EDIT #2: Fixed the production menu (I was using the wrong function), and removed the queue button. If you must have it, let me know and I'll see if I can figure it out.]

If you'd like to change the keys used, you'll find the function that detects keypresses at line 100. Also note that the last four three hotkeys of that function [lines 126-134] are the only thing I added, so if you have another mod that changes CityView.lua, you can easily add that section of the file to that mod.
 

Attachments

Back
Top Bottom