MCPcopy Create free account
hub / github.com/JKPotato-Computer/SignMaker / duplicateShield

Function duplicateShield

js/main.js:318–323  ·  view source on GitHub ↗
(shieldIndex)

Source from the content-addressed store, hash-verified

316
317 // Duplicate a shield
318 const duplicateShield = function(shieldIndex) {
319 const sign = post.panels[currentlySelectedPanelIndex].sign;
320 sign.duplicateShield(shieldIndex, currentlySelectedSubPanelIndex);
321 updateShieldSubform();
322 redraw();
323 }
324
325 const checkSpecialShield = function(shieldIndex, specialShield) {
326 const shields = post.panels[currentlySelectedPanelIndex].sign.subPanels[currentlySelectedSubPanelIndex].shields;

Callers 1

updateShieldSubformFunction · 0.70

Calls 3

duplicateShieldMethod · 0.80
updateShieldSubformFunction · 0.70
redrawFunction · 0.70

Tested by

no test coverage detected