Difference between revisions of "Widget:RuneDisp"

From Official Runecraft Wiki
Line 15: Line 15:
 
runefiles.push('<!--{$iter}-->');
 
runefiles.push('<!--{$iter}-->');
 
<!--{/foreach}-->;
 
<!--{/foreach}-->;
document.write(runefiles);
 
  
 
if (multilayer == "false") {
 
if (multilayer == "false") {
Line 45: Line 44:
 
option.textContent = 'Activation Layer';
 
option.textContent = 'Activation Layer';
 
} else {
 
} else {
option.textContent = 'Layer '+layer;
+
option.textContent = 'Layer '+runefiles.indexOf(rne);
 
}
 
}
 
select.appendChild(option);
 
select.appendChild(option);
layer--;
 
 
}
 
}
// add default option
 
// const option = document.createElement('option');
 
// option.value = runefile;
 
// option.textContent = 'Full Rune';
 
// select.appendChild(option);
 
  
  

Revision as of 17:43, 14 January 2022