- 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:
Parnic
2010-09-12 06:56:26 +00:00
parent 3f656378c5
commit ef9801bac0
2 changed files with 201 additions and 12 deletions

View File

@ -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