Merge pull request #30 from Silent-Client/TEST2

Update Watermark.java
This commit is contained in:
kirillsaint 2023-08-31 18:29:31 +06:00 committed by GitHub
commit f306a92f7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,23 +47,23 @@ public class Watermark {
switch (Client.getInstance().getSettingsManager().getSettingByClass(GeneralMod.class, "Silent Logo Location").getValString()) {
case "Bottom Right Corner":
x = 5;
y = scaledResolution.getScaledHeight() - 23;
y = scaledResolution.getScaledHeight() - 23 + (21 / 2) - 5 + 3;
break;
case "Bottom Left Corner":
x = scaledResolution.getScaledWidth() - width;
y = scaledResolution.getScaledHeight() - 23;
y = scaledResolution.getScaledHeight() - 23 + (21 / 2) - 5 + 3;
break;
case "Top Right Corner":
x = 5;
y = 3;
y = 3 + (21 / 2) - 5 - 3;
break;
case "Top Left Corner":
x = scaledResolution.getScaledWidth() - width;
y = 3;
y = 3 + (21 / 2) - 5 - 3;
break;
}
Client.getInstance().getSilentFontRenderer().drawString(Client.getInstance().getFullVersion(), x, y + (21 / 2) - 5 + 3, 10, SilentFontRenderer.FontType.TITLE);
Client.getInstance().getSilentFontRenderer().drawString(Client.getInstance().getFullVersion(), x, y, 10, SilentFontRenderer.FontType.TITLE);
}
public void render(int x, int y) {