Skip to content

Commit

Permalink
cog disk unlock images
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexejhero committed Apr 25, 2024
1 parent afda30f commit 050a170
Show file tree
Hide file tree
Showing 13 changed files with 290 additions and 3 deletions.
22 changes: 22 additions & 0 deletions SCHIZO/Patches/FixUnlockSpriteScalePatch.cs
Original file line number Diff line number Diff line change
@@ -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);
}
}
2 changes: 1 addition & 1 deletion SCHIZO/Resources/AssetBundles/Assets.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down
Binary file modified SCHIZO/Resources/AssetBundles/assets
Binary file not shown.
82 changes: 82 additions & 0 deletions Unity/Assets/Mod/Jukebox/Cog Disk/Materials/disk image evil.mat
Original file line number Diff line number Diff line change
@@ -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}

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

2 changes: 1 addition & 1 deletion Unity/Assets/Mod/Jukebox/Cog Disk/Materials/disk image.mat
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

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

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

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

76 changes: 76 additions & 0 deletions Unity/Assets/Mod/Jukebox/Cog Disk/evil cog disk.prefab
Original file line number Diff line number Diff line change
@@ -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}
7 changes: 7 additions & 0 deletions Unity/Assets/Mod/Jukebox/Cog Disk/evil cog disk.prefab.meta

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

0 comments on commit 050a170

Please sign in to comment.