5 namespace HKI.Core.GameSystems.Input.Editor
10 [CustomEditor(typeof(InputSystem))]
14 SerializedProperty initInfoTextLocalizationSP = null;
15 SerializedProperty initErrorInfoTextLocalizationSP = null;
17 SerializedProperty mousePositionInputHandlerSP = null;
34 initInfoTextLocalizationSP = serializedObject.FindProperty(
"InitInfoTextLocalization");
35 initErrorInfoTextLocalizationSP = serializedObject.FindProperty(
"InitErrorInfoTextLocalization");
37 mousePositionInputHandlerSP = serializedObject.FindProperty(
"MousePositionInputHandler");
39 keyToggleInputHandlersRL =
new StandardReorderableList(serializedObject,
"KeyToggleInputHandlers",
"Key Toggle Input Handlers",
false);
40 keyDownInputHandlersRL =
new StandardReorderableList(serializedObject,
"KeyDownInputHandlers",
"Key Down Input Handlers",
false);
41 keyUpInputHandlersRL =
new StandardReorderableList(serializedObject,
"KeyUpInputHandlers",
"Key Up Input Handlers",
false);
42 keyInputHandlersRL =
new StandardReorderableList(serializedObject,
"KeyInputHandlers",
"Key Input Handlers",
false);
44 mouseButtonDownInputHandlersRL =
new StandardReorderableList(serializedObject,
"MouseButtonDownInputHandlers",
"Mouse Button Down Input Handlers",
false);
45 mouseButtonUpInputHandlersRL =
new StandardReorderableList(serializedObject,
"MouseButtonUpInputHandlers",
"Mouse Button Up Input Handlers",
false);
46 mouseButtonInputHandlersRL =
new StandardReorderableList(serializedObject,
"MouseButtonInputHandlers",
"Mouse Button Input Handlers",
false);
48 axisInputHandlersRL =
new StandardReorderableList(serializedObject,
"AxisInputHandlers",
"Axis Input Handlers",
false);
49 axisRawInputHandlersRL =
new StandardReorderableList(serializedObject,
"AxisRawInputHandlers",
"Axis Raw Input Handlers",
false);
55 serializedObject.Update();
57 EditorGUILayout.LabelField(
"Game System Settings:", EditorStyles.boldLabel);
58 EditorGUILayout.PropertyField(initInfoTextLocalizationSP);
59 EditorGUILayout.PropertyField(initErrorInfoTextLocalizationSP);
60 EditorGUILayout.Space();
62 EditorGUILayout.LabelField(
"Keyboard Input:", EditorStyles.boldLabel);
67 EditorGUILayout.Space();
69 EditorGUILayout.LabelField(
"Mouse Input:", EditorStyles.boldLabel);
70 EditorGUILayout.BeginHorizontal();
71 EditorGUILayout.LabelField(
"Mouse Position Input Handler");
72 EditorGUILayout.PropertyField(mousePositionInputHandlerSP);
73 EditorGUILayout.EndHorizontal();
74 EditorGUILayout.Space();
78 EditorGUILayout.Space();
80 EditorGUILayout.LabelField(
"Axis Input:", EditorStyles.boldLabel);
84 serializedObject.ApplyModifiedProperties();
This class provides you with a better handling of ReorderableList so that ReorderableLists can be use...