Skip to content

Commit

Permalink
improve generic_mapper to send event when finished loading (Mudlet#7556)
Browse files Browse the repository at this point in the history
<!-- Keep the title short & concise so anyone non-technical can
understand it,
     the title appears in PTB changelogs -->
#### Brief overview of PR changes/additions
Add event to generic_mapper. Send event `mapperScriptLoaded` with
argument `generic_mapper` when finished loading ie.
`raiseEvent("mapperScriptLoaded", "generic_mapper")`

#### Motivation for adding to Mudlet
Better scripter experience.

#### Other info (issues closed, discussion etc)
Also updated and moved the (currently unused) generic_mapper.mpackage to
the Lua package subdirectory.
closes Mudlet#7533
  • Loading branch information
ZookaOnGit authored Dec 14, 2024
1 parent 679f1ee commit 289b5e3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
Binary file not shown.
1 change: 1 addition & 0 deletions src/mudlet-lua/lua/generic-mapper/generic_mapper.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4159,6 +4159,7 @@ function map.eventHandler(event, ...)
end
elseif event == "sysLoadEvent" or event == "sysInstall" then
config()
raiseEvent("mapperScriptLoaded", "generic_mapper")
elseif event == "mapOpenEvent" then
if not help_shown and not map.save.prompt_pattern[map.character or ""] then
map.find_prompt()
Expand Down
2 changes: 1 addition & 1 deletion src/mudlet-lua/lua/generic-mapper/versions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ return {{[1] = [[2.0]],[2] = [[2.0.1]],[3] = [[2.0.2]],[4] = [[2.0.3]],[5] = [[2
[13] = [[2.0.12]], [14] = [[2.0.13]], [15] = [[2.0.14]], [16] = [[2.0.15]], [17] = [[2.0.16]], [18] = [[2.0.17]],
[19] = [[2.0.18]], [20] = [[2.0.19]], [21] = [[2.0.20]], [22] = [[2.0.21]], [23] = [[2.0.22]], [24] = [[2.0.23]],
[25] = [[2.0.24]], [26] = [[2.0.25]], [27] = [[2.0.26]], [28] = [[2.0.27]], [29] = [[2.1.0]], [30] = [[2.1.1]],
[31] = [[2.1.2]], [32] = [[2.1.3]]
[31] = [[2.1.2]], [32] = [[2.1.3]], [33] = [[2.1.4]]
}}

0 comments on commit 289b5e3

Please sign in to comment.