Skip to content

Commit

Permalink
refactor : updates for 0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
saszer committed May 19, 2022
1 parent 7ca150f commit 8a10475
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 24 deletions.
13 changes: 4 additions & 9 deletions Editor/NFTPortSettings.cs
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
using System;
using System.Drawing;
using System.IO;
using UnityEngine;
using UnityEditor;
using Newtonsoft.Json;
using UnityEditor.PackageManager;
using UnityEngine.SocialPlatforms;

namespace NFTPort.Editor
{ using Internal;
[System.Serializable]
public class NFTPortSettings : EditorWindow
{

static string myAPIString = PortConstants.DefaultAPIKey;
static string myAPIString = PortConstants.DefaultAPIKey;

protected static Type WindowType = typeof(NFTPortSettings);
private static bool windowopen = false;
Expand Down Expand Up @@ -82,12 +78,13 @@ void OnGUI()

if (userModel != null)
{
EditorGUILayout.LabelField(" Welcome " + userModel.profile.name);
EditorGUILayout.LabelField(" Welcome " + userModel.profile.name + ".");
}

EditorGUILayout.LabelField("");

GuiLine();

GUILayout.BeginHorizontal("box");
EditorGUILayout.LabelField("installed version: " + PkgInfo.GetPackageVer());

Expand Down Expand Up @@ -190,10 +187,8 @@ void WriteToUserPrefs()
static void UserStats()
{
userModel = null;
//User_Settings a = new User_Settings();
User_Settings
User_Settings
.Initialize(true)
// .OnError(error=> a.End())
.OnComplete(usermodel=> userModel = usermodel)
.Run();
}
Expand Down
11 changes: 0 additions & 11 deletions Runtime/Internal/models/MetadataToUpload_model.cs.meta

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
namespace NFTPort
{
[System.Serializable]
public class MetadataToUpload_model
public class Storage_MetadataToUpload_model
{
[Tooltip("Main NFT File URL, use 'Storage File Upload' to get url")]
public string file_url = "Required Field";
Expand Down

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

2 changes: 1 addition & 1 deletion Runtime/Storage_UploadFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public static Storage_UploadFile Initialize(bool destroyAtEnd = true)
return _this;
}

public Storage_UploadFile SetFilePatth(string _filePath)
public Storage_UploadFile SetFilePath(string _filePath)
{
filePath = _filePath;
return this;
Expand Down
4 changes: 2 additions & 2 deletions Runtime/Storage_UploadMetadata.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class Storage_UploadMetadata : MonoBehaviour
{
#region Parameter Defines

public MetadataToUpload_model metadata;
public Storage_MetadataToUpload_model metadata;

[Space(20)]
[ReadOnly]public float uploadProgress = 0;
Expand Down Expand Up @@ -87,7 +87,7 @@ public static Storage_UploadMetadata Initialize(bool destroyAtEnd = true)
/// Set MetaData properties, This will override any values set in metadata in the editor ≧◔◡◔≦ .
/// </summary>
/// <param name="MetadataToUpload"> metadata.</param>
public Storage_UploadMetadata SetMetadata(MetadataToUpload_model _metadata)
public Storage_UploadMetadata SetMetadata(Storage_MetadataToUpload_model _metadata)
{
metadata = _metadata;
return this;
Expand Down

0 comments on commit 8a10475

Please sign in to comment.