mirror of https://github.com/rusefi/RomRaider.git
Added font graying for locked tables
git-svn-id: http://svn.3splooges.com/romraider-arch/trunk@175 d2e2e1cd-ba16-0410-be16-b7c4453c7c2d
This commit is contained in:
parent
44aa01cb62
commit
4747f9d050
|
@ -308,7 +308,7 @@ public abstract class Table extends JPanel implements Serializable {
|
|||
byteValue[2] = input[storageAddress + i * 4 - ramOffset + 2];
|
||||
byteValue[3] = input[storageAddress + i * 4 - ramOffset + 3];
|
||||
data[i].setBinValue(RomAttributeParser.byteToFloat(byteValue, endian));
|
||||
|
||||
|
||||
} else { // integer storage type
|
||||
data[i].setBinValue(
|
||||
RomAttributeParser.parseByteValue(input,
|
||||
|
@ -321,6 +321,11 @@ public abstract class Table extends JPanel implements Serializable {
|
|||
centerPanel.add(data[i]);
|
||||
data[i].setYCoord(i);
|
||||
data[i].setOriginalValue(data[i].getBinValue());
|
||||
|
||||
// show locked cell
|
||||
if (tempLock) {
|
||||
data[i].setForeground(Color.GRAY);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -95,6 +95,10 @@ public class Table3D extends Table {
|
|||
if (!beforeRam) {
|
||||
ramOffset = container.getRomID().getRamOffset();
|
||||
}
|
||||
|
||||
// temporarily remove lock
|
||||
boolean tempLock = locked;
|
||||
locked = false;
|
||||
|
||||
// populate axiis
|
||||
try {
|
||||
|
@ -134,6 +138,11 @@ public class Table3D extends Table {
|
|||
storageAddress + offset * storageType - ramOffset,
|
||||
storageType));
|
||||
}
|
||||
|
||||
// show locked cell
|
||||
if (tempLock) {
|
||||
data[y][x].setForeground(Color.GRAY);
|
||||
}
|
||||
|
||||
centerPanel.add(data[y][x]);
|
||||
data[y][x].setXCoord(y);
|
||||
|
@ -142,7 +151,9 @@ public class Table3D extends Table {
|
|||
offset++;
|
||||
}
|
||||
}
|
||||
//this.colorize();
|
||||
|
||||
// reset locked status
|
||||
locked = tempLock;
|
||||
|
||||
GridLayout topLayout = new GridLayout(2, 1);
|
||||
JPanel topPanel = new JPanel(topLayout);
|
||||
|
|
Loading…
Reference in New Issue