Hi, could you please explain how to override the function, for example in UITacticalHUD_SoldierInfoTooltip.uc file I have this function: simulated function ShowTooltip(){ local int ScrollHeight;
//Trigger only on the correct hover item if( class'UITacticalHUD_BuffsTooltip'.static.IsPathBonusOrPenaltyMC(currentPath) ) return;
super.ShowTooltip(); } I want to remove AnimateScroll animation, I just removed one line and I got this: class UnrealScript1 extends UITacticalHUD_SoldierInfoTooltip;simulated function ShowTooltip() { local int ScrollHeight;
//Trigger only on the correct hover item if( class'UITacticalHUD_BuffsTooltip'.static.IsPathBonusOrPenaltyMC(currentPath) ) return;
RefreshData(); super.ShowTooltip(); } But it doesn't work, nothing changes. In XComEngine.ini I have: [Engine.ScriptPackages] +NonNativePackages=123123123
[Engine.Engine] +ModClassOverrides=(BaseGameClass="UITacticalHUD_SoldierInfoTooltip", ModClass="UnrealScript1") Could you please teach me how to edit any function like that properly? Remove some lines, change some parameters. I want to remove some annoying animations from the game to make it faster.
2 comments
simulated function ShowTooltip(){
I want to remove AnimateScroll animation, I just removed one line and I got this:local int ScrollHeight;
//Trigger only on the correct hover item
if( class'UITacticalHUD_BuffsTooltip'.static.IsPathBonusOrPenaltyMC(currentPath) ) return;
RefreshData();
ScrollHeight = (StatList.height > StatList.height ) ? StatList.height : StatList.height;
BodyArea.AnimateScroll( ScrollHeight, BodyMask.height);
super.ShowTooltip();
}
class UnrealScript1 extends UITacticalHUD_SoldierInfoTooltip;simulated function ShowTooltip()
But it doesn't work, nothing changes. In XComEngine.ini I have:{
local int ScrollHeight;
//Trigger only on the correct hover item
if( class'UITacticalHUD_BuffsTooltip'.static.IsPathBonusOrPenaltyMC(currentPath) ) return;
RefreshData();
super.ShowTooltip();
}
[Engine.ScriptPackages] +NonNativePackages=123123123
Could you please teach me how to edit any function like that properly? Remove some lines, change some parameters. I want to remove some annoying animations from the game to make it faster.[Engine.Engine]
+ModClassOverrides=(BaseGameClass="UITacticalHUD_SoldierInfoTooltip", ModClass="UnrealScript1")