Difference between revisions of "Widget:RuneDisp"
From Official Runecraft Wiki
Line 42: | Line 42: | ||
− | var | + | var length = runefiles.length; |
− | |||
var reversedRunes = runefiles.reverse(); | var reversedRunes = runefiles.reverse(); | ||
Line 50: | Line 49: | ||
const option = document.createElement('option'); | const option = document.createElement('option'); | ||
option.value = rne; | option.value = rne; | ||
− | if ( | + | if (length == activationlayer) { |
option.textContent = 'Activation Layer'; | option.textContent = 'Activation Layer'; | ||
} else { | } else { | ||
− | option.textContent = 'Layer '+ | + | option.textContent = 'Layer '+ length); |
} | } | ||
select.appendChild(option); | select.appendChild(option); | ||
− | + | length--; | |
} | } | ||
Revision as of 18:25, 14 January 2022