Mercurial > wow > wowdb-profiler
changeset 272:e9670d6c6bf1
Added keybinding for comment system, disabling the MiniMap/LDB icon for now (or indefinitely).
author | James D. Callahan III <jcallahan@curse.com> |
---|---|
date | Fri, 22 Mar 2013 10:48:39 -0500 |
parents | fbd94a0be29c |
children | 0fc961f414c9 |
files | Bindings.xml Comments.lua |
diffstat | 2 files changed, 24 insertions(+), 14 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Bindings.xml Fri Mar 22 10:48:39 2013 -0500 @@ -0,0 +1,5 @@ +<Bindings> + <Binding name="Comment Menu" header="WOWDB_PROFILER"> + LibStub("AceAddon-3.0"):GetAddon("WoWDBProfiler").ShowPossibleSubjects() + </Binding> +</Bindings>
--- a/Comments.lua Thu Mar 21 15:23:41 2013 -0500 +++ b/Comments.lua Fri Mar 22 10:48:39 2013 -0500 @@ -287,11 +287,14 @@ end if display:GetLineCount() == 3 then + display = display:Release() WDP:Print("There are no possible comment subjects.") return end display:Show() end + + WDP.ShowPossibleSubjects = ShowPossibleSubjects -- For Keybinding. end -- do-block -- METHODS ------------------------------------------------------------ @@ -531,19 +534,21 @@ end) panel.submitButton = submit - local data_obj = LibStub("LibDataBroker-1.1"):NewDataObject(ADDON_NAME, { - type = "data source", - label = ADDON_NAME, - text = " ", - icon = [[Interface\CHATFRAME\UI-ChatIcon-Chat-Up]], - OnClick = function(self, button, down) - ShowPossibleSubjects(self) - end, - OnTooltipShow = function(self) - self:AddLine(_G.CLICK_TO_ENTER_COMMENT) - end, - }) +-- local data_obj = LibStub("LibDataBroker-1.1"):NewDataObject(ADDON_NAME, { +-- type = "data source", +-- label = ADDON_NAME, +-- text = " ", +-- icon = [[Interface\CHATFRAME\UI-ChatIcon-Chat-Up]], +-- OnClick = function(self, button, down) +-- ShowPossibleSubjects(self) +-- end, +-- OnTooltipShow = function(self) +-- self:AddLine(_G.CLICK_TO_ENTER_COMMENT) +-- end, +-- }) +-- +-- private.data_obj = data_obj +-- LibStub("LibDBIcon-1.0"):Register(ADDON_NAME, data_obj, private.db.global.config.minimap_icon) - private.data_obj = data_obj - LibStub("LibDBIcon-1.0"):Register(ADDON_NAME, data_obj, private.db.global.config.minimap_icon) + _G["BINDING_HEADER_WOWDB_PROFILER"] = "WoWDB Profiler" end