summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2015-05-19 21:49:25 +0200
committerWuzzy <almikes@aol.com>2015-05-19 21:49:25 +0200
commitfc66c4f0a5ad760cd1e8cc447f25126980d126c2 (patch)
tree81ee494dc402b55f74a8d5c04640f2f065b98e35 /init.lua
parentf2efdea814b967f3fc2b9e81ee1529a8c7c1ef47 (diff)
Code cleanup
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua18
1 files changed, 0 insertions, 18 deletions
diff --git a/init.lua b/init.lua
index 5373db1..3971057 100644
--- a/init.lua
+++ b/init.lua
@@ -5,9 +5,6 @@ hb.hudtables = {}
-- number of registered HUD bars
hb.hudbars_count = 0
--- index of the first HUD bar slot, used for automatic positioning
-hb.first_free_hudbar_slot = 0
-
-- table which recoreds which HUD bar slots have been “registered” so far; used for automatic positioning
hb.registered_slots = {}
@@ -44,18 +41,6 @@ else
hb.settings.sorting_reverse = { [0] = "health", [1] = "breath" }
end
-do
- local max
- for k,v in pairs(hb.settings.sorting_reverse) do
- if max == nil then
- max = k
- elseif k > max then
- max = k
- end
- end
- hb.first_free_hudbar_slot = max + 1
-end
-
-- Table which contains all players with active default HUD bars (only for internal use)
hb.players = {}
@@ -90,9 +75,6 @@ function hb.register_hudbar(identifier, text_color, label, textures, default_sta
local pos, offset
local index = math.floor(hb.get_hudbar_position_index(identifier))
hb.registered_slots[index] = true
- if hb.settings.sorting_reverse[index] == nil then
- hb.first_free_hudbar_slot = hb.first_free_hudbar_slot + 1
- end
if index % 2 == 0 then
pos = hb.settings.pos_left
offset = {