MCPcopy Index your code
hub / github.com/walterhiggins/ScriptCraft / _updateSign

Function _updateSign

src/main/js/modules/signs/menu.js:101–111  ·  view source on GitHub ↗
(p_player, p_sign)

Source from the content-addressed store, hash-verified

99 var cSelectedIndex = selectedIndex;
100 setLine(sign, 0, paddedLabel.bold());
101 var _updateSign = function(p_player, p_sign) {
102 cSelectedIndex = (cSelectedIndex + 1) % optLen;
103 _redrawMenuSign(p_sign, cSelectedIndex, displayOptions);
104 var signSelectionEvent = {
105 player: p_player,
106 sign: p_sign,
107 text: options[cSelectedIndex],
108 number: cSelectedIndex
109 };
110 callback(signSelectionEvent);
111 };
112
113 /*
114 get a unique ID for this particular sign instance

Callers

nothing calls this directly

Calls 1

_redrawMenuSignFunction · 0.85

Tested by

no test coverage detected