|
| 1 | +diff a/src/Modules/Main.lua b/src/Modules/Main.lua (rejected hunks) |
| 2 | +@@ -112,6 +112,7 @@ function main:Init() |
| 3 | + self.POESESSID = "" |
| 4 | + self.showPublicBuilds = true |
| 5 | + self.showFlavourText = true |
| 6 | ++ self.showAllItemAffixes = false |
| 7 | + |
| 8 | + if not SetDPIScaleOverridePercent then SetDPIScaleOverridePercent = function(scale) end end |
| 9 | + |
| 10 | +@@ -645,6 +646,9 @@ function main:LoadSettings(ignoreBuild) |
| 11 | + if node.attrib.showFlavourText then |
| 12 | + self.showFlavourText = node.attrib.showFlavourText == "true" |
| 13 | + end |
| 14 | ++ if node.attrib.showAllItemAffixes then |
| 15 | ++ self.showAllItemAffixes = node.attrib.showAllItemAffixes == "true" |
| 16 | ++ end |
| 17 | + if node.attrib.dpiScaleOverridePercent then |
| 18 | + self.dpiScaleOverridePercent = tonumber(node.attrib.dpiScaleOverridePercent) or 0 |
| 19 | + SetDPIScaleOverridePercent(self.dpiScaleOverridePercent) |
| 20 | +@@ -767,6 +771,7 @@ function main:SaveSettings() |
| 21 | + disableDevAutoSave = tostring(self.disableDevAutoSave), |
| 22 | + showPublicBuilds = tostring(self.showPublicBuilds), |
| 23 | + showFlavourText = tostring(self.showFlavourText), |
| 24 | ++ showAllItemAffixes = tostring(self.showAllItemAffixes), |
| 25 | + dpiScaleOverridePercent = tostring(self.dpiScaleOverridePercent), |
| 26 | + } }) |
| 27 | + local res, errMsg = common.xml.SaveXMLFile(setXML, self.userPath.."Settings.xml") |
| 28 | +@@ -969,6 +974,12 @@ function main:OpenOptionsPopup() |
| 29 | + self.showFlavourText = state |
| 30 | + end) |
| 31 | + |
| 32 | ++ nextRow() |
| 33 | ++ controls.showAllItemAffixes = new("CheckBoxControl", { "TOPLEFT", nil, "TOPLEFT" }, { defaultLabelPlacementX, currentY, 20 }, "^7Show all item affixes sans dropdowns:", function(state) |
| 34 | ++ self.showAllItemAffixes = state |
| 35 | ++ end) |
| 36 | ++ controls.showAllItemAffixes.tooltipText = "Display all item affix slots as a stacked list instead of hiding them in dropdowns" |
| 37 | ++ |
| 38 | + nextRow() |
| 39 | + drawSectionHeader("build", "Build-related options") |
| 40 | + |
| 41 | +@@ -1058,6 +1069,7 @@ function main:OpenOptionsPopup() |
| 42 | + controls.titlebarName.state = self.showTitlebarName |
| 43 | + controls.showPublicBuilds.state = self.showPublicBuilds |
| 44 | + controls.showFlavourText.state = self.showFlavourText |
| 45 | ++ controls.showAllItemAffixes.state = self.showAllItemAffixes |
| 46 | + local initialNodePowerTheme = self.nodePowerTheme |
| 47 | + local initialColorPositive = self.colorPositive |
| 48 | + local initialColorNegative = self.colorNegative |
| 49 | +@@ -1077,6 +1089,7 @@ function main:OpenOptionsPopup() |
| 50 | + local initialInvertSliderScrollDirection = self.invertSliderScrollDirection |
| 51 | + local initialDisableDevAutoSave = self.disableDevAutoSave |
| 52 | + local initialShowPublicBuilds = self.showPublicBuilds |
| 53 | ++ local initialShowAllItemAffixes = self.showAllItemAffixes |
| 54 | + local initialShowFlavourText = self.showFlavourText |
| 55 | + local initialDpiScaleOverridePercent = self.dpiScaleOverridePercent |
| 56 | + |
| 57 | +@@ -1132,6 +1145,7 @@ function main:OpenOptionsPopup() |
| 58 | + self.disableDevAutoSave = initialDisableDevAutoSave |
| 59 | + self.showPublicBuilds = initialShowPublicBuilds |
| 60 | + self.showFlavourText = initialShowFlavourText |
| 61 | ++ self.showAllItemAffixes = initialShowAllItemAffixes |
| 62 | + self.dpiScaleOverridePercent = initialDpiScaleOverridePercent |
| 63 | + SetDPIScaleOverridePercent(self.dpiScaleOverridePercent) |
| 64 | + main:ClosePopup() |
0 commit comments