From c1e68c8ad20252cf5e167ea27e3b09cdcb2a1106 Mon Sep 17 00:00:00 2001 From: Robert S Date: Tue, 10 Jun 2014 10:43:46 -0400 Subject: [PATCH] Renamed GearDebugFrame to MechanicalNodeFrame --- .../mechanical/energy/grid/PartMechanical.java | 6 +++--- ...rDebugFrame.java => MechanicalNodeFrame.java} | 16 ++++++++-------- 2 files changed, 11 insertions(+), 11 deletions(-) rename mechanical/src/main/scala/resonantinduction/mechanical/gear/{GearDebugFrame.java => MechanicalNodeFrame.java} (88%) diff --git a/mechanical/src/main/scala/resonantinduction/mechanical/energy/grid/PartMechanical.java b/mechanical/src/main/scala/resonantinduction/mechanical/energy/grid/PartMechanical.java index bc06a7de..01ac4a59 100644 --- a/mechanical/src/main/scala/resonantinduction/mechanical/energy/grid/PartMechanical.java +++ b/mechanical/src/main/scala/resonantinduction/mechanical/energy/grid/PartMechanical.java @@ -12,7 +12,7 @@ import net.minecraftforge.common.ForgeDirection; import resonant.api.grid.INode; import resonant.api.grid.INodeProvider; import resonant.core.ResonantEngine; -import resonantinduction.mechanical.gear.GearDebugFrame; +import resonantinduction.mechanical.gear.MechanicalNodeFrame; import codechicken.lib.data.MCDataInput; import codechicken.lib.data.MCDataOutput; import codechicken.multipart.ControlKeyModifer; @@ -32,7 +32,7 @@ public abstract class PartMechanical extends JCuboidPart implements JNormalOcclu /** Packets */ boolean markPacketUpdate = false; /** Simple debug external GUI */ - GearDebugFrame frame = null; + MechanicalNodeFrame frame = null; /** Side of the block this is placed on */ public ForgeDirection placementSide = ForgeDirection.UNKNOWN; @@ -83,7 +83,7 @@ public abstract class PartMechanical extends JCuboidPart implements JNormalOcclu //Opens a debug GUI if (frame == null) { - frame = new GearDebugFrame(this.node); + frame = new MechanicalNodeFrame(this.node); frame.showDebugFrame(); } //Closes the debug GUI else diff --git a/mechanical/src/main/scala/resonantinduction/mechanical/gear/GearDebugFrame.java b/mechanical/src/main/scala/resonantinduction/mechanical/gear/MechanicalNodeFrame.java similarity index 88% rename from mechanical/src/main/scala/resonantinduction/mechanical/gear/GearDebugFrame.java rename to mechanical/src/main/scala/resonantinduction/mechanical/gear/MechanicalNodeFrame.java index 51f703f4..27ce964a 100644 --- a/mechanical/src/main/scala/resonantinduction/mechanical/gear/GearDebugFrame.java +++ b/mechanical/src/main/scala/resonantinduction/mechanical/gear/MechanicalNodeFrame.java @@ -22,7 +22,7 @@ import resonantinduction.mechanical.energy.grid.PartMechanical; * * @author Darkguardsman */ @SuppressWarnings("serial") -public class GearDebugFrame extends Frame implements ActionListener +public class MechanicalNodeFrame extends Frame implements ActionListener { List dataLabels = new ArrayList(); Label[] connections = new Label[20]; @@ -30,7 +30,7 @@ public class GearDebugFrame extends Frame implements ActionListener long tick = 0; MechanicalNode part = null; - public GearDebugFrame(MechanicalNode part) + public MechanicalNodeFrame(MechanicalNode part) { this.part = part; setLayout(new BorderLayout()); @@ -55,7 +55,7 @@ public class GearDebugFrame extends Frame implements ActionListener @Override public String buildLabel() { - return super.buildLabel() + GearDebugFrame.this.part.x(); + return super.buildLabel() + MechanicalNodeFrame.this.part.x(); } }; dataLabels.add(xLabel); @@ -66,7 +66,7 @@ public class GearDebugFrame extends Frame implements ActionListener @Override public String buildLabel() { - return super.buildLabel() + GearDebugFrame.this.part.y(); + return super.buildLabel() + MechanicalNodeFrame.this.part.y(); } }; topPanel.add(yLabel); @@ -77,7 +77,7 @@ public class GearDebugFrame extends Frame implements ActionListener @Override public String buildLabel() { - return super.buildLabel() + GearDebugFrame.this.part.z(); + return super.buildLabel() + MechanicalNodeFrame.this.part.z(); } }; topPanel.add(zLabel); @@ -93,7 +93,7 @@ public class GearDebugFrame extends Frame implements ActionListener @Override public String buildLabel() { - return super.buildLabel() + GearDebugFrame.this.part.angularVelocity; + return super.buildLabel() + MechanicalNodeFrame.this.part.angularVelocity; } }; dataLabels.add(velLabel); @@ -104,7 +104,7 @@ public class GearDebugFrame extends Frame implements ActionListener @Override public String buildLabel() { - return super.buildLabel() + GearDebugFrame.this.part.renderAngle; + return super.buildLabel() + MechanicalNodeFrame.this.part.renderAngle; } }; dataLabels.add(angleLabel); @@ -115,7 +115,7 @@ public class GearDebugFrame extends Frame implements ActionListener @Override public String buildLabel() { - return super.buildLabel() + GearDebugFrame.this.part.torque; + return super.buildLabel() + MechanicalNodeFrame.this.part.torque; } }; dataLabels.add(torqueLabel);