colored metal signs optional and display size

That a small change but for someone who try to prevent having one craft guide page per item (and multiples variants) it make all the difference :)
This mod is great but it would be even greater if it was easier to configure
like an option use_big_font_size that would change CHARS_PERLINE from 30 to 12  and NUMBER_OF_LINES from 6 to 3
(I tried to do that but I failed)
This commit is contained in:
xisd 2016-10-04 10:43:07 +02:00 committed by GitHub
parent db0973439c
commit 9daf035d44
1 changed files with 157 additions and 152 deletions

View File

@ -9,6 +9,8 @@
-- { delta = {entity position for 270° yaw}, exact yaw expression }
-- { delta = {entity position for 90° yaw}, exact yaw expression }
-- }
-- Made colored metal signs optionals
local enable_colored_metal_signs = true
-- CWz's keyword interact mod uses this setting.
local current_keyword = minetest.setting_get("interact_keyword") or "iaccept"
@ -844,7 +846,7 @@ if minetest.registered_nodes["default:sign_wall_steel"] then
end
-- metal, colored signs
if enable_colored_metal_signs then
local sign_colors = { "green", "yellow", "red", "white_red", "white_black", "orange", "blue", "brown" }
local sign_default_text_colors = { "f", "0", "f", "4", "0", "0", "f", "f" }
@ -886,6 +888,7 @@ for i, color in ipairs(sign_colors) do
end,
})
end
end
local signs_text_on_activate
@ -1022,6 +1025,7 @@ minetest.register_craft({
})
-- craft recipes for the metal signs
if enable_colored_metal_signs then
minetest.register_craft( {
output = "signs:sign_wall_green",
@ -1150,6 +1154,7 @@ minetest.register_craft( {
{ "steel:sheet_metal", "steel:sheet_metal", "steel:sheet_metal" }
},
})
end
if minetest.setting_get("log_mods") then
minetest.log("action", S("signs loaded"))