Exemplo n.º 1
0
        private static void OnPreferencesGUI()
        {
            if (GUILayout.Button("Open Web Documentation"))
            {
                BitStrapDocs.OpenDocs();
            }

            foreach (var pair in drawPreferencesCallback)
            {
                if (pair.Value != null)
                {
                    pair.Value();
                }
            }

            GUILayout.FlexibleSpace();
        }
Exemplo n.º 2
0
        private static SettingsProvider OnPreferencesGUI()
        {
            return(new SettingsProvider("Settings/BitStrap", SettingsScope.User)
            {
                label = "BitStrap",
                guiHandler = (searchContext) =>
                {
                    if (GUILayout.Button("Open Web Documentation"))
                    {
                        BitStrapDocs.OpenDocs();
                    }

                    foreach (var pair in drawPreferencesCallback)
                    {
                        if (pair.Value != null)
                        {
                            pair.Value();
                        }
                    }

                    GUILayout.FlexibleSpace();
                }
            });
        }