Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,9 @@ private void renderModule(HudRenderer renderer, int index, double x, double y) {

if (activeInfo.get()) {
String info = module.getInfoString();
Color infoColor = module.getInfoStringColor();
if (info != null) {
renderer.text(info, x + textLength + emptySpace, y, moduleInfoColor.get(), shadow.get(), getScale());
renderer.text(info, x + textLength + emptySpace, y, (infoColor != null) ? infoColor : moduleInfoColor.get(), shadow.get(), getScale());
textLength += emptySpace + renderer.textWidth(info, shadow.get(), getScale());
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,10 @@ public String getInfoString() {
return null;
}

public Color getInfoStringColor() {
return null;
}

@Override
public NbtCompound toTag() {
if (!serialize) return null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import meteordevelopment.meteorclient.utils.player.FindItemResult;
import meteordevelopment.meteorclient.utils.player.InvUtils;
import meteordevelopment.meteorclient.utils.player.PlayerUtils;
import meteordevelopment.meteorclient.utils.render.color.Color;
import meteordevelopment.orbit.EventHandler;
import meteordevelopment.orbit.EventPriority;
import net.minecraft.entity.Entity;
Expand Down Expand Up @@ -123,6 +124,11 @@ public String getInfoString() {
return String.valueOf(totems);
}

@Override
public Color getInfoStringColor() {
return (totems == 0) ? Color.RED : null;
}

public enum Mode {
Smart,
Strict
Expand Down