mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- fixed a bug introduced in r570 where custom modules had to be deleted twice before they'd go away (they were registering themselves twice)
- made all pop-up dialogs display in the tooltip strata so that they draw on top of the options screen. each pop-up resets itself to dialog once it's hidden - made custom modules get auto-selected in the options screen after they're created
This commit is contained in:
@ -183,8 +183,6 @@ end
|
||||
|
||||
|
||||
function IceCore.prototype:AddNewDynamicModule(module, hasSettings)
|
||||
self:Register(module)
|
||||
|
||||
if not hasSettings then
|
||||
self.settings.modules[module.elementName] = module:GetDefaultSettings()
|
||||
end
|
||||
@ -209,7 +207,7 @@ function IceCore.prototype:GetNumCustomModules(exceptMe, customBarType)
|
||||
local num = 0
|
||||
local foundNum = 0
|
||||
|
||||
for i=0,table.getn(self.elements) do
|
||||
for i=1,table.getn(self.elements) do
|
||||
if (self.elements[i] and self.elements[i] ~= exceptMe and
|
||||
customBarType == self.elements[i].moduleSettings.customBarType) then
|
||||
local str = self.elements[i].elementName:match("MyCustom"..(customBarType).."%d+")
|
||||
@ -231,7 +229,7 @@ function IceCore.prototype:DeleteDynamicModule(module)
|
||||
end
|
||||
|
||||
local ndx
|
||||
for i = 0,table.getn(self.elements) do
|
||||
for i = 1,table.getn(self.elements) do
|
||||
if (self.elements[i] == module) then
|
||||
ndx = i
|
||||
break
|
||||
|
Reference in New Issue
Block a user