mirror of
https://github.com/HybridDog/nether-pack.git
synced 2024-11-16 07:20:20 +01:00
01cd7c8e5b
* Remove code which uses the font size setting to position text and images. Instead use Minetest's hypertext formspec element * Rewrite many parts of the guide contents, e.g. "you" -> "we", more detailed portal description * Add a setting to permit viewing it in the overworld (enabled by default) * Update the Readme I have set the font size to 24, which works well for me on a 1920x1080 screen with somewhat high DPI. The text written in hypertext apparently ignores the Minetest font size setting, so it may look bad on different screens.
25 lines
557 B
Lua
25 lines
557 B
Lua
local default_settings = {
|
|
trap_players = true,
|
|
log_to_chat = false,
|
|
log_level = 2,
|
|
overworld_help = true,
|
|
}
|
|
|
|
nether.settings = {}
|
|
|
|
for name,dv in pairs(default_settings) do
|
|
local setting
|
|
local setting_name = "nether." .. name
|
|
if type(dv) == "boolean" then
|
|
setting = minetest.settings:get_bool(setting_name)
|
|
elseif type(dv) == "number" then
|
|
setting = tonumber(minetest.settings:get(setting_name))
|
|
else
|
|
error"[nether] Only boolean and number settings are available"
|
|
end
|
|
if setting == nil then
|
|
setting = dv
|
|
end
|
|
nether[name] = setting
|
|
end
|