Skip to content

Commit 0f06598

Browse files
committed
Show version in TouchManager editor.
1 parent 713a174 commit 0f06598

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

Source/Assets/TouchScript/Editor/EditorUI/GUIElements.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ internal static class GUIElements
1818
public static GUIStyle HeaderCheckbox;
1919
public static GUIStyle HeaderFoldout;
2020
public static GUIStyle SmallText;
21+
public static GUIStyle SmallTextRight;
2122
public static GUIStyle SmallButton;
2223

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

64+
SmallTextRight = new GUIStyle("miniLabel")
65+
{
66+
alignment = TextAnchor.UpperRight,
67+
};
68+
6369
SmallButton = new GUIStyle("Button")
6470
{
6571
fontSize = SmallText.fontSize,

Source/Assets/TouchScript/Editor/TouchManagerEditor.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ public override void OnInspectorGUI()
121121
drawDebug();
122122
}
123123

124+
GUILayout.Label("v. " + TouchManager.VERSION + (string.IsNullOrEmpty(TouchManager.VERSION_SUFFIX) ? "" : " " + TouchManager.VERSION_SUFFIX), GUIElements.SmallTextRight);
125+
124126
serializedObject.ApplyModifiedProperties();
125127
}
126128

0 commit comments

Comments
 (0)