2021-11-14 14:39:48 -06:00
|
|
|
i3.new_tab("test1", {
|
2021-01-21 12:28:54 -06:00
|
|
|
description = "Test 1 Test 1",
|
2021-01-15 18:46:26 -06:00
|
|
|
image = "i3_heart.png",
|
|
|
|
|
|
|
|
formspec = function(player, data, fs)
|
|
|
|
fs("label[3,1;Test 1]")
|
|
|
|
end,
|
2021-11-14 14:39:48 -06:00
|
|
|
})
|
2021-01-15 18:46:26 -06:00
|
|
|
|
2021-11-14 14:39:48 -06:00
|
|
|
i3.new_tab("test2", {
|
2021-01-15 18:46:26 -06:00
|
|
|
description = "Test 2",
|
|
|
|
image = "i3_mesepick.png",
|
|
|
|
|
|
|
|
formspec = function(player, data, fs)
|
|
|
|
fs("label[3,1;Test 2]")
|
|
|
|
end,
|
2021-11-14 14:39:48 -06:00
|
|
|
})
|
2021-01-15 18:46:26 -06:00
|
|
|
|
2021-11-14 14:39:48 -06:00
|
|
|
i3.new_tab("test3", {
|
2021-01-15 18:46:26 -06:00
|
|
|
description = "Test 3",
|
|
|
|
|
|
|
|
access = function(player, data)
|
|
|
|
local name = player:get_player_name()
|
|
|
|
if name == "singleplayer" then
|
|
|
|
return true
|
|
|
|
end
|
|
|
|
end,
|
|
|
|
|
|
|
|
formspec = function(player, data, fs)
|
|
|
|
fs("label[3,1;Test 3]")
|
|
|
|
end,
|
|
|
|
|
|
|
|
fields = function(player, data, fields)
|
2021-01-30 16:21:20 -06:00
|
|
|
i3.set_fs(player, "label[3,2;Test extra_fs]")
|
2021-01-15 18:46:26 -06:00
|
|
|
end,
|
2021-11-14 14:39:48 -06:00
|
|
|
})
|
2021-01-28 14:00:08 -06:00
|
|
|
|
|
|
|
i3.override_tab("test2", {
|
|
|
|
description = "Test override",
|
|
|
|
image = "i3_mesepick.png",
|
|
|
|
|
|
|
|
formspec = function(player, data, fs)
|
|
|
|
fs("label[3,1;Override!]")
|
|
|
|
end,
|
|
|
|
})
|