mirror of
https://github.com/badvision/jace.git
synced 2024-11-30 23:49:52 +00:00
Watch address is now clickable which starts inspector for that address
This commit is contained in:
parent
baa79b26c2
commit
c5167901b8
@ -54,16 +54,11 @@ class Watch extends VBox {
|
|||||||
redraw = outer.animationTimer.scheduleAtFixedRate(this::redraw, MetacheatUI.FRAME_RATE, MetacheatUI.FRAME_RATE, TimeUnit.MILLISECONDS);
|
redraw = outer.animationTimer.scheduleAtFixedRate(this::redraw, MetacheatUI.FRAME_RATE, MetacheatUI.FRAME_RATE, TimeUnit.MILLISECONDS);
|
||||||
setBackground(new Background(new BackgroundFill(Color.NAVY, CornerRadii.EMPTY, Insets.EMPTY)));
|
setBackground(new Background(new BackgroundFill(Color.NAVY, CornerRadii.EMPTY, Insets.EMPTY)));
|
||||||
Label addrLabel = new Label("$" + Integer.toHexString(address));
|
Label addrLabel = new Label("$" + Integer.toHexString(address));
|
||||||
|
addrLabel.setOnMouseClicked((evt)-> outer.inspectAddress(address));
|
||||||
addrLabel.setTextAlignment(TextAlignment.CENTER);
|
addrLabel.setTextAlignment(TextAlignment.CENTER);
|
||||||
addrLabel.setMinWidth(GRAPH_WIDTH);
|
addrLabel.setMinWidth(GRAPH_WIDTH);
|
||||||
addrLabel.setFont(new Font(Font.getDefault().getFamily(), 14));
|
addrLabel.setFont(new Font(Font.getDefault().getFamily(), 14));
|
||||||
addrLabel.setTextFill(Color.WHITE);
|
addrLabel.setTextFill(Color.WHITE);
|
||||||
addrLabel.setMouseTransparent(false);
|
|
||||||
addrLabel.setOnMouseClicked((MouseEvent evt)-> {
|
|
||||||
if (evt.isPrimaryButtonDown()) {
|
|
||||||
outer.inspectAddress(address);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
graph = new Canvas(GRAPH_WIDTH, GRAPH_HEIGHT);
|
graph = new Canvas(GRAPH_WIDTH, GRAPH_HEIGHT);
|
||||||
getChildren().add(addrLabel);
|
getChildren().add(addrLabel);
|
||||||
getChildren().add(graph);
|
getChildren().add(graph);
|
||||||
|
Loading…
Reference in New Issue
Block a user