MCPcopy Create free account
hub / github.com/badvision/jace / addWatch

Method addWatch

src/main/java/jace/ui/MetacheatUI.java:538–560  ·  view source on GitHub ↗
(int addr)

Source from the content-addressed store, hash-verified

536 }
537
538 private Watch addWatch(int addr) {
539 Watch watch = new Watch(addr, this);
540 watch.setPadding(new Insets(5));
541 watch.setOpaqueInsets(new Insets(10));
542
543 Label addCheat = new Label("Cheat >>");
544 addCheat.setOnMouseClicked((mouseEvent) -> {
545 addCheat("Metacheat " + Integer.toHexString(addr), addr, watch.getValue());
546 });
547 addCheat.setTextFill(Color.WHITE);
548 watch.getChildren().add(addCheat);
549
550 Label close = new Label("Close X");
551 close.setOnMouseClicked((mouseEvent) -> {
552 watch.disconnect();
553 watchesPane.getChildren().remove(watch);
554 });
555 close.setTextFill(Color.WHITE);
556 watch.getChildren().add(close);
557
558 watchesPane.getChildren().add(watch);
559 return watch;
560 }
561
562 private void addCheat(String name, int addr, int val) {
563 cheatEngine.addCheat(new DynamicCheat(name, addr, val));

Callers 2

initializeMethod · 0.95
memoryViewClickedMethod · 0.95

Calls 6

addCheatMethod · 0.95
getValueMethod · 0.95
disconnectMethod · 0.95
addMethod · 0.80
removeMethod · 0.80
getChildrenMethod · 0.45

Tested by

no test coverage detected