mirror of
https://github.com/sirjonasxx/G-Earth.git
synced 2024-11-23 08:50:52 +01:00
timestamp in packetlogger
This commit is contained in:
parent
303685726d
commit
869d39cf86
@ -67,6 +67,7 @@ public class UiLoggerController implements Initializable {
|
|||||||
public RadioMenuItem chkAntiSpam_high;
|
public RadioMenuItem chkAntiSpam_high;
|
||||||
public RadioMenuItem chkAntiSpam_ultra;
|
public RadioMenuItem chkAntiSpam_ultra;
|
||||||
public Label lblFiltered;
|
public Label lblFiltered;
|
||||||
|
public CheckMenuItem chkTimestamp;
|
||||||
|
|
||||||
private Map<Integer, LinkedList<Long>> filterTimestamps = new HashMap<>();
|
private Map<Integer, LinkedList<Long>> filterTimestamps = new HashMap<>();
|
||||||
|
|
||||||
@ -127,7 +128,8 @@ public class UiLoggerController implements Initializable {
|
|||||||
chkViewIncoming, chkViewOutgoing, chkDisplayStructure, chkAutoscroll,
|
chkViewIncoming, chkViewOutgoing, chkDisplayStructure, chkAutoscroll,
|
||||||
chkSkipBigPackets, chkMessageName, chkMessageHash, chkUseNewStructures,
|
chkSkipBigPackets, chkMessageName, chkMessageHash, chkUseNewStructures,
|
||||||
chkOpenOnConnect, chkResetOnConnect, chkHideOnDisconnect, chkResetOnDisconnect,
|
chkOpenOnConnect, chkResetOnConnect, chkHideOnDisconnect, chkResetOnDisconnect,
|
||||||
chkAntiSpam_none, chkAntiSpam_low, chkAntiSpam_medium, chkAntiSpam_high, chkAntiSpam_ultra
|
chkAntiSpam_none, chkAntiSpam_low, chkAntiSpam_medium, chkAntiSpam_high, chkAntiSpam_ultra,
|
||||||
|
chkTimestamp
|
||||||
));
|
));
|
||||||
loadAllMenuItems();
|
loadAllMenuItems();
|
||||||
|
|
||||||
@ -213,6 +215,10 @@ public class UiLoggerController implements Initializable {
|
|||||||
ArrayList<Element> elements = new ArrayList<>();
|
ArrayList<Element> elements = new ArrayList<>();
|
||||||
|
|
||||||
|
|
||||||
|
if (chkTimestamp.isSelected()) {
|
||||||
|
elements.add(new Element(String.format("(timestamp: %d)\n", System.currentTimeMillis()), "timestamp"));
|
||||||
|
}
|
||||||
|
|
||||||
boolean packetInfoAvailable = packetInfoManager.getPacketInfoList().size() > 0;
|
boolean packetInfoAvailable = packetInfoManager.getPacketInfoList().size() > 0;
|
||||||
|
|
||||||
if ((chkMessageName.isSelected() || chkMessageHash.isSelected()) && packetInfoAvailable) {
|
if ((chkMessageName.isSelected() || chkMessageHash.isSelected()) && packetInfoAvailable) {
|
||||||
|
@ -51,6 +51,7 @@
|
|||||||
<CheckMenuItem fx:id="chkMessageName" mnemonicParsing="false" selected="true" text="Message Name" />
|
<CheckMenuItem fx:id="chkMessageName" mnemonicParsing="false" selected="true" text="Message Name" />
|
||||||
<CheckMenuItem fx:id="chkMessageHash" mnemonicParsing="false" text="Message Hash" />
|
<CheckMenuItem fx:id="chkMessageHash" mnemonicParsing="false" text="Message Hash" />
|
||||||
<CheckMenuItem fx:id="chkUseNewStructures" mnemonicParsing="false" selected="true" text="New structures" />
|
<CheckMenuItem fx:id="chkUseNewStructures" mnemonicParsing="false" selected="true" text="New structures" />
|
||||||
|
<CheckMenuItem fx:id="chkTimestamp" mnemonicParsing="false" text="Timestamp" />
|
||||||
</items>
|
</items>
|
||||||
</Menu>
|
</Menu>
|
||||||
<Menu mnemonicParsing="false" text="Anti-spam filter">
|
<Menu mnemonicParsing="false" text="Anti-spam filter">
|
||||||
|
@ -11,6 +11,10 @@
|
|||||||
-fx-fill: #ffff00;
|
-fx-fill: #ffff00;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.timestamp {
|
||||||
|
-fx-fill: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
.incoming {
|
.incoming {
|
||||||
-fx-fill: #b22222;
|
-fx-fill: #b22222;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user