add customizable x offset
This commit is contained in:
@@ -155,4 +155,15 @@ public interface FreezeTimersV2Config extends Config
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
||||
@ConfigItem(
|
||||
name = "X Offset",
|
||||
keyName = "xOffset",
|
||||
description = "X Offset for overlay rendering",
|
||||
position = 12
|
||||
)
|
||||
default int xOffset()
|
||||
{
|
||||
return 20;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -136,7 +136,7 @@ public class FreezeTimersV2Overlay extends Overlay
|
||||
}
|
||||
|
||||
int yOffset = (offset * (g.getFontMetrics().getHeight() + 2));
|
||||
int xOffset = 20;
|
||||
int xOffset = config.xOffset();
|
||||
|
||||
BufferedImage image = timer.getIcon();
|
||||
Point actorCIL = actor.getCanvasImageLocation(image, 0);
|
||||
|
||||
Reference in New Issue
Block a user