-
Notifications
You must be signed in to change notification settings - Fork 399
Expand file tree
/
Copy pathItemsTab.lua.rej
More file actions
46 lines (43 loc) · 2.31 KB
/
Copy pathItemsTab.lua.rej
File metadata and controls
46 lines (43 loc) · 2.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
diff a/src/Classes/ItemsTab.lua b/src/Classes/ItemsTab.lua (rejected hunks)
@@ -932,21 +932,11 @@ holding Shift will put it in the second.]])
end)
for i = 1, 20 do
- local prevControl = i == 1 and self.controls.displayItemSectionRange or self.controls["displayItemStackedRangeLine"..(i-1)]
+ local baseControl = i == 1 and self.controls.displayItemSectionRange or self.controls["displayItemStackedRangeSlider"..(i-1)]
- self.controls["displayItemStackedRangeLine"..i] = new("LabelControl", {"TOPLEFT",prevControl,"TOPLEFT"}, {0, function()
+ self.controls["displayItemStackedRangeSlider"..i] = new("SliderControl", {"TOPLEFT",baseControl,"TOPLEFT"}, {0, function()
return i == 1 and 2 or 22
- end, 350, 14}, function()
- if self.displayItem and self.displayItem.rangeLineList[i] then
- return "^7" .. self.displayItem.rangeLineList[i].line
- end
- return ""
- end)
- self.controls["displayItemStackedRangeLine"..i].shown = function()
- return main.showAllItemAffixes and self.displayItem and self.displayItem.rarity == "UNIQUE" and self.displayItem.rangeLineList[i] ~= nil
- end
-
- self.controls["displayItemStackedRangeSlider"..i] = new("SliderControl", {"LEFT",self.controls["displayItemStackedRangeLine"..i],"RIGHT"}, {8, 0, 100, 18}, function(val)
+ end, 100, 18}, function(val)
if self.displayItem and self.displayItem.rangeLineList[i] then
self.displayItem.rangeLineList[i].range = val
self.displayItem:BuildAndParseRaw()
@@ -954,8 +944,18 @@ holding Shift will put it in the second.]])
self:UpdateCustomControls()
end
end)
+ self.controls["displayItemStackedRangeLine"..i] = new("LabelControl", {"LEFT",self.controls["displayItemStackedRangeSlider"..i],"RIGHT"}, {8, -2, 350, 14}, function()
+ if self.displayItem and self.displayItem.rangeLineList[i] then
+ return "^7" .. self.displayItem.rangeLineList[i].line
+ end
+ return ""
+ end)
self.controls["displayItemStackedRangeSlider"..i].shown = function()
- return self.controls["displayItemStackedRangeLine"..i]:IsShown()
+ return main.showAllItemAffixes and self.displayItem and self.displayItem.rarity == "UNIQUE" and self.displayItem.rangeLineList[i] ~= nil
+ end
+
+ self.controls["displayItemStackedRangeLine"..i].shown = function()
+ return self.controls["displayItemStackedRangeSlider"..i]:IsShown()
end
end