Skip to content

Commit d60c868

Browse files
committed
small fixes to rendering
1 parent d91ab5f commit d60c868

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/main/java/me/eldodebug/soar/management/mods/HUDMod.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ public void drawBackground(float addX, float addY, float width, float height, fl
202202
if (isBlur) ShBlur.getInstance().drawBlur(x,y,lastWidth,lastHeight,radius);
203203

204204
if(isNormal || isVanilla || isShadow || isDark || isLight || isModern) {
205-
nvg.drawShadow(x, y, lastWidth, lastHeight, radius);
205+
nvg.drawShadow(x, y, lastWidth, lastHeight, radius - 0.75F);
206206
}else if(isGlow || isVanillaGlow) {
207207
nvg.drawGradientShadow(x, y, lastWidth, lastHeight, radius, currentColor.getColor1(), currentColor.getColor2());
208208
}else if(isOutline || isOutlineGlow) {
@@ -253,6 +253,11 @@ public void drawBackground(float width, float height, float radius) {
253253

254254
public void drawText(String text, float addX, float addY, float size, Font font, Color color) {
255255

256+
if(font == Fonts.MOJANGLES) {
257+
addX = addX - 0.5F;
258+
addY = addY - 1.3F;
259+
}
260+
256261
NanoVGManager nvg = Glide.getInstance().getNanoVGManager();
257262
float lastSize = size * scale;
258263
Option theme = InternalSettingsMod.getInstance().getModThemeSetting().getOption();

src/main/java/me/eldodebug/soar/management/mods/impl/InternalSettingsMod.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
import me.eldodebug.soar.management.mods.settings.impl.*;
77
import me.eldodebug.soar.utils.mouse.MouseUtils;
8+
import net.minecraft.client.Minecraft;
89
import org.lwjgl.input.Keyboard;
910

1011
import me.eldodebug.soar.Glide;
@@ -68,6 +69,8 @@ public void onKey(EventKey event) {
6869
// modeIndex = max - 1;
6970
// }
7071
//
72+
// mcFontSetting.setToggled(!mcFontSetting.isToggled());
73+
//
7174
// modThemeSetting.setOption(modThemeSetting.getOptions().get(modeIndex));
7275
//
7376
// }

0 commit comments

Comments
 (0)