summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2016-12-15 11:35:30 +0100
committerWuzzy <almikes@aol.com>2016-12-15 11:35:30 +0100
commitd9bd225b9de466c05964126591c4f2b49743a036 (patch)
tree97648b608e7778536816e2821ec580d1fdd0a200
parent0d423d2970a71f99991068ac543d5a86c0b91503 (diff)
Make text widget background fully black
-rw-r--r--init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index 25b54d1..49392f2 100644
--- a/init.lua
+++ b/init.lua
@@ -527,7 +527,7 @@ doc.widgets.text = function(data, x, y, width, height)
-- TODO: Wait for Minetest to provide a native widget for scrollable read-only text with automatic line breaks.
-- Currently, all of this had to be hacked into this script manually by using/abusing the table widget
local formstring = "tablecolumns[text]"..
- "tableoptions[background=#00000000;highlight=#00000000;border=false]"..
+ "tableoptions[background=#000000FF;highlight=#000000FF;border=false]"..
"table["..tostring(x)..","..tostring(y)..";"..tostring(width)..","..tostring(height)..";"..widget_id..";"..text_for_textlist(data, linelength).."]"
return formstring, widget_id
end