forked from ToroCraft/ToroHUD
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
131 additions
and
111 deletions.
There are no files selected for viewing
44 changes: 44 additions & 0 deletions
44
src/main/java/net/torocraft/torohud/conf/HealthBarGuiConf.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,44 @@ | ||
package net.torocraft.torohud.conf; | ||
|
||
import net.minecraftforge.common.config.Config; | ||
import net.minecraftforge.common.config.Config.Comment; | ||
import net.minecraftforge.common.config.Config.Name; | ||
import net.minecraftforge.common.config.Config.RangeInt; | ||
import net.torocraft.torohud.ToroHUD; | ||
import net.torocraft.torohud.conf.ParticlesConf.Color; | ||
|
||
@Config(modid = ToroHUD.MODID, name = ToroHUD.MODID + "/healthBarGui") | ||
@Config.LangKey("healthBarGui.config.title") | ||
public class HealthBarGuiConf { | ||
|
||
public enum GuiAnchor {TOP_LEFT, TOP_CENTER, TOP_RIGHT, BOTTOM_LEFT, BOTTOM_RIGHT} | ||
|
||
public enum Skin {NONE, BASIC} | ||
|
||
@Name("Show 3D Model of Entity") | ||
public static boolean showEntityModel = true; // config.getBoolean("Show 3D Model of Entity", Configuration.CATEGORY_CLIENT, true, "Shows a 3D model of the entity being targeted"); | ||
|
||
@Name("Disable GUI") | ||
public static boolean disableGui = false; | ||
|
||
@Name("X Offset") | ||
public static int xOffset = 0; | ||
|
||
@Name("Y Offset") | ||
public static int yOffset = 0; | ||
|
||
@Name("GUI Position") | ||
public static GuiAnchor guiPosition = GuiAnchor.TOP_LEFT; | ||
|
||
@Name("Hide Delay") | ||
@Comment("Delays hiding the dialog for the given number of milliseconds") | ||
@RangeInt(min = 50, max = 5000) | ||
public static int hideDelay = 300; | ||
|
||
@Name("Background Skin Selection") | ||
public static Skin skin = Skin.BASIC; | ||
|
||
@Name("Entity Black List") | ||
public static String[] entityBlacklist = {}; | ||
|
||
} |
28 changes: 28 additions & 0 deletions
28
src/main/java/net/torocraft/torohud/conf/HealthBarsConf.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,28 @@ | ||
package net.torocraft.torohud.conf; | ||
|
||
import net.minecraftforge.common.config.Config; | ||
import net.minecraftforge.common.config.Config.Comment; | ||
import net.minecraftforge.common.config.Config.Name; | ||
import net.minecraftforge.common.config.Config.RangeInt; | ||
import net.torocraft.torohud.ToroHUD; | ||
import net.torocraft.torohud.conf.ParticlesConf.Color; | ||
|
||
@Config(modid = ToroHUD.MODID, name = ToroHUD.MODID + "/healthBars") | ||
@Config.LangKey("healthBars.config.title") | ||
public class HealthBarsConf { | ||
|
||
public enum Mode {NONE, WHEN_HOLDING_WEAPON, ALWAYS, WHEN_HURT, WHEN_HURT_TEMP} | ||
|
||
public enum NumberType {NONE, LAST, CUMULATIVE} | ||
|
||
@Name("Show Bars Above Entities") | ||
public static Mode showBarsAboveEntities = Mode.WHEN_HOLDING_WEAPON; | ||
|
||
@Name("Damage Number Type") | ||
public static NumberType numberType = NumberType.LAST; | ||
|
||
@Name("Additional Weapons") | ||
@Comment("When using WHEN_HOLDING_WEAPON to show entity bars, more items can be added here to be treated as weapons.") | ||
public static String[] additionalWeaponItems = {}; | ||
|
||
} |
25 changes: 25 additions & 0 deletions
25
src/main/java/net/torocraft/torohud/conf/ParticlesConf.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,25 @@ | ||
package net.torocraft.torohud.conf; | ||
|
||
import net.minecraftforge.common.config.Config; | ||
import net.minecraftforge.common.config.Config.Name; | ||
import net.torocraft.torohud.ToroHUD; | ||
|
||
@Config(modid = ToroHUD.MODID, name = ToroHUD.MODID + "/particles") | ||
@Config.LangKey("particles.config.title") | ||
public class ParticlesConf { | ||
|
||
public enum Color {RED, GREEN, BLUE, YELLOW, ORANGE, BLACK, PURPLE} | ||
|
||
@Name("Show Damage Particles") | ||
public static boolean showDamageParticles = true; | ||
|
||
@Name("Heal Color") | ||
public static Color healColor = Color.GREEN; | ||
|
||
@Name("Damage Color") | ||
public static Color damageColor = Color.RED; | ||
|
||
@Name("Visible Throw Walls") | ||
public static boolean visibleThroughWalls = false; | ||
|
||
} |
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.