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

Function changeEditingSubPanel

js/main.js:234–237  ·  view source on GitHub ↗
(subPanelNumber)

Source from the content-addressed store, hash-verified

232
233 // Set the current editing (SUB)panel based off paramter number, within the correct range (0 < # of panels - 1)
234 const changeEditingSubPanel = function(subPanelNumber) {
235 currentlySelectedSubPanelIndex = clamp(subPanelNumber, -1, post.panels[currentlySelectedPanelIndex].sign.subPanels.length - 1)
236 updateForm();
237 };
238
239 // Create a new exit tab, update the form, and redraw.
240 const newExitTab = function() {

Callers 1

updateFormFunction · 0.85

Calls 2

clampFunction · 0.85
updateFormFunction · 0.70

Tested by

no test coverage detected