Fixed bug with ModuleListComponent initial position

This commit is contained in:
cannabidiol 2020-12-28 03:49:22 -09:00
parent b735d7d9e5
commit 5816825eea
3 changed files with 4 additions and 3 deletions

View File

@ -37,7 +37,6 @@ public final class ColorsComponent extends ResizableHudComponent {
public ColorsComponent() {
super("Colors", 100, 120);
this.setVisible(true);
this.setSnappable(false);
this.setW(120);
this.setH(120);

View File

@ -59,6 +59,8 @@ public final class ModuleListComponent extends ResizableHudComponent {
this.setSnappable(false);
this.setLocked(true);
this.setX(20);
this.setY(20);
this.setW(100);
this.setH(100);
}

View File

@ -53,8 +53,8 @@ public final class HudManager {
for (AnchorPoint anchorPoint : this.anchorPoints)
anchorPoint.updatePosition(sr);
int moduleListXOffset = 20;
int moduleListYOffset = 20;
int moduleListXOffset = 0;
int moduleListYOffset = 0;
for (Module.ModuleType type : Module.ModuleType.values()) {
if (type.equals(Module.ModuleType.HIDDEN) || type.equals(Module.ModuleType.UI))
continue;