Skip to content

Commit

Permalink
feat: Overall style updates
Browse files Browse the repository at this point in the history
  • Loading branch information
saszer committed May 28, 2022
1 parent d4417db commit b5320ab
Show file tree
Hide file tree
Showing 25 changed files with 362 additions and 39 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ namespace NFTPort.Editor
using UnityEditor;
using Internal;

[CustomEditor(typeof(Product_Mint))]
public class Product_Mint_Editor : Editor
[CustomEditor(typeof(Mint_Custom))]
public class Mint_Custom_Editor : Editor
{
public override void OnInspectorGUI()
{

Product_Mint myScript = (Product_Mint)target;
Mint_Custom myScript = (Mint_Custom)target;


Texture banner = Resources.Load<Texture>("c_productmint");
Expand Down
File renamed without changes.
33 changes: 33 additions & 0 deletions Editor/Mint_viaURL_Editor.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
using UnityEngine;

namespace NFTPort.Editor
{
using UnityEditor;
using Internal;

[CustomEditor(typeof(Mint_URL))]
public class Mint_viaURL_Editor : Editor
{
public override void OnInspectorGUI()
{

Mint_URL myScript = (Mint_URL)target;


Texture banner = Resources.Load<Texture>("c_pminteasyURL");
GUILayout.BeginHorizontal();
GUILayout.Box(banner);
GUILayout.EndHorizontal();

if (GUILayout.Button("MINT EET", GUILayout.Height(45)))
{
myScript.Run();
}

if(GUILayout.Button("View Documentation", GUILayout.Height(25)))
Application.OpenURL(PortConstants.Docs_Mint_URL);
DrawDefaultInspector();
}
}
}

11 changes: 11 additions & 0 deletions Editor/Mint_viaURL_Editor.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Editor/NFTPortSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,8 @@ static void ReadFromUserPrefs()
{
_userPrefs = JsonConvert.DeserializeObject<PortUser.UserPrefs>(targetFile.text);
myAPIString = _userPrefs.API_KEY;
PortUser.SetVersion(PkgInfo.GetPackageVer());
PortUser.SaveNewApi(myAPIString);
//PortUser.Initialise();
UserStats();
}
Expand Down
33 changes: 33 additions & 0 deletions Editor/NFTs_OfContract_Editor.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
using UnityEngine;

namespace NFTPort.Editor
{
using UnityEditor;
using Internal;

[CustomEditor(typeof(NFTs_OfAContract))]
public class NFTs_OfContract_Editor : Editor
{
public override void OnInspectorGUI()
{

NFTs_OfAContract myScript = (NFTs_OfAContract)target;


Texture banner = Resources.Load<Texture>("c_nftdata_contract");
GUILayout.BeginHorizontal();
GUILayout.Box(banner);
GUILayout.EndHorizontal();

if (GUILayout.Button("GET NFTs of Contract", GUILayout.Height(45)))
{
myScript.Run();
}

if(GUILayout.Button("View Documentation", GUILayout.Height(25)))
Application.OpenURL(PortConstants.NFTs_OfContract);
DrawDefaultInspector();
}
}
}

11 changes: 11 additions & 0 deletions Editor/NFTs_OfContract_Editor.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions Editor/Resources/banner.png

This file was deleted.

3 changes: 3 additions & 0 deletions Editor/Resources/banner.psd
Git LFS file not shown

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Editor/Resources/c_nftdata_contract.psd
Git LFS file not shown
98 changes: 98 additions & 0 deletions Editor/Resources/c_nftdata_contract.psd.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Editor/Resources/c_pminteasyURL.psd
Git LFS file not shown
98 changes: 98 additions & 0 deletions Editor/Resources/c_pminteasyURL.psd.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b5320ab

Please sign in to comment.