diff --git a/Assets/Editor.meta b/Assets/Editor.meta new file mode 100644 index 00000000..cd975ff3 --- /dev/null +++ b/Assets/Editor.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 97c5a06ee48dbb24aa10b7d0bf6a7136 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Editor/bread2unity.meta b/Assets/Editor/bread2unity.meta new file mode 100644 index 00000000..2ced3e07 --- /dev/null +++ b/Assets/Editor/bread2unity.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 375dce47d61a68447a1b4813869b10b2 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Editor/bread2unity/Bread2Unity.cs b/Assets/Editor/bread2unity/Bread2Unity.cs new file mode 100644 index 00000000..64686238 --- /dev/null +++ b/Assets/Editor/bread2unity/Bread2Unity.cs @@ -0,0 +1,43 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; +using UnityEditor; + +using Starpelly; + +namespace Bread2Unity +{ + public class Bread2Unity : EditorWindow + { + public const string editorFolderName = "bread2unity"; + + [MenuItem("Tools/bread2unity")] + public static void ShowWindow() + { + EditorWindow.GetWindow("bread2unity"); + } + + public void OnGUI() + { + Texture logo = (Texture)AssetDatabase.LoadAssetAtPath($"Assets/Editor/{editorFolderName}/logo.png", typeof(Texture)); + GUILayout.Box(logo, new GUILayoutOption[] { GUILayout.ExpandWidth(true), GUILayout.Height(60) }); + GUILayout.Space(30); + + GUIStyle desc = EditorStyles.label; + desc.wordWrap = true; + desc.fontStyle = FontStyle.BoldAndItalic; + + + GUILayout.Box("bread2unity is a tool built with the purpose of converting RH Megamix and Fever animations to unity. And to generally speed up development by a lot." + + "\nCreated by Starpelly.", desc); + + GUILayout.Space(120); + GUILayout.BeginHorizontal(); + if (GUILayout.Button("Bread Download", GUILayout.Height(40))) + { + Application.OpenURL("https://github.com/rhmodding/bread"); + } + GUILayout.EndHorizontal(); + } + } +} \ No newline at end of file diff --git a/Assets/Editor/bread2unity/Bread2Unity.cs.meta b/Assets/Editor/bread2unity/Bread2Unity.cs.meta new file mode 100644 index 00000000..9726922c --- /dev/null +++ b/Assets/Editor/bread2unity/Bread2Unity.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0967d3b57ef5e5d46965e261ead79e15 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Editor/bread2unity/logo.png b/Assets/Editor/bread2unity/logo.png new file mode 100644 index 00000000..06570852 Binary files /dev/null and b/Assets/Editor/bread2unity/logo.png differ diff --git a/Assets/Editor/bread2unity/logo.png.meta b/Assets/Editor/bread2unity/logo.png.meta new file mode 100644 index 00000000..00187f00 --- /dev/null +++ b/Assets/Editor/bread2unity/logo.png.meta @@ -0,0 +1,120 @@ +fileFormatVersion: 2 +guid: bca6955e61a73c44caba7d24d46c78f5 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 11 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 0 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 1 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 8 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 2 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 2 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 2 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: 5e97eb03825dee720800000000000000 + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Resources/Games/spaceball.prefab b/Assets/Resources/Games/spaceball.prefab index a86dd2ad..d89f343c 100644 --- a/Assets/Resources/Games/spaceball.prefab +++ b/Assets/Resources/Games/spaceball.prefab @@ -160,8 +160,6 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 9d5579033013148498d767bb11e43f60, type: 3} m_Name: m_EditorClassIdentifier: - EligibleHits: [] - currentHitInList: 0 costume: 0 PlayerSprite: {fileID: 6584942080188713330} PlayerSpriteSheets: @@ -728,10 +726,27 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 49dd9168d46a2ad41a47802c26b5dbb3, type: 3} m_Name: m_EditorClassIdentifier: + inList: 0 + lastState: 0 + state: + gameObject: {fileID: 0} + early: 0 + perfect: 0 + late: 0 + createBeat: 0 + isEligible: 0 + eligibleHitsList: [] + aceTimes: 0 startBeat: 0 + anim: {fileID: 0} high: 0 Holder: {fileID: 6584942078379596565} Sprite: {fileID: 6584942078979342752} + hit: 0 + hitBeat: 0 + hitPos: {x: 0, y: 0, z: 0} + hitRot: 0 + randomEndPosX: 0 --- !u!1 &6584942079616426642 GameObject: m_ObjectHideFlags: 0