Skip to content

Commit 0cfb38a

Browse files
committed
dev(8948): Changed notes list to top left as requested in PR.
1 parent 1deea51 commit 0cfb38a

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

src/Classes/NotesTab.lua

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@ local NotesTabClass = newClass("NotesTab", "ControlHost", "Control", function(se
2121
local notesDesc = [[^7You can use Ctrl +/- (or Ctrl+Scroll) to zoom in and out and Ctrl+0 to reset.
2222
This field also supports different colors. Using the caret symbol (^) followed by a Hex code or a number (0-9) will set the color.
2323
Below are some common color codes PoB uses: ]]
24-
self.controls.notesDesc = new("LabelControl", {"TOPLEFT",self,"TOPLEFT"}, {8, 8, 150, 16}, notesDesc)
24+
25+
-- Notes group list
26+
self.controls.noteList = new("NotesListControl", { "TOPLEFT", self, "TOPLEFT" }, { 8, 30, listSize - 16, 80 }, self)
27+
28+
self.controls.notesDesc = new("LabelControl", {"TOPLEFT",self.controls.noteList,"TOPRIGHT"}, {8, -22, 150, 16}, notesDesc)
2529
self.controls.normal = new("ButtonControl", {"TOPLEFT",self.controls.notesDesc,"TOPLEFT"}, {0, 48, 100, 18}, colorCodes.NORMAL.."NORMAL", function() self:SetColor(colorCodes.NORMAL) end)
2630
self.controls.magic = new("ButtonControl", {"TOPLEFT",self.controls.normal,"TOPLEFT"}, {120, 0, 100, 18}, colorCodes.MAGIC.."MAGIC", function() self:SetColor(colorCodes.MAGIC) end)
2731
self.controls.rare = new("ButtonControl", {"TOPLEFT",self.controls.magic,"TOPLEFT"}, {120, 0, 100, 18}, colorCodes.RARE.."RARE", function() self:SetColor(colorCodes.RARE) end)
@@ -35,15 +39,12 @@ Below are some common color codes PoB uses: ]]
3539
self.controls.intelligence = new("ButtonControl", {"TOPLEFT",self.controls.dexterity,"TOPLEFT"}, {120, 0, 100, 18}, colorCodes.INTELLIGENCE.."INTELLIGENCE", function() self:SetColor(colorCodes.INTELLIGENCE) end)
3640
self.controls.default = new("ButtonControl", {"TOPLEFT",self.controls.intelligence,"TOPLEFT"}, {120, 0, 100, 18}, "^7DEFAULT", function() self:SetColor("^7") end)
3741

38-
-- Notes group list
39-
self.controls.noteList = new("NotesListControl", { "TOPLEFT", self.controls.strength, "TOPLEFT" }, { 0, 48, listSize - 16, 300 }, self)
40-
41-
self.controls.edit = new("EditControl", {"TOPLEFT",self.controls.strength,"TOPLEFT"}, {listSize, 48, 0, 0}, "", nil, "^%C\t\n", nil, nil, 16, true)
42+
self.controls.edit = new("EditControl", {"TOPLEFT",self.controls.noteList,"BOTTOMLEFT"}, {0, 8, 0, 0}, "", nil, "^%C\t\n", nil, nil, 16, true)
4243
self.controls.edit.width = function()
43-
return self.width - listSize - 16
44+
return self.width - 16
4445
end
4546
self.controls.edit.height = function()
46-
return self.height - 148
47+
return self.height - 128
4748
end
4849
self.controls.toggleColorCodes = new("ButtonControl", {"TOPRIGHT",self,"TOPRIGHT"}, {-10, 70, 160, 20}, "Show Color Codes", function()
4950
self.showColorCodes = not self.showColorCodes

0 commit comments

Comments
 (0)