Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Commit

Permalink
#76 Shield/offhand item sometimes is shifted to the second row
Browse files Browse the repository at this point in the history
  • Loading branch information
onechiporenko committed Nov 9, 2020
1 parent 10fc5c9 commit 17b53c6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
### v1.6.0

* [#76](https://github.com/onechiporenko/my-dungeons-book/issues/76) Shield/offhand item sometimes is shifted to the second row
* [#74](https://github.com/onechiporenko/my-dungeons-book/issues/74) Reset viewed challenge info when MDB is closed
* [#73](https://github.com/onechiporenko/my-dungeons-book/issues/73) Show heal done by each spell
* [#64](https://github.com/onechiporenko/my-dungeons-book/issues/64) Don't store challenges info uncompressed
Expand Down
18 changes: 9 additions & 9 deletions UI/ChallengeDetails/Tabs/Roster.lua
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ function MyDungeonsBook:RosterFrame_PartyMemberFrame_ClassIcon_Create(parentFram
local classFrame = AceGUI:Create("InteractiveLabel");
parentFrame:AddChild(classFrame);
classFrame:SetWidth(35);
classFrame.label:SetHeight(40);
classFrame:SetCallback("OnEnter", function()
self:RosterFrame_TableClassHover(classFrame, unitId);
end);
Expand All @@ -92,7 +91,6 @@ function MyDungeonsBook:RosterFrame_PartyMemberFrame_SpecIcon_Create(parentFrame
local specFrame = AceGUI:Create("InteractiveLabel");
parentFrame:AddChild(specFrame);
specFrame:SetWidth(35);
specFrame.label:SetHeight(40);
specFrame:SetCallback("OnEnter", function()
self:RosterFrame_TableSpecHover(specFrame, unitId);
end);
Expand Down Expand Up @@ -139,17 +137,19 @@ Creates a frame with equipment for `unitId`.
function MyDungeonsBook:RosterFrame_PartyMemberFrame_Equipment_Create(parentFrame, unitId, challengeId)
local challenge = self.db.char.challenges[challengeId];
local itemFrames = {};
local itemsRow = AceGUI:Create("SimpleGroup");
itemsRow:SetLayout("Flow");
--local itemsRow = AceGUI:Create("SimpleGroup");
--[[itemsRow:SetLayout("Flow");
itemsRow:SetFullWidth(true);
itemsRow:SetHeight(40);
itemsRow:SetAutoAdjustHeight(false);
parentFrame:AddChild(itemsRow);
itemsRow:SetHeight(40);]]
local itemsTitle = AceGUI:Create("Label");
itemsTitle:SetText("Items:");
itemsTitle:SetFullWidth(true);
parentFrame:AddChild(itemsTitle);
--parentFrame:AddChild(itemsRow);
for i = 1, 16 do
local itemFrame = AceGUI:Create("InteractiveLabel");
itemsRow:AddChild(itemFrame);
parentFrame:AddChild(itemFrame);
itemFrame:SetWidth(35);
itemFrame.label:SetHeight(40);
itemFrame:SetJustifyV("MIDDLE");
itemFrame:SetCallback("OnEnter", function(frame)
self:RosterFrame_TableItemHover(frame, unitId, i);
Expand Down

0 comments on commit 17b53c6

Please sign in to comment.