Skip to content

Add function to find a TopMenu Item#1944

Closed
Ilusion9 wants to merge 5 commits intoalliedmodders:masterfrom
Ilusion9:master
Closed

Add function to find a TopMenu Item#1944
Ilusion9 wants to merge 5 commits intoalliedmodders:masterfrom
Ilusion9:master

Conversation

@Ilusion9
Copy link
Copy Markdown

@Ilusion9 Ilusion9 commented Mar 4, 2023

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.

@KyleSanderson
Copy link
Copy Markdown
Member

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

@peace-maker peace-maker reopened this Sep 27, 2023
@peace-maker
Copy link
Copy Markdown
Member

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

@Ilusion9 Ilusion9 closed this by deleting the head repository Mar 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants