Mod Creation/Sidebar API Reference: Difference between revisions

Fix incorrect IDs for sidebar skills
(Fix missing namespace ID for skill)
(Fix incorrect IDs for sidebar skills)
 
Line 342: Line 342:


// Add a shortcut to Alt. Magic beneath Magic
// Add a shortcut to Alt. Magic beneath Magic
sidebar.category('Combat').item('Magic').subitem('Alt. Magic', {
sidebar.category('Combat').item('melvorD:Magic').subitem('Alt. Magic', {
   onClick() {
   onClick() {
     sidebar.category('Non-Combat').item('Alt. Magic').click();
     sidebar.category('Non-Combat').item('melvorD:Magic').click();
   }
   }
});</syntaxhighlight>
});</syntaxhighlight>