-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add colored logs, fix ScreenId generator
- Loading branch information
1 parent
2d62f77
commit 7483c1c
Showing
10 changed files
with
121 additions
and
31 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
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
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
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
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
//Names are automatically added through ScreenIdGenerator.cs, deletions are done manually :) | ||
namespace VioletUI { | ||
public enum ScreenId { | ||
None = 0 | ||
None = 0, | ||
} | ||
} |
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
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
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
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,36 @@ | ||
using UnityEngine; | ||
|
||
/// <summary> | ||
/// Static utility methods | ||
/// </summary> | ||
public static class Violet { | ||
public static void Log(string s) { | ||
Debug.Log($"{Color("VioletUI")} | {s}"); | ||
} | ||
|
||
public static void LogWarning(string s) { | ||
Debug.LogWarning($"{Color("VioletUI")} | {s}"); | ||
} | ||
|
||
public static void LogError(string s) { | ||
Debug.LogError($"{Color("VioletUI")} | {s}"); | ||
} | ||
|
||
// #ceb2da | ||
// hsl(282, 35%, 78%) | ||
public static Color Hue = new Color(0.898f, 0.745f, 0.935f); | ||
|
||
// #b300ff | ||
// rgb(179, 0, 255) | ||
// hsl(282, 100%, 50%) | ||
public static Color BrightHue = new Color(179/255, 0, 1); | ||
/// <summary> | ||
/// Wraps `s` in <color> tags for printing to unity console | ||
/// </summary> | ||
/// <param name="s"></param> | ||
/// <returns></returns> | ||
public static string Color(string s, string hex = "b300ff") { | ||
return $"<color=#{hex}>{s}</color>"; | ||
} | ||
|
||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.