Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Addons/DataToColor/DataToColor.toc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Title: DataToColor
## Author: FreeHongKongMMO
## Notes: Displays data as colors
## Version: 1.7.67
## Version: 1.7.68
## RequiredDeps:
## OptionalDeps: Ace3, LibRangeCheck, LibClassicCasterino
## SavedVariables:
Expand Down
5 changes: 4 additions & 1 deletion Addons/DataToColor/EventHandlers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,10 @@ function DataToColor:RegisterEvents()
DataToColor:RegisterEvent('CHAT_MSG_PARTY', 'OnMessageParty')
DataToColor:RegisterEvent('CHAT_MSG_PARTY_LEADER', 'OnMessageParty')

DataToColor:RegisterEvent('PLAYER_SOFT_INTERACT_CHANGED', 'OnPlayerSoftInteractChanged')
-- allows to use the addon with older client version
pcall(function()
DataToColor:RegisterEvent("PLAYER_SOFT_INTERACT_CHANGED", "OnPlayerSoftInteractChanged")
end)

-- Season of mastery / vanilla
if WOW_PROJECT_ID == WOW_PROJECT_CLASSIC then
Expand Down
1 change: 1 addition & 0 deletions Addons/DataToColor/Query.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
local Load = select(2, ...)
local DataToColor = unpack(Load)
local Range = DataToColor.Libs.RangeCheck
Range:activate()

local bit = bit
local band = bit.band
Expand Down
1 change: 1 addition & 0 deletions Addons/DataToColor/embeds.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<Include file="Libs\Ace3\AceComm-3.0\AceComm-3.0.xml"/>
<Include file="Libs\Ace3\AceSerializer-3.0\AceSerializer-3.0.xml"/>

<Include file='Libs\LibRangeCheck-2.0\LibRangeCheck-2.0.lua'/>
<Include file='Libs\LibRangeCheck-3.0\LibRangeCheck-3.0.lua'/>
<Include file='Libs\LibClassicCasterino\LibClassicCasterino.lua'/>
</Ui>
10 changes: 9 additions & 1 deletion Addons/DataToColor/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,13 @@ do
end

E:AddLib('AceAddon', AceAddon, AceAddonMinor)
E:AddLib('RangeCheck', 'LibRangeCheck-3.0')

local ver = select(4, GetBuildInfo())
if ver <= 11400 then
--print('load 2.0')
E:AddLib('RangeCheck', 'LibRangeCheck-2.0')
else
--print('load 3.0')
E:AddLib('RangeCheck', 'LibRangeCheck-3.0')
end
end
Loading