public FadingWpfPopupWindow(LifetimeDefinition lifetimeDefinition, IPopupWindowContext context, PopupWindowMutex mutex, PopupWindowManager popupWindowManager, Window window, double opacity, HideFlags hideFlags = HideFlags.None) : base(lifetimeDefinition, context, mutex, popupWindowManager, window, hideFlags) { this.window = window; this.opacity = opacity; window.AllowsTransparency = true; }
public override void OnExit() { UIMenu.Instance.OnboardingBlock = false; PopupWindowManager.ClosePopup(); TooltipManager.RemoveObjectTooltip(StateMachine.ButtonGameObject); TooltipManager.HideControllerTooltip(ControllerTooltipManager.TooltipControllers.Right, ControllerTooltipManager.TooltipButtons.Trigger); }
protected WpfPopupWindow(LifetimeDefinition lifetimeDefinition, IPopupWindowContext context, PopupWindowMutex mutex, PopupWindowManager popupWindowManager, Window window, HideFlags hideFlags = HideFlags.None) : base(lifetimeDefinition, context, mutex, hideFlags) { this.window = window; UpdatePopupLayout(); AttachEvents(popupWindowManager); }
private void HidePopUpAndToolTips() { PopupWindowManager.ClosePopup(); TooltipManager.HideControllerTooltip(ControllerTooltipManager.TooltipControllers.Both, ControllerTooltipManager.TooltipButtons.Grip); TooltipManager.HideControllerTooltip(ControllerTooltipManager.TooltipControllers.Both, ControllerTooltipManager.TooltipButtons.Trigger); TooltipManager.HideControllerTooltip(ControllerTooltipManager.TooltipControllers.Both, ControllerTooltipManager.TooltipButtons.Touchpad); TooltipManager.HideControllerTooltip(ControllerTooltipManager.TooltipControllers.Both, ControllerTooltipManager.TooltipButtons.ButtonOne); TooltipManager.HideControllerTooltip(ControllerTooltipManager.TooltipControllers.Both, ControllerTooltipManager.TooltipButtons.ButtonTwo); TooltipManager.HideControllerTooltip(ControllerTooltipManager.TooltipControllers.Both, ControllerTooltipManager.TooltipButtons.StartMenu); }
public override void OnEnter() { UIMenu.Instance.OnboardingBlock = true; PopupWindowManager.ClosePopup(); string spawnText = LanguageManager.Instance.GetTextValue("TUTORIAL_TOOLTIP_OBJECT_SPAWN"); string cancelText = LanguageManager.Instance.GetTextValue("TUTORIAL_TOOLTIP_CANCEL_SPAWN"); spawnText = string.Format(spawnText, LanguageManager.Instance.GetTextValue("BUTTON")); TooltipManager.ShowControllerTooltip(spawnText, ControllerTooltipManager.TooltipControllers.Right, ControllerTooltipManager.TooltipButtons.Trigger); TooltipManager.ShowControllerTooltip(cancelText, ControllerTooltipManager.TooltipControllers.Right, ControllerTooltipManager.TooltipButtons.Grip); }
public PresentationAssistantWindowOwner(Lifetime lifetime, IThreading threading, PresentationAssistantPopupWindowContext context, PopupWindowManager popupWindowManager, ITheming theming, IWpfMainWindow mainWindow) { this.threading = threading; this.context = context; this.popupWindowManager = popupWindowManager; this.theming = theming; this.mainWindow = mainWindow; Enabled = new Property <bool>(lifetime, "PresentationAssistantWindow::Enabled"); Enabled.WhenTrue(lifetime, EnableShortcuts); }
public override void OnEnter() { StateMachine.UiMenu.HighlightMenuItem(OnboardingStateMachine.LampGuid); string selectObject = LanguageManager.Instance.GetTextValue("TUTORIAL_TOOLTIP_OBJECT_SELECT"); selectObject = string.Format(selectObject, LanguageManager.Instance.GetTextValue("LAMP")); TooltipManager.ShowControllerTooltip(selectObject, ControllerTooltipManager.TooltipControllers.Right, ControllerTooltipManager.TooltipButtons.Trigger); StateMachine.UiMenu.OnMenuClosed += UiMenuOnOnMenuClosedWhenLampSpawn; PopupWindowManager.ClosePopup(); }
public JetPopupMenusInteractivePatched( [NotNull] Lifetime lifetime, [NotNull] IIsApplicationActiveState isApplicationActiveState, [NotNull] IUIApplicationSimple uiapp, [NotNull] IAutomationViewsRegistry automationViewsRegistry, [CanBeNull, Optional] ITooltipManager tooltipman, [CanBeNull, Optional] IWin32Window ownerwin, [CanBeNull, Optional] IWindowsHookManager windowsHookManager, [CanBeNull, Optional] ISettingsStore settstore, [CanBeNull, Optional] PopupWindowManager popupWindowManager) : base(lifetime, isApplicationActiveState, uiapp, automationViewsRegistry, tooltipman, ownerwin, windowsHookManager, settstore, popupWindowManager) { }
public override void OnEnter() { StateMachine.UiMenu.HighlightSaveButton(); PopupWindowManager.ClosePopup(); string pressOk = LanguageManager.Instance.GetTextValue("TUTORIAL_TOOLTIP_POINTER_CLICK"); pressOk = string.Format(pressOk, LanguageManager.Instance.GetTextValue("SAVE")); TooltipManager.ShowControllerTooltip(pressOk, ControllerTooltipManager.TooltipControllers.Right, ControllerTooltipManager.TooltipButtons.Trigger); StateMachine.UiMenu.OnMenuClosed += UiMenuOnOnMenuClosedWhenSaving; ProjectData.OnSave += () => { _conditionsSaving = true; }; }
protected void AttachEvents(PopupWindowManager popupWindowManager) { lifetime.OnTermination(DetachEvents); var context = Context; if (context != null) { lifetime.Bracket(() => Layouter = context.CreateLayouter(lifetime), () => Layouter = null); Layouter?.Layout.Change.Advise_HasNew(lifetime, OnLayouterResultChanged); context.AnyOtherAction += OnContextOwnerAnyActionPerformed; context.Scroll += OnContextOwnerScroll; context.SelectionChanged += OnContextOwnerSelectionChanged; context.Deactivated += OnContextOwnerDeactivated; context.EscapePressed += OnContextOwnerEscapePressed; } AttachWindowEvents(); popupWindowManager?.PopupWindows.Add(lifetime, this); }
public override void OnExit() { UIMenu.Instance.OnboardingBlock = false; PopupWindowManager.ClosePopup(); }
public override void OnExit() { TooltipManager.HideControllerTooltip(ControllerTooltipManager.TooltipControllers.Left, ControllerTooltipManager.TooltipButtons.ButtonTwo); PopupWindowManager.ClosePopup(); }
public static void Show(string text, Action ok = null, Sprite image = null, bool buttonIsEnabled = false, string buttonText = "OK") { PopupWindowManager.ShowPopup(text, buttonIsEnabled, buttonText, image, ok); }