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

Updating UI and Fixing Dungeon List #51

Closed
wants to merge 2 commits into from
Closed
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
37 changes: 35 additions & 2 deletions MythicPlusLoot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ function createItems(frame, slotText, mythicLevel, classText, specText)
local shift_key = IsShiftKeyDown()
if button == "LeftButton" then
if shift_key then
sendItemLink(item["link"])
sendItemLink(v["link"])
end
elseif button == "RightButton" then
createFavItem(frame, f, k);
Expand All @@ -552,7 +552,7 @@ function createItems(frame, slotText, mythicLevel, classText, specText)
end

local slotText, mythicValue, mythicLevel, mythicText, sourceText;
MPL.BackdropColor = {0.058823399245739, 0.058823399245739, 0.058823399245739, 0.9}
MPL.BackdropColor = {0.058823399245739, 0.058823399245739, 0.058823399245739, 0.7}

function closeMainFrame()
if frame and framesInitialized then
Expand All @@ -566,6 +566,31 @@ function MPL:showInterface()
if not framesInitialized then return end
end

local function CreateBorder(self)
if not self.borders then
self.borders = {}
for i=1, 4 do
self.borders[i] = self:CreateLine(nil, "BACKGROUND", nil, 0)
local l = self.borders[i]
l:SetThickness(1)
l:SetColorTexture(1, 1, 0, 1)
if i==1 then
l:SetStartPoint("TOPLEFT")
l:SetEndPoint("TOPRIGHT")
elseif i==2 then
l:SetStartPoint("TOPRIGHT")
l:SetEndPoint("BOTTOMRIGHT")
elseif i==3 then
l:SetStartPoint("BOTTOMRIGHT")
l:SetEndPoint("BOTTOMLEFT")
else
l:SetStartPoint("BOTTOMLEFT")
l:SetEndPoint("TOPLEFT")
end
end
end
end

function initFrames()
frame = CreateFrame("Frame", "MPLFrame", UIParent);

Expand All @@ -585,6 +610,14 @@ function initFrames()
tex:SetAllPoints();
tex:SetColorTexture(unpack(MPL.BackdropColor));

--adding border
CreateBorder(frame)

--moveable
frame:SetMovable(true)
frame:EnableMouse(true)
frame:RegisterForDrag("LeftButton")

-- Close button
frame.closeButton = CreateFrame("Button", "MPLCloseButton", frame, "UIPanelCloseButton");
frame.closeButton:ClearAllPoints();
Expand Down
1 change: 1 addition & 0 deletions MythicPlusLoot.toc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
## Notes: Gear scaling for mythic+ dungeons.
## Notes-ruRU: Скалирование снаряжения для М+ подземелий.
## SavedVariables: MythicPlusLootDB
## IconTexture: Interface\AddOns\MythicPlusLoot\textures\icon.tga

libs\load_libs.xml
init.lua
Expand Down
7 changes: 6 additions & 1 deletion locales/deDE.lua
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,12 @@ L["Halls of Valor"] = "Halls of Valor"
L["Court of Stars"] = "Court of Stars"
L["Temple of the Jade Serpent"] = "Temple of the Jade Serpent"
L["Shadowmoon Burial Grounds"] = "Shadowmoon Burial Grounds"

L["Brackenhide Hollow"] = "Brackenhide Hollow"
L["Freehold"] = "Freehold"
L["Neltharion's Lair"] = "Neltharion's Lair"
L["Uldaman: Legacy of Tyr"] = "Uldaman: Legacy of Tyr"
L["The Underrot"] = "The Underrot"
L["The Vortex Pinnacle"] = "The Vortex Pinnacle"

-- General
L["Item Slot"] = "Item Slot"
Expand Down
6 changes: 6 additions & 0 deletions locales/enUS.lua
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ L["Halls of Valor"] = "Halls of Valor"
L["Court of Stars"] = "Court of Stars"
L["Temple of the Jade Serpent"] = "Temple of the Jade Serpent"
L["Shadowmoon Burial Grounds"] = "Shadowmoon Burial Grounds"
L["Brackenhide Hollow"] = "Brackenhide Hollow"
L["Freehold"] = "Freehold"
L["Neltharion's Lair"] = "Neltharion's Lair"
L["Uldaman: Legacy of Tyr"] = "Uldaman: Legacy of Tyr"
L["The Underrot"] = "The Underrot"
L["The Vortex Pinnacle"] = "The Vortex Pinnacle"


-- General
Expand Down
7 changes: 6 additions & 1 deletion locales/esES.lua
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,12 @@ L["Halls of Valor"] = "Halls of Valor"
L["Court of Stars"] = "Court of Stars"
L["Temple of the Jade Serpent"] = "Temple of the Jade Serpent"
L["Shadowmoon Burial Grounds"] = "Shadowmoon Burial Grounds"

L["Brackenhide Hollow"] = "Brackenhide Hollow"
L["Freehold"] = "Freehold"
L["Neltharion's Lair"] = "Neltharion's Lair"
L["Uldaman: Legacy of Tyr"] = "Uldaman: Legacy of Tyr"
L["The Underrot"] = "The Underrot"
L["The Vortex Pinnacle"] = "The Vortex Pinnacle"

-- General
L["Item Slot"] = "Item Slot"
Expand Down
7 changes: 6 additions & 1 deletion locales/esMX.lua
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,12 @@ L["Halls of Valor"] = "Halls of Valor"
L["Court of Stars"] = "Court of Stars"
L["Temple of the Jade Serpent"] = "Temple of the Jade Serpent"
L["Shadowmoon Burial Grounds"] = "Shadowmoon Burial Grounds"

L["Brackenhide Hollow"] = "Brackenhide Hollow"
L["Freehold"] = "Freehold"
L["Neltharion's Lair"] = "Neltharion's Lair"
L["Uldaman: Legacy of Tyr"] = "Uldaman: Legacy of Tyr"
L["The Underrot"] = "The Underrot"
L["The Vortex Pinnacle"] = "The Vortex Pinnacle"

-- General
L["Item Slot"] = "Item Slot"
Expand Down
7 changes: 6 additions & 1 deletion locales/frFR.lua
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,12 @@ L["Halls of Valor"] = "Halls of Valor"
L["Court of Stars"] = "Court of Stars"
L["Temple of the Jade Serpent"] = "Temple of the Jade Serpent"
L["Shadowmoon Burial Grounds"] = "Shadowmoon Burial Grounds"

L["Brackenhide Hollow"] = "Brackenhide Hollow"
L["Freehold"] = "Freehold"
L["Neltharion's Lair"] = "Neltharion's Lair"
L["Uldaman: Legacy of Tyr"] = "Uldaman: Legacy of Tyr"
L["The Underrot"] = "The Underrot"
L["The Vortex Pinnacle"] = "The Vortex Pinnacle"

-- General
L["Item Slot"] = "Item Slot"
Expand Down
7 changes: 6 additions & 1 deletion locales/itIT.lua
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,12 @@ L["Halls of Valor"] = "Halls of Valor"
L["Court of Stars"] = "Court of Stars"
L["Temple of the Jade Serpent"] = "Temple of the Jade Serpent"
L["Shadowmoon Burial Grounds"] = "Shadowmoon Burial Grounds"

L["Brackenhide Hollow"] = "Brackenhide Hollow"
L["Freehold"] = "Freehold"
L["Neltharion's Lair"] = "Neltharion's Lair"
L["Uldaman: Legacy of Tyr"] = "Uldaman: Legacy of Tyr"
L["The Underrot"] = "The Underrot"
L["The Vortex Pinnacle"] = "The Vortex Pinnacle"

-- General
L["Item Slot"] = "Item Slot"
Expand Down
6 changes: 6 additions & 0 deletions locales/koKR.lua
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ L["Halls of Valor"] = "Halls of Valor"
L["Court of Stars"] = "Court of Stars"
L["Temple of the Jade Serpent"] = "Temple of the Jade Serpent"
L["Shadowmoon Burial Grounds"] = "Shadowmoon Burial Grounds"
L["Brackenhide Hollow"] = "Brackenhide Hollow"
L["Freehold"] = "Freehold"
L["Neltharion's Lair"] = "Neltharion's Lair"
L["Uldaman: Legacy of Tyr"] = "Uldaman: Legacy of Tyr"
L["The Underrot"] = "The Underrot"
L["The Vortex Pinnacle"] = "The Vortex Pinnacle"

-- General
L["Item Slot"] = "아이템 슬롯"
Expand Down
7 changes: 6 additions & 1 deletion locales/ptBR.lua
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,12 @@ L["Halls of Valor"] = "Halls of Valor"
L["Court of Stars"] = "Court of Stars"
L["Temple of the Jade Serpent"] = "Temple of the Jade Serpent"
L["Shadowmoon Burial Grounds"] = "Shadowmoon Burial Grounds"

L["Brackenhide Hollow"] = "Brackenhide Hollow"
L["Freehold"] = "Freehold"
L["Neltharion's Lair"] = "Neltharion's Lair"
L["Uldaman: Legacy of Tyr"] = "Uldaman: Legacy of Tyr"
L["The Underrot"] = "The Underrot"
L["The Vortex Pinnacle"] = "The Vortex Pinnacle"

-- General
L["Item Slot"] = "Item Slot"
Expand Down
6 changes: 6 additions & 0 deletions locales/ruRU.lua
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ L["Halls of Valor"] = "Чертоги Доблести"
L["Court of Stars"] = "Квартал Звезд"
L["Temple of the Jade Serpent"] = "Храм Нефритовой Змеи"
L["Shadowmoon Burial Grounds"] = "Некрополь Призрачной Луны"
L["Brackenhide Hollow"] = "Ореховая лощина"
L["Freehold"] = "Право собственности"
L["Neltharion's Lair"] = "Логово Нелтариона"
L["Uldaman: Legacy of Tyr"] = "Ульдаман: Наследие Тира"
L["The Underrot"] = "Подгнилье"
L["The Vortex Pinnacle"] = "Вершина Вихря"

-- General
L["Item Slot"] = "Тип предмета"
Expand Down
32 changes: 16 additions & 16 deletions tables.lua
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,14 @@ MPL_tables.get_mythic_labels = get_mythic_labels

local function get_dungeons()
local dungeonTable = {
[L["Ruby Life Pools"]] = 1,
[L["The Nokhud Offensive"]] = 2,
[L["The Azure Vault"]] = 3,
[L["Algeth'ar Academy"]] = 4,
[L["Halls of Valor"]] = 5,
[L["Court of Stars"]] = 6,
[L["Temple of the Jade Serpent"]] = 7,
[L["Shadowmoon Burial Grounds"]] = 8,
[L["Brackenhide Hollow"]] = 1,
[L["Freehold"]] = 2,
[L["Halls of Infusion"]] = 3,
[L["The Underrot"]] = 4,
[L["Neltharus"]] = 5,
[L["Neltharion's Lair"]] = 6,
[L["Uldaman: Legacy of Tyr"]] = 7,
[L["The Vortex Pinnacle"]] = 8,
}

return dungeonTable
Expand All @@ -71,14 +71,14 @@ MPL_tables.get_dungeons = get_dungeons

local function dungeon_ids()
local dungeonIDs = {
[L["Ruby Life Pools"]] = 1202,
[L["The Nokhud Offensive"]] = 1198,
[L["The Azure Vault"]] = 1203,
[L["Algeth'ar Academy"]] = 1201,
[L["Halls of Valor"]] = 721,
[L["Court of Stars"]] = 800,
[L["Temple of the Jade Serpent"]] = 313,
[L["Shadowmoon Burial Grounds"]] = 537,
[L["Brackenhide Hollow"]] = 1196,
[L["Freehold"]] = 1001,
[L["Halls of Infusion"]] = 1204,
[L["The Underrot"]] = 1022,
[L["Neltharus"]] = 1199,
[L["Neltharion's Lair"]] = 767,
[L["Uldaman: Legacy of Tyr"]] = 1197,
[L["The Vortex Pinnacle"]] = 68,
}

return dungeonIDs
Expand Down