diff --git a/SCHIZO/Patches/FixUnlockSpriteScalePatch.cs b/SCHIZO/Patches/FixUnlockSpriteScalePatch.cs new file mode 100644 index 00000000..8deddda3 --- /dev/null +++ b/SCHIZO/Patches/FixUnlockSpriteScalePatch.cs @@ -0,0 +1,22 @@ +using HarmonyLib; +using UnityEngine; + +namespace SCHIZO.Patches; + +[HarmonyPatch] +public static class FixUnlockSpriteScalePatch +{ + [HarmonyPatch(typeof(uGUI_PopupNotificationDefault), nameof(uGUI_PopupNotificationDefault.OnShow))] + [HarmonyPostfix] + public static void UpdateSpriteRect(uGUI_PopupNotificationDefault __instance) + { + // basegame sprites: Center: (0.0, 0.0, 0.0), Extents: (1.3, 0.6, 0.1) + // (example) truckersfm sprite: Center: (0.0, 0.0, 0.0), Extents: (2.6, 2.6, 0.1) + + float width = 256f * 1.3f / __instance.image.sprite.bounds.extents.x; + float offsetOffset = (256 - width) / 2; + + __instance.image.rectTransform.offsetMin = new Vector2(2 + offsetOffset, __instance.image.rectTransform.offsetMin.y); + __instance.image.rectTransform.offsetMax = new Vector2(258 - offsetOffset, __instance.image.rectTransform.offsetMax.y); + } +} diff --git a/SCHIZO/Resources/AssetBundles/Assets.cs b/SCHIZO/Resources/AssetBundles/Assets.cs index 653182b8..c60b19d9 100644 --- a/SCHIZO/Resources/AssetBundles/Assets.cs +++ b/SCHIZO/Resources/AssetBundles/Assets.cs @@ -12,7 +12,7 @@ namespace SCHIZO.Resources; public static class Assets { - private const int _rnd = 1026605148; + private const int _rnd = -2007508558; private static readonly UnityEngine.AssetBundle _a = ResourceManager.GetAssetBundle("assets"); diff --git a/SCHIZO/Resources/AssetBundles/assets b/SCHIZO/Resources/AssetBundles/assets index 02870b65..4c81244b 100644 Binary files a/SCHIZO/Resources/AssetBundles/assets and b/SCHIZO/Resources/AssetBundles/assets differ diff --git a/Unity/Assets/Mod/Jukebox/Cog Disk/Materials/disk image evil.mat b/Unity/Assets/Mod/Jukebox/Cog Disk/Materials/disk image evil.mat new file mode 100644 index 00000000..4897538b --- /dev/null +++ b/Unity/Assets/Mod/Jukebox/Cog Disk/Materials/disk image evil.mat @@ -0,0 +1,82 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 6 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: disk image evil + m_Shader: {fileID: 45, guid: 0000000000000000f000000000000000, type: 0} + m_ShaderKeywords: + m_LightmapFlags: 4 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailAlbedoMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _EmissionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 2800000, guid: 621d12f6ed2936842b2fb6ec8f860937, type: 3} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _SpecGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Floats: + - _BumpScale: 1 + - _Cutoff: 0.5 + - _DetailNormalMapScale: 1 + - _DstBlend: 0 + - _GlossMapScale: 1 + - _Glossiness: 0.024 + - _GlossyReflections: 1 + - _Metallic: 0.216 + - _Mode: 0 + - _OcclusionStrength: 1 + - _Parallax: 0.02 + - _SmoothnessTextureChannel: 0 + - _SpecularHighlights: 1 + - _SrcBlend: 1 + - _UVSec: 0 + - _ZWrite: 1 + m_Colors: + - _Color: {r: 1, g: 1, b: 1, a: 1} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} + - _SpecColor: {r: 0.2, g: 0.2, b: 0.2, a: 1} diff --git a/Unity/Assets/Mod/Jukebox/Cog Disk/Materials/disk image evil.mat.meta b/Unity/Assets/Mod/Jukebox/Cog Disk/Materials/disk image evil.mat.meta new file mode 100644 index 00000000..2bcfed53 --- /dev/null +++ b/Unity/Assets/Mod/Jukebox/Cog Disk/Materials/disk image evil.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 97d9e3f225b576e4a983453d10a2a051 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Unity/Assets/Mod/Jukebox/Cog Disk/Materials/disk image.mat b/Unity/Assets/Mod/Jukebox/Cog Disk/Materials/disk image.mat index d3ac35a2..3ebbc4dc 100644 --- a/Unity/Assets/Mod/Jukebox/Cog Disk/Materials/disk image.mat +++ b/Unity/Assets/Mod/Jukebox/Cog Disk/Materials/disk image.mat @@ -40,7 +40,7 @@ Material: m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _MainTex: - m_Texture: {fileID: 2800000, guid: 57b130c952dbc974f9c048e978e0d72f, type: 3} + m_Texture: {fileID: 2800000, guid: 621d12f6ed2936842b2fb6ec8f860937, type: 3} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _MetallicGlossMap: diff --git a/Unity/Assets/Mod/Jukebox/Cog Disk/Textures/Screenshot_18.png b/Unity/Assets/Mod/Jukebox/Cog Disk/Textures/Screenshot_18.png deleted file mode 100644 index 39e38d0e..00000000 Binary files a/Unity/Assets/Mod/Jukebox/Cog Disk/Textures/Screenshot_18.png and /dev/null differ diff --git a/Unity/Assets/Mod/Jukebox/Cog Disk/Textures/is-that-what-you-want-alex-1.jpg b/Unity/Assets/Mod/Jukebox/Cog Disk/Textures/is-that-what-you-want-alex-1.jpg new file mode 100644 index 00000000..a0b158ef Binary files /dev/null and b/Unity/Assets/Mod/Jukebox/Cog Disk/Textures/is-that-what-you-want-alex-1.jpg differ diff --git a/Unity/Assets/Mod/Jukebox/Cog Disk/Textures/is-that-what-you-want-alex-1.jpg.meta b/Unity/Assets/Mod/Jukebox/Cog Disk/Textures/is-that-what-you-want-alex-1.jpg.meta new file mode 100644 index 00000000..6fa55ad4 --- /dev/null +++ b/Unity/Assets/Mod/Jukebox/Cog Disk/Textures/is-that-what-you-want-alex-1.jpg.meta @@ -0,0 +1,92 @@ +fileFormatVersion: 2 +guid: 6b6f7c878ca9f444e8131d44acc100a3 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 11 + mipmaps: + mipMapMode: 0 + enableMipMap: 1 + 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 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 0 + wrapV: 0 + wrapW: 0 + nPOTScale: 1 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + 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: 0 + spriteTessellationDetail: -1 + textureType: 0 + textureShape: 1 + singleChannelComponent: 0 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + applyGammaDecoding: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Unity/Assets/Mod/Jukebox/Cog Disk/Textures/is-that-what-you-want-alex-2.jpg b/Unity/Assets/Mod/Jukebox/Cog Disk/Textures/is-that-what-you-want-alex-2.jpg new file mode 100644 index 00000000..1efe5d7f Binary files /dev/null and b/Unity/Assets/Mod/Jukebox/Cog Disk/Textures/is-that-what-you-want-alex-2.jpg differ diff --git a/Unity/Assets/Mod/Jukebox/Cog Disk/Textures/Screenshot_18.png.meta b/Unity/Assets/Mod/Jukebox/Cog Disk/Textures/is-that-what-you-want-alex-2.jpg.meta similarity index 98% rename from Unity/Assets/Mod/Jukebox/Cog Disk/Textures/Screenshot_18.png.meta rename to Unity/Assets/Mod/Jukebox/Cog Disk/Textures/is-that-what-you-want-alex-2.jpg.meta index 4410d12a..dfc04679 100644 --- a/Unity/Assets/Mod/Jukebox/Cog Disk/Textures/Screenshot_18.png.meta +++ b/Unity/Assets/Mod/Jukebox/Cog Disk/Textures/is-that-what-you-want-alex-2.jpg.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 57b130c952dbc974f9c048e978e0d72f +guid: 621d12f6ed2936842b2fb6ec8f860937 TextureImporter: internalIDToNameTable: [] externalObjects: {} diff --git a/Unity/Assets/Mod/Jukebox/Cog Disk/evil cog disk.prefab b/Unity/Assets/Mod/Jukebox/Cog Disk/evil cog disk.prefab new file mode 100644 index 00000000..ec081bcc --- /dev/null +++ b/Unity/Assets/Mod/Jukebox/Cog Disk/evil cog disk.prefab @@ -0,0 +1,76 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1001 &4775763159904995304 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 4691052849724364637, guid: d22ec62c611ee7545b0126d2a612b118, + type: 3} + propertyPath: m_Materials.Array.data[0] + value: + objectReference: {fileID: 2100000, guid: 97d9e3f225b576e4a983453d10a2a051, type: 2} + - target: {fileID: 5859987316805233714, guid: d22ec62c611ee7545b0126d2a612b118, + type: 3} + propertyPath: m_RootOrder + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5859987316805233714, guid: d22ec62c611ee7545b0126d2a612b118, + type: 3} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5859987316805233714, guid: d22ec62c611ee7545b0126d2a612b118, + type: 3} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5859987316805233714, guid: d22ec62c611ee7545b0126d2a612b118, + type: 3} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5859987316805233714, guid: d22ec62c611ee7545b0126d2a612b118, + type: 3} + propertyPath: m_LocalRotation.w + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 5859987316805233714, guid: d22ec62c611ee7545b0126d2a612b118, + type: 3} + propertyPath: m_LocalRotation.x + value: -0.5 + objectReference: {fileID: 0} + - target: {fileID: 5859987316805233714, guid: d22ec62c611ee7545b0126d2a612b118, + type: 3} + propertyPath: m_LocalRotation.y + value: -0.5 + objectReference: {fileID: 0} + - target: {fileID: 5859987316805233714, guid: d22ec62c611ee7545b0126d2a612b118, + type: 3} + propertyPath: m_LocalRotation.z + value: -0.5 + objectReference: {fileID: 0} + - target: {fileID: 5859987316805233714, guid: d22ec62c611ee7545b0126d2a612b118, + type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: -90 + objectReference: {fileID: 0} + - target: {fileID: 5859987316805233714, guid: d22ec62c611ee7545b0126d2a612b118, + type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5859987316805233714, guid: d22ec62c611ee7545b0126d2a612b118, + type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: -90 + objectReference: {fileID: 0} + - target: {fileID: 6492233284419335816, guid: d22ec62c611ee7545b0126d2a612b118, + type: 3} + propertyPath: m_Name + value: neuro cog disk + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: d22ec62c611ee7545b0126d2a612b118, type: 3} diff --git a/Unity/Assets/Mod/Jukebox/Cog Disk/evil cog disk.prefab.meta b/Unity/Assets/Mod/Jukebox/Cog Disk/evil cog disk.prefab.meta new file mode 100644 index 00000000..7ce41f7d --- /dev/null +++ b/Unity/Assets/Mod/Jukebox/Cog Disk/evil cog disk.prefab.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 3107a4efbbfe5954e8eeb8cae77f1382 +PrefabImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: