Skip to content
Snippets Groups Projects
Verified Commit e1131d5e authored by Tuxilio's avatar Tuxilio
Browse files

Fix color

parent 8ba15919
No related branches found
No related tags found
No related merge requests found
......@@ -16,10 +16,15 @@ local mqttBaseTopic = core.settings:get("ledtree_base_topic") or "ledtree"
local client = mqtt.connect(data.url, data.clientId, data.username, data.password)
mqtt.subscribe(client, "ledtree/led/1", function(topic, payload)
core.chat_send_all("Received message from topic "..topic..": "..payload)
end
)
local change_color = function(player, led_id)
local formspec = "size[3,3]" ..
"image_button[0,0;1,1;red.png;red;red;false;false;]" ..
"image_button[1,0;1,1;green.png;gren;green;false;false;]" ..
"image_button[1,0;1,1;green.png;green;green;false;false;]" ..
"image_button[2,0;1,1;blue.png;blue;blue;false;false;]" ..
"image_button[0,1;1,1;yellow.png;yellow;yellow;false;false;]" ..
"image_button[1,1;1,1;cyan.png;cyan;cyan;false;false;]" ..
......
ledtree_base_topic (Base topic (e.g. /[base_topic]/led/1)) string ledtree
ledtree_base_topic "Base topic (e.g. [base_topic]/led/1)" string "ledtree"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment