Skip to content
This repository has been archived by the owner on Jan 18, 2022. It is now read-only.

Commit

Permalink
add runtime version display to deployment launcher
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie Brynes committed Feb 24, 2020
1 parent d3c1cf8 commit c32dab2
Showing 1 changed file with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ internal class DeploymentLauncherWindow : EditorWindow
private const string BuiltInErrorIcon = "console.erroricon.sml";
private const string BuiltInRefreshIcon = "Refresh";
private const string BuiltInWebIcon = "BuildSettings.Web.Small";
private const string BuiltInEditIcon = "editicon.sml";

private static readonly Vector2 SmallIconSize = new Vector2(12, 12);
private readonly Color horizontalLineColor = new Color(0.3f, 0.3f, 0.3f, 1);
Expand Down Expand Up @@ -247,6 +248,26 @@ private void OnGUI()
EditorGUILayout.LabelField("Project Name", projectName);
}

using (new EditorGUILayout.HorizontalScope())
{
using (new EditorGUI.DisabledScope(manager.IsActive))
{
var buttonIcon = new GUIContent(EditorGUIUtility.IconContent(BuiltInEditIcon))
{
tooltip = "Edit the Runtime version."
};

if (GUILayout.Button(buttonIcon, EditorStyles.miniButton, GUILayout.ExpandWidth(false)))
{
GdkToolsConfigurationWindow.ShowWindow();
}
}

var config = GdkToolsConfiguration.GetOrCreateInstance();

EditorGUILayout.LabelField("Runtime Version", config.RuntimeVersion);
}

CommonUIElements.DrawHorizontalLine(5, horizontalLineColor);

launcherConfig.AssemblyConfig = DrawAssemblyConfig(launcherConfig.AssemblyConfig);
Expand Down

0 comments on commit c32dab2

Please sign in to comment.