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

Method processMemoryViewUpdates

src/main/java/jace/ui/MetacheatUI.java:432–451  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

430 }
431
432 private void processMemoryViewUpdates() {
433 boolean isRunning = Emulator.withComputer(c->c.getMotherboard().isRunning(), false);
434 if (!isRunning) return;
435 GraphicsContext context = memoryViewCanvas.getGraphicsContext2D();
436 Platform.runLater(() -> {
437 redrawNodes.values().stream().forEach((jace.cheat.MemoryCell cell) -> {
438 if (showValuesCheckbox.isSelected()) {
439 int val = cell.value.get() & 0x0ff;
440 context.setFill(Color.rgb(val, val, val));
441 } else {
442 context.setFill(Color.rgb(
443 cell.writeCount.get(),
444 cell.readCount.get(),
445 cell.execCount.get()));
446 }
447 context.fillRect(cell.getX(), cell.getY(), cell.getWidth(), cell.getHeight());
448 });
449 redrawNodes.clear();
450 });
451 }
452
453 public static int FRAME_RATE = 1000 / 30;
454

Callers

nothing calls this directly

Calls 8

withComputerMethod · 0.95
getMotherboardMethod · 0.80
getXMethod · 0.80
getYMethod · 0.80
isRunningMethod · 0.45
getMethod · 0.45
getWidthMethod · 0.45
getHeightMethod · 0.45

Tested by

no test coverage detected