void OnGUI() { EditorGUILayout.BeginVertical(); GUILayout.Label(_image, Styles.LogoStyle); GUILayout.Label("Thanks for installing GetSocial Unity SDK", Styles.HeaderStyle); GUILayout.Label("To start with GetSocial:", Styles.H2Style); EditorGUILayout.BeginHorizontal(); GUILayout.Label("1. Create your account at ", Styles.TextStyle); if (GUILayout.Button("dashboard.getsocial.im", Styles.ButtonTextStyle)) { OpenURL("https://dashboard.getsocial.im"); } GUILayout.FlexibleSpace(); EditorGUILayout.EndHorizontal(); EditorGUILayout.BeginHorizontal(); GUILayout.Label("2. Copy GetSocial app ID from the Dashboard into ", Styles.TextStyle); if (GUILayout.Button("GetSocial Unity settings", Styles.ButtonTextStyle)) { GetSocialSettingsEditor.Edit(); } GUILayout.FlexibleSpace(); EditorGUILayout.EndHorizontal(); EditorGUILayout.BeginHorizontal(); GUILayout.Label("3. Visit ", Styles.TextStyle); if (GUILayout.Button("documentation", Styles.ButtonTextStyle)) { OpenURL("https://docs.getsocial.im"); } GUILayout.Label(" to learn how to integrate GetSocial features", Styles.TextStyleWithoutMargin); GUILayout.FlexibleSpace(); EditorGUILayout.EndHorizontal(); GUILayout.Label("", Styles.LineStyle); EditorGUILayout.BeginHorizontal(); GUILayout.Space(Styles.Padding); if (GUILayout.Button("Product overview", Styles.ButtonTextStyle)) { OpenURL("https://www.getsocial.im/products/"); } GUILayout.Space(Styles.Padding + 5); if (GUILayout.Button("Docs", Styles.ButtonTextStyle)) { OpenURL("https://docs.getsocial.im"); } GUILayout.Space(Styles.Padding + 5); if (GUILayout.Button("Support", Styles.ButtonTextStyle)) { OpenURL("mailto:[email protected]"); } GUILayout.FlexibleSpace(); EditorGUILayout.EndHorizontal(); EditorGUILayout.EndVertical(); }
private void ProcessJsMessage(string jsonMessage) { // We have only one message, so can skip any logic GetSocialSettingsEditor.Edit(); }