mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-26 13:53:07 +00:00
Hud Component Modifications
This commit is contained in:
1 parent
3e23893e78
commit
2640a6c7e0
3 files changed
+35
-9
No files matched your search
@@ -66,6 +66,7 @@ public class CompassHudComponent extends HudComponent {
|
||||
|
||||
@Override
|
||||
public void load() {
|
||||
enabled = ConfigClient.CompassEnabled;
|
||||
posX = ConfigClient.CompassOverlayX;
|
||||
posY = ConfigClient.CompassOverlayY;
|
||||
scale = ConfigClient.CompassOverlayScale;
|
||||
@@ -74,11 +75,23 @@ public class CompassHudComponent extends HudComponent {
|
||||
|
||||
@Override
|
||||
public void save() {
|
||||
ConfigClient.CompassEnabled = enabled;
|
||||
ConfigClient.CompassEnabledProperty.set(ConfigClient.CompassEnabled);
|
||||
|
||||
ConfigClient.CompassOverlayX = posX;
|
||||
ConfigClient.CompassOverlayXProperty.set(ConfigClient.CompassOverlayX);
|
||||
|
||||
ConfigClient.CompassOverlayY = posY;
|
||||
ConfigClient.CompassOverlayYProperty.set(ConfigClient.CompassOverlayY);
|
||||
|
||||
ConfigClient.CompassOverlayScale = scale;
|
||||
ConfigClient.CompassOverlayScaleProperty.set(ConfigClient.CompassOverlayScale);
|
||||
|
||||
ConfigClient.CompassOverlayWidth = overlayWidth;
|
||||
ConfigClient.config.save();
|
||||
ConfigClient.CompassOverlayWidthProperty.set(ConfigClient.CompassOverlayWidth);
|
||||
|
||||
if(ConfigClient.config.hasChanged())
|
||||
ConfigClient.config.save();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user