5,743
edits
(Fix missing namespace ID for skill) |
(Fix incorrect IDs for sidebar skills) |
||
(One intermediate revision by the same user not shown) | |||
Line 316: | Line 316: | ||
<syntaxhighlight lang="js" line>// Removes the Summoning skill from the sidebar | <syntaxhighlight lang="js" line>// Removes the Summoning skill from the sidebar | ||
sidebar.category('Non-Combat').item('Summoning').remove();</syntaxhighlight> | sidebar.category('Non-Combat').item('melvorD:Summoning').remove();</syntaxhighlight> | ||
=== subitem(id: string, config?: SubitemConfig, builder?: (subitem: Subitem) => void): Subitem === | === subitem(id: string, config?: SubitemConfig, builder?: (subitem: Subitem) => void): Subitem === | ||
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(' | sidebar.category('Non-Combat').item('melvorD:Magic').click(); | ||
} | } | ||
});</syntaxhighlight> | });</syntaxhighlight> |