mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-20 20:22:33 +00:00
Added Matrix Mode.
This commit is contained in:
1 parent
15766b2f49
commit
6bb6860217
4 files changed
+11
-2
No files matched your search
@@ -25,6 +25,8 @@ import net.minecraft.world.World;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
import vazkii.botania.client.lib.LibResources;
|
||||
import vazkii.botania.common.core.handler.ConfigHandler;
|
||||
import vazkii.botania.common.core.helper.ObfuscationHelper;
|
||||
|
||||
public class FXSparkle extends EntityFX {
|
||||
|
||||
@@ -60,7 +62,7 @@ public class FXSparkle extends EntityFX {
|
||||
|
||||
public static void dispatchQueuedRenders(Tessellator tessellator) {
|
||||
GL11.glColor4f(1.0F, 1.0F, 1.0F, 0.75F);
|
||||
Minecraft.getMinecraft().renderEngine.bindTexture(particles);
|
||||
Minecraft.getMinecraft().renderEngine.bindTexture(ConfigHandler.matrixMode ? ObfuscationHelper.getParticleTexture() : particles);
|
||||
|
||||
tessellator.startDrawingQuads();
|
||||
for(FXSparkle sparkle : queuedRenders)
|
||||
|
||||
@@ -24,6 +24,8 @@ import net.minecraft.world.World;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
import vazkii.botania.client.lib.LibResources;
|
||||
import vazkii.botania.common.core.handler.ConfigHandler;
|
||||
import vazkii.botania.common.core.helper.ObfuscationHelper;
|
||||
import cpw.mods.fml.client.FMLClientHandler;
|
||||
|
||||
public class FXWisp extends EntityFX {
|
||||
@@ -72,7 +74,7 @@ public class FXWisp extends EntityFX {
|
||||
|
||||
public static void dispatchQueuedRenders(Tessellator tessellator) {
|
||||
GL11.glColor4f(1.0F, 1.0F, 1.0F, 0.75F);
|
||||
Minecraft.getMinecraft().renderEngine.bindTexture(particles);
|
||||
Minecraft.getMinecraft().renderEngine.bindTexture(ConfigHandler.matrixMode ? ObfuscationHelper.getParticleTexture() : particles);
|
||||
|
||||
tessellator.startDrawingQuads();
|
||||
for(FXWisp wisp : queuedRenders)
|
||||
|
||||
@@ -35,6 +35,7 @@ public final class ConfigHandler {
|
||||
public static boolean blockBreakParticles = true;
|
||||
public static boolean blockBreakParticlesTool = true;
|
||||
public static boolean elfPortalParticlesEnabled = true;
|
||||
public static boolean matrixMode = false;
|
||||
public static boolean referencesEnabled = true;
|
||||
|
||||
public static boolean versionCheckEnabled = true;
|
||||
@@ -92,6 +93,9 @@ public final class ConfigHandler {
|
||||
desc = "Set to false to disable the particles in the elven portal.";
|
||||
elfPortalParticlesEnabled = loadPropBool("elfPortal.particles.enabled", desc, elfPortalParticlesEnabled);
|
||||
|
||||
desc = "Set to true if you are the chosen one. For lovers of glitch art and just general mad people.";
|
||||
matrixMode = loadPropBool("matrixMode.enabled", desc, matrixMode);
|
||||
|
||||
desc = "Set to false to disable the references in flower tooltips. (You monster D:)";
|
||||
referencesEnabled = loadPropBool("references.enabled", desc, referencesEnabled);
|
||||
|
||||
|
||||
@@ -85,6 +85,7 @@ lexicon.render.3D=3D Lexicon Render
|
||||
powerSystem.subtle=Use Subtle Power System
|
||||
pylonModel.old=Use Old Pylon Model
|
||||
elfPortal.particles.enabled=Enable Portal Particles
|
||||
matrixMode.enabled=Enable Matrix Mode
|
||||
references.enabled=Enable Tooltip References
|
||||
shaders.enabled=Enable Shader Usage
|
||||
spreader.posShift=Spreader Pos Shift
|
||||
|
||||
Reference in new issue
Block a user