void DrawTapjoySettings() { EditorGUILayout.Space(); DrawUppercaseSection("TAPJOY_SETUP_FOLDOUT_KEY", "TAPJOY", () => { #if !EM_TAPJOY EditorGUILayout.HelpBox(TapJoyImportInstruction, MessageType.Warning); if (GUILayout.Button("Download TapJoy Plugin", GUILayout.Height(EM_GUIStyleManager.buttonHeight))) { EM_ExternalPluginManager.DownloadTapJoyPlugin(); } #else EditorGUILayout.HelpBox(TapJoyAvailMsg, MessageType.Info); if (GUILayout.Button("Download Tapjoy Plugin", GUILayout.Height(EM_GUIStyleManager.buttonHeight))) { EM_ExternalPluginManager.DownloadTapJoyPlugin(); } // Default placements. EditorGUILayout.Space(); EditorGUILayout.LabelField("Default Placement", EditorStyles.boldLabel); EditorGUI.indentLevel++; EditorGUILayout.PropertyField(AdProperties.tapjoyDefaultInterstitialAdId.property, AdProperties.tapjoyDefaultInterstitialAdId.content, true); EditorGUILayout.PropertyField(AdProperties.tapjoyDefaultRewardedAdId.property, AdProperties.tapjoyDefaultRewardedAdId.content, true); EditorGUI.indentLevel--; // Custom placements. EditorGUILayout.Space(); EditorGUILayout.LabelField("Custom Placements", EditorStyles.boldLabel); EditorGUI.indentLevel++; EditorGUILayout.PropertyField(AdProperties.tapjoyCustomInterstitialAdIds.property, AdProperties.tapjoyCustomInterstitialAdIds.content, true); EditorGUILayout.PropertyField(AdProperties.tapjoyCustomRewardedAdIds.property, AdProperties.tapjoyCustomRewardedAdIds.content, true); EditorGUI.indentLevel--; EditorGUILayout.Space(); EditorGUILayout.LabelField("Auto Reconnect Settings", EditorStyles.boldLabel); EditorGUILayout.PropertyField(AdProperties.tapjoyAutoReconnect.property, AdProperties.tapjoyAutoReconnect.content, true); if (AdProperties.tapjoyAutoReconnect.property.boolValue) { EditorGUILayout.PropertyField(AdProperties.tapjoyAutoReconnectInterval.property, AdProperties.tapjoyAutoReconnectInterval.content, true); if (AdProperties.tapjoyAutoReconnectInterval.property.floatValue < 0.1) { AdProperties.tapjoyAutoReconnectInterval.property.floatValue = 0.1f; } } EditorGUILayout.Space(); if (GUILayout.Button("Open Tapjoy Setup Window")) { EditorWindow.GetWindow <TapjoyEditor.TapjoyWindow>().BeginWindows(); } if (GUILayout.Button("Generate Android Manifest")) { GenerateTapJoyAndroidManifest(); } #endif }); }