Hotkeys
Hotkeys
About this mod Machine translation
Hotkeys
So I've put together a small collection of key tasks for UI features that I feel are essential to playing Civ6 without going blind, going crazy, or getting really irritated. Far from being a LUA director, I'd like to open up the topic for discussion and try to establish some sort of "best practice" approach to further critical input modifications. I don't have any issues with these key features, but could use some review. My main concern is efficiency, not improving UI performance.
The first two add a way to toggle normal static UI map elements to produce a "clean map" view. Personally, I find this very important when looking for resource instances or getting an overview of a territory. Others already exist as controls in MinimapPanel, but currently lack key assignments. Maybe Firaxis will add these... their absence seems odd.
Toggle unit iconù
Toggle City BannerX.
Toggle resource icon R.
Toggle yield icon Y.
I think 'Cure' and probably some other unit commands are missing tasks as well. I'll look at those after the map key.
All additions are made to the DefaultMessageHandler in Ingame.lua. In civ5's experience, placing these here is the only(?) way to activate the keys throughout the turn cycle. Unit icons and city banners work exactly the same as civ5... I just switched from wParam to uiKey as per current convention. For resources and yield, I extracted the functions directly from the MinimapPanel. Maybe there's a better way, but I haven't found it yet. Aside from the yield display, execution is fast...with significant lag, just like when executing from the panel. I hope Firaxis will replace it at some point.
Below are the changes to DefaultMessageHandler... added keys section marked. The complete InGame.lua is attached below..
So, I've hacked together a small collection of key assignments for UI functions that I find essential for playing Civ6 without going blind, mad or otherwise becoming really irritated. Far from LUA competent, I'd like to open the subject for discussion and try to establish some sort of "best practice" approach to further key input modding. These key functions are working for me without issue, but could bear some scrutiny. My main concern is efficiency and not honking up UI performance.
The first two add a means to toggle normally static UI map elements in order to produce a "clean map" view. Personally, I find this essential when hunting for resource instances or getting a general overview of territory. The others already exist as controls in MinimapPanel, but currently lack a key assignment. Perhaps Firaxis will add these... it seems strange that they're absent.
toggle unit icons U
toggle city banners X
toggle resource icons R
toggle yield icons Y
I think 'heal' and possibly some other unit commands are missing assignments as well. I'll look to those after the map keys.
All additions are made to DefaultMessageHandler in Ingame.lua. From experience with civ5, placing these here is the only(?) way to have the keys active during the entire turn cycle. Unit icons and city banners work exactly as in civ5... I only switched to uiKey from wParam, following current convention. For resources and yields, I lifted the functions directly from MinimapPanel. Perhaps there's a better way, but I haven't found it. Execution is fast with the exception of the yield display... that noticeably lags, just as it does when performed from the panel. I would expect Firaxis to replace that at some point.
Here are the changes to DefaultMessageHandler... added key section is marked. Full InGame.lua is attached below...
Install & use Install: follow the bundled instructions
- Unzip the archive from playbuff and read the bundled readme / instructions first.
- There is no universal mod manager for this game: some mods replace game files directly, some go into a game-specific Mods folder, and some need a game-specific community loader or tool first — follow the bundled readme.
- Place the files exactly as the readme says; mods with listed dependencies need those installed too.
- Launch the game to confirm it loaded; some games require enabling mods in settings or an in-game mod menu.
Install locations vary a lot between games and mods — the bundled readme is the most reliable guide.