FusedQyou
FusedQyou
CC#
Created by slow on 4/25/2025 in #help
✅ why am i getting the CS0246 error on unity for this code?
Another good tip is to stop using VC Code and use Visual Studio or Rider as support for Unity will be much better
62 replies
CC#
Created by slow on 4/25/2025 in #help
✅ why am i getting the CS0246 error on unity for this code?
The correct answer is to configure Unity before bothering to fix these issues https://discord.com/channels/143867839282020352/1365348050616188948/1365348596202999858
62 replies
CC#
Created by Qvabbyte on 4/24/2025 in #help
✅ Need Help with .NET C# Console Project (visualizing) (SOLVED)
So it does pad the result and it overflows
52 replies
CC#
Created by Qvabbyte on 4/24/2025 in #help
✅ Need Help with .NET C# Console Project (visualizing) (SOLVED)
The default is black
52 replies
CC#
Created by Qvabbyte on 4/24/2025 in #help
✅ Need Help with .NET C# Console Project (visualizing) (SOLVED)
I personally never used the console for this so I'm out of options if it keeps happening
52 replies
CC#
Created by Qvabbyte on 4/24/2025 in #help
✅ Need Help with .NET C# Console Project (visualizing) (SOLVED)
Just as a temporary test
52 replies
CC#
Created by Qvabbyte on 4/24/2025 in #help
✅ Need Help with .NET C# Console Project (visualizing) (SOLVED)
As an attempt you could try explicitl resetting everything back to default using both ResetColor and setting BackgroundColor in every single method before you write
52 replies
CC#
Created by Qvabbyte on 4/24/2025 in #help
✅ Need Help with .NET C# Console Project (visualizing) (SOLVED)
Is this something that ALWAYS happends, or conditionally?
52 replies
CC#
Created by Qvabbyte on 4/24/2025 in #help
✅ Need Help with .NET C# Console Project (visualizing) (SOLVED)
I assumed the console applied additional padding and overflowed the feature to the next line, but I guess it doesn't
52 replies
CC#
Created by Qvabbyte on 4/24/2025 in #help
✅ Need Help with .NET C# Console Project (visualizing) (SOLVED)
Dunno then
52 replies
CC#
Created by Qvabbyte on 4/24/2025 in #help
✅ Need Help with .NET C# Console Project (visualizing) (SOLVED)
Alternatively, try this:
public void Qprint(string msg, string textColor, string backgroundColor)
{
Console.ForegroundColor = (ConsoleColor)Enum.Parse(typeof(ConsoleColor), textColor);
Console.BackgroundColor = (ConsoleColor)Enum.Parse(typeof(ConsoleColor), backgroundColor);

Console.Write(msg);
Console.ResetColor();
Console.WriteLine();
}
public void Qprint(string msg, string textColor, string backgroundColor)
{
Console.ForegroundColor = (ConsoleColor)Enum.Parse(typeof(ConsoleColor), textColor);
Console.BackgroundColor = (ConsoleColor)Enum.Parse(typeof(ConsoleColor), backgroundColor);

Console.Write(msg);
Console.ResetColor();
Console.WriteLine();
}
52 replies
CC#
Created by Qvabbyte on 4/24/2025 in #help
✅ Need Help with .NET C# Console Project (visualizing) (SOLVED)
Try this
public void Qprint(string msg, string textColor, string backgroundColor)
{
Console.ForegroundColor = (ConsoleColor)Enum.Parse(typeof(ConsoleColor), textColor);
Console.BackgroundColor = (ConsoleColor)Enum.Parse(typeof(ConsoleColor), backgroundColor);

int width = Console.WindowWidth;
string paddedMsg = msg.PadRight(width - 1);
Console.WriteLine(paddedMsg);

Console.ResetColor();
}
public void Qprint(string msg, string textColor, string backgroundColor)
{
Console.ForegroundColor = (ConsoleColor)Enum.Parse(typeof(ConsoleColor), textColor);
Console.BackgroundColor = (ConsoleColor)Enum.Parse(typeof(ConsoleColor), backgroundColor);

int width = Console.WindowWidth;
string paddedMsg = msg.PadRight(width - 1);
Console.WriteLine(paddedMsg);

Console.ResetColor();
}
52 replies
CC#
Created by yourFriend on 4/9/2025 in #help
Regex help.
I don't know what you are trying to achieve given that this question is for fixing your regex, but if the whole point is to determine the location of "C#" in your string, then please just use IndexOf instead of overcomplicating it with a regex.
string s = "Just a random string in C#.";
int location = s.IndexOf("C#");
if (location != -1)
{
// Found.
}
string s = "Just a random string in C#.";
int location = s.IndexOf("C#");
if (location != -1)
{
// Found.
}
11 replies
CC#
Created by Eple on 4/8/2025 in #help
VS Code Fails to Highlight Missing Symbol in @code Section of .razor File
Might be $vsdrunk
10 replies
CC#
Created by ElectricTortoise on 3/25/2025 in #help
scope of a for loop
If you want you can change it to instead be errors if you want.
171 replies
CC#
Created by ElectricTortoise on 3/25/2025 in #help
scope of a for loop
My project explicitly marks warnings and/or suggestions as errors to improve the code written
171 replies
CC#
Created by ElectricTortoise on 3/25/2025 in #help
scope of a for loop
Again ignore the errors, this is just the analyzer complaining the method and variable are not actually used
171 replies
CC#
Created by ElectricTortoise on 3/25/2025 in #help
scope of a for loop
No description
171 replies
CC#
Created by ElectricTortoise on 3/25/2025 in #help
scope of a for loop
No description
171 replies