Watch
2
0
Fork
You've already forked raylib-cs
0

chore: clean up linter warnings

This commit is contained in:
tiger tiger tiger 2026-07-29 19:58:47 +02:00
commit dfc34997bc
No known key found for this signature in database
217 changed files with 1863 additions and 1077 deletions

View file

@ -15,12 +15,7 @@
*
********************************************************************************************/
using System;
using System.Collections.Generic;
using System.Numerics;
using System.Text;
using Raylib_cs;
using static Raylib_cs.Raylib;
namespace Examples.Text;
@ -135,12 +130,35 @@ public partial class StringsManagement : IExample
}
// Reset using TextTo* functions
if (IsKeyPressed(KeyboardKey.One)) PrepareFirstTextParticle("raylib => fun videogames programming!");
if (IsKeyPressed(KeyboardKey.Two)) PrepareFirstTextParticle(TextToUpper("raylib => fun videogames programming!"));
if (IsKeyPressed(KeyboardKey.Three)) PrepareFirstTextParticle(TextToLower("raylib => fun videogames programming!"));
if (IsKeyPressed(KeyboardKey.Four)) PrepareFirstTextParticle(TextToPascal("raylib_fun_videogames_programming"));
if (IsKeyPressed(KeyboardKey.Five)) PrepareFirstTextParticle(TextToSnake("RaylibFunVideogamesProgramming"));
if (IsKeyPressed(KeyboardKey.Six)) PrepareFirstTextParticle(TextToCamel("raylib_fun_videogames_programming"));
if (IsKeyPressed(KeyboardKey.One))
{
PrepareFirstTextParticle("raylib => fun videogames programming!");
}
if (IsKeyPressed(KeyboardKey.Two))
{
PrepareFirstTextParticle(TextToUpper("raylib => fun videogames programming!"));
}
if (IsKeyPressed(KeyboardKey.Three))
{
PrepareFirstTextParticle(TextToLower("raylib => fun videogames programming!"));
}
if (IsKeyPressed(KeyboardKey.Four))
{
PrepareFirstTextParticle(TextToPascal("raylib_fun_videogames_programming"));
}
if (IsKeyPressed(KeyboardKey.Five))
{
PrepareFirstTextParticle(TextToSnake("RaylibFunVideogamesProgramming"));
}
if (IsKeyPressed(KeyboardKey.Six))
{
PrepareFirstTextParticle(TextToCamel("raylib_fun_videogames_programming"));
}
// Slice by char pressed only when we have one text particle
int charPressed = GetCharPressed();