2021-11-22, 23:28
(2021-11-22, 22:15)jdig4240 Wrote: Hey Bart, heres a question for ya, is it possible to create a custom shortcut/Submenu item that toggles a skin setting? In particular I was looking to make one to switch on/off the disable home shelves skin settings, this is just an example, I was always curious if this is even possible or not?
@jdig4240 , @Joeyrub , it is possible, but you would have to know the skin setting name, and you would have to edit the "command" to be executed. The steps to do what you are looking for would be the following:
1. Go to the menu configuration dialog, choose the menu item where you want to add the option as a submenu, and choose Customize Submenu.
2. Add a new item.
3. Instead of Choose Item for Menu, go to Change Action:
4. Go to the end of the dialog and select "Custom Item":
5. Type "Skin.ToggleSetting(Hide.AllShelves)" (without the ") as the action:
6. Edit the label, as there will be no default one provided for a custom action:
7. And you should get something like this:
Now go back to the main menu, and wait for skinshortcuts to rebuild the menu. After that, you should have a new submenu option that will toggle the skin setting to hide all the shelves.
If you are willing to do all of these steps, then please let me know which other settings you would like to change from a submenu item, and I will provide you with the setting names. Thanks.
Regards,
Bart