Slightly make this more pleasant to the eye.
A bit longer, wider, centered, more space in the size and centered button with "Play" for consistency (creator ui has this wording as well).
This commit is contained in:
parent
2d02f44d07
commit
5943079b6a
@ -110,22 +110,22 @@ local function series_enter_choice(player, id)
|
||||
-- Show a formspec allowing the user to choose what box they want to enter
|
||||
local name = player:get_player_name()
|
||||
|
||||
local f = "size[6,8]"
|
||||
local f = "size[6,9]"
|
||||
|
||||
f = f .. "textlist[0.5,1;5,6;in_series;"
|
||||
f = f .. "textlist[0.2,0.5;5.4,7.4;in_series;"
|
||||
local boxes = db.series_get_boxes(id)
|
||||
for k, box_id in pairs(boxes) do
|
||||
-- TODO: color box depending on completed status
|
||||
local bmeta = db.box_get_meta(box_id)
|
||||
local bname = bmeta.meta.box_name or "[unnamed]"
|
||||
f = f .. "#00FF00"
|
||||
--f = f .. "#00FF00"
|
||||
f = f .. minetest.formspec_escape("[" .. k .. "] " .. bname)
|
||||
if k ~= #boxes then
|
||||
f = f .. ","
|
||||
end
|
||||
end
|
||||
f = f .. ";]"
|
||||
f = f .. "button[3,7;3,1;enter;Enter]"
|
||||
f = f .. "button[1.4,8.1;3.4,1;enter;Play]"
|
||||
|
||||
minetest.show_formspec(name, "series:enter_choice", f)
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user