-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
afda30f
commit 050a170
Showing
13 changed files
with
290 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
82 changes: 82 additions & 0 deletions
82
Unity/Assets/Mod/Jukebox/Cog Disk/Materials/disk image evil.mat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} |
8 changes: 8 additions & 0 deletions
8
Unity/Assets/Mod/Jukebox/Cog Disk/Materials/disk image evil.mat.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file added
BIN
+77.4 KB
Unity/Assets/Mod/Jukebox/Cog Disk/Textures/is-that-what-you-want-alex-1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
92 changes: 92 additions & 0 deletions
92
Unity/Assets/Mod/Jukebox/Cog Disk/Textures/is-that-what-you-want-alex-1.jpg.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file added
BIN
+85 KB
Unity/Assets/Mod/Jukebox/Cog Disk/Textures/is-that-what-you-want-alex-2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion
2
.../Cog Disk/Textures/Screenshot_18.png.meta → ...res/is-that-what-you-want-alex-2.jpg.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.