Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Buttons: Post Button Init Hook #1610

Merged
merged 3 commits into from
Sep 19, 2024
Merged

Buttons: Post Button Init Hook #1610

merged 3 commits into from
Sep 19, 2024

Conversation

TimGoll
Copy link
Member

@TimGoll TimGoll commented Sep 16, 2024

Added a hook that is called AFTER all buttons on the map are initialized. This happens on hotreload and post map cleanup. I added this hook because I need it in my button name addon so that I don't have to rebuilt the existing list again.

---
-- Hook that is called after all buttons were initialized on the map. This happens after
-- a map cleanup when a new round starts or when the list is rebuilt after a hotreload.
-- @param table buttonList A table with all buttons found on the map
-- @hook
-- @realm server
function GM:TTT2PostButtonInitialization(buttonList)

@TimGoll TimGoll added the type/enhancement Enhancement or simple change to existing functionality label Sep 16, 2024
@TimGoll TimGoll added this to the v0.14.0b milestone Sep 16, 2024
Copy link
Member

@Histalek Histalek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@TimGoll TimGoll merged commit 2c8edbd into master Sep 19, 2024
4 checks passed
@TimGoll TimGoll deleted the post-button-init-hook branch September 19, 2024 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement Enhancement or simple change to existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants