MCPcopy Index your code
hub / github.com/JKPotato-Computer/SignMaker / newShield

Function newShield

js/main.js:292–297  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

290
291 // Add a new shield to the current panel's sign, update the shield subform, and redraw the sign.
292 const newShield = function() {
293 const sign = post.panels[currentlySelectedPanelIndex].sign;
294 sign.newShield(currentlySelectedSubPanelIndex);
295 updateShieldSubform();
296 redraw();
297 };
298
299 // Delete the current shield, update the shield subform, and redraw the sign
300 const deleteShield = function(shieldIndex) {

Callers

nothing calls this directly

Calls 3

newShieldMethod · 0.80
updateShieldSubformFunction · 0.70
redrawFunction · 0.70

Tested by

no test coverage detected