mirror of
https://repo.or.cz/minetest_orienteering.git
synced 2024-12-04 21:03:49 +01:00
Update settings syntax for 0.4.16
This commit is contained in:
parent
224c885bab
commit
2efbfbaaa3
10
init.lua
10
init.lua
@ -14,15 +14,15 @@ orienteering.settings.hud_pos = { x = 0.5, y = 0 }
|
||||
orienteering.settings.hud_offset = { x = 0, y = 15 }
|
||||
orienteering.settings.hud_alignment = { x = 0, y = 0 }
|
||||
|
||||
local set = tonumber(minetest.setting_get("orienteering_hud_pos_x"))
|
||||
local set = tonumber(minetest.settings:get("orienteering_hud_pos_x"))
|
||||
if set then orienteering.settings.hud_pos.x = set end
|
||||
set = tonumber(minetest.setting_get("orienteering_hud_pos_y"))
|
||||
set = tonumber(minetest.settings:get("orienteering_hud_pos_y"))
|
||||
if set then orienteering.settings.hud_pos.y = set end
|
||||
set = tonumber(minetest.setting_get("orienteering_hud_offset_x"))
|
||||
set = tonumber(minetest.settings:get("orienteering_hud_offset_x"))
|
||||
if set then orienteering.settings.hud_offset.x = set end
|
||||
set = tonumber(minetest.setting_get("orienteering_hud_offset_y"))
|
||||
set = tonumber(minetest.settings:get("orienteering_hud_offset_y"))
|
||||
if set then orienteering.settings.hud_offset.y = set end
|
||||
set = minetest.setting_get("orienteering_hud_alignment")
|
||||
set = minetest.settings:get("orienteering_hud_alignment")
|
||||
if set == "left" then
|
||||
orienteering.settings.hud_alignment.x = 1
|
||||
elseif set == "center" then
|
||||
|
Loading…
Reference in New Issue
Block a user