mirror of
https://github.com/Insality/druid.git
synced 2025-06-27 10:27:47 +02:00
* remove components from main factory * register base components in factory, interest moved to druid.data * add simple usage of button * translatable should be in data * ability to extend components, stubs for sounds and locale
16 lines
256 B
Lua
16 lines
256 B
Lua
local M = {}
|
|
|
|
local ADD_FOCUS = hash("acquire_input_focus")
|
|
local REMOVE_FOCUS = hash("release_input_focus")
|
|
local PATH_OBJ = "."
|
|
|
|
function M.focus()
|
|
msg.post(PATH_OBJ, ADD_FOCUS)
|
|
end
|
|
|
|
function M.remove()
|
|
msg.post(PATH_OBJ, REMOVE_FOCUS)
|
|
end
|
|
|
|
return M
|