(subPanelIndex)
| 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 |