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

Method duplicateSubPanel

js/Sign.js:183–193  ·  view source on GitHub ↗
(subPanelIndex)

Source from the content-addressed store, hash-verified

181 }
182
183 duplicateSubPanel(subPanelIndex) {
184 const existingSubPanel = this.subPanels[subPanelIndex];
185 const new_SubPanel = new SubPanels({
186 controlText : existingSubPanel.controlText,
187 actionMessage : existingSubPanel.actionMessage,
188 shields : existingSubPanel.shields,
189 width : existingSubPanel.width,
190 height : existingSubPanel.height
191 })
192 this.subPanels.push(new_SubPanel);
193 }
194
195}
196

Callers 1

duplicateSubPanelFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected