Page 1 of 1

Completely hiding shortcuts

Posted: Tue Dec 10, 2019 3:50 am
by raiguard
While I have been developing Editor Extensions, I have found myself wishing I had more control over the shortcut bar. For example, I wish to add a tool that lets you quickly and easily remove all fluid from a fluid system (this has been done before in other mods such as Picker, but I think it would be a useful addition in my mod as well). However, since it's Editor Extensions, I wish for that tool only to be accessible in the map editor.

You can already disable/enable shortcuts, but you can't get rid of them entirely. I would like to request this ability. Something like get_shortcut_visible() and set_shortcut_visible().

I do realize that this might cause some headaches with shortcut ordering, but I figured I would request it anyway. Maybe we could get API methods for manipulating the shortcut order as well? :D

Thanks!

EDIT: I just realized that my example usecase doesn't need a shortcut at all, but I would still like to request this anyway. :)