private void InitComposition() { _compositor = this.GetVisual().Compositor; _setAsWallpaperVisual = SetAsWallpaperBtn.GetVisual(); _setAsLockVisual = SetAsLockBtn.GetVisual(); _setBothVisual = SetBothBtn.GetVisual(); _setAsTBVisual = SetAsTB.GetVisual(); _backFIVisual = BackFI.GetVisual(); _openBtnVisual = OpenBtn.GetVisual(); _shareBtnVisual = ShareBtn.GetVisual(); var opacityAnimation = _compositor.CreateScalarKeyFrameAnimation(); opacityAnimation.InsertExpressionKeyFrame(1f, "this.FinalValue"); opacityAnimation.Target = "Opacity"; opacityAnimation.Duration = TimeSpan.FromMilliseconds(200); var animations = _compositor.CreateImplicitAnimationCollection(); animations["Opacity"] = opacityAnimation; _shareBtnVisual.ImplicitAnimations = animations; _setAsWallpaperVisual.SetTranslation(new Vector3(0, 52 * 3, 0)); _setAsLockVisual.SetTranslation(new Vector3(0, 52 * 2, 0)); _setBothVisual.SetTranslation(new Vector3(0, 52 * 1, 0)); _setAsWallpaperVisual.Opacity = 0f; _setAsLockVisual.Opacity = 0f; _setBothVisual.Opacity = 0f; _backFIVisual.Opacity = 0f; _shareBtnVisual.Opacity = 0f; }
void ReleaseDesignerOutlets() { if (CloseBtn != null) { CloseBtn.Dispose(); CloseBtn = null; } if (FilenameTextfield != null) { FilenameTextfield.Dispose(); FilenameTextfield = null; } if (ShareBtn != null) { ShareBtn.Dispose(); ShareBtn = null; } if (Viewer != null) { Viewer.Dispose(); Viewer = null; } }
IEnumerator Start() { _group = UIUtilities.GetCanvasGroup(gameObject); yield return(new WaitForSeconds(SplashActiveTime)); #if UNITY_WEBGL ShareBtn.SetActive(false); ExitBtn.SetActive(false); #endif _group.DOFade(0, 1f).SetEase(Ease.OutQuad).OnComplete(() => { /* if(AlertController.instance.isChallengeReceived||AlertController.instance.isChallengeSent) * { * HomeScreen.SetActive(false); * gameObject.SetActive(false); * WHOTMultiplayerManager.wagerAmount = 1; * WHOTMultiplayerManager.playingWagered = false; * // WHOTMultiplayerManager.instance.Connect(); * ExitFromGameplayObject.SetActive(true); * } * else * {*/ if (PlayerPrefs.GetInt("WHOTRestartOnline") == 1) { PlayerPrefs.SetInt("WHOTRestartOnline", 0); PlayerPrefs.SetInt("WHOTRestart", 0); HomeScreen.SetActive(false); gameObject.SetActive(false); WHOTMultiplayerManager.wagerAmount = 1; WHOTMultiplayerManager.playingWagered = false; //WHOTLultiplayerManager.instance.Connect(); ExitFromGameplayObject.SetActive(true); return; } else if (PlayerPrefs.GetInt("WHOTRestart") == 1) { PlayerPrefs.SetInt("WHOTRestartOnline", 0); PlayerPrefs.SetInt("WHOTRestart", 0); HomeScreen.SetActive(false); gameObject.SetActive(false); WhotManager.instance.OnStart(); return; } else { HomeMenu.SetActive(true); gameObject.SetActive(false); } //} }); }
private void InitComposition() { _compositor = this.GetVisual().Compositor; _detailGridVisual = DetailGrid.GetVisual(); _maskBorderGridVisual = MaskBorder.GetVisual(); _infoGridVisual = InfoGrid.GetVisual(); _loadingPath = LoadingPath.GetVisual(); _shareBtnVisual = ShareBtn.GetVisual(); _flipperVisual = FlipperControl.GetVisual(); _taskbarImageVisual = TaskBarImageRoot.GetVisual(); _lockScreenImageVisual = LockImage.GetVisual(); _previewBtnVisual = PreviewBtn.GetVisual(); _setAsSPVisual = SetAsSP.GetVisual(); _exifInfoVisual = ExifInfoGrid.GetVisual(); _operationSPVisual = OperationSP.GetVisual(); _detailContentGridVisual = DetailContentGrid.GetVisual(); ResetVisualInitState(); }
/// <summary> /// 分享按钮 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void ShareBtn_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) { if (shareWindow == null) { shareWindow = new ShareWindow(); shareWindow.mainWindow = this; var p = ShareBtn.PointToScreen(new System.Windows.Point(0, 0)); shareWindow.WindowStartupLocation = WindowStartupLocation.Manual; shareWindow.Left = p.X - 380; shareWindow.Top = p.Y + 40; shareWindow.Owner = this; shareWindow.ShowDialog(); } else { shareWindow.Close(); shareWindow = null; } }
void ReleaseDesignerOutlets() { if (ClassCount != null) { ClassCount.Dispose(); ClassCount = null; } if (ClassCountHeight != null) { ClassCountHeight.Dispose(); ClassCountHeight = null; } if (CloseBtnHeight != null) { CloseBtnHeight.Dispose(); CloseBtnHeight = null; } if (DataVisualizerBtn != null) { DataVisualizerBtn.Dispose(); DataVisualizerBtn = null; } if (DefaultHeight != null) { DefaultHeight.Dispose(); DefaultHeight = null; } if (ObjectBtn != null) { ObjectBtn.Dispose(); ObjectBtn = null; } if (SaveBtn != null) { SaveBtn.Dispose(); SaveBtn = null; } if (SearchView != null) { SearchView.Dispose(); SearchView = null; } if (SelectedClass != null) { SelectedClass.Dispose(); SelectedClass = null; } if (SelectedClassHeight != null) { SelectedClassHeight.Dispose(); SelectedClassHeight = null; } if (SettingBtn != null) { SettingBtn.Dispose(); SettingBtn = null; } if (ShareBtn != null) { ShareBtn.Dispose(); ShareBtn = null; } if (Sidebar != null) { Sidebar.Dispose(); Sidebar = null; } if (SidebarClose != null) { SidebarClose.Dispose(); SidebarClose = null; } if (SideBarToggle != null) { SideBarToggle.Dispose(); SideBarToggle = null; } if (SidebarView != null) { SidebarView.Dispose(); SidebarView = null; } if (SidebarWidth != null) { SidebarWidth.Dispose(); SidebarWidth = null; } if (SidebarXOffset != null) { SidebarXOffset.Dispose(); SidebarXOffset = null; } if (sidebarYOffset != null) { sidebarYOffset.Dispose(); sidebarYOffset = null; } if (TextviewTopPadding != null) { TextviewTopPadding.Dispose(); TextviewTopPadding = null; } if (ToggleHeight != null) { ToggleHeight.Dispose(); ToggleHeight = null; } if (ToggleView != null) { ToggleView.Dispose(); ToggleView = null; } if (ToolBar != null) { ToolBar.Dispose(); ToolBar = null; } }