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

Reload Lua mods when enabling/disabling #7634

Merged
merged 1 commit into from
Jan 10, 2025

Conversation

StephenCWills
Copy link
Member

Looks like the settings menu was already functional after the last PR.

image

This PR adds the ValueChangedCallback to reload the Lua mods when adjusting these settings. Tested using a simple Hello World mod.

local events = require("devilutionx.events")

events.GameStart.add(function()
    print("Hello world!")
end)

@AJenbo AJenbo merged commit 3b841b5 into diasurgical:master Jan 10, 2025
23 checks passed
@AJenbo
Copy link
Member

AJenbo commented Jan 10, 2025

This is starting to come together!

@StephenCWills StephenCWills deleted the mod-settings-menu branch January 10, 2025 00:25
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.

2 participants