3 protected const float SMOOTH_BORDER = 0.8;
6 override void OnMenuOpen()
12 comp.m_OnActivated.Insert(Close);
14 bool showBlur = !
GetGame().m_bIsMainMenuOpen;
18 img.SetVisible(!showBlur);
20 BlurWidget blur = BlurWidget.Cast(
GetRootWidget().FindAnyWidget(
"Blur0"));
23 blur.SetVisible(showBlur);
27 GetGame().GetWorkspace().GetScreenSize(w, h);
28 blur.SetSmoothBorder(0, 0, w * SMOOTH_BORDER, 0);