-
Notifications
You must be signed in to change notification settings - Fork 51
Expand file tree
/
Copy pathChannelTabEditor.cs
More file actions
29 lines (22 loc) · 884 Bytes
/
ChannelTabEditor.cs
File metadata and controls
29 lines (22 loc) · 884 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
using UnityEngine;
using UnityEditor;
namespace OpenTibiaUnityEditor.Modules.Console
{
[CustomEditor(typeof(OpenTibiaUnity.Modules.Console.ChannelTab), true)]
[CanEditMultipleObjects]
public class ChannelTabEditor : UI.Legacy.ButtonEditor
{
SerializedProperty _activeFixImage;
protected override void OnEnable() {
base.OnEnable();
_activeFixImage = serializedObject.FindProperty("_activeFixImage");
}
public override void OnInspectorGUI() {
base.OnInspectorGUI();
EditorGUILayout.LabelField("", GUI.skin.horizontalSlider);
EditorGUILayout.LabelField("Channel TabButton", EditorStyles.boldLabel);
EditorGUILayout.PropertyField(_activeFixImage, new GUIContent("Active Fix Image"));
serializedObject.ApplyModifiedProperties();
}
}
}