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

Function changeEditingPanel

js/main.js:200–204  ·  view source on GitHub ↗
(panelNumber)

Source from the content-addressed store, hash-verified

198
199 // Set the current panel based off parameter number, within the correct range (0 < # of panels - 1)
200 const changeEditingPanel = function(panelNumber) {
201 currentlySelectedPanelIndex = clamp(panelNumber, 0, post.panels.length - 1)
202 currentlySelectedSubPanelIndex = 0;
203 updateForm();
204 };
205
206 const addSubPanel = function() {
207 const sign = post.panels[currentlySelectedPanelIndex].sign;

Callers 1

updateFormFunction · 0.70

Calls 2

clampFunction · 0.85
updateFormFunction · 0.70

Tested by

no test coverage detected