Skip to content
Permalink
Browse files

Show version in TouchManager editor.

  • Loading branch information...
valyard committed Jul 29, 2017
1 parent 713a174 commit 0f065980f3bf3af8a68d9d3c4e14d2f71a3e8de0
@@ -18,6 +18,7 @@ internal static class GUIElements
public static GUIStyle HeaderCheckbox;
public static GUIStyle HeaderFoldout;
public static GUIStyle SmallText;
public static GUIStyle SmallTextRight;
public static GUIStyle SmallButton;

public static Texture2D PaneOptionsIcon;
@@ -60,6 +61,11 @@ static GUIElements()
alignment = TextAnchor.UpperLeft,
};

SmallTextRight = new GUIStyle("miniLabel")
{
alignment = TextAnchor.UpperRight,
};

SmallButton = new GUIStyle("Button")
{
fontSize = SmallText.fontSize,
@@ -121,6 +121,8 @@ public override void OnInspectorGUI()
drawDebug();
}

GUILayout.Label("v. " + TouchManager.VERSION + (string.IsNullOrEmpty(TouchManager.VERSION_SUFFIX) ? "" : " " + TouchManager.VERSION_SUFFIX), GUIElements.SmallTextRight);

serializedObject.ApplyModifiedProperties();
}

0 comments on commit 0f06598

Please sign in to comment.
You can’t perform that action at this time.