Mercurial > wow > ouroloot
comparison gui.lua @ 92:01cfbfa96dd6
Last bits of cleanup and testing.
author | Farmbuyer of US-Kilrogg <farmbuyer@gmail.com> |
---|---|
date | Tue, 17 Jul 2012 03:24:36 +0000 |
parents | 2ef80188a547 |
children | ea20a28327b5 |
comparison
equal
deleted
inserted
replaced
91:2ef80188a547 | 92:01cfbfa96dd6 |
---|---|
1217 end | 1217 end |
1218 icon:SetTexCoord(unpack(CLASS_ICON_TCOORDS[e.person_class])) | 1218 icon:SetTexCoord(unpack(CLASS_ICON_TCOORDS[e.person_class])) |
1219 icon:Show() | 1219 icon:Show() |
1220 cellFrame.text:SetPoint("LEFT", icon, "RIGHT", 1, 0) | 1220 cellFrame.text:SetPoint("LEFT", icon, "RIGHT", 1, 0) |
1221 local color = addon.class_colors[e.person_class] | 1221 local color = addon.class_colors[e.person_class] |
1222 cellFrame.text:SetTextColor(color.r,color.g,color.b,1) | 1222 cellFrame.text:SetTextColor(color.r,color.g,color.b,color.a) |
1223 else | 1223 else |
1224 if cellFrame.icontexture then | 1224 if cellFrame.icontexture then |
1225 cellFrame.icontexture:Hide() | 1225 cellFrame.icontexture:Hide() |
1226 cellFrame.text:SetPoint("LEFT", cellFrame, "LEFT") | 1226 cellFrame.text:SetPoint("LEFT", cellFrame, "LEFT") |
1227 end | 1227 end |
1416 <Shift-Left> while over an item link to paste it into chat. | 1416 <Shift-Left> while over an item link to paste it into chat. |
1417 | 1417 |
1418 <Right>-click any row to display a dropdown menu. The menu is different for | 1418 <Right>-click any row to display a dropdown menu. The menu is different for |
1419 the Player column than it is for the Item/Notes columns, and different for | 1419 the Player column than it is for the Item/Notes columns, and different for |
1420 loot entries than it is for other rows.]] | 1420 loot entries than it is for other rows.]] |
1421 tabs_CLI_special["eoi"] = function (name) | 1421 --tabs_CLI_special["eoi"] = function (name) |
1422 -- try and scroll to a specific boss/player | 1422 -- -- try and scroll to a specific boss/player? |
1423 end | 1423 --end |
1424 | 1424 |
1425 | 1425 |
1426 -- Tab 2/3 (generated text) | 1426 -- Tab 2/3 (generated text) |
1427 function tabs_generated_text_OGS (container, specials, text_kind) | 1427 function tabs_generated_text_OGS (container, specials, text_kind) |
1428 container:SetLayout("Fill") | 1428 container:SetLayout("Fill") |
1513 if numleft then | 1513 if numleft then |
1514 addon:Print("Removed history entry %s from %s.", | 1514 addon:Print("Removed history entry %s from %s.", |
1515 h.itemlink, addon:colorize(h.OLwho,h.OLclass)) | 1515 h.itemlink, addon:colorize(h.OLwho,h.OLclass)) |
1516 if numleft < 1 then | 1516 if numleft < 1 then |
1517 history_filter_who = nil | 1517 history_filter_who = nil |
1518 _d:GetUserData("histST"):SetFilter(history_filter_by_recent) | 1518 --_d:GetUserData("histST"):SetFilter(history_filter_by_recent) |
1519 histST:SetFilter(history_filter_by_recent) | |
1519 setstatus(hist_normal_status) | 1520 setstatus(hist_normal_status) |
1520 end | 1521 end |
1521 else | 1522 else |
1522 addon:Print(err) | 1523 addon:Print(err) |
1523 end | 1524 end |
2501 function addon:BuildMainDisplay (opt_tabselect) | 2502 function addon:BuildMainDisplay (opt_tabselect) |
2502 if self.display then | 2503 if self.display then |
2503 -- try to get everything to update, rebuild, refresh... ugh, no | 2504 -- try to get everything to update, rebuild, refresh... ugh, no |
2504 self.display:Hide() | 2505 self.display:Hide() |
2505 end | 2506 end |
2506 if self.NOLOAD then return end -- don't even try | 2507 if self.NOLOAD then |
2508 -- don't even try | |
2509 return | |
2510 end | |
2507 | 2511 |
2508 -- This probably causes taint... hm. | 2512 -- This probably causes taint... hm. |
2509 local prev_fade_time = UIDROPDOWNMENU_SHOW_TIME | 2513 local prev_fade_time = UIDROPDOWNMENU_SHOW_TIME |
2510 UIDROPDOWNMENU_SHOW_TIME = 4 | 2514 UIDROPDOWNMENU_SHOW_TIME = 4 |
2511 | 2515 |
2936 local text = dialog.editBox:GetText():trim() | 2940 local text = dialog.editBox:GetText():trim() |
2937 | 2941 |
2938 -- second click | 2942 -- second click |
2939 if data.name and text then | 2943 if data.name and text then |
2940 data.instance = text | 2944 data.instance = text |
2941 -- not "resuing" this dialog in the same sense as with loot | 2945 -- not "reusing" this dialog in the same sense as with loot |
2942 dialog.data = nil | 2946 dialog.data = nil |
2943 dialog:Hide() | 2947 dialog:Hide() |
2944 local getsnap = StaticPopup_Show("OUROL_EOI_INSERT_INCLUDE_RAIDERSNAP") | 2948 local getsnap = StaticPopup_Show("OUROL_EOI_INSERT_INCLUDE_RAIDERSNAP") |
2945 getsnap.data = data | 2949 getsnap.data = data |
2946 return true | 2950 return true |