Skip to content
This repository was archived by the owner on Jan 9, 2022. It is now read-only.

Commit a93e5fa

Browse files
committed
Documentation
1 parent 9ba9c3f commit a93e5fa

9 files changed

+187
-9
lines changed

Editor/Documentation/GenericsDocumentation.cs

+8-8
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,27 @@ public static void SameTimeSequencingDocumentation()
1313

1414
public static void EasingDocumentation()
1515
{
16-
GUILayout.Label("- Use Animation Curve: Allows for the choosing of a predefined Easing, or to use an Animation Curve", EditorStyles.wordWrappedLabel);
17-
GUILayout.Label("- Ease: (If enabled) Predefined easing used to interpolate", EditorStyles.wordWrappedLabel);
18-
GUILayout.Label("- Animation Curve: (If enabled) To set custom easings", EditorStyles.wordWrappedLabel);
16+
GUILayout.Label("- Use Animation Curve: allows for the choosing of a predefined Easing, or to use an Animation Curve", EditorStyles.wordWrappedLabel);
17+
GUILayout.Label("- Ease: (if enabled) predefined easing used to interpolate", EditorStyles.wordWrappedLabel);
18+
GUILayout.Label("- Animation Curve: (if enabled) to set custom easings", EditorStyles.wordWrappedLabel);
1919
}
2020

2121
public static void LoopDocumentation()
2222
{
2323
GUILayout.Label("- Loop:", EditorStyles.wordWrappedLabel);
24-
GUILayout.Label(" Disabled: Does not loop", EditorStyles.wordWrappedLabel);
25-
GUILayout.Label(" X Times: Loops an x number of times", EditorStyles.wordWrappedLabel);
26-
GUILayout.Label(" Until Manually Stoped: Loops until Complete or Kill is called on the feedback", EditorStyles.wordWrappedLabel);
24+
GUILayout.Label(" Disabled: does not loop", EditorStyles.wordWrappedLabel);
25+
GUILayout.Label(" X Times: loops an x number of times", EditorStyles.wordWrappedLabel);
26+
GUILayout.Label(" Until Manually Stoped: loops until Complete or Kill is called on the feedback", EditorStyles.wordWrappedLabel);
2727
}
2828

2929
public static void DelayDocumentation()
3030
{
31-
GUILayout.Label("- Delay: Delay to start the feedback", EditorStyles.wordWrappedLabel);
31+
GUILayout.Label("- Delay: delay to start the feedback", EditorStyles.wordWrappedLabel);
3232
}
3333

3434
public static void DurationDocumentation()
3535
{
36-
GUILayout.Label("- Duration: Time it will take to reach the end", EditorStyles.wordWrappedLabel);
36+
GUILayout.Label("- Duration: time it will take to reach the final value", EditorStyles.wordWrappedLabel);
3737
}
3838
}
3939
}

Editor/Documentation/SpriteRenderer.meta

+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
using System;
2+
using UnityEditor;
3+
using UnityEngine;
4+
5+
namespace Juce.Feedbacks
6+
{
7+
public class SpriteRendererColorDocumentation : IFeedbackDocumentation
8+
{
9+
public Type FeedbackType => typeof(SpriteRendererColorFeedback);
10+
11+
public void DrawDocumentation()
12+
{
13+
GUILayout.Label("Changes the target SpriteRenderer to a certain color", EditorStyles.wordWrappedLabel);
14+
15+
EditorGUILayout.Space(2);
16+
17+
using (new EditorGUILayout.VerticalScope(EditorStyles.helpBox))
18+
{
19+
GUILayout.Label("- Target: SpriteRenderer component that is going to be affected", EditorStyles.wordWrappedLabel);
20+
}
21+
22+
using (new EditorGUILayout.VerticalScope(EditorStyles.helpBox))
23+
{
24+
GUILayout.Label("- Use Starting Value: enables the starting color", EditorStyles.wordWrappedLabel);
25+
GUILayout.Label("- Start: (if enabled) starting color value", EditorStyles.wordWrappedLabel);
26+
GUILayout.Label("- End: end color value to reach", EditorStyles.wordWrappedLabel);
27+
}
28+
29+
using (new EditorGUILayout.VerticalScope(EditorStyles.helpBox))
30+
{
31+
GenericsDocumentation.DelayDocumentation();
32+
GenericsDocumentation.DurationDocumentation();
33+
}
34+
35+
using (new EditorGUILayout.VerticalScope(EditorStyles.helpBox))
36+
{
37+
GenericsDocumentation.EasingDocumentation();
38+
}
39+
40+
using (new EditorGUILayout.VerticalScope(EditorStyles.helpBox))
41+
{
42+
GenericsDocumentation.LoopDocumentation();
43+
}
44+
45+
EditorGUILayout.Space(2);
46+
47+
using (new EditorGUILayout.VerticalScope(EditorStyles.helpBox))
48+
{
49+
GUILayout.Label("Sequencing:");
50+
GenericsDocumentation.SameTimeSequencingDocumentation();
51+
}
52+
}
53+
}
54+
}

Editor/Documentation/SpriteRenderer/SpriteRendererColorDocumentation.cs.meta

+11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
using System;
2+
using UnityEditor;
3+
using UnityEngine;
4+
5+
namespace Juce.Feedbacks
6+
{
7+
public class SpriteRendererFlipDocumentation : IFeedbackDocumentation
8+
{
9+
public Type FeedbackType => typeof(SpriteRendererFlipFeedback);
10+
11+
public void DrawDocumentation()
12+
{
13+
GUILayout.Label("Changes the target SpriteRenderer flipX and flipY values", EditorStyles.wordWrappedLabel);
14+
15+
EditorGUILayout.Space(2);
16+
17+
using (new EditorGUILayout.VerticalScope(EditorStyles.helpBox))
18+
{
19+
GUILayout.Label("- Target: SpriteRenderer component that is going to be affected", EditorStyles.wordWrappedLabel);
20+
}
21+
22+
using (new EditorGUILayout.VerticalScope(EditorStyles.helpBox))
23+
{
24+
GUILayout.Label("- FlipX: enable or disable flip x value", EditorStyles.wordWrappedLabel);
25+
GUILayout.Label("- FlipY: enable or disable flip y value", EditorStyles.wordWrappedLabel);
26+
}
27+
28+
using (new EditorGUILayout.VerticalScope(EditorStyles.helpBox))
29+
{
30+
GenericsDocumentation.DelayDocumentation();
31+
}
32+
33+
EditorGUILayout.Space(2);
34+
35+
using (new EditorGUILayout.VerticalScope(EditorStyles.helpBox))
36+
{
37+
GUILayout.Label("Sequencing:");
38+
GenericsDocumentation.SameTimeSequencingDocumentation();
39+
}
40+
}
41+
}
42+
}

Editor/Documentation/SpriteRenderer/SpriteRendererFlipDocumentation.cs.meta

+11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
using System;
2+
using UnityEditor;
3+
using UnityEngine;
4+
5+
namespace Juce.Feedbacks
6+
{
7+
public class SpriteRendererSpriteDocumentation : IFeedbackDocumentation
8+
{
9+
public Type FeedbackType => typeof(SpriteRendererSpriteFeedback);
10+
11+
public void DrawDocumentation()
12+
{
13+
GUILayout.Label("Changes the target SpriteRenderer sprite", EditorStyles.wordWrappedLabel);
14+
15+
EditorGUILayout.Space(2);
16+
17+
using (new EditorGUILayout.VerticalScope(EditorStyles.helpBox))
18+
{
19+
GUILayout.Label("- Target: SpriteRenderer component that is going to be affected", EditorStyles.wordWrappedLabel);
20+
}
21+
22+
using (new EditorGUILayout.VerticalScope(EditorStyles.helpBox))
23+
{
24+
GUILayout.Label("- Sprite: sprite to set", EditorStyles.wordWrappedLabel);
25+
}
26+
27+
using (new EditorGUILayout.VerticalScope(EditorStyles.helpBox))
28+
{
29+
GenericsDocumentation.DelayDocumentation();
30+
}
31+
32+
EditorGUILayout.Space(2);
33+
34+
using (new EditorGUILayout.VerticalScope(EditorStyles.helpBox))
35+
{
36+
GUILayout.Label("Sequencing:");
37+
GenericsDocumentation.SameTimeSequencingDocumentation();
38+
}
39+
}
40+
}
41+
}

Editor/Documentation/SpriteRenderer/SpriteRendererSpriteDocumentation.cs.meta

+11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Editor/Documentation/UI/UIAlphaDocumentation.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public class UIAlphaDocumentation : IFeedbackDocumentation
1111

1212
public void DrawDocumentation()
1313
{
14-
GUILayout.Label("Using a CanvasGroup, can set the alpha values", EditorStyles.wordWrappedLabel);
14+
GUILayout.Label("Using a CanvasGroup, can set the alpha value", EditorStyles.wordWrappedLabel);
1515

1616
EditorGUILayout.Space(2);
1717

0 commit comments

Comments
 (0)