Anonymous

Mod Creation/Essentials: Difference between revisions

From Melvor Idle
Line 324: Line 324:


== Customizing the Sidebar ==
== Customizing the Sidebar ==
''This topic has an API reference at [[Mod Creation/Sidebar API Reference]].''


If you want to add or modify the in-game sidebar (the menu with the bank, skills, etc.) there is an globally-scoped in-game API, <code>sidebar</code>, for doing so. The sidebar is organized into four levels:
If you want to add or modify the in-game sidebar (the menu with the bank, skills, etc.) there is an globally-scoped in-game API, <code>sidebar</code>, for doing so. The sidebar is organized into four levels:
Line 364: Line 366:
sidebar.category('Modding').item('Mod Manager').remove();
sidebar.category('Modding').item('Mod Manager').remove();
sidebar.category('General').item('Completion Log').removeAllSubitems();</nowiki>
sidebar.category('General').item('Completion Log').removeAllSubitems();</nowiki>
You can find specifics about the sidebar API in the [[Mod Creation/Sidebar API Reference]] guide.


== Creating Reusable HTML Components ==
== Creating Reusable HTML Components ==
91

edits