Skip to content

Commit

Permalink
Color required module names in gray
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahTheNerd committed Jun 10, 2024
1 parent 9997f03 commit a8419e5
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,13 @@ class Module(val name: String, var metadata: ModuleMetadata, val folder: File) {
0xaa000000,
x, y, width, 13f
)

Renderer.drawStringWithShadow(
metadata.name ?: name,
ChatLib.addColor(if (metadata.isRequired && requiredBy.isNotEmpty()) {
"&7${metadata.name ?: name}"
} else {
metadata.name ?: name
}),
x + 3, y + 3
)

Expand Down

0 comments on commit a8419e5

Please sign in to comment.