Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_CampaignBuildingScreenEffectUIComponent.c
Go to the documentation of this file.
2{
4
5 protected const float DURATION_IN_BLUR = 0.75;
6 protected const float DURATION_OUT_BLUR = 0.5;
7
8 protected const float VALUE_BLUR = 0.8;
9 protected const float VALUE_DISABLED = 0.0;
10
11 //------------------------------------------------------------------------------------------------
12 override protected void HandlerAttached(Widget w)
13 {
14 m_wBlurEffect = BlurWidget.Cast(w.FindAnyWidget("ScreenEffectBlur"));
15
16 SCR_CampaignBuildingEditorComponent CampaignBuildingEditorComponent = SCR_CampaignBuildingEditorComponent.Cast(SCR_CampaignBuildingEditorComponent.GetInstance(SCR_CampaignBuildingEditorComponent));
17 if (!CampaignBuildingEditorComponent)
18 return;
19
20 CampaignBuildingEditorComponent.GetOnObstructionEventTriggered().Insert(AreaTriggerChange);
21
22 if (CampaignBuildingEditorComponent.IsViewObstructed())
24 }
25
26 //------------------------------------------------------------------------------------------------
29 protected void AreaTriggerChange(bool activated)
30 {
31 if (activated)
33 else
35 }
36
37 //------------------------------------------------------------------------------------------------
44
45 //------------------------------------------------------------------------------------------------
52};
static bool StopAnimation(Widget w, typename typeName)
static WidgetAnimationBlurIntensity BlurIntensity(Widget widget, float targetValue, float speed)