I can pass table with some values to any .script with msg.post but if i pass it to .gui_script i have no values at table! And i am shure that it pass the msg, cose i can trace it by debugger and message_id has “disable”.
Code of post:
msg.post(MENU,"disable",{what="main"})
Code of receave:
function on_message(self, message_id, message, sender)
if message_id == hash("enable") then
local what = message["what"]
local l = gui.get_node(what)
gui.set_enabled(l, true)
else if message_id == hash("disable") then
local what = message["what"]
pprint(message) <----------- this print under code
local l = gui.get_node(what)
gui.set_enabled(l, false)
end
end
end