Add screenshots and a README to display them.

This commit is contained in:
Signal 2026-02-15 19:20:34 -05:00
parent ce6cb893bf
commit 48ffa74bfd
12 changed files with 229 additions and 168 deletions

View file

@ -373,7 +373,7 @@ fs_hypertext.__index = fs_hypertext
setmetatable(fs_hypertext, {
__call = function(_, x, y, w, h, txt)
local e = {x = x, y = y, w = w, h = h, txt = txt, _styles = {}}
e.__id = "_"..minetest.get_us_time().."_"..math.random(1, 100000)
e.__id = new_id()
setmetatable(e, fs_hypertext)
table.insert(ctx, e)
return e
@ -747,7 +747,7 @@ fs_scrollbar.__index = fs_scrollbar
setmetatable(fs_scrollbar, {
__call = function(_, x, y, w, h, orientation, value)
local e = {x = x, y = y, w = w, h = h, orientation = orientation or "vertical", value = value or "", _styles = {}}
e.__id = "_"..minetest.get_us_time().."_"..math.random(1, 100000)
e.__id = new_id()
setmetatable(e, fs_scrollbar)
ctx[#ctx +1] = e
return e