void DoCancelMergesButton( bool isEnabled, MergeViewLogic mergeViewLogic) { GUI.enabled = isEnabled; if (DrawActionButton.For(PlasticLocalization.GetString( PlasticLocalization.Name.CancelButton))) { mergeViewLogic.Cancel(); mIsCancelMergesButtonEnabled = false; } GUI.enabled = true; }
void DoCancelMergesButton( bool isEnabled, MergeViewLogic mergeViewLogic) { GUI.enabled = isEnabled; if (GUILayout.Button(PlasticLocalization.GetString( PlasticLocalization.Name.CancelButton), EditorStyles.toolbarButton, GUILayout.Width(UnityConstants.REGULAR_BUTTON_WIDTH))) { mergeViewLogic.Cancel(); mIsCancelMergesButtonEnabled = false; } GUI.enabled = true; }
static bool DoCancelMergesButton( bool isEnabled, MergeViewLogic mergeViewLogic) { bool shouldCancelMergesButtonEnabled = true; GUI.enabled = isEnabled; if (DrawActionButton.For(PlasticLocalization.GetString( PlasticLocalization.Name.CancelButton))) { mergeViewLogic.Cancel(); shouldCancelMergesButtonEnabled = false; } GUI.enabled = true; return(shouldCancelMergesButtonEnabled); }