WoWInterface SVN ChatProfiles

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk
    from Rev 5 to Rev 6
    Reverse comparison

Rev 5 → Rev 6

ChatProfiles.lua
112,6 → 112,12
 
local ldbstream = ldb:NewDataObject("ChatProfiles",{type = "data source", icon = UnknownIconPath, label="ChatProfiles", text = ""})
 
BINDING_HEADER_CHATPROFILES_HEADER = "ChatProfiles"
BINDING_NAME_CHATPROFILES_AUTO_TOGGLE = "Toggle Auto"
BINDING_NAME_CHATPROFILES_AUTO_ON = "Set Auto on"
BINDING_NAME_CHATPROFILES_AUTO_OFF = "Set Auto off"
 
 
CHATPROFILES_LOADED = false;
 
--taken from http://www.wowwiki.com/Extracting_info_from_a_slash_command#Parsing_Into_Tables, 2009-04-01
294,6 → 300,19
end
end
 
--Public Functions
 
function ChatProfiles_ToggleAuto()
ToggleAuto()
end
function ChatProfiles_AutoOn()
SetAuto(true)
end
function ChatProfiles_AutoOff()
SetAuto(false)
end
 
 
function ldbstream:OnTooltipShow()
self:AddLine("Profiles:")
local text="";
Bindings.xml New file
0,0 → 1,11
<Bindings>
<Binding name="CHATPROFILES_AUTO_TOGGLE" header="CHATPROFILES_HEADER">
ChatProfiles_ToggleAuto();
</Binding>
<Binding name="CHATPROFILES_AUTO_ON">
ChatProfiles_AutoOn();
</Binding>
<Binding name="CHATPROFILES_AUTO_OFF">
ChatProfiles_AutoOff();
</Binding>
</Bindings>
\ No newline at end of file