net.dreditor.freetimereportcards 0.1.6 → 0.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/.attestation.p7m +0 -0
  2. package/DREditor.FreeTimeReportCards.asmdef +21 -21
  3. package/DREditor.FreeTimeReportCards.asmdef.meta +7 -7
  4. package/DisplayFTEData.cs +42 -42
  5. package/DisplayFTEData.cs.meta +11 -11
  6. package/DisplayFTETabsOnSelectedCharacter.cs +39 -39
  7. package/DisplayFTETabsOnSelectedCharacter.cs.meta +11 -11
  8. package/DisplayFTEUITabsOnReset.cs +23 -23
  9. package/DisplayFTEUITabsOnReset.cs.meta +11 -11
  10. package/DisplaySelectedFTETab.cs +30 -30
  11. package/DisplaySelectedFTETab.cs.meta +11 -11
  12. package/FTEReportCard.cs +73 -73
  13. package/FTEReportCard.cs.meta +11 -11
  14. package/FTEReportCardBase.cs +171 -171
  15. package/FTEReportCardBase.cs.meta +11 -11
  16. package/IDisplayFTEUITab.cs +13 -13
  17. package/IDisplayFTEUITab.cs.meta +11 -11
  18. package/IResetFTEUITab.cs +14 -14
  19. package/IResetFTEUITab.cs.meta +11 -11
  20. package/IUpdateFTEUITab.cs +13 -13
  21. package/IUpdateFTEUITab.cs.meta +11 -11
  22. package/ReportCardUIMainTab.cs +26 -26
  23. package/ReportCardUIMainTab.cs.meta +11 -11
  24. package/{Samples → Samples~}/FTE_Info_Text.prefab +167 -167
  25. package/{Samples → Samples~}/FTE_Info_Text.prefab.meta +7 -7
  26. package/{Samples → Samples~}/FTE_Lock_Image_ETemplate.prefab +100 -100
  27. package/{Samples → Samples~}/FTE_Lock_Image_ETemplate.prefab.meta +7 -7
  28. package/{Samples → Samples~}/FTE_Number_Text.prefab +154 -154
  29. package/{Samples → Samples~}/FTE_Number_Text.prefab.meta +7 -7
  30. package/{Samples → Samples~}/FTE_Selected_Tab.prefab +100 -100
  31. package/{Samples → Samples~}/FTE_Selected_Tab.prefab.meta +7 -7
  32. package/{Samples → Samples~}/FTE_Selected_Tabs.prefab +938 -938
  33. package/{Samples → Samples~}/FTE_Selected_Tabs.prefab.meta +7 -7
  34. package/{Samples → Samples~}/FTE_Tab_Locks.prefab +775 -775
  35. package/{Samples → Samples~}/FTE_Tab_Locks.prefab.meta +7 -7
  36. package/{Samples → Samples~}/FTE_Tab_Numbers.prefab +951 -951
  37. package/{Samples → Samples~}/FTE_Tab_Numbers.prefab.meta +7 -7
  38. package/{Samples → Samples~}/Report_Card_FTE_UI_ETemplate.prefab +811 -811
  39. package/{Samples → Samples~}/Report_Card_FTE_UI_ETemplate.prefab.meta +7 -7
  40. package/{Samples → Samples~}/Report_Card_Main_UI_ETemplate.prefab +2099 -2099
  41. package/{Samples → Samples~}/Report_Card_Main_UI_ETemplate.prefab.meta +7 -7
  42. package/package.json +44 -39
  43. package/package.json.meta +7 -7
  44. package/Samples.meta +0 -8
Binary file
@@ -1,22 +1,22 @@
1
- {
2
- "name": "DREditor.FreeTimeReportCards",
3
- "rootNamespace": "",
4
- "references": [
5
- "Unity.TextMeshPro",
6
- "Unity.InputSystem",
7
- "DREditor",
8
- "DREditor.Controls",
9
- "DREditor.UIHandling",
10
- "DREditor.UI.ReportCards",
11
- "DREditor.FreeTime"
12
- ],
13
- "includePlatforms": [],
14
- "excludePlatforms": [],
15
- "allowUnsafeCode": false,
16
- "overrideReferences": false,
17
- "precompiledReferences": [],
18
- "autoReferenced": true,
19
- "defineConstraints": [],
20
- "versionDefines": [],
21
- "noEngineReferences": false
1
+ {
2
+ "name": "DREditor.FreeTimeReportCards",
3
+ "rootNamespace": "",
4
+ "references": [
5
+ "Unity.TextMeshPro",
6
+ "Unity.InputSystem",
7
+ "DREditor",
8
+ "DREditor.Controls",
9
+ "DREditor.UIHandling",
10
+ "DREditor.UI.ReportCards",
11
+ "DREditor.FreeTime"
12
+ ],
13
+ "includePlatforms": [],
14
+ "excludePlatforms": [],
15
+ "allowUnsafeCode": false,
16
+ "overrideReferences": false,
17
+ "precompiledReferences": [],
18
+ "autoReferenced": true,
19
+ "defineConstraints": [],
20
+ "versionDefines": [],
21
+ "noEngineReferences": false
22
22
  }
@@ -1,7 +1,7 @@
1
- fileFormatVersion: 2
2
- guid: 25473e941715c3c4a82aaca4dbd9e8b3
3
- AssemblyDefinitionImporter:
4
- externalObjects: {}
5
- userData:
6
- assetBundleName:
7
- assetBundleVariant:
1
+ fileFormatVersion: 2
2
+ guid: 25473e941715c3c4a82aaca4dbd9e8b3
3
+ AssemblyDefinitionImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant:
package/DisplayFTEData.cs CHANGED
@@ -1,43 +1,43 @@
1
- //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
- using DREditor.UIHandling;
3
- using System.Collections;
4
- using UnityEngine;
5
-
6
- namespace DREditor.FreeTimeReportCards
7
- {
8
- /// <summary>
9
- ///
10
- /// </summary>
11
- [ClassHeader(nameof(IDisplayFTEUITab) +
12
- "\n\n")]
13
- public class DisplayFTEData : MonoBehaviour, IDisplayFTEUITab
14
- {
15
- /// <summary>
16
- ///
17
- /// </summary>
18
- [Tooltip("")]
19
- [SerializeField] protected bool hideOnStart = true;
20
-
21
- /// <summary>
22
- ///
23
- /// </summary>
24
- [Tooltip("")]
25
- [SerializeField] protected UIVisibilityComponent fteText = null;
26
-
27
-
28
- protected virtual void Start() => StartCoroutine(LateStart());
29
-
30
- /// <summary>
31
- ///
32
- /// </summary>
33
- protected virtual IEnumerator LateStart()
34
- {
35
- yield return null;
36
-
37
- fteText.Invoke(!hideOnStart);
38
- }
39
-
40
- /// <inheritdoc/>
41
- public virtual void DisplayFTETabData(int fteIndex) => fteText.Invoke(fteIndex > 0);
42
- }
1
+ //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
+ using DREditor.UIHandling;
3
+ using System.Collections;
4
+ using UnityEngine;
5
+
6
+ namespace DREditor.FreeTimeReportCards
7
+ {
8
+ /// <summary>
9
+ ///
10
+ /// </summary>
11
+ [ClassHeader(nameof(IDisplayFTEUITab) +
12
+ "\n\n")]
13
+ public class DisplayFTEData : MonoBehaviour, IDisplayFTEUITab
14
+ {
15
+ /// <summary>
16
+ ///
17
+ /// </summary>
18
+ [Tooltip("")]
19
+ [SerializeField] protected bool hideOnStart = true;
20
+
21
+ /// <summary>
22
+ ///
23
+ /// </summary>
24
+ [Tooltip("")]
25
+ [SerializeField] protected UIVisibilityComponent fteText = null;
26
+
27
+
28
+ protected virtual void Start() => StartCoroutine(LateStart());
29
+
30
+ /// <summary>
31
+ ///
32
+ /// </summary>
33
+ protected virtual IEnumerator LateStart()
34
+ {
35
+ yield return null;
36
+
37
+ fteText.Invoke(!hideOnStart);
38
+ }
39
+
40
+ /// <inheritdoc/>
41
+ public virtual void DisplayFTETabData(int fteIndex) => fteText.Invoke(fteIndex > 0);
42
+ }
43
43
  }
@@ -1,11 +1,11 @@
1
- fileFormatVersion: 2
2
- guid: 6e3e728c93cf42940b8afd009be78658
3
- MonoImporter:
4
- externalObjects: {}
5
- serializedVersion: 2
6
- defaultReferences: []
7
- executionOrder: 0
8
- icon: {instanceID: 0}
9
- userData:
10
- assetBundleName:
11
- assetBundleVariant:
1
+ fileFormatVersion: 2
2
+ guid: 6e3e728c93cf42940b8afd009be78658
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -1,40 +1,40 @@
1
- //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
- using DREditor.UIHandling;
3
- using System.Collections.Generic;
4
- using UnityEngine;
5
-
6
- namespace DREditor.FreeTimeReportCards
7
- {
8
- /// <summary>
9
- ///
10
- /// </summary>
11
- [ClassHeader(nameof(IUpdateFTEUITab) +
12
- "\n\n")]
13
- public class DisplayFTETabsOnSelectedCharacter : MonoBehaviour, IUpdateFTEUITab
14
- {
15
- /// <summary>
16
- ///
17
- /// </summary>
18
- [Tooltip("")]
19
- [SerializeField] protected List<UIVisibilityComponent> fteTabs = new();
20
-
21
- /// <summary>
22
- ///
23
- /// </summary>
24
- [Tooltip("")]
25
- [SerializeField] protected bool invert = false;
26
-
27
-
28
- /// <inheritdoc/>
29
- public virtual void UpdateUnlockedFTETabs(int characterAffinity)
30
- {
31
- for (int i = 0; i < fteTabs.Count; i++)
32
- {
33
- bool lockState = invert ? i < characterAffinity : i >= characterAffinity;
34
-
35
- if (i < fteTabs.Count && fteTabs[i] != null)
36
- fteTabs[i].Invoke(lockState);
37
- }
38
- }
39
- }
1
+ //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
+ using DREditor.UIHandling;
3
+ using System.Collections.Generic;
4
+ using UnityEngine;
5
+
6
+ namespace DREditor.FreeTimeReportCards
7
+ {
8
+ /// <summary>
9
+ ///
10
+ /// </summary>
11
+ [ClassHeader(nameof(IUpdateFTEUITab) +
12
+ "\n\n")]
13
+ public class DisplayFTETabsOnSelectedCharacter : MonoBehaviour, IUpdateFTEUITab
14
+ {
15
+ /// <summary>
16
+ ///
17
+ /// </summary>
18
+ [Tooltip("")]
19
+ [SerializeField] protected List<UIVisibilityComponent> fteTabs = new();
20
+
21
+ /// <summary>
22
+ ///
23
+ /// </summary>
24
+ [Tooltip("")]
25
+ [SerializeField] protected bool invert = false;
26
+
27
+
28
+ /// <inheritdoc/>
29
+ public virtual void UpdateUnlockedFTETabs(int characterAffinity)
30
+ {
31
+ for (int i = 0; i < fteTabs.Count; i++)
32
+ {
33
+ bool lockState = invert ? i < characterAffinity : i >= characterAffinity;
34
+
35
+ if (i < fteTabs.Count && fteTabs[i] != null)
36
+ fteTabs[i].Invoke(lockState);
37
+ }
38
+ }
39
+ }
40
40
  }
@@ -1,11 +1,11 @@
1
- fileFormatVersion: 2
2
- guid: cedac756e707cae47998bf0464fe2afe
3
- MonoImporter:
4
- externalObjects: {}
5
- serializedVersion: 2
6
- defaultReferences: []
7
- executionOrder: 0
8
- icon: {instanceID: 0}
9
- userData:
10
- assetBundleName:
11
- assetBundleVariant:
1
+ fileFormatVersion: 2
2
+ guid: cedac756e707cae47998bf0464fe2afe
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -1,24 +1,24 @@
1
- //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
- using DREditor.UIHandling;
3
- using UnityEngine;
4
-
5
- namespace DREditor.FreeTimeReportCards
6
- {
7
- /// <summary>
8
- ///
9
- /// </summary>
10
- [ClassHeader(nameof(IResetFTEUITab) +
11
- "\n\n")]
12
- public class DisplayFTEUITabsOnReset : MonoBehaviour, IResetFTEUITab
13
- {
14
- /// <summary>
15
- ///
16
- /// </summary>
17
- [Tooltip("")]
18
- [SerializeField] protected UIVisibilityComponent fteUIPage;
19
-
20
-
21
- /// <inheritdoc/>
22
- public virtual void ResetComponent(bool currentCharacterIsFTECharacter) => fteUIPage.Invoke(currentCharacterIsFTECharacter);
23
- }
1
+ //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
+ using DREditor.UIHandling;
3
+ using UnityEngine;
4
+
5
+ namespace DREditor.FreeTimeReportCards
6
+ {
7
+ /// <summary>
8
+ ///
9
+ /// </summary>
10
+ [ClassHeader(nameof(IResetFTEUITab) +
11
+ "\n\n")]
12
+ public class DisplayFTEUITabsOnReset : MonoBehaviour, IResetFTEUITab
13
+ {
14
+ /// <summary>
15
+ ///
16
+ /// </summary>
17
+ [Tooltip("")]
18
+ [SerializeField] protected UIVisibilityComponent fteUIPage;
19
+
20
+
21
+ /// <inheritdoc/>
22
+ public virtual void ResetComponent(bool currentCharacterIsFTECharacter) => fteUIPage.Invoke(currentCharacterIsFTECharacter);
23
+ }
24
24
  }
@@ -1,11 +1,11 @@
1
- fileFormatVersion: 2
2
- guid: 38cd32c00d359764280e08f9cead254c
3
- MonoImporter:
4
- externalObjects: {}
5
- serializedVersion: 2
6
- defaultReferences: []
7
- executionOrder: 0
8
- icon: {instanceID: 0}
9
- userData:
10
- assetBundleName:
11
- assetBundleVariant:
1
+ fileFormatVersion: 2
2
+ guid: 38cd32c00d359764280e08f9cead254c
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -1,31 +1,31 @@
1
- //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
- using DREditor.UIHandling;
3
- using System.Collections.Generic;
4
- using UnityEngine;
5
-
6
- namespace DREditor.FreeTimeReportCards
7
- {
8
- /// <summary>
9
- ///
10
- /// </summary>
11
- [ClassHeader(nameof(IDisplayFTEUITab) +
12
- "\n\n")]
13
- public class DisplaySelectedFTETab : MonoBehaviour, IDisplayFTEUITab
14
- {
15
- /// <summary>
16
- ///
17
- /// </summary>
18
- [Tooltip("")]
19
- [SerializeField] protected List<UIVisibilityComponent> fteSelectedTabs = new();
20
-
21
-
22
- /// <inheritdoc/>
23
- public virtual void DisplayFTETabData(int fteIndex)
24
- {
25
- foreach (var fte in fteSelectedTabs)
26
- fte.Hide();
27
-
28
- fteSelectedTabs[fteIndex].Show();
29
- }
30
- }
1
+ //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
+ using DREditor.UIHandling;
3
+ using System.Collections.Generic;
4
+ using UnityEngine;
5
+
6
+ namespace DREditor.FreeTimeReportCards
7
+ {
8
+ /// <summary>
9
+ ///
10
+ /// </summary>
11
+ [ClassHeader(nameof(IDisplayFTEUITab) +
12
+ "\n\n")]
13
+ public class DisplaySelectedFTETab : MonoBehaviour, IDisplayFTEUITab
14
+ {
15
+ /// <summary>
16
+ ///
17
+ /// </summary>
18
+ [Tooltip("")]
19
+ [SerializeField] protected List<UIVisibilityComponent> fteSelectedTabs = new();
20
+
21
+
22
+ /// <inheritdoc/>
23
+ public virtual void DisplayFTETabData(int fteIndex)
24
+ {
25
+ foreach (var fte in fteSelectedTabs)
26
+ fte.Hide();
27
+
28
+ fteSelectedTabs[fteIndex].Show();
29
+ }
30
+ }
31
31
  }
@@ -1,11 +1,11 @@
1
- fileFormatVersion: 2
2
- guid: 3f494472e4419d441a08e9e79654bbe9
3
- MonoImporter:
4
- externalObjects: {}
5
- serializedVersion: 2
6
- defaultReferences: []
7
- executionOrder: 0
8
- icon: {instanceID: 0}
9
- userData:
10
- assetBundleName:
11
- assetBundleVariant:
1
+ fileFormatVersion: 2
2
+ guid: 3f494472e4419d441a08e9e79654bbe9
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
package/FTEReportCard.cs CHANGED
@@ -1,74 +1,74 @@
1
- //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
- using DREditor.UI.ReportCards;
3
- using System.Collections.Generic;
4
- using System.Linq;
5
- using UnityEngine;
6
-
7
- namespace DREditor.FreeTimeReportCards
8
- {
9
- /// <summary>
10
- ///
11
- /// </summary>
12
- [ClassHeader(nameof(ReportCardControllableComponent) + ", " + nameof(FTEReportCardBase) +
13
- "\n\n")]
14
- public class FTEReportCard : FTEReportCardBase
15
- {
16
- /// <summary>
17
- ///
18
- /// </summary>
19
- protected IEnumerable<IUpdateFTEUITab> updateableTabs;
20
-
21
- /// <summary>
22
- ///
23
- /// </summary>
24
- protected IEnumerable<IDisplayFTEUITab> displayableTabs;
25
-
26
- /// <summary>
27
- ///
28
- /// </summary>
29
- protected IEnumerable<IResetFTEUITab> resetableTabs;
30
-
31
-
32
- /// <inheritdoc/>
33
- protected override void Start()
34
- {
35
- base.Start();
36
-
37
- var allComponents = GetComponentsInChildren<Component>();
38
-
39
- updateableTabs = allComponents.OfType<IUpdateFTEUITab>();
40
-
41
- displayableTabs = allComponents.OfType<IDisplayFTEUITab>();
42
-
43
- resetableTabs = allComponents.OfType<IResetFTEUITab>();
44
- }
45
-
46
-
47
- /// <inheritdoc/>
48
- protected override void UpdateUnlockedFTETabs()
49
- {
50
- base.UpdateUnlockedFTETabs();
51
-
52
- foreach (var tab in updateableTabs)
53
- tab?.UpdateUnlockedFTETabs(GetCharacterAffinity());
54
- }
55
-
56
- /// <inheritdoc/>
57
- protected override void DisplayFTETabData()
58
- {
59
- base.DisplayFTETabData();
60
-
61
- foreach (var tab in displayableTabs)
62
- tab?.DisplayFTETabData(fteIndex);
63
- }
64
-
65
- /// <inheritdoc/>
66
- public override void ResetComponent()
67
- {
68
- base.ResetComponent();
69
-
70
- foreach (var tab in resetableTabs)
71
- tab?.ResetComponent(!character.NotFTECharacter);
72
- }
73
- }
1
+ //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
+ using DREditor.UI.ReportCards;
3
+ using System.Collections.Generic;
4
+ using System.Linq;
5
+ using UnityEngine;
6
+
7
+ namespace DREditor.FreeTimeReportCards
8
+ {
9
+ /// <summary>
10
+ ///
11
+ /// </summary>
12
+ [ClassHeader(nameof(ReportCardControllableComponent) + ", " + nameof(FTEReportCardBase) +
13
+ "\n\n")]
14
+ public class FTEReportCard : FTEReportCardBase
15
+ {
16
+ /// <summary>
17
+ ///
18
+ /// </summary>
19
+ protected IEnumerable<IUpdateFTEUITab> updateableTabs;
20
+
21
+ /// <summary>
22
+ ///
23
+ /// </summary>
24
+ protected IEnumerable<IDisplayFTEUITab> displayableTabs;
25
+
26
+ /// <summary>
27
+ ///
28
+ /// </summary>
29
+ protected IEnumerable<IResetFTEUITab> resetableTabs;
30
+
31
+
32
+ /// <inheritdoc/>
33
+ protected override void Start()
34
+ {
35
+ base.Start();
36
+
37
+ var allComponents = GetComponentsInChildren<Component>();
38
+
39
+ updateableTabs = allComponents.OfType<IUpdateFTEUITab>();
40
+
41
+ displayableTabs = allComponents.OfType<IDisplayFTEUITab>();
42
+
43
+ resetableTabs = allComponents.OfType<IResetFTEUITab>();
44
+ }
45
+
46
+
47
+ /// <inheritdoc/>
48
+ protected override void UpdateUnlockedFTETabs()
49
+ {
50
+ base.UpdateUnlockedFTETabs();
51
+
52
+ foreach (var tab in updateableTabs)
53
+ tab?.UpdateUnlockedFTETabs(GetCharacterAffinity());
54
+ }
55
+
56
+ /// <inheritdoc/>
57
+ protected override void DisplayFTETabData()
58
+ {
59
+ base.DisplayFTETabData();
60
+
61
+ foreach (var tab in displayableTabs)
62
+ tab?.DisplayFTETabData(fteIndex);
63
+ }
64
+
65
+ /// <inheritdoc/>
66
+ public override void ResetComponent()
67
+ {
68
+ base.ResetComponent();
69
+
70
+ foreach (var tab in resetableTabs)
71
+ tab?.ResetComponent(!character.NotFTECharacter);
72
+ }
73
+ }
74
74
  }
@@ -1,11 +1,11 @@
1
- fileFormatVersion: 2
2
- guid: 68030e8d9aca50446b727a6d46e704b7
3
- MonoImporter:
4
- externalObjects: {}
5
- serializedVersion: 2
6
- defaultReferences: []
7
- executionOrder: 0
8
- icon: {instanceID: 0}
9
- userData:
10
- assetBundleName:
11
- assetBundleVariant:
1
+ fileFormatVersion: 2
2
+ guid: 68030e8d9aca50446b727a6d46e704b7
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant: