SaintKnave Posted May 14, 2016 Share Posted May 14, 2016 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 UITacticalHUD2. Have that UIScreenListener spawn "dummy" UIScreen (a screen without any visible elements)3. Have that UIScreen use OnUnrealCommand to intercept keyboard input4. 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 More sharing options...
bountygiver Posted May 14, 2016 Share Posted May 14, 2016 Screens actually can only receive a very limited set of key presses through onunrealcommand. The input controller filters it beforehand. Link to comment Share on other sites More sharing options...
davidlallen Posted May 14, 2016 Share Posted May 14, 2016 This mod implements a lot of hotkeys:http://steamcommunity.com/sharedfiles/filedetails/?id=667641397&searchtext=hotkeyThis may be what you wanted; or you may want to ask the author for some changes; or you may want to reverse engineer this mod to see how it works. Link to comment Share on other sites More sharing options...
Recommended Posts