Key presses?

Thalassicus

Bytes and Nibblers
Joined
Nov 9, 2005
Messages
11,057
Location
Texas
How do we alter what happens when we press F4?

I noticed that if we open a popup like the Diplomacy Overview, the popup's priority depends on how we opened it.

  • Button at the top of the DiploList
  • Button on the DiploCorner
  • A mod calls "Events.SerialEventGameMessagePopup"
If we open the diplo overview from these locations, then open a fullscreen leader diplomacy, the diplomacy overview goes into the background. If we opened the overview by pressing F4, it remains in the foreground. I see how to alter popup priorities at the locations listed above. I'd like to alter the priority when we press F4.
 
From ...\assets\Gameplay\XML\Units\Civ5Controls.xml

try

Code:
<GameData>
  <Controls>
    <Update>
      <Where HotKey="KB_F4" />
      <Set HotKeyPriority="0" />
    </Update>
  </Controls>
</GameData>

Change 0 as appropriate!
 
Thank you! I wonder why it didn't come up with a search on the xml files? :think:

Hmm the priority is already 0, and I don't see its "CONTROL_FOREIGN_SCREEN" type referenced in xml or lua. I'm not sure how to keep the window from appearing on top of others, but will keep searching...
 
I use Agent Ransack for searching through files - I've yet to find a better free search utility!
 
... and I don't see its "CONTROL_FOREIGN_SCREEN" type referenced in xml or lua.

Probably one of those "half in xml, half in C++" oddities, like the ButtonPopupTypes
 
Back
Top Bottom