package wtf.equer.feature.features.visual;
import com.mojang.realmsclient.gui.ChatFormatting;
import wtf.equer.event.EventBootstrap;
import wtf.equer.event.EventListener;
import wtf.equer.event.EventState;
import wtf.equer.event.events.render.RenderGameOverlayEvent;
import wtf.equer.feature.Feature;
import wtf.equer.feature.FeatureBootstrap;
import wtf.equer.feature.FeatureGroup;
import wtf.equer.helper.helpers.font.FontHelper;
import wtf.equer.helper.helpers.render.RenderHelper;
import net.minecraft.client.Minecraft;
import java.awt.*;
@FeatureBootstrap(name = "WaterMark", description = "Renders a watermark", group = FeatureGroup.VISUAL)
public class WaterMark extends Feature {
@EventBootstrap(state = EventState.BOTH)
private final EventListener<RenderGameOverlayEvent> onRenderGameOverlay = event -> {
String text = "equer.wtf " + ChatFormatting.DARK_GRAY + "| " + ChatFormatting.RESET + Minecraft.getDebugFPS() + " FPS";
double width = FontHelper.gilroyBold16.getStringWidth(text);
RenderHelper.drawRoundedShadow(7.5f, 7.5f, (float) width + 12.5f, 12.5f, 1.25f, 3f, new Color(40, 40, 40));
FontHelper.gilroyBold16.drawString(text, 13.5f, 11.5f, -1);
};
@Override
protected void onEnable() {
}
@Override
protected void onDisable() {
}
}