Renamed GearDebugFrame to MechanicalNodeFrame

This commit is contained in:
Robert S 2014-06-10 10:43:46 -04:00
parent 1773bc4b2d
commit c1e68c8ad2
2 changed files with 11 additions and 11 deletions

View file

@ -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

View file

@ -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<UpdatedLabel> dataLabels = new ArrayList<UpdatedLabel>();
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);