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);
        }
        private void SetSelectedPlatform(UM_UIPlatform platform)
        {
            if (m_selectedPlatform == platform)
            {
                return;
            }

            m_selectedPlatform = platform;
            m_pluginsToolbar.SetSelectedIndex((int)m_selectedPlatform);
            UpdateToolBarByPluginIndex(true);
        }
Esempio n. 3
0
        public UM_ServicePlatfromInfo(UM_UIPlatform platform, UM_NativeServiceSettings settings)
        {
            this.platform = platform;
            m_settings    = settings;

            switch (platform)
            {
            case UM_UIPlatform.IOS:
                m_content = new GUIContent(" iOS (" + m_settings.ServiceName + ")", UM_Skin.GetPlatformIcon("ios_icon.png"));
                break;

            case UM_UIPlatform.Android:
                m_content = new GUIContent(" Android (" + m_settings.ServiceName + ")", UM_Skin.GetPlatformIcon("android_icon.png"));
                break;
            }
            m_layout = new UM_PlatfromStateLayout(m_content);
        }
        protected void AddPlatfrom(UM_UIPlatform platform, UM_NativeServiceSettings settings)
        {
            var info = new UM_ServicePlatfromInfo(platform, settings);

            m_platforms.Add(info);
        }