[1.0.0.341] ContextPtr:SetInputHandler() not working for <AddUserInterfaces> in mods ?

Gedemon

Modder
Super Moderator
Joined
Oct 4, 2004
Messages
11,594
Location
France
All in title again, seems this is working for the contexts of the base game, but not in a Lua script loaded using
Code:
        <AddUserInterfaces>
            <Properties>
                <Context>InGame</Context>
            </Properties>
            <File>MyFile.xml</File>
        </AddUserInterfaces>
 
Update: still an issue with 1.0.0.341

Automation.SetInputHandler() was a working workaround, but need to be cleaned on exit else the game crashes to desktop and the crash occurs before any cleaning can be done using Events.LeaveGameComplete
 
Top Bottom