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

Function clearShields

js/main copy.js:210–220  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

208 };
209
210 const clearShields = function() {
211 var items = post.panels[currentlySelectedPanelIndex].sign.shields.length
212 if (items != 0) {
213 const sign = post.panels[currentlySelectedPanelIndex].sign;
214 for (let i = 0 - items; i < items; i++) {
215 sign.deleteShield(i);
216 updateShieldSubform();
217 redraw();
218 }
219 }
220 };
221
222 const duplicateShield = function(shieldIndex) {
223 const sign = post.panels[currentlySelectedPanelIndex].sign;

Callers

nothing calls this directly

Calls 3

deleteShieldMethod · 0.80
updateShieldSubformFunction · 0.70
redrawFunction · 0.70

Tested by

no test coverage detected