- if (gameMap->getUnitSelection().getSelectedUnit() == nullptr)
- {
- hud->activateShortcuts();
- }
- else
- {
- //hud->deactivateShortcuts();
- }
mdooligan | Oct 06, 2016 9:14 pm |
---|---|
Subject: HUD hotkeys do not work? Thank you for the 0.2.9 release, a lovely piece of work. I'm sure it's me being dumb or half blind, but the HUD hotkeys/shortcuts (eg F to toggle Fog display) in 0.2.9 do not work. Everything else does. I see they are registered, but they seem to be turned off somehow somewhere. Is this a configuration thing, or a button I have clicked by accident? I can't seem to find anything that turns them on and off. A separate question: I love that new implementation of the chatbox, very nice. Is there a config option to have the chatbox turned off on startup, escpecially for single player mode? |
mdooligan | Oct 07, 2016 1:44 am |
---|---|
Subject: Re: HUD hotkeys do not work? As update to this, is seems the HUD hotkeys work when the game first starts, but stop working as soon as I select a unit. I thought it may have had something to do with opening a saved game, but it does the same whether it's a new game or saved game. |
mdooligan | Oct 08, 2016 7:59 am |
---|---|
Subject: Re: HUD hotkeys do not work? Update: when you select a unit, the hud hotkeys are deactivated. src/ui/graphical/game/gamegui.cpp:186 DownloadSource code (Text):
So I commented the line out and my hud hotkeys go back to working. I'm guessing this was done because some of the unit hotkeys overlap the hud hotkeys, but it certainly isn't obvious that this would be the case. In the original, the number keys 1-0 are used for the unit menu actions. To quote the original readme.txt from ca.1995: DownloadSource code (Text):
Then I notice my keyCenterUnit is not working. I tracked that down to src/ui/graphical/game/hud.cpp:106 where I inserted the line DownloadSource code (Text): and now I can center the unit with the 'f' key. I guess nobody uses that key? How it got missed in the rush I don't know.
|
.GodRage | Apr 07, 2017 6:05 pm |
---|---|
Subject: Re: HUD hotkeys do not work? it would be good that users can set hotkeys themselves. even by editing an xml file... Survey on/off → H ... But also help if something is selected. :s grid on/of → ...I don't even remember. xD X-fer → X F11 → I would like it to be back to F1, or better: W key for exemple.. to speed up each turn... each player should be able to set up it's own shortcuts I guess... I like the Alt+F6 to save a screen place... but for me it needs 2 hands to do so. xD Ctrl+A ... Ctrl+T would have be better for me. :P (but maybe it's because I use a laptop, so the Alt key isn't really good.. ) |
.GodRage | Apr 07, 2017 11:22 pm |
---|---|
Subject: Re: HUD hotkeys do not work? From channel #maxr Beko told me where to look for shortcuts: C:\Users\GodRage\Documents\maxr\keys.xml Just wondering if I can put 2 or 3 keys for a single action. (like the chat, having Tab, Enter, Enter (numpad) would be lovely ) |
beko | Apr 07, 2017 11:30 pm |
---|---|
Subject: Re: HUD hotkeys do not work? Try it Some keys may take precedence before others. |
.GodRage | Apr 08, 2017 12:18 am |
---|---|
Subject: Re: HUD hotkeys do not work? Hmmmm I tried and MAXR replace my modifications by default modifications when I run it. |