MCPcopy Create free account
hub / github.com/BombusMod/BombusMod / menuAction

Method menuAction

src/main/java/Colors/ColorsList.java:79–91  ·  view source on GitHub ↗
(MenuCommand c, VirtualList d)

Source from the content-addressed store, hash-verified

77 }
78
79 public void menuAction(MenuCommand c, VirtualList d) {
80 commandState();
81 super.menuAction(c, d);
82 if (c == cmdCopyColor) {
83 colorBuffer = ((ColorVisualItem) getFocusedObject()).getItemColor();
84 }
85 if (c == cmdPasteColor) {
86 ColorTheme.setColor(cursor, colorBuffer);
87 ((ColorVisualItem) getFocusedObject()).setColor(colorBuffer);
88 ColorTheme.saveToStorage();
89 redraw();
90 }
91 }
92
93 public void eventOk() {
94 new ColorSelectForm( this, this, cursor);

Callers

nothing calls this directly

Calls 8

commandStateMethod · 0.95
setColorMethod · 0.95
saveToStorageMethod · 0.95
getItemColorMethod · 0.80
getFocusedObjectMethod · 0.80
menuActionMethod · 0.65
setColorMethod · 0.45
redrawMethod · 0.45

Tested by

no test coverage detected