mirror of
https://github.com/Insality/druid
synced 2025-09-27 18:12:21 +02:00
Update for event v12
This commit is contained in:
@@ -3,9 +3,9 @@
|
||||
-- This one is a required to make a unified "Shaders" pipeline in the GUI scripts
|
||||
-- This required to grab a texture data with `go.get` function
|
||||
|
||||
local defer = require("event.defer")
|
||||
local queues = require("event.queues")
|
||||
|
||||
---Usage: defer.push("druid.get_atlas_path", {
|
||||
---Usage: queues.push("druid.get_atlas_path", {
|
||||
--- texture_name = gui.get_texture(self.node),
|
||||
--- sender = msg.url(),
|
||||
---}, callback, [context])
|
||||
@@ -35,10 +35,10 @@ end
|
||||
|
||||
|
||||
function init(self)
|
||||
defer.subscribe(MESSAGE_GET_ATLAS_PATH, get_atlas_path, self)
|
||||
queues.subscribe(MESSAGE_GET_ATLAS_PATH, get_atlas_path, self)
|
||||
end
|
||||
|
||||
|
||||
function final(self)
|
||||
defer.unsubscribe(MESSAGE_GET_ATLAS_PATH, get_atlas_path, self)
|
||||
queues.unsubscribe(MESSAGE_GET_ATLAS_PATH, get_atlas_path, self)
|
||||
end
|
||||
|
Reference in New Issue
Block a user