forked from Caedis/DuraDisplay
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from GTNewHorizons/dev
Config Rework
- Loading branch information
Showing
7 changed files
with
124 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
src/main/java/com/caedis/duradisplay/config/OverlayConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package com.caedis.duradisplay.config; | ||
|
||
public abstract class OverlayConfig { | ||
|
||
public boolean Enabled = true; | ||
public int Position; | ||
public boolean ShowWhenFull = false; | ||
public boolean RenderBar = false; | ||
|
||
public boolean UseColorThreshold; | ||
public double[] ColorThreshold = new double[] { 15, 50 }; | ||
|
||
public static class DurabilityOverlayConfig extends OverlayConfig { | ||
|
||
public DurabilityOverlayConfig() { | ||
Position = 2; | ||
} | ||
} | ||
|
||
public static class ChargeOverlayConfig extends OverlayConfig { | ||
|
||
public ChargeOverlayConfig() { | ||
Position = 8; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.