Skip to content

Commit 4592103

Browse files
authored
Merge pull request #14 from coryleach/dev
major updates
2 parents f2f37e4 + 135f923 commit 4592103

51 files changed

Lines changed: 930 additions & 368 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Demo/Demo.unitypackage

171 Bytes
Binary file not shown.

Editor/PanelStackSystemEditor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace Gameframe.GUI.PanelSystem
66
{
7-
[CustomEditor(typeof(PanelStackSystem))]
7+
[CustomEditor(typeof(ScriptablePanelStackSystem))]
88
public class PanelStackSystemEditor : UnityEditor.Editor
99
{
1010
public override bool RequiresConstantRepaint()
@@ -18,7 +18,7 @@ public override void OnInspectorGUI()
1818
EditorGUILayout.BeginVertical("box");
1919
EditorGUILayout.LabelField("Current Stack");
2020

21-
var stack = (PanelStackSystem) target;
21+
var stack = (ScriptablePanelStackSystem) target;
2222
for (int i = stack.Count-1; i >= 0; i--)
2323
{
2424
EditorGUILayout.BeginVertical("box");

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,22 @@
1616
This is a library of GUI helpers for UGUI
1717
Includes a panel system that implements a navigation stack.
1818
Includes a scene transition system.
19-
Includes a shader for blurring the background of UI panels.
19+
Includes a SRP shader for blurring the background of UI panels.
2020

2121
## Quick Package Install
2222

2323
#### Using UnityPackageManager (for Unity 2019.3 or later)
2424
Open the package manager window (menu: Window > Package Manager)<br/>
2525
Select "Add package from git URL...", fill in the pop-up with the following link:<br/>
26-
https://github.com/coryleach/UnityGUI.git#2.0.1<br/>
26+
https://github.com/coryleach/UnityGUI.git#3.0.0<br/>
2727

2828
#### Using UnityPackageManager (for Unity 2019.1 or later)
2929

3030
Find the manifest.json file in the Packages folder of your project and edit it to look like this:
3131
```js
3232
{
3333
"dependencies": {
34-
"com.gameframe.gui": "https://github.com/coryleach/UnityGUI.git#2.0.1",
34+
"com.gameframe.gui": "https://github.com/coryleach/UnityGUI.git#3.0.0",
3535
...
3636
},
3737
}
Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
1-
using System.Threading.Tasks;
2-
3-
namespace Gameframe.GUI.PanelSystem
1+
namespace Gameframe.GUI.PanelSystem
42
{
5-
public interface IPanelStackController
3+
public interface IPanelStackController : IPanelSystemController
64
{
7-
/// <summary>
8-
/// Transitions views to reflect state of the panel stack system
9-
/// </summary>
10-
/// <returns>Task that completes when transition is finished</returns>
11-
Task TransitionAsync();
125
}
136
}

Runtime/PanelSystem/IPanelStackSystem.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@
22

33
namespace Gameframe.GUI.PanelSystem
44
{
5-
public interface IPanelStackSystem : IEnumerable<IPanelViewController>
5+
public interface IPanelStackSystem : IEnumerable<IPanelViewController>, IPanelSystem
66
{
77
int Count { get; }
88
IPanelViewController this[int index] { get; }
9-
void AddController(IPanelStackController controller);
10-
void RemoveController(IPanelStackController controller);
119
void Push(IPanelViewController controller);
1210
void Pop();
1311
}
Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
using System.Threading.Tasks;
2-
1+

32
namespace Gameframe.GUI.PanelSystem
43
{
5-
public interface IPanelSwapController
4+
public interface IPanelSwapController : IPanelSystemController
65
{
7-
Task TransitionAsync();
8-
}
6+
}
97
}
10-

Runtime/PanelSystem/IPanelSwapSystem.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,10 @@
22

33
namespace Gameframe.GUI.PanelSystem
44
{
5-
public interface IPanelSwapSystem
5+
public interface IPanelSwapSystem : IPanelSystem
66
{
77
IPanelViewController CurrentViewController { get; }
8-
void AddController(IPanelSwapController controller);
9-
void RemoveController(IPanelSwapController controller);
108
void Show(IPanelViewController panelViewController);
119
Task ShowAsync(IPanelViewController panelViewController);
1210
}
1311
}
14-
15-
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
namespace Gameframe.GUI.PanelSystem
2+
{
3+
public interface IPanelSystem
4+
{
5+
void AddController(IPanelSystemController controller);
6+
void RemoveController(IPanelSystemController controller);
7+
}
8+
}

Runtime/PanelSystem/IPanelSystem.cs.meta

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
using System.Threading.Tasks;
2+
3+
namespace Gameframe.GUI.PanelSystem
4+
{
5+
public interface IPanelSystemController
6+
{
7+
/// <summary>
8+
/// Transitions views to reflect state of the panel system
9+
/// </summary>
10+
/// <returns>Task that completes when transition is finished</returns>
11+
Task TransitionAsync();
12+
}
13+
}

0 commit comments

Comments
 (0)