|
|
|
@ -373,6 +373,8 @@ bool AiL::OnUserUpdate(float fElapsedTime){ |
|
|
|
|
lastMousePos=GetMousePos(); |
|
|
|
|
}else lastMouseMovement+=fElapsedTime; |
|
|
|
|
|
|
|
|
|
vignetteDisplayTime=std::max(0.f,vignetteDisplayTime-fElapsedTime); |
|
|
|
|
|
|
|
|
|
if(Audio::Engine().IsPlaying(GetPlayer()->cooldownSoundInstance)){ |
|
|
|
|
Audio::Engine().SetVolume(GetPlayer()->cooldownSoundInstance,Audio::GetCalculatedSFXVolume("Audio.Casting Sound Volume"_F/100.f)); |
|
|
|
|
} |
|
|
|
@ -1850,6 +1852,11 @@ void AiL::RenderHud(){ |
|
|
|
|
DrawShadowStringDecal({0,12},"Button Hold Time: "+std::to_string(Menu::menus[INVENTORY_CONSUMABLES]->buttonHoldTime)); |
|
|
|
|
} |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
Pixel vignetteOverlayColor="Interface.Vignette Color"_Pixel; |
|
|
|
|
const float vignetteTotalDisplayTime="Interface.Vignette Appearance Time"_F+"Interface.Vignette Fadeout Time"_F; |
|
|
|
|
if(vignetteDisplayTime<"Interface.Vignette Fadeout Time"_F)vignetteOverlayColor.a=util::lerp(0,255,vignetteDisplayTime/"Interface.Vignette Fadeout Time"_F); |
|
|
|
|
DrawDecal({0,0},GFX["vignette.png"].Decal(),{1.f,1.f},vignetteOverlayColor); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void AiL::RenderCooldowns(){ |
|
|
|
@ -3937,3 +3944,7 @@ void AiL::ActivateActionSetForAllControllers(InputActionSetHandle_t actionSetHan |
|
|
|
|
const float AiL::GetEncounterDuration()const{ |
|
|
|
|
return encounterDuration; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void AiL::ShowDamageVignetteOverlay(){ |
|
|
|
|
vignetteDisplayTime="Interface.Vignette Appearance Time"_F+"Interface.Vignette Fadeout Time"_F; |
|
|
|
|
} |