adding in some needed packages
This commit is contained in:
parent
9e739f5dc8
commit
aba5310742
1012 changed files with 494191 additions and 1 deletions
37
Assets/Bremsengine/Credits Assets/Editor/CreditsEditor.cs
Normal file
37
Assets/Bremsengine/Credits Assets/Editor/CreditsEditor.cs
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Bremsengine
|
||||
{
|
||||
#if UNITY_EDITOR
|
||||
public class CreditsEditor : EditorWindow
|
||||
{
|
||||
static GameCreditsSO gameCredits;
|
||||
static string creditTitle;
|
||||
static string creditCreator;
|
||||
static string creditWebsite;
|
||||
static int priority;
|
||||
[MenuItem("Bremsengine/Credits Adder")]
|
||||
static void Init()
|
||||
{
|
||||
EditorWindow window = GetWindow(typeof(CreditsEditor));
|
||||
}
|
||||
private void OnGUI()
|
||||
{
|
||||
gameCredits = EditorGUILayout.ObjectField("Game Credits Selection", gameCredits, typeof(GameCreditsSO), false) as GameCreditsSO;
|
||||
creditTitle = EditorGUILayout.TextField("Credits Title: ", creditTitle);
|
||||
creditCreator = EditorGUILayout.TextField("Creator: ", creditCreator);
|
||||
creditWebsite = EditorGUILayout.TextField("Website: ", creditWebsite);
|
||||
priority = EditorGUILayout.IntSlider(priority, -500, 500);
|
||||
if (GUILayout.Button("Create"))
|
||||
{
|
||||
SendInfo();
|
||||
}
|
||||
}
|
||||
private static void SendInfo()
|
||||
{
|
||||
CreditsSO.Create(gameCredits, creditTitle, creditCreator, creditWebsite, priority);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue