Jump to content

Hotkeys without extending XComTacticalInput?


SaintKnave

Recommended Posts

Hey all, newb modder here...

 

I'd like to make a mod that implements new hotkeys for the Tactical UI. But I don't want the mod to extend XComTacticalnput because I don't want it to conflict with Free Camera Rotation.

 

I'm looking for guidance on how to do that!

 

From the investigation I've attempted by searching these forums, it looks like perhaps I need to:

1. Create a UIScreenListener for the UITacticalHUD

2. Have that UIScreenListener spawn "dummy" UIScreen (a screen without any visible elements)

3. Have that UIScreen use OnUnrealCommand to intercept keyboard input

4. Pass through (return false) any input I'm not using, otherwise act on it and return true

 

Am I on the right track? Or is my idea wrong that I can create a "dummy," empty and invisible UIScreen for the purposes of getting at OnUnrealCommand?

 

Are there similar mods I should look at to see how they do it?

 

Thanks!

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...