Mercurial > wow > askmrrobot
comparison Options.lua @ 189:21a69c63fee8 v92
Added BfA auto-logging back for now.
author | yellowfive |
---|---|
date | Mon, 19 Oct 2020 11:19:56 -0700 |
parents | 35612aee8e15 |
children |
comparison
equal
deleted
inserted
replaced
188:29f11593d255 | 189:21a69c63fee8 |
---|---|
130 _chkAh = nil | 130 _chkAh = nil |
131 _chkEm = nil | 131 _chkEm = nil |
132 _txtScale = nil | 132 _txtScale = nil |
133 end | 133 end |
134 | 134 |
135 -- sometimes the game doesn't repaint checkboxes when it should... doing this forces it to do so | |
136 local function setCheckboxChecked(chk, val) | |
137 chk:SetChecked(val) | |
138 chk:SetChecked(not val) | |
139 chk:SetChecked(val) | |
140 end | |
141 | |
135 function Amr:RefreshOptionsUi() | 142 function Amr:RefreshOptionsUi() |
136 | 143 |
137 if _chkMinimap then | 144 if _chkMinimap then |
145 --setCheckboxChecked(_chkMinimap, self.db.profile.minimap.hide) | |
138 _chkMinimap:SetChecked(self.db.profile.minimap.hide) | 146 _chkMinimap:SetChecked(self.db.profile.minimap.hide) |
139 end | 147 end |
140 | 148 |
141 if _chkAutoGear then | 149 if _chkAutoGear then |
150 --setCheckboxChecked(_chkAutoGear, self.db.profile.options.autoGear) | |
142 _chkAutoGear:SetChecked(self.db.profile.options.autoGear) | 151 _chkAutoGear:SetChecked(self.db.profile.options.autoGear) |
143 end | 152 end |
144 | 153 |
145 if _chkJunk then | 154 if _chkJunk then |
155 --setCheckboxChecked(_chkJunk, self.db.profile.options.junkVendor) | |
146 _chkJunk:SetChecked(self.db.profile.options.junkVendor) | 156 _chkJunk:SetChecked(self.db.profile.options.junkVendor) |
147 end | 157 end |
148 | 158 |
149 if _chkAh then | 159 if _chkAh then |
160 --setCheckboxChecked(_chkAh, self.db.profile.options.shopAh) | |
150 _chkAh:SetChecked(self.db.profile.options.shopAh) | 161 _chkAh:SetChecked(self.db.profile.options.shopAh) |
151 end | 162 end |
152 | 163 |
153 if _chkEm then | 164 if _chkEm then |
165 --setCheckboxChecked(_chkEm, self.db.profile.options.disableEm) | |
154 _chkEm:SetChecked(self.db.profile.options.disableEm) | 166 _chkEm:SetChecked(self.db.profile.options.disableEm) |
155 end | 167 end |
156 | 168 |
157 if _txtScale then | 169 if _txtScale then |
158 _txtScale:SetText(self.db.profile.options.uiScale) | 170 _txtScale:SetText(self.db.profile.options.uiScale) |