net.dreditor.ui.savingloading 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 (38) hide show
  1. package/.attestation.p7m +0 -0
  2. package/DREditor.UI.SavingLoading.asmdef +22 -22
  3. package/DREditor.UI.SavingLoading.asmdef.meta +7 -7
  4. package/PostSavePoint.cs +57 -57
  5. package/PostSavePoint.cs.meta +11 -11
  6. package/ReturnToMenuOnPauseMenu.cs +113 -113
  7. package/ReturnToMenuOnPauseMenu.cs.meta +11 -11
  8. package/{Samples → Samples~}/DRE_SavePoint.unity +262 -262
  9. package/{Samples → Samples~}/DRE_SavePoint.unity.meta +7 -7
  10. package/{Samples → Samples~}/Save_Point_Canvas_Shell.prefab +169 -169
  11. package/{Samples → Samples~}/Save_Point_Canvas_Shell.prefab.meta +7 -7
  12. package/{Samples → Samples~}/Save_Point_Canvas_Template.prefab +563 -563
  13. package/{Samples → Samples~}/Save_Point_Canvas_Template.prefab.meta +7 -7
  14. package/{Samples → Samples~}/Save_Point_System_Template.prefab +1434 -1434
  15. package/{Samples → Samples~}/Save_Point_System_Template.prefab.meta +7 -7
  16. package/SaveDataDisplayerBase.cs +24 -24
  17. package/SaveDataDisplayerBase.cs.meta +11 -11
  18. package/SaveDateDisplayer.cs +146 -146
  19. package/SaveDateDisplayer.cs.meta +11 -11
  20. package/SaveLoadMenu.cs +298 -298
  21. package/SaveLoadMenu.cs.meta +11 -11
  22. package/SaveLoadMenuBase.cs +122 -122
  23. package/SaveLoadMenuBase.cs.meta +11 -11
  24. package/SavePointUI.cs +239 -239
  25. package/SavePointUI.cs.meta +11 -11
  26. package/SavePointUIBase.cs +134 -134
  27. package/SavePointUIBase.cs.meta +11 -11
  28. package/SavePointUIGameState.cs +120 -120
  29. package/SavePointUIGameState.cs.meta +11 -11
  30. package/SaveSlot.cs +81 -81
  31. package/SaveSlot.cs.meta +11 -11
  32. package/SaveSlotBase.cs +99 -99
  33. package/SaveSlotBase.cs.meta +11 -11
  34. package/SaveTitleDisplayer.cs +204 -204
  35. package/SaveTitleDisplayer.cs.meta +11 -11
  36. package/package.json +46 -41
  37. package/package.json.meta +7 -7
  38. package/Samples.meta +0 -8
Binary file
@@ -1,23 +1,23 @@
1
- {
2
- "name": "DREditor.UI.SavingLoading",
3
- "rootNamespace": "",
4
- "references": [
5
- "Unity.TextMeshPro",
6
- "DREditor",
7
- "DREditor.Fading",
8
- "DREditor.Progressing.Handling",
9
- "DREditor.States",
10
- "DREditor.UI",
11
- "DREditor.Audio",
12
- "DREditor.RoomLoading"
13
- ],
14
- "includePlatforms": [],
15
- "excludePlatforms": [],
16
- "allowUnsafeCode": false,
17
- "overrideReferences": false,
18
- "precompiledReferences": [],
19
- "autoReferenced": true,
20
- "defineConstraints": [],
21
- "versionDefines": [],
22
- "noEngineReferences": false
1
+ {
2
+ "name": "DREditor.UI.SavingLoading",
3
+ "rootNamespace": "",
4
+ "references": [
5
+ "Unity.TextMeshPro",
6
+ "DREditor",
7
+ "DREditor.Fading",
8
+ "DREditor.Progressing.Handling",
9
+ "DREditor.States",
10
+ "DREditor.UI",
11
+ "DREditor.Audio",
12
+ "DREditor.RoomLoading"
13
+ ],
14
+ "includePlatforms": [],
15
+ "excludePlatforms": [],
16
+ "allowUnsafeCode": false,
17
+ "overrideReferences": false,
18
+ "precompiledReferences": [],
19
+ "autoReferenced": true,
20
+ "defineConstraints": [],
21
+ "versionDefines": [],
22
+ "noEngineReferences": false
23
23
  }
@@ -1,7 +1,7 @@
1
- fileFormatVersion: 2
2
- guid: f92d47c4ceec7864fa9cbb8ff35ec4b8
3
- AssemblyDefinitionImporter:
4
- externalObjects: {}
5
- userData:
6
- assetBundleName:
7
- assetBundleVariant:
1
+ fileFormatVersion: 2
2
+ guid: f92d47c4ceec7864fa9cbb8ff35ec4b8
3
+ AssemblyDefinitionImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant:
package/PostSavePoint.cs CHANGED
@@ -1,58 +1,58 @@
1
- //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
- using DREditor.EventObjects;
3
- using DREditor.RoomLoading;
4
- using System;
5
- using UnityEngine;
6
-
7
- namespace DREditor.UI.SavingLoading
8
- {
9
- /// <summary>
10
- ///
11
- /// </summary>
12
- [Serializable]
13
- [CreateAssetMenu(menuName = "DREditor/Progression/Post Save Point", fileName = "Post Save Point")]
14
- public class PostSavePoint : ScriptableObject
15
- {
16
- /// <summary>
17
- ///
18
- /// </summary>
19
- [Tooltip("")]
20
- public string objective;
21
-
22
- /// <summary>
23
- ///
24
- /// </summary>
25
- [Tooltip("")]
26
- public string scene;
27
-
28
- /// <summary>
29
- ///
30
- /// </summary>
31
- [Tooltip("")]
32
- public bool changeObjective;
33
-
34
- /// <summary>
35
- ///
36
- /// </summary>
37
- [Tooltip("")]
38
- public int addstate;
39
-
40
- /// <summary>
41
- ///
42
- /// </summary>
43
- [Tooltip("")]
44
- public BoolWithEvent mode;
45
-
46
- /// <summary>
47
- ///
48
- /// </summary>
49
- [Tooltip("")]
50
- public string dialogueEvent = "";
51
-
52
- /// <summary>
53
- ///
54
- /// </summary>
55
- [Tooltip("")]
56
- public RoomLoadOptionsAsset roomLoadingOptions;
57
- }
1
+ //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
+ using DREditor.EventObjects;
3
+ using DREditor.RoomLoading;
4
+ using System;
5
+ using UnityEngine;
6
+
7
+ namespace DREditor.UI.SavingLoading
8
+ {
9
+ /// <summary>
10
+ ///
11
+ /// </summary>
12
+ [Serializable]
13
+ [CreateAssetMenu(menuName = "DREditor/Progression/Post Save Point", fileName = "Post Save Point")]
14
+ public class PostSavePoint : ScriptableObject
15
+ {
16
+ /// <summary>
17
+ ///
18
+ /// </summary>
19
+ [Tooltip("")]
20
+ public string objective;
21
+
22
+ /// <summary>
23
+ ///
24
+ /// </summary>
25
+ [Tooltip("")]
26
+ public string scene;
27
+
28
+ /// <summary>
29
+ ///
30
+ /// </summary>
31
+ [Tooltip("")]
32
+ public bool changeObjective;
33
+
34
+ /// <summary>
35
+ ///
36
+ /// </summary>
37
+ [Tooltip("")]
38
+ public int addstate;
39
+
40
+ /// <summary>
41
+ ///
42
+ /// </summary>
43
+ [Tooltip("")]
44
+ public BoolWithEvent mode;
45
+
46
+ /// <summary>
47
+ ///
48
+ /// </summary>
49
+ [Tooltip("")]
50
+ public string dialogueEvent = "";
51
+
52
+ /// <summary>
53
+ ///
54
+ /// </summary>
55
+ [Tooltip("")]
56
+ public RoomLoadOptionsAsset roomLoadingOptions;
57
+ }
58
58
  }
@@ -1,11 +1,11 @@
1
- fileFormatVersion: 2
2
- guid: e8471aed52ef8aa458185c00ca312445
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: e8471aed52ef8aa458185c00ca312445
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -1,114 +1,114 @@
1
- //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
- using DREditor.Dialogues;
3
- using DREditor.Dialogues.Finishing;
4
- using DREditor.EventObjects;
5
- using DREditor.Fading;
6
- using DREditor.Services;
7
- using System.Collections;
8
- using UnityEngine;
9
- using UnityEngine.EventSystems;
10
-
11
- namespace DREditor.UI.SavingLoading
12
- {
13
- /// <summary>
14
- ///
15
- /// </summary>
16
- [ClassHeader("")]
17
- public class ReturnToMenuOnPauseMenu : ReturnToMenuHandler
18
- {
19
- /// <summary>
20
- ///
21
- /// </summary>
22
- [Header("")]
23
- [Divider]
24
- [Tooltip("")]
25
- [SerializeField] protected BoolWithEvent inInstant = null;
26
-
27
- /// <summary>
28
- ///
29
- /// </summary>
30
- [Tooltip("")]
31
- [SerializeField] protected BoolWithEvent inDialogue = null;
32
-
33
- /// <summary>
34
- ///
35
- /// </summary>
36
- [Tooltip("")]
37
- [SerializeField] protected BoolWithEvent inTrialMode = null;
38
-
39
-
40
- /// <summary>
41
- ///
42
- /// </summary>
43
- [Header("")]
44
- [Divider]
45
- [Tooltip("")]
46
- [SerializeField] protected float fadeOutDuration = 0.3f;
47
-
48
-
49
- /// <summary>
50
- ///
51
- /// </summary>
52
- protected IDialogueFinisher DialogueFinisher => ServiceLocator.GetService<IDialogueManager>().GetFinisher();
53
-
54
-
55
- /// <summary>
56
- ///
57
- /// </summary>
58
- /// <remarks></remarks>
59
- public virtual void ReturnToMenu()
60
- {
61
- EventSystem.current.SetSelectedGameObject(null);
62
-
63
- ServiceLocator.GetService<IDialogueManager>().GetManagerComponent<DialogueDataClearer>().ClearSaveData();
64
-
65
- StartCoroutine(FadeToMenu());
66
- }
67
-
68
- /// <summary>
69
- ///
70
- /// </summary>
71
- /// <returns></returns>
72
- /// <remarks></remarks>
73
- public virtual IEnumerator FadeToMenu()
74
- {
75
- yield return ServiceLocator.GetService<GlobalFade>().FadeToRoutine(fadeOutDuration);
76
-
77
- if (inDialogue.Value && !inTrialMode.Value)
78
- SubscribeToMenuOnDialogueFinish();
79
- else
80
- base.ReturnToMenu();
81
- }
82
-
83
- /// <summary>
84
- ///
85
- /// </summary>
86
- protected virtual void SubscribeToMenuOnDialogueFinish()
87
- {
88
- if (inInstant.Value && DialogueFinisher is IInstantDialogueFinisherSubscriber subscriber)
89
- subscriber.SubscribeToOnFinishOfInstantDialogue(ToMenuOnDialogueFinish);
90
- else if (!inInstant.Value)
91
- DialogueFinisher.SubscribeToOnFinishOfDialogue(ToMenuOnDialogueFinish);
92
- else
93
- UnityEngine.Debug.LogWarning("ALERT: Game is in Instant state and active dialogue finisher is not an " +
94
- nameof(IInstantDialogueFinisherSubscriber) + ". Player may not return to menu, contact Sweden for support.");
95
-
96
- CallToTitleScreen();
97
-
98
- Time.timeScale = 1;
99
- }
100
-
101
- /// <summary>
102
- ///
103
- /// </summary>
104
- protected virtual void ToMenuOnDialogueFinish()
105
- {
106
- DialogueFinisher.UnsubscribeToOnFinishOfDialogue(ToMenuOnDialogueFinish);
107
-
108
- if (DialogueFinisher is IInstantDialogueFinisherSubscriber subscriber)
109
- subscriber.UnsubscribeToOnFinishOfInstantDialogue(ToMenuOnDialogueFinish);
110
-
111
- LoadToScene();
112
- }
113
- }
1
+ //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
+ using DREditor.Dialogues;
3
+ using DREditor.Dialogues.Finishing;
4
+ using DREditor.EventObjects;
5
+ using DREditor.Fading;
6
+ using DREditor.Services;
7
+ using System.Collections;
8
+ using UnityEngine;
9
+ using UnityEngine.EventSystems;
10
+
11
+ namespace DREditor.UI.SavingLoading
12
+ {
13
+ /// <summary>
14
+ ///
15
+ /// </summary>
16
+ [ClassHeader("")]
17
+ public class ReturnToMenuOnPauseMenu : ReturnToMenuHandler
18
+ {
19
+ /// <summary>
20
+ ///
21
+ /// </summary>
22
+ [Header("")]
23
+ [Divider]
24
+ [Tooltip("")]
25
+ [SerializeField] protected BoolWithEvent inInstant = null;
26
+
27
+ /// <summary>
28
+ ///
29
+ /// </summary>
30
+ [Tooltip("")]
31
+ [SerializeField] protected BoolWithEvent inDialogue = null;
32
+
33
+ /// <summary>
34
+ ///
35
+ /// </summary>
36
+ [Tooltip("")]
37
+ [SerializeField] protected BoolWithEvent inTrialMode = null;
38
+
39
+
40
+ /// <summary>
41
+ ///
42
+ /// </summary>
43
+ [Header("")]
44
+ [Divider]
45
+ [Tooltip("")]
46
+ [SerializeField] protected float fadeOutDuration = 0.3f;
47
+
48
+
49
+ /// <summary>
50
+ ///
51
+ /// </summary>
52
+ protected IDialogueFinisher DialogueFinisher => ServiceLocator.GetService<IDialogueManager>().GetFinisher();
53
+
54
+
55
+ /// <summary>
56
+ ///
57
+ /// </summary>
58
+ /// <remarks></remarks>
59
+ public virtual void ReturnToMenu()
60
+ {
61
+ EventSystem.current.SetSelectedGameObject(null);
62
+
63
+ ServiceLocator.GetService<IDialogueManager>().GetManagerComponent<DialogueDataClearer>().ClearSaveData();
64
+
65
+ StartCoroutine(FadeToMenu());
66
+ }
67
+
68
+ /// <summary>
69
+ ///
70
+ /// </summary>
71
+ /// <returns></returns>
72
+ /// <remarks></remarks>
73
+ public virtual IEnumerator FadeToMenu()
74
+ {
75
+ yield return ServiceLocator.GetService<GlobalFade>().FadeToRoutine(fadeOutDuration);
76
+
77
+ if (inDialogue.Value && !inTrialMode.Value)
78
+ SubscribeToMenuOnDialogueFinish();
79
+ else
80
+ base.ReturnToMenu();
81
+ }
82
+
83
+ /// <summary>
84
+ ///
85
+ /// </summary>
86
+ protected virtual void SubscribeToMenuOnDialogueFinish()
87
+ {
88
+ if (inInstant.Value && DialogueFinisher is IInstantDialogueFinisherSubscriber subscriber)
89
+ subscriber.SubscribeToOnFinishOfInstantDialogue(ToMenuOnDialogueFinish);
90
+ else if (!inInstant.Value)
91
+ DialogueFinisher.SubscribeToOnFinishOfDialogue(ToMenuOnDialogueFinish);
92
+ else
93
+ UnityEngine.Debug.LogWarning("ALERT: Game is in Instant state and active dialogue finisher is not an " +
94
+ nameof(IInstantDialogueFinisherSubscriber) + ". Player may not return to menu, contact Sweden for support.");
95
+
96
+ CallToTitleScreen();
97
+
98
+ Time.timeScale = 1;
99
+ }
100
+
101
+ /// <summary>
102
+ ///
103
+ /// </summary>
104
+ protected virtual void ToMenuOnDialogueFinish()
105
+ {
106
+ DialogueFinisher.UnsubscribeToOnFinishOfDialogue(ToMenuOnDialogueFinish);
107
+
108
+ if (DialogueFinisher is IInstantDialogueFinisherSubscriber subscriber)
109
+ subscriber.UnsubscribeToOnFinishOfInstantDialogue(ToMenuOnDialogueFinish);
110
+
111
+ LoadToScene();
112
+ }
113
+ }
114
114
  }
@@ -1,11 +1,11 @@
1
- fileFormatVersion: 2
2
- guid: 11d982abea6c69d4b87211000bfbd7fb
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: 11d982abea6c69d4b87211000bfbd7fb
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant: