Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Cataclysm Classic #100

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
65 changes: 65 additions & 0 deletions Chinchilla_Cata.toc
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
## Interface: 40400
## Title: Chinchilla Minimap
## Notes: Minimap addon of awesomeness. *chewing sound*. It'll nibble your hay pellets.
## Notes-frFR: Minicarte incroyablement incroyable. *bruit de mastication*. Il va grignoter votre foin.
## Notes-deDE: Geniales Minikarten-Addon. *kauendes Geräusch* Es wird deine Futterkörner knabbern.
## Notes-esES: ncreible addon del minimapa. *Sonido elástico*.
## Notes-itIT: Addon per la minimappa fantasmagorico.
## Notes-koKR: 미니맵 확장 애드온 입니다.
## Notes-ruRU: Полнофункциональный аддон для миникарты и элементов её окружающих.
## Notes-zhCN: 很龙猫的小地图插件。*嚼嚼嚼*这龙猫嚼了你的干草球~
## Notes-zhTW: 很龍貓的小地圖插件。*嚼嚼嚼*這龍貓嚼了你的乾草球~
## Author: Ravendwyr, ckknight
## Version: @project-version@
## X-Category: Map
## X-Icon: Interface\AddOns\Chinchilla\Art\icon
## X-Curse-Project-ID: 7116
## X-WoWI-ID: 8394
## X-Wago-ID: XrNkjlGa
## SavedVariables: Chinchilla2DB
## OptionalDeps: LibStub, CallbackHandler-1.0, Ace3, LibIsClassic-1.0, LibSharedMedia-3.0, AceGUI-3.0-SharedMediaWidgets, Blizzard_TimeManager

#@no-lib-strip@
Libs\LibStub\LibStub.lua
Libs\CallbackHandler-1.0\CallbackHandler-1.0.lua
Libs\AceAddon-3.0\AceAddon-3.0.lua
Libs\AceGUI-3.0\AceGUI-3.0.xml
Libs\AceConfigRegistry-3.0\AceConfigRegistry-3.0.lua
Libs\AceConfigDialog-3.0\AceConfigDialog-3.0.lua
Libs\AceConsole-3.0\AceConsole-3.0.lua
Libs\AceDB-3.0\AceDB-3.0.lua
Libs\AceDBOptions-3.0\AceDBOptions-3.0.lua
Libs\AceLocale-3.0\AceLocale-3.0.lua
Libs\AceEvent-3.0\AceEvent-3.0.lua
Libs\AceHook-3.0\AceHook-3.0.lua
Libs\AceTimer-3.0\AceTimer-3.0.lua
Libs\LibSharedMedia-3.0\LibSharedMedia-3.0.lua
Libs\AceGUI-3.0-SharedMediaWidgets\widget.xml
Libs\LibIsClassic-1.0\LibIsClassic-1.0.lua
#@end-no-lib-strip@

Locale\enUS.lua
Locale\deDE.lua
Locale\frFR.lua
Locale\esES.lua
Locale\itIT.lua
Locale\koKR.lua
Locale\ruRU.lua
Locale\zhCN.lua
Locale\zhTW.lua

Chinchilla.lua

Modules\Appearance.lua
Modules\Compass.lua
Modules\Coordinates.lua
Modules\Expander.lua
Modules\Location.lua
Modules\MoveButtons.lua
Modules\Ping.lua
Modules\Position.lua
Modules\QuestTracker_WrathCata.lua
Modules\RangeCircle.lua
Modules\ShowHide.lua
Modules\TrackingDots.lua
Modules\Zoom.lua
2 changes: 1 addition & 1 deletion Chinchilla_Wrath.toc
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Modules\Location.lua
Modules\MoveButtons.lua
Modules\Ping.lua
Modules\Position.lua
Modules\QuestTracker_Wrath.lua
Modules\QuestTracker_WrathCata.lua
Modules\RangeCircle.lua
Modules\ShowHide.lua
Modules\TrackingDots.lua
Expand Down
4 changes: 2 additions & 2 deletions Modules/Appearance.lua
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ function Appearance:OnDisable()
MinimapBorder:Show()
Minimap:SetAlpha(1)

if Chinchilla:IsClassic() or Chinchilla:IsWrathClassic() then
if Chinchilla:IsClassic() or Chinchilla:IsWrathClassic() or Chinchilla:IsCataClassic() then
Minimap:SetMaskTexture("Textures\\MinimapMask")
else
Minimap:SetMaskTexture(186178)
Expand Down Expand Up @@ -241,7 +241,7 @@ function Appearance:SetScale(value)

if Chinchilla:IsClassic() then
QuestWatchFrame:GetSize()
elseif Chinchilla:IsWrathClassic() then
elseif Chinchilla:IsWrathClassic() or Chinchilla:IsCataClassic() then
WatchFrame:GetSize()
MiniMapInstanceDifficulty:SetScale(value)
else
Expand Down
2 changes: 1 addition & 1 deletion Modules/Expander.lua
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function Expander:Refresh(fromCombat)
end
end

if Chinchilla:IsWrathClassic() then
if Chinchilla:IsWrathClassic() or Chinchilla:IsCataClassic() then
MiniMapInstanceDifficulty:Hide()
elseif Chinchilla:IsRetail() then
MiniMapInstanceDifficulty:Hide()
Expand Down
2 changes: 1 addition & 1 deletion Modules/MoveButtons.lua
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ function MoveButtons:OnInitialize()
zoomIn = MinimapZoomIn,
zoomOut = MinimapZoomOut,
}
elseif Chinchilla:IsWrathClassic() then
elseif Chinchilla:IsWrathClassic() or Chinchilla:IsCataClassic() then
buttons = {
difficulty = MiniMapInstanceDifficulty,
map = MiniMapWorldMapButton,
Expand Down
8 changes: 4 additions & 4 deletions Modules/Position.lua
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function Position:OnInitialize()
questWatch = QuestWatchFrame,
ticketStatus = TicketStatusFrame,
}
elseif Chinchilla:IsWrathClassic() then
elseif Chinchilla:IsWrathClassic() or Chinchilla:IsCataClassic() then
nameToFrame = {
minimap = Minimap,
durability = DurabilityFrame,
Expand Down Expand Up @@ -182,7 +182,7 @@ function Position:OnEnable()

if Chinchilla:IsClassic() then
self:SecureHook(QuestWatchFrame, "SetPoint", "WatchFrame_SetPoint")
elseif Chinchilla:IsWrathClassic() then
elseif Chinchilla:IsWrathClassic() or Chinchilla:IsCataClassic() then
self:SecureHook(WatchFrame, "SetPoint", "WatchFrame_SetPoint")
else
self:SecureHook(VehicleSeatIndicator, "SetPoint", "VehicleSeatIndicator_SetPoint")
Expand Down Expand Up @@ -327,7 +327,7 @@ function Position:SetMinimapPosition(point, x, y)

if Chinchilla:IsClassic() then
QuestWatchFrame:GetSize()
elseif Chinchilla:IsWrathClassic() then
elseif Chinchilla:IsWrathClassic() or Chinchilla:IsCataClassic() then
WatchFrame:GetSize()
else
ObjectiveTrackerFrame:GetSize()
Expand Down Expand Up @@ -521,7 +521,7 @@ function Position:UpdateClamp(info, value)

if Chinchilla:IsClassic() then
QuestWatchFrame:GetSize()
elseif Chinchilla:IsWrathClassic() then
elseif Chinchilla:IsWrathClassic() or Chinchilla:IsCataClassic() then
WatchFrame:GetSize()
else
ObjectiveTrackerFrame:GetSize()
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions Modules/ShowHide.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ local frames

function ShowHide:ShowFrame(frame)
if _G[frame] then
_G[frame]:SetParent( _G[frame].__origParent )
_G[frame]:SetParent( _G[_G[frame].__origParent] )
end
end

Expand All @@ -37,7 +37,7 @@ function ShowHide:OnInitialize()
zoomOut = "MinimapZoomOut",
clock = "TimeManagerClockButton",
}
elseif Chinchilla:IsWrathClassic() then
elseif Chinchilla:IsWrathClassic() or Chinchilla:IsCataClassic() then
frames = {
north = "MinimapNorthTag",
map = "MiniMapWorldMapButton",
Expand Down