Skip to content

Commit 8533fe9

Browse files
committed
2 parents 173ed99 + 8fb836c commit 8533fe9

File tree

4 files changed

+20
-8
lines changed

4 files changed

+20
-8
lines changed

Classes/ColorChanger.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,8 @@ public void Update()
4141
else
4242
{
4343
if (colors.colorKeys[0].color == colors.colorKeys[1].color)
44-
{
4544
gameObjectRenderer.material.color = colors.colorKeys[0].color;
46-
} else
45+
else
4746
{
4847
if (gameObjectRenderer.material.shader.name != "Universal Render Pipeline/Lit")
4948
{

Menu/Main.cs

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2939,7 +2939,7 @@ public static Texture2D LoadTextureFromURL(string resourcePath, string fileName)
29392939
return texture;
29402940
}
29412941

2942-
private static Dictionary<(Color, Color), Texture2D> cacheGradients = new Dictionary<(Color, Color), Texture2D>();
2942+
public static Dictionary<(Color, Color), Texture2D> cacheGradients = new Dictionary<(Color, Color), Texture2D>();
29432943

29442944
public static Texture2D GetGradientTexture(Color colorA, Color colorB)
29452945
{
@@ -2950,11 +2950,22 @@ public static Texture2D GetGradientTexture(Color colorA, Color colorB)
29502950
Texture2D txt2d = new Texture2D(128, 128);
29512951
Color[] pixels = new Color[128 * 128];
29522952

2953-
for (int i = 0; i < 128; i++)
2953+
if (horizontalGradients)
29542954
{
2955-
Color rowColor = Color.Lerp(colorA, colorB, i / 128f);
2956-
for (int j = 0; j < 128; j++)
2957-
pixels[j * 128 + i] = rowColor;
2955+
for (int y = 0; y < 128; y++)
2956+
{
2957+
Color rowColor = Color.Lerp(colorA, colorB, y / 128f);
2958+
for (int x = 0; x < 128; x++)
2959+
pixels[y * 128 + x] = rowColor;
2960+
}
2961+
} else
2962+
{
2963+
for (int i = 0; i < 128; i++)
2964+
{
2965+
Color rowColor = Color.Lerp(colorA, colorB, i / 128f);
2966+
for (int j = 0; j < 128; j++)
2967+
pixels[j * 128 + i] = rowColor;
2968+
}
29582969
}
29592970

29602971
txt2d.SetPixels(pixels);
@@ -5095,6 +5106,7 @@ public static int buttonsType
50955106
public static bool dynamicSounds;
50965107
public static bool dynamicAnimations;
50975108
public static bool dynamicGradients;
5109+
public static bool horizontalGradients;
50985110
public static bool gradientTitle;
50995111
public static string lastClickedName = "";
51005112

Mods/Buttons.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ public class Buttons
8787

8888
new ButtonInfo { buttonText = "Dynamic Animations", enableMethod =() => dynamicAnimations = true, disableMethod =() => dynamicAnimations = false, toolTip = "Adds more animations to the menu, giving you a better sense of control."},
8989
new ButtonInfo { buttonText = "Dynamic Gradients", enableMethod =() => dynamicGradients = true, disableMethod =() => dynamicGradients = false, toolTip = "Makes gradients dynamic, showing you the full gradient instead of a pulsing color."},
90+
new ButtonInfo { buttonText = "Horizontal Gradients", enableMethod =() => { horizontalGradients = true; cacheGradients.Clear(); }, disableMethod =() => { horizontalGradients = false; cacheGradients.Clear(); }, toolTip = "Rotates the dynamic gradients by 90 degrees."},
9091
new ButtonInfo { buttonText = "Dynamic Sounds", enableMethod =() => dynamicSounds = true, disableMethod =() => dynamicSounds = false, toolTip = "Adds more sounds to the menu, giving you a better sense of control."},
9192
new ButtonInfo { buttonText = "Gradient Title", enableMethod =() => gradientTitle = true, disableMethod =() => gradientTitle = false, toolTip = "Gives a gradient to the title of the menu depending on your theme."},
9293
new ButtonInfo { buttonText = "Voice Commands", enableMethod =() => Settings.VoiceRecognitionOn(), disableMethod =() => Settings.VoiceRecognitionOff(), toolTip = "Enable and disable mods using your voice. Activate it like how you would any other voice assistant, such as \"Jarvis, Platforms\"."},

PluginInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ public class PluginInfo
55
public const string GUID = "org.iidk.gorillatag.iimenu";
66
public const string Name = "ii's Stupid Menu";
77
public const string Description = "Created by @goldentrophy with love <3";
8-
public const string BuildTimestamp = "2025-07-01T18:20:46Z";
8+
public const string BuildTimestamp = "2025-07-01T18:44:00Z";
99
public const string Version = "6.5.0";
1010

1111
public const string BaseDirectory = "iisStupidMenu";

0 commit comments

Comments
 (0)