Skip to content

Commit

Permalink
feat: New Feature - Update NFT / Dynamic NFTs. Useful in making evolu…
Browse files Browse the repository at this point in the history
…tionary NFTs/ -Game NFT Assets like characters, fusions, evolutions - pokemons, potions, game character utilities etc.
  • Loading branch information
saszer committed Aug 26, 2022
1 parent 305a0cd commit c6cf6da
Show file tree
Hide file tree
Showing 25 changed files with 646 additions and 50 deletions.
101 changes: 56 additions & 45 deletions Editor/FeatureSpawner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,49 @@ public class FeatureSpawner : EditorWindow
//GameObject
private const string GameObjMenu = "GameObject/NFTPort/";

[MenuItem(PortConstants.BaseFeatureSpawnerMenu + PortConstants.FeatureName_NFT_Details)]
[MenuItem(GameObjMenu + PortConstants.FeatureName_NFT_Details)]
static void Spawn_NFTDetails()
[MenuItem(PortConstants.BaseFeatureSpawnerMenu + PortConstants.FeatureName_AssetDownloader)]
[MenuItem(GameObjMenu + PortConstants.FeatureName_AssetDownloader)]
static void Spawn_AssetDownloader()
{
Selection.activeGameObject= new GameObject(PortConstants.FeatureName_NFT_Details).AddComponent<NFT_Details>().gameObject;
Selection.activeGameObject= new GameObject(PortConstants.FeatureName_AssetDownloader).AddComponent<AssetDownloader>().gameObject;
}

[MenuItem(PortConstants.BaseFeatureSpawnerMenu + PortConstants.FeatureName_NFTs_OfAccount)]
[MenuItem(GameObjMenu + PortConstants.FeatureName_NFTs_OfAccount)]
static void Spawn_NFtsOfAccount()
[MenuItem(PortConstants.BaseFeatureSpawnerMenu + PortConstants.FeatureName_ConnectUserWallet)]
[MenuItem(GameObjMenu + PortConstants.FeatureName_ConnectUserWallet)]
static void Spawn_ConnectWallet()
{
Selection.activeGameObject= new GameObject(PortConstants.FeatureName_NFTs_OfAccount).AddComponent<NFTs_OwnedByAnAccount>().gameObject;
Selection.activeGameObject= new GameObject(PortConstants.FeatureName_ConnectUserWallet).AddComponent<ConnectPlayerWallet>().gameObject;
}

[MenuItem(PortConstants.BaseFeatureSpawnerMenu + PortConstants.FeatureName_Update_NFT)]
[MenuItem(GameObjMenu + PortConstants.FeatureName_Update_NFT)]
static void Update_NFT()
{
Selection.activeGameObject= new GameObject(PortConstants.FeatureName_Update_NFT).AddComponent<Update_NFT>().gameObject;
}

[MenuItem(PortConstants.BaseFeatureSpawnerMenu + PortConstants.FeatureName_NFTs_OfContract)]
[MenuItem(GameObjMenu + PortConstants.FeatureName_NFTs_OfContract)]
static void Spawn_NFtsOfContract()
[MenuItem(PortConstants.BaseFeatureSpawnerMenu + PortConstants.FeatureName_Mint_Custom)]
[MenuItem(GameObjMenu + PortConstants.FeatureName_Mint_Custom)]
static void Spawn_Mint_Custom()
{
Selection.activeGameObject= new GameObject(PortConstants.FeatureName_NFTs_OfContract).AddComponent<NFTs_OfAContract>().gameObject;
Selection.activeGameObject= new GameObject(PortConstants.FeatureName_Mint_Custom).AddComponent<Mint_Custom>().gameObject;
}

[MenuItem(PortConstants.BaseFeatureSpawnerMenu + PortConstants.FeatureName_Mint_File)]
[MenuItem(GameObjMenu + PortConstants.FeatureName_Mint_File)]
static void Spawn_Mint_File()
{
Selection.activeGameObject= new GameObject(PortConstants.FeatureName_Mint_File).AddComponent<Mint_File>().gameObject;
}

[MenuItem(PortConstants.BaseFeatureSpawnerMenu + PortConstants.FeatureName_Mint_URL)]
[MenuItem(GameObjMenu + PortConstants.FeatureName_Mint_URL)]
static void Spawn_Mint_URL()
{
Selection.activeGameObject= new GameObject(PortConstants.FeatureName_Mint_URL).AddComponent<Mint_URL>().gameObject;
}


[MenuItem(PortConstants.BaseFeatureSpawnerMenu + PortConstants.FeatureName_StorageFiles)]
[MenuItem(GameObjMenu + PortConstants.FeatureName_StorageFiles)]
static void Spawn_StorageFile()
Expand All @@ -45,42 +67,30 @@ static void Spawn_StorageMetadata()
{
Selection.activeGameObject= new GameObject(PortConstants.FeatureName_StorageMetadata).AddComponent<Storage_UploadMetadata>().gameObject;
}


[MenuItem(PortConstants.BaseFeatureSpawnerMenu + PortConstants.FeatureName_AssetDownloader)]
[MenuItem(GameObjMenu + PortConstants.FeatureName_AssetDownloader)]
static void Spawn_AssetDownloader()
{
Selection.activeGameObject= new GameObject(PortConstants.FeatureName_AssetDownloader).AddComponent<AssetDownloader>().gameObject;
}

[MenuItem(PortConstants.BaseFeatureSpawnerMenu + PortConstants.FeatureName_ConnectUserWallet)]
[MenuItem(GameObjMenu + PortConstants.FeatureName_ConnectUserWallet)]
static void Spawn_ConnectWallet()
{
Selection.activeGameObject= new GameObject(PortConstants.FeatureName_ConnectUserWallet).AddComponent<ConnectPlayerWallet>().gameObject;
}

[MenuItem(PortConstants.BaseFeatureSpawnerMenu + PortConstants.FeatureName_Mint_Custom)]
[MenuItem(GameObjMenu + PortConstants.FeatureName_Mint_Custom)]
static void Spawn_Mint_Custom()
[MenuItem(PortConstants.BaseFeatureSpawnerMenu + PortConstants.FeatureName_NFT_Details)]
[MenuItem(GameObjMenu + PortConstants.FeatureName_NFT_Details)]
static void Spawn_NFTDetails()
{
Selection.activeGameObject= new GameObject(PortConstants.FeatureName_Mint_Custom).AddComponent<Mint_Custom>().gameObject;
Selection.activeGameObject= new GameObject(PortConstants.FeatureName_NFT_Details).AddComponent<NFT_Details>().gameObject;
}

[MenuItem(PortConstants.BaseFeatureSpawnerMenu + PortConstants.FeatureName_Mint_URL)]
[MenuItem(GameObjMenu + PortConstants.FeatureName_Mint_URL)]
static void Spawn_Mint_URL()
[MenuItem(PortConstants.BaseFeatureSpawnerMenu + PortConstants.FeatureName_NFTs_OfContract)]
[MenuItem(GameObjMenu + PortConstants.FeatureName_NFTs_OfContract)]
static void Spawn_NFtsOfContract()
{
Selection.activeGameObject= new GameObject(PortConstants.FeatureName_Mint_URL).AddComponent<Mint_URL>().gameObject;
Selection.activeGameObject= new GameObject(PortConstants.FeatureName_NFTs_OfContract).AddComponent<NFTs_OfAContract>().gameObject;
}

[MenuItem(PortConstants.BaseFeatureSpawnerMenu + PortConstants.FeatureName_Mint_File)]
[MenuItem(GameObjMenu + PortConstants.FeatureName_Mint_File)]
static void Spawn_Mint_File()
[MenuItem(PortConstants.BaseFeatureSpawnerMenu + PortConstants.FeatureName_NFTs_OfAccount)]
[MenuItem(GameObjMenu + PortConstants.FeatureName_NFTs_OfAccount)]
static void Spawn_NFtsOfAccount()
{
Selection.activeGameObject= new GameObject(PortConstants.FeatureName_Mint_File).AddComponent<Mint_File>().gameObject;
Selection.activeGameObject= new GameObject(PortConstants.FeatureName_NFTs_OfAccount).AddComponent<NFTs_OwnedByAnAccount>().gameObject;
}

/*
[MenuItem(PortConstants.BaseFeatureSpawnerMenu + PortConstants.FeatureName_Deploy)]
[MenuItem(GameObjMenu + PortConstants.FeatureName_Deploy)]
Expand All @@ -89,26 +99,27 @@ static void Spawn_Deploy()
Selection.activeGameObject= new GameObject(PortConstants.FeatureName_Deploy).AddComponent<Deploy>().gameObject;
}
*/

[MenuItem(PortConstants.BaseFeatureSpawnerMenu + PortConstants.FeatureName_Txn_Account)]
[MenuItem(GameObjMenu + PortConstants.FeatureName_Txn_Account)]
static void Spawn_Txn_Account()
{
Selection.activeGameObject= new GameObject(PortConstants.FeatureName_Txn_Account).AddComponent<Txn_Account>().gameObject;
}

[MenuItem(PortConstants.BaseFeatureSpawnerMenu + PortConstants.FeatureName_Txn_NFT)]
[MenuItem(GameObjMenu + PortConstants.FeatureName_Txn_NFT)]
static void Spawn_Txn_NFT()
{
Selection.activeGameObject= new GameObject(PortConstants.FeatureName_Txn_NFT).AddComponent<Txn_NFT>().gameObject;
}

[MenuItem(PortConstants.BaseFeatureSpawnerMenu + PortConstants.FeatureName_Txn_Collection)]
[MenuItem(GameObjMenu + PortConstants.FeatureName_Txn_Collection)]
static void Spawn_Txn_Collection()
{
Selection.activeGameObject= new GameObject(PortConstants.FeatureName_Txn_Collection).AddComponent<Txn_Collection>().gameObject;
}

[MenuItem(PortConstants.BaseFeatureSpawnerMenu + PortConstants.FeatureName_Txn_NFT)]
[MenuItem(GameObjMenu + PortConstants.FeatureName_Txn_NFT)]
static void Spawn_Txn_NFT()
{
Selection.activeGameObject= new GameObject(PortConstants.FeatureName_Txn_NFT).AddComponent<Txn_NFT>().gameObject;
}



Expand Down
5 changes: 4 additions & 1 deletion Editor/NFTPortSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,10 @@ void OnGUI()
if (GUILayout.Button("Star Github", GUILayout.Height(22)))
Application.OpenURL(PortConstants.Github);

if (GUILayout.Button("Go to My Dashboard", GUILayout.Height(22)))
if (GUILayout.Button("Whats New", GUILayout.Height(22)))
Application.OpenURL(PortConstants.ChangeLog);

if (GUILayout.Button("My Dashboard", GUILayout.Height(22)))
Application.OpenURL(PortConstants.Dashboard);

GUILayout.EndHorizontal();
Expand Down
3 changes: 3 additions & 0 deletions Editor/Resources/c_UPDATEtmint.psd
Git LFS file not shown
134 changes: 134 additions & 0 deletions Editor/Resources/c_UPDATEtmint.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_product_update.psd
Git LFS file not shown
Loading

0 comments on commit c6cf6da

Please sign in to comment.