From 652da11a1fc16ae89e2fef90e7ccd6603a9a5b02 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Mon, 9 Feb 2015 23:42:56 +0100 Subject: =?UTF-8?q?hud.conf=20=E2=86=92=20hudbars.conf?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.txt | 2 +- hud.conf.example | 20 -------------------- hudbars.conf.example | 20 ++++++++++++++++++++ init.lua | 4 ++-- 4 files changed, 23 insertions(+), 23 deletions(-) delete mode 100644 hud.conf.example create mode 100644 hudbars.conf.example diff --git a/README.txt b/README.txt index 25be938..9d07bac 100644 --- a/README.txt +++ b/README.txt @@ -19,7 +19,7 @@ the number. Furthermore, it enables other mods to add their own custom bars to the HUD, this mod will place them accordingly. -You can create a “hud.conf” file to customize the positions of the health and breath bars. Take a look at “hud.conf.example” to get more infos. +You can create a “hudbars.conf” file to customize the positions of the health and breath bars. Take a look at “hudbars.conf.example” to get more infos. IMPORTANT: diff --git a/hud.conf.example b/hud.conf.example deleted file mode 100644 index 663329c..0000000 --- a/hud.conf.example +++ /dev/null @@ -1,20 +0,0 @@ ---##HUD bars example config file## ------------------------------------- --- This example moves the health bar in the top left corner and the hunger bar in the top right corner - - ---!NOTICE!-- --- >>if damage is disabled neither health bar nor breath bar is shown - --- --- health bar --- -HUD_HEALTH_POS = {x=0,y=0} --min 0, max 1 -HUD_HEALTH_OFFSET = {x=5,y=30} --offset in pixel - --- --- breath bar --- -HUD_AIR_POS = {x=0.5,y=1} --min 0, max 1 -HUD_AIR_OFFSET = {x=15,y=-75} --offset in pixel - diff --git a/hudbars.conf.example b/hudbars.conf.example new file mode 100644 index 0000000..663329c --- /dev/null +++ b/hudbars.conf.example @@ -0,0 +1,20 @@ +--##HUD bars example config file## +------------------------------------ +-- This example moves the health bar in the top left corner and the hunger bar in the top right corner + + +--!NOTICE!-- +-- >>if damage is disabled neither health bar nor breath bar is shown + +-- +-- health bar +-- +HUD_HEALTH_POS = {x=0,y=0} --min 0, max 1 +HUD_HEALTH_OFFSET = {x=5,y=30} --offset in pixel + +-- +-- breath bar +-- +HUD_AIR_POS = {x=0.5,y=1} --min 0, max 1 +HUD_AIR_OFFSET = {x=15,y=-75} --offset in pixel + diff --git a/init.lua b/init.lua index 8924785..46604e0 100644 --- a/init.lua +++ b/init.lua @@ -218,9 +218,9 @@ end --load custom settings -local set = io.open(minetest.get_modpath("hudbars").."/hud.conf", "r") +local set = io.open(minetest.get_modpath("hudbars").."/hudbars.conf", "r") if set then - dofile(minetest.get_modpath("hudbars").."/hud.conf") + dofile(minetest.get_modpath("hudbars").."/hudbars.conf") set:close() end -- cgit v1.2.3