TerribleName Posted September 7, 2015 Share Posted September 7, 2015 In Long War you can put aim bonuses and penalties on armor through their BalanceMods_Classic iAim entry, but the bonus doesn't show up in the soldier shot summary UI panel. The chance to hit is calculated correctly though. Anyone have any research in how to add UI labels in XGAbility_Targeted.GetShotSummary for armor aim? The existing loop checks for everything in inventory, but armor isn't stored in inventory like other items. I need to know how to check the armor inventory and maybe even get the string name for the armor. Any help out there? Link to comment Share on other sites More sharing options...
Dethraker Posted October 6, 2015 Share Posted October 6, 2015 You must be referring to the item cards. You can find them in XComGame.XGItemCards. I'm running into a similar issue with my mod, everything works purposely, but the item cards don't reflect the new information. I've recently been tempted to go in and write a mutator to allow hacking the UI the same way the game does for the pistol upgrades, but that would be alot of work. Something I'm not quite ready to do. Link to comment Share on other sites More sharing options...
dubiousintent Posted October 6, 2015 Share Posted October 6, 2015 We don't have much on this subject in the wiki. Check out the "Understanding UPK side UI coding" article. But Item Cards are primarily handled by the SWF Actionscripts, as they are "display only". The initial R&D into this was in the threads "UI Editing" and "R&D Invenotry, Items & Weapons Overhaul". Amineri worked out how to get Item Cards to work for SHIV mods in "SHIV Loadout in Barracks". Hopefully that will be enough to keep you going. We could use a wiki article on the subject if you do work it out. -Dubious- Link to comment Share on other sites More sharing options...
Recommended Posts