private void DrawTopbar() { GUILayout.Space(2); using (new SA_GuiBeginHorizontal()) { // DrawDocumentationLink(); // GUILayout.FlexibleSpace(); using (new SA_GuiBeginVertical()) { GUILayout.Space(-1); var index = m_pluginsToolbar.Draw(); if (index != (int)m_selectedPlatform) { m_selectedPlatform = (UM_UIPlatform)index; UpdateToolBarByPluginIndex(true); } } GUILayout.FlexibleSpace(); using (new SA_GuiBeginVertical()) { //GUILayout.Space(5); DrawSearchBar(); } } GUILayout.Space(5); }
public override void OnGUI() { GUILayout.Space(2); int index = m_menuToolbar.Draw(); GUILayout.Space(4); EditorGUILayout.BeginVertical(SA_PluginSettingsWindowStyles.SeparationStyle); GUILayout.Space(5); EditorGUILayout.EndVertical(); AMM_Template manifest = AMM_Manager.GetManifest(); if (manifest == null) { EditorGUILayout.HelpBox("The selected build platform DOESN'T support AndroidManifest.xml file", MessageType.Info); return; } m_tabsLayout[index].OnGUI(); EditorGUILayout.Space(); if (GUILayout.Button("Save Manifest", GUILayout.Height(22.0f))) { AMM_Manager.SaveManifest(); } }
public override void OnGUI() { EditorGUI.BeginChangeCheck(); GUILayout.Space(2); int index = m_menuToolbar.Draw(); GUILayout.Space(4); EditorGUILayout.BeginVertical(SA_PluginSettingsWindowStyles.SeparationStyle); GUILayout.Space(5); EditorGUILayout.EndVertical(); m_tabsLayout[index].OnGUI(); if (EditorGUI.EndChangeCheck()) { ISD_Settings.Save(); } }