private void DownloadButtonPressed( GUIBase sender) { AssetVersion remoteVersion = AssetUpdater.Instance.GetRemoteVersion( sender.tag); if( remoteVersion != null) { Application.OpenURL( Uri.EscapeUriString( remoteVersion.packageURI.ToString())); } }
private void RefreshButtonPressed( GUIBase sender) { AssetUpdater.Instance.Refresh( true); CreateGUI(); }
public void Remove( GUIBase child) { _children.Remove( child); }
public GUIBase Add( GUIBase child) { _children.Add( child); return child; }
public void Remove(GUIBase child) { _children.Remove(child); }
public GUIBase Add(GUIBase child) { _children.Add(child); return(child); }
void ComponentIndexChanged( GUIBase sender) { GUIDelayedIntField field = sender as GUIDelayedIntField; GameObject gameObject = SelectedGameObject(); ReorderComponent( gameObject, field.previousValue, field.value); RefreshList( gameObject); }
void PickOutputFolderClicked( GUIBase sender) { GUIButton button = sender as GUIButton; string path = EditorUtility.OpenFolderPanel( "Pick Output Folder", _recordVideo.folderPath, ""); if( path.Length > 0) { EditorPrefs.SetString( OutputFolderPrefsKey, path); _recordVideo.folderPath = path; button.content.text = OutputFolderButtonText(); button.content.tooltip = OutputFolderButtonText(); } }
void RecordClicked( GUIBase sender) { ToggleRecording(); }
void DeleteFramesChanged( GUIBase sender) { GUIToggle toggle = sender as GUIToggle; EditorPrefs.SetBool( DeleteFramesPrefsKey, toggle.isToggled); }
void OutputFormatChanged( GUIBase sender) { GUIEnumPopup popup = sender as GUIEnumPopup; EditorPrefs.SetInt( OutputFormatPrefsKey, (int)(OutputFormat)popup.value); }
void FramerateChanged( GUIBase sender) { GUIIntSlider slider = sender as GUIIntSlider; EditorPrefs.SetInt( FrameratePrefsKey, slider.value); _recordVideo.captureFramerate = slider.value; }
void SuperSizeChanged( GUIBase sender) { GUIIntSlider slider = sender as GUIIntSlider; EditorPrefs.SetInt( SuperSizePrefsKey, slider.value); _recordVideo.superSize = slider.value; }
void PickFFmpegPathClicked( GUIBase sender) { GUIButton button = sender as GUIButton; string oldPath = EditorPrefs.GetString( FFmpegPathPrefsKey); string path = EditorUtility.OpenFilePanel( "Pick FFmpeg Path", oldPath, ""); if( path.Length > 0) { EditorPrefs.SetString( FFmpegPathPrefsKey, path); button.content.text = FFmpegPathButtonText(); button.content.tooltip = FFmpegPathButtonText(); } }
void HighlightSelectedGameObjectClicked( GUIBase sender) { EditorGUIUtility.PingObject( SelectedGameObject()); }
private void ReleaseNotesButtonPressed( GUIBase sender) { AssetVersion localVersion = AssetUpdater.Instance.GetLocalVersion( sender.tag); AssetVersion remoteVersion = AssetUpdater.Instance.GetRemoteVersion( sender.tag); AssetVersion version = remoteVersion != null && localVersion.Version < remoteVersion.Version ? remoteVersion : localVersion; string title = version.Name + " (" + version.Version + ") Release Notes"; EditorUtility.DisplayDialog( title, version.Notes, "OK"); }
void RecordHotkeyChanged( GUIBase sender) { GUIEnumPopup popup = sender as GUIEnumPopup; EditorPrefs.SetInt( RecordHotkeyPrefsKey, (int)(KeyCode)popup.value); }