Skip to content

Commit

Permalink
feat(radar): add support for debugReload to radar
Browse files Browse the repository at this point in the history
  • Loading branch information
mwerle committed Nov 3, 2024
1 parent 7228502 commit 7b175ad
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion data/pigui/modules/radar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,13 @@ require 'Serializer':Register("PiguiRadar",
function () return { shouldDisplay2DRadar = shouldDisplay2DRadar } end,
function (data) shouldDisplay2DRadar = data.shouldDisplay2DRadar end)

ui.registerModule("game", displayRadar)
ui.registerModule("game", {
id = "game-view-radar-module",
draw = displayRadar,
debugReload = function()
print("Radar module reloading..")
package.reimport()
end
})

return {}

0 comments on commit 7b175ad

Please sign in to comment.