mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-25 19:02:26 +01:00
fix future API usage of bold+italic pr
This commit is contained in:
parent
c8102838cb
commit
7e64470f70
@ -64,22 +64,10 @@ function mcl_title.set(player, type, data)
|
|||||||
player:hud_remove(huds_idx[type][player])
|
player:hud_remove(huds_idx[type][player])
|
||||||
end
|
end
|
||||||
|
|
||||||
--TODO: enable this code then Fleckenstein's pr get merged
|
--TODO: enable this code then Fleckenstein's pr get merged (in about 5-6 years)
|
||||||
--TODO: be sure API is correctly used
|
|
||||||
--[[
|
|
||||||
local bold
|
|
||||||
if data.bold == "true" then
|
|
||||||
bold = true
|
|
||||||
else
|
|
||||||
bold = false
|
|
||||||
end
|
|
||||||
|
|
||||||
local italic
|
--if data.bold == nil then data.bold = false end
|
||||||
if data.italic == "true" then
|
--if data.italic == nil then data.italic = false end
|
||||||
italic = true
|
|
||||||
else
|
|
||||||
italic = false
|
|
||||||
end]]
|
|
||||||
|
|
||||||
local stay = mcl_title.params_get(player).stay
|
local stay = mcl_title.params_get(player).stay
|
||||||
|
|
||||||
@ -88,8 +76,8 @@ function mcl_title.set(player, type, data)
|
|||||||
position = mcl_title.layout[type].position,
|
position = mcl_title.layout[type].position,
|
||||||
alignment = mcl_title.layout[type].alignment,
|
alignment = mcl_title.layout[type].alignment,
|
||||||
text = data.text,
|
text = data.text,
|
||||||
--bold = bold,
|
--bold = data.bold,
|
||||||
--italic = italic,
|
--italic = data.italic,
|
||||||
size = {x = mcl_title.layout[type].size},
|
size = {x = mcl_title.layout[type].size},
|
||||||
number = hex_color,
|
number = hex_color,
|
||||||
z_index = 1100,
|
z_index = 1100,
|
||||||
|
Loading…
Reference in New Issue
Block a user