comparison Core.lua @ 7:1a815139e4c3 v0.1.1-BETA

Fixed pullout hiding to avoid fatal errors. Updated TOC to include dependencies. Updated summary to stop timer when closing the window and to make AH mods optional.
author Zerotorescue
date Fri, 08 Oct 2010 17:10:34 +0200
parents 9fff13c08f99
children 3bac0bdd59e2
comparison
equal deleted inserted replaced
6:c6230eb845ad 7:1a815139e4c3
512 set = function(i, v, e) 512 set = function(i, v, e)
513 self.db.global.defaults.trackAtCharacters[v] = e or nil; 513 self.db.global.defaults.trackAtCharacters[v] = e or nil;
514 514
515 -- We MUST close this pullout or we can get errors or even game client crashes once we click another group or close the config dialog! 515 -- We MUST close this pullout or we can get errors or even game client crashes once we click another group or close the config dialog!
516 local count = AceGUI:GetNextWidgetNum("Dropdown-Pullout"); 516 local count = AceGUI:GetNextWidgetNum("Dropdown-Pullout");
517 for i = 0, count do 517 for i = 1, count do
518 if _G['AceGUI30Pullout' .. i] then 518 if _G['AceGUI30Pullout' .. i] then
519 _G['AceGUI30Pullout' .. i]:Hide(); 519 _G['AceGUI30Pullout' .. i]:Hide();
520 end 520 end
521 end 521 end
522 end, 522 end,
999 temp[charName] = charName; 999 temp[charName] = charName;
1000 end 1000 end
1001 1001
1002 -- We MUST close this pullout or we can get errors or even game client crashes once we click another group or close the config dialog! 1002 -- We MUST close this pullout or we can get errors or even game client crashes once we click another group or close the config dialog!
1003 local count = AceGUI:GetNextWidgetNum("Dropdown-Pullout"); 1003 local count = AceGUI:GetNextWidgetNum("Dropdown-Pullout");
1004 for i = 0, count do 1004 for i = 1, count do
1005 if _G['AceGUI30Pullout' .. i] then 1005 if _G['AceGUI30Pullout' .. i] then
1006 _G['AceGUI30Pullout' .. i]:Hide(); 1006 _G['AceGUI30Pullout' .. i]:Hide();
1007 end 1007 end
1008 end 1008 end
1009 1009
1464 return; 1464 return;
1465 end 1465 end
1466 end 1466 end
1467 1467
1468 self.db.global.groups[name] = temp; 1468 self.db.global.groups[name] = temp;
1469
1470 self:FillGroupOptions();
1469 end 1471 end
1470 end, 1472 end,
1471 get = false, 1473 get = false,
1472 width = "full", 1474 width = "full",
1473 }, 1475 },
1525 return -1; 1527 return -1;
1526 end 1528 end
1527 1529
1528 return lowBuy; 1530 return lowBuy;
1529 end 1531 end
1532
1533 return -2;
1530 end 1534 end
1531 1535
1532 1536
1533 1537
1534 1538