static void OnGUI_TranslatingMessage() { if (GoogleTranslation.IsTranslating()) { // Connection Status Bar int time = (int)((Time.realtimeSinceStartup % 2) * 2.5); string Loading = "Translating" + ".....".Substring(0, time); GUI.color = Color.gray; GUILayout.BeginHorizontal(EditorStyles.textArea); GUILayout.Label(Loading, EditorStyles.miniLabel); GUI.color = Color.white; if (GUILayout.Button("Cancel", EditorStyles.toolbarButton, GUILayout.ExpandWidth(false))) { GoogleTranslation.CancelCurrentGoogleTranslations(); } GUILayout.EndHorizontal(); HandleUtility.Repaint(); } }