sourcemod icon indicating copy to clipboard operation
sourcemod copied to clipboard

Add function to find a TopMenu Item

Open Ilusion9 opened this issue 2 years ago • 2 comments

This can be used to change the logic of TopMenu items (find item -> remove -> create again) registered by base plugins (basecommands for example). I will use this to change the logic for sm_who (instead of flags, I will display their groups) so I don't have to modify basecommands whenever its updated.

Ilusion9 avatar Mar 04 '23 18:03 Ilusion9

It looks like you may have forgotten to include the header change

KyleSanderson avatar Mar 30 '23 05:03 KyleSanderson

The function needs to be added to the public ITopMenu interface too. https://github.com/alliedmodders/sourcemod/blob/master/public/extensions/ITopMenus.h

peace-maker avatar Sep 27 '23 14:09 peace-maker