Mercurial > wow > ouroloot
diff gui.lua @ 89:939569ded66f
- Also include revision numbers when sending/displaying version data.
- Do a tweaked variant of the "ensure useful unique tags" code in _addLootEntry.
- When debugging comms, send to raid *and* guild instead of either.
- Remove flaky optimization in fixup_unique_replacements. Thanks to Hyndron
for helping me test this with genuine non-contrived data.
author | Farmbuyer of US-Kilrogg <farmbuyer@gmail.com> |
---|---|
date | Thu, 28 Jun 2012 19:44:53 +0000 |
parents | c9f955f9a285 |
children | 92e0db376858 |
line wrap: on
line diff
--- a/gui.lua Fri Jun 22 02:39:22 2012 +0000 +++ b/gui.lua Thu Jun 28 19:44:53 2012 +0000 @@ -741,7 +741,7 @@ g_uniques = assert(uniques_pointer, "something went wrong at startup") g_generated = nil tabgroup_tabs = {} - window_title = "Ouro Loot " .. self.revision + window_title = "Ouro Loot " .. self.version -- TabGroup stretches out the tabs to fill the row but only if >75% of the -- row is already full. It turns out that not doing this looks like ass. -- If we won't have enough tabs to trigger this on its own, pad out the tab @@ -2179,6 +2179,7 @@ local pair = GUI:Create("InlineGroup") pair:SetLayout("List") pair:SetRelativeWidth(0.49) + pair:SetTitle("Keybinding for '/ouroloot'") local editbox, checkbox editbox = mkbutton("EditBox", nil, opts.keybinding_text, [[Keybinding text format is fragile (ALT then CTRL then SHIFT)! Relog to take effect.]]) @@ -2794,7 +2795,7 @@ OnShow = function (dialog, addon) local thistable = StaticPopupDialogs[dialog.which] -- StaticPopup_Resize does not take extraFrame into account, so we - -- hook the sizing method that _Resize calls at the end. + -- monkeypatch the sizing method that _Resize calls at the end. dialog.saved_setheight = dialog.SetHeight dialog.SetHeight = function (d, h) return d.saved_setheight(d,h+35) @@ -2878,9 +2879,7 @@ OnAlt = function (dialog, addon) -- hitting escape also calls this, but the 3rd arg would be "clicked" -- in both cases, not useful here. - local helpbutton = dialog.button2 - local ismousing = MouseIsOver(helpbutton) - if ismousing then + if MouseIsOver(dialog.button3) then -- they actually clicked the button (or at least the mouse was over "Help" -- when they hit escape... sigh) addon:BuildMainDisplay('help')