mirror of
https://github.com/pyrollo/display_modpack.git
synced 2024-11-28 00:53:49 +01:00
Adjustment of poster title size in display form.
This commit is contained in:
parent
755fba6ce0
commit
da3826e968
@ -30,13 +30,14 @@ local function display_poster(pos, node, player)
|
|||||||
-- Title texture
|
-- Title texture
|
||||||
local titletexture = font_lib.make_multiline_texture(
|
local titletexture = font_lib.make_multiline_texture(
|
||||||
def.font_name, meta:get_string("display_text"),
|
def.font_name, meta:get_string("display_text"),
|
||||||
116, 50, def.maxlines, def.valign, def.color)
|
116, 12, def.maxlines, def.valign, def.color)
|
||||||
|
|
||||||
formspec =
|
formspec =
|
||||||
"size[7,9]"..
|
"size[7,9]"..
|
||||||
"image[0,0;8.5,4;"..titletexture.."]"..
|
"background[0,0;7,9;signs_poster_formspec.png]"..
|
||||||
"textarea[0.3,1;7,8;;"..minetest.colorize("#111", minetest.formspec_escape(meta:get_string("text")))..";]"..
|
"image[0,0;8.4,1.5;"..titletexture.."]"..
|
||||||
"bgcolor[#eee]"
|
"textarea[0.3,1.5;7,8;;"..minetest.colorize("#111", minetest.formspec_escape(meta:get_string("text")))..";]"..
|
||||||
|
"bgcolor[#0000]"
|
||||||
|
|
||||||
if minetest.is_protected(pos, player:get_player_name()) then
|
if minetest.is_protected(pos, player:get_player_name()) then
|
||||||
formspec = formspec..
|
formspec = formspec..
|
||||||
|
Loading…
Reference in New Issue
Block a user