4 namespace HKI.Core.GameSystems.Input.Editor
13 public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
15 Rect keyCodePropertyRect =
new Rect(position.x, position.y, (position.width - 2.0f) / 2.0f, position.height);
16 Rect booleanValuePropertyRect =
new Rect(position.x + (position.width / 2.0f) + 1.0f, position.y, (position.width - 2.0f) / 2.0f, position.height);
18 EditorGUI.PropertyField(keyCodePropertyRect, property.FindPropertyRelative(
"KeyCode"), GUIContent.none);
19 EditorGUI.PropertyField(booleanValuePropertyRect, property.FindPropertyRelative(
"BooleanValue"), GUIContent.none);
30 public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
32 Rect keyCodePropertyRect =
new Rect(position.x, position.y, (position.width - 2.0f) / 2.0f, position.height);
33 Rect booleanValuePropertyRect =
new Rect(position.x + (position.width / 2.0f) + 1.0f, position.y, (position.width - 2.0f) / 2.0f, position.height);
35 EditorGUI.PropertyField(keyCodePropertyRect, property.FindPropertyRelative(
"KeyCode"), GUIContent.none);
36 EditorGUI.PropertyField(booleanValuePropertyRect, property.FindPropertyRelative(
"BooleanValue"), GUIContent.none);
47 public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
49 Rect keyCodePropertyRect =
new Rect(position.x, position.y, (position.width - 2.0f) / 2.0f, position.height);
50 Rect booleanValuePropertyRect =
new Rect(position.x + (position.width / 2.0f) + 1.0f, position.y, (position.width - 2.0f) / 2.0f, position.height);
52 EditorGUI.PropertyField(keyCodePropertyRect, property.FindPropertyRelative(
"KeyCode"), GUIContent.none);
53 EditorGUI.PropertyField(booleanValuePropertyRect, property.FindPropertyRelative(
"BooleanValue"), GUIContent.none);
64 public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
66 Rect keyCodePropertyRect =
new Rect(position.x, position.y, (position.width - 2.0f) / 2.0f, position.height);
67 Rect booleanValuePropertyRect =
new Rect(position.x + (position.width / 2.0f) + 1.0f, position.y, (position.width - 2.0f) / 2.0f, position.height);
69 EditorGUI.PropertyField(keyCodePropertyRect, property.FindPropertyRelative(
"KeyCode"), GUIContent.none);
70 EditorGUI.PropertyField(booleanValuePropertyRect, property.FindPropertyRelative(
"BooleanValue"), GUIContent.none);
81 public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
83 EditorGUI.PropertyField(position, property.FindPropertyRelative(
"Position"), GUIContent.none);
94 public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
96 Rect mouseButtonIdPropertyRect =
new Rect(position.x, position.y, (position.width - 2.0f) / 2.0f, position.height);
97 Rect booleanValuePropertyRect =
new Rect(position.x + (position.width / 2.0f) + 1.0f, position.y, (position.width - 2.0f) / 2.0f, position.height);
99 EditorGUI.PropertyField(mouseButtonIdPropertyRect, property.FindPropertyRelative(
"MouseButtonId"), GUIContent.none);
100 EditorGUI.PropertyField(booleanValuePropertyRect, property.FindPropertyRelative(
"BooleanValue"), GUIContent.none);
111 public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
113 Rect mouseButtonIdPropertyRect =
new Rect(position.x, position.y, (position.width - 2.0f) / 2.0f, position.height);
114 Rect booleanValuePropertyRect =
new Rect(position.x + (position.width / 2.0f) + 1.0f, position.y, (position.width - 2.0f) / 2.0f, position.height);
116 EditorGUI.PropertyField(mouseButtonIdPropertyRect, property.FindPropertyRelative(
"MouseButtonId"), GUIContent.none);
117 EditorGUI.PropertyField(booleanValuePropertyRect, property.FindPropertyRelative(
"BooleanValue"), GUIContent.none);
128 public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
130 Rect mouseButtonIdPropertyRect =
new Rect(position.x, position.y, (position.width - 2.0f) / 2.0f, position.height);
131 Rect booleanValuePropertyRect =
new Rect(position.x + (position.width / 2.0f) + 1.0f, position.y, (position.width - 2.0f) / 2.0f, position.height);
133 EditorGUI.PropertyField(mouseButtonIdPropertyRect, property.FindPropertyRelative(
"MouseButtonId"), GUIContent.none);
134 EditorGUI.PropertyField(booleanValuePropertyRect, property.FindPropertyRelative(
"BooleanValue"), GUIContent.none);
145 public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
147 Rect axisNamePropertyRect =
new Rect(position.x, position.y, (position.width - 2.0f) / 2.0f, position.height);
148 Rect floatValuePropertyRect =
new Rect(position.x + (position.width / 2.0f) + 1.0f, position.y, (position.width - 2.0f) / 2.0f, position.height);
150 EditorGUI.PropertyField(axisNamePropertyRect, property.FindPropertyRelative(
"AxisName"), GUIContent.none);
151 EditorGUI.PropertyField(floatValuePropertyRect, property.FindPropertyRelative(
"FloatValue"), GUIContent.none);
162 public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
164 Rect axisNamePropertyRect =
new Rect(position.x, position.y, (position.width - 2.0f) / 2.0f, position.height);
165 Rect floatValuePropertyRect =
new Rect(position.x + (position.width / 2.0f) + 1.0f, position.y, (position.width - 2.0f) / 2.0f, position.height);
167 EditorGUI.PropertyField(axisNamePropertyRect, property.FindPropertyRelative(
"AxisName"), GUIContent.none);
168 EditorGUI.PropertyField(floatValuePropertyRect, property.FindPropertyRelative(
"FloatValue"), GUIContent.none);