Civitar
Adventurer
I'm trying to replace the background image of the pregame menus for Warhammer. FramedArchitect has pulled this off somehow in Faerun, but looking at his code I can't for the life of me figure out how.
As far as I can tell, in Faerun he adds an <Image> control to the AdvancedSetup.xml, GameSetupScreen.xml, and SelectCivilization.xml files named BackgroundImage that overlays the original image. When I copy that code in Warhammer, it only appears in the Advanced Setup menu. Looking at the lua and xml files for all 3 of those menus, the only difference I can see is that GameSetupScreen.xml has AdvancedSetup as a child context (or whatever the proper term is) with DeferLoad set to 1. However, when I set DeferLoad=1 for SelectCivilization from GameSetupScreen in the Warhammer mod, the background image stayed the same. I think that's because a SelectCivilization context had already been loaded by the game before the mod was loaded. So my question is, how can I force the game to reload a UI context once the mod has been loaded, assuming I haven't missed anything in my reasoning up to this point.
As far as I can tell, in Faerun he adds an <Image> control to the AdvancedSetup.xml, GameSetupScreen.xml, and SelectCivilization.xml files named BackgroundImage that overlays the original image. When I copy that code in Warhammer, it only appears in the Advanced Setup menu. Looking at the lua and xml files for all 3 of those menus, the only difference I can see is that GameSetupScreen.xml has AdvancedSetup as a child context (or whatever the proper term is) with DeferLoad set to 1. However, when I set DeferLoad=1 for SelectCivilization from GameSetupScreen in the Warhammer mod, the background image stayed the same. I think that's because a SelectCivilization context had already been loaded by the game before the mod was loaded. So my question is, how can I force the game to reload a UI context once the mod has been loaded, assuming I haven't missed anything in my reasoning up to this point.