Skip to content

Commit

Permalink
style: Box fields are the proper size.
Browse files Browse the repository at this point in the history
Box fields are now the proper size.
  • Loading branch information
christides11 committed Aug 17, 2020
1 parent bd9dd3f commit bd4d3a5
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions Assets/CAF/Editor/Combat/Attack/AttackDefinitionEditorWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -442,24 +442,24 @@ protected virtual void DrawHitboxOptions(BoxGroup currentGroup, int index)
currentGroup.boxes[index].shape = (BoxShapes)EditorGUILayout.EnumPopup("Shape", currentGroup.boxes[index].shape);
EditorGUILayout.BeginHorizontal();
EditorGUILayout.LabelField("Offset", GUILayout.Width(135));
currentGroup.boxes[index].offset.x = EditorGUILayout.FloatField(currentGroup.boxes[index].offset.x, GUILayout.Width(40));
currentGroup.boxes[index].offset.y = EditorGUILayout.FloatField(currentGroup.boxes[index].offset.y, GUILayout.Width(40));
currentGroup.boxes[index].offset.z = EditorGUILayout.FloatField(currentGroup.boxes[index].offset.z, GUILayout.Width(40));
currentGroup.boxes[index].offset.x = EditorGUILayout.FloatField(currentGroup.boxes[index].offset.x, GUILayout.Width(60));
currentGroup.boxes[index].offset.y = EditorGUILayout.FloatField(currentGroup.boxes[index].offset.y, GUILayout.Width(60));
currentGroup.boxes[index].offset.z = EditorGUILayout.FloatField(currentGroup.boxes[index].offset.z, GUILayout.Width(60));
EditorGUILayout.EndHorizontal();
EditorGUILayout.BeginHorizontal();
EditorGUILayout.LabelField("Rotation", GUILayout.Width(135));
currentGroup.boxes[index].rotation.x = EditorGUILayout.FloatField(currentGroup.boxes[index].rotation.x, GUILayout.Width(40));
currentGroup.boxes[index].rotation.y = EditorGUILayout.FloatField(currentGroup.boxes[index].rotation.y, GUILayout.Width(40));
currentGroup.boxes[index].rotation.z = EditorGUILayout.FloatField(currentGroup.boxes[index].rotation.z, GUILayout.Width(40));
currentGroup.boxes[index].rotation.x = EditorGUILayout.FloatField(currentGroup.boxes[index].rotation.x, GUILayout.Width(60));
currentGroup.boxes[index].rotation.y = EditorGUILayout.FloatField(currentGroup.boxes[index].rotation.y, GUILayout.Width(60));
currentGroup.boxes[index].rotation.z = EditorGUILayout.FloatField(currentGroup.boxes[index].rotation.z, GUILayout.Width(60));
EditorGUILayout.EndHorizontal();
switch (currentGroup.boxes[index].shape)
{
case BoxShapes.Rectangle:
EditorGUILayout.BeginHorizontal();
EditorGUILayout.LabelField("Size", GUILayout.Width(135));
currentGroup.boxes[index].size.x = EditorGUILayout.FloatField(currentGroup.boxes[index].size.x, GUILayout.Width(40));
currentGroup.boxes[index].size.y = EditorGUILayout.FloatField(currentGroup.boxes[index].size.y, GUILayout.Width(40));
currentGroup.boxes[index].size.z = EditorGUILayout.FloatField(currentGroup.boxes[index].size.z, GUILayout.Width(40));
currentGroup.boxes[index].size.x = EditorGUILayout.FloatField(currentGroup.boxes[index].size.x, GUILayout.Width(60));
currentGroup.boxes[index].size.y = EditorGUILayout.FloatField(currentGroup.boxes[index].size.y, GUILayout.Width(60));
currentGroup.boxes[index].size.z = EditorGUILayout.FloatField(currentGroup.boxes[index].size.z, GUILayout.Width(60));
EditorGUILayout.EndHorizontal();
break;
case BoxShapes.Circle:
Expand Down

0 comments on commit bd4d3a5

Please sign in to comment.