|
| 1 | +diff a/src/Modules/Main.lua b/src/Modules/Main.lua (rejected hunks) |
| 2 | +@@ -113,8 +113,8 @@ function main:Init() |
| 3 | + self.showPublicBuilds = true |
| 4 | + self.showFlavourText = true |
| 5 | + self.showAnimations = true |
| 6 | +- self.errorReadingSettings = false |
| 7 | +- self.showAllItemAffixes = false |
| 8 | ++ self.showAllItemAffixes = true |
| 9 | ++ self.errorReadingSettings = false |
| 10 | + |
| 11 | + if not SetDPIScaleOverridePercent then SetDPIScaleOverridePercent = function(scale) end end |
| 12 | + |
| 13 | +@@ -655,10 +655,10 @@ function main:LoadSettings(ignoreBuild) |
| 14 | + if node.attrib.showFlavourText then |
| 15 | + self.showFlavourText = node.attrib.showFlavourText == "true" |
| 16 | + end |
| 17 | +- if node.attrib.showAnimations then |
| 18 | ++ if node.attrib.showAnimations then |
| 19 | + self.showAnimations = node.attrib.showAnimations == "true" |
| 20 | + end |
| 21 | +- if node.attrib.showAllItemAffixes then |
| 22 | ++ if node.attrib.showAllItemAffixes then |
| 23 | + self.showAllItemAffixes = node.attrib.showAllItemAffixes == "true" |
| 24 | + end |
| 25 | + if node.attrib.dpiScaleOverridePercent then |
| 26 | +@@ -794,7 +794,7 @@ function main:SaveSettings() |
| 27 | + showPublicBuilds = tostring(self.showPublicBuilds), |
| 28 | + showFlavourText = tostring(self.showFlavourText), |
| 29 | + showAnimations = tostring(self.showAnimations), |
| 30 | +- showAllItemAffixes = tostring(self.showAllItemAffixes), |
| 31 | ++ showAllItemAffixes = tostring(self.showAllItemAffixes), |
| 32 | + dpiScaleOverridePercent = tostring(self.dpiScaleOverridePercent), |
| 33 | + } }) |
| 34 | + local res, errMsg = common.xml.SaveXMLFile(setXML, self.userPath.."Settings.xml") |
| 35 | +@@ -1099,7 +1099,7 @@ function main:OpenOptionsPopup() |
| 36 | + controls.showPublicBuilds.state = self.showPublicBuilds |
| 37 | + controls.showFlavourText.state = self.showFlavourText |
| 38 | + controls.showAnimations.state = self.showAnimations |
| 39 | +- controls.showAllItemAffixes.state = self.showAllItemAffixes |
| 40 | ++ controls.showAllItemAffixes.state = self.showAllItemAffixes |
| 41 | + local initialNodePowerTheme = self.nodePowerTheme |
| 42 | + local initialColorPositive = self.colorPositive |
| 43 | + local initialColorNegative = self.colorNegative |
| 44 | +@@ -1121,7 +1121,7 @@ function main:OpenOptionsPopup() |
| 45 | + local initialShowPublicBuilds = self.showPublicBuilds |
| 46 | + local initialShowFlavourText = self.showFlavourText |
| 47 | + local initialShowAnimations = self.showAnimations |
| 48 | +- local initialShowAllItemAffixes = self.showAllItemAffixes |
| 49 | ++ local initialShowAllItemAffixes = self.showAllItemAffixes |
| 50 | + local initialDpiScaleOverridePercent = self.dpiScaleOverridePercent |
| 51 | + |
| 52 | + -- last line with buttons has more spacing |
| 53 | +@@ -1177,7 +1177,7 @@ function main:OpenOptionsPopup() |
| 54 | + self.showPublicBuilds = initialShowPublicBuilds |
| 55 | + self.showFlavourText = initialShowFlavourText |
| 56 | + self.showAnimations = initialShowAnimations |
| 57 | +- self.showAllItemAffixes = initialShowAllItemAffixes |
| 58 | ++ self.showAllItemAffixes = initialShowAllItemAffixes |
| 59 | + self.dpiScaleOverridePercent = initialDpiScaleOverridePercent |
| 60 | + SetDPIScaleOverridePercent(self.dpiScaleOverridePercent) |
| 61 | + main:ClosePopup() |
0 commit comments