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

Function changeEditingExitTab

js/main.js:285–289  ·  view source on GitHub ↗
(exitTabNumber, nestedExitTabNumber)

Source from the content-addressed store, hash-verified

283
284 // Set the current editing exit tab based off paramter number, its child, within the correct range (0 < # of exit Tabs - 1 // Secondary: 0 < # of child exit Tabs)
285 const changeEditingExitTab = function(exitTabNumber, nestedExitTabNumber) {
286 currentlySelectedExitTabIndex = clamp(exitTabNumber, 0, post.panels[currentlySelectedPanelIndex].exitTabs.length - 1);
287 currentlySelectedNestedExitTabIndex = (nestedExitTabNumber != null) ? clamp(nestedExitTabNumber, -1, post.panels[currentlySelectedPanelIndex].exitTabs[currentlySelectedExitTabIndex].nestedExitTabs.length - 1) : -1;
288 updateForm();
289 };
290
291 // Add a new shield to the current panel's sign, update the shield subform, and redraw the sign.
292 const newShield = function() {

Callers 1

updateFormFunction · 0.85

Calls 2

clampFunction · 0.85
updateFormFunction · 0.70

Tested by

no test coverage detected