Trying to understand the leader screen UI so I can get rid of background screen

Pazyryk

Deity
Joined
Jun 13, 2008
Messages
3,584
Actually, I want to kill the background leader screen entirely during diplo/trade interactions. I don't want the leader animation or still image. Everything else about trade UI follows the standard Lua/XML context system and seems straightforward. But I can't see what Lua or XML element controls the animation screen. Yes, I can change it to a still image and change the image (I wrote a tutorial on that), but I can't figure out how to get rid of it.

The only thing I can figure out is that DiploList.lua (and several other places) call Players[ePlayer]:DoBeginDiploWithHuman(), which brings up the leader screen and diplo/trade UI (works from live tuner too). After that you are in LeaderHeadRoot.lua, but there is nothing in LeaderHeadRoot.lua or LeaderHeadRoot.xml that seems to control the background screen. I thought that UI.SetLeaderHeadRootUp( true ) might be doing it, but that statement has no effect as far as I can tell.
 
LeaderHeadRoot is a top-level context (like InGame and FrontEnd), so I'm guessing that the background (which can be a 3D animation - and there are no UI controls for those) is generated by the core engine, (ie DLL - hence why you get to it via the DoBeginDiploWithHuman() method) so there's nothing to delete - a bit like there is nothing to delete in InGame to remove the map.
 
Back
Top Bottom