Mercurial > wow > askmrrobot
comparison Options.lua @ 91:b8e9664d3229 v43
option to disable equipment manager sets, minor artifact/talent bug fixes
| author | yellowfive |
|---|---|
| date | Wed, 21 Sep 2016 00:14:22 -0700 |
| parents | cf2b6b9a8337 |
| children | f1da233629be |
comparison
equal
deleted
inserted
replaced
| 90:db63475ef5d4 | 91:b8e9664d3229 |
|---|---|
| 3 local AceGUI = LibStub("AceGUI-3.0") | 3 local AceGUI = LibStub("AceGUI-3.0") |
| 4 | 4 |
| 5 local _chkMinimap | 5 local _chkMinimap |
| 6 local _chkAutoGear | 6 local _chkAutoGear |
| 7 local _chkAh | 7 local _chkAh |
| 8 local _chkEm | |
| 8 local _txtScale | 9 local _txtScale |
| 9 | 10 |
| 10 local function onTextboxEnter(widget) | 11 local function onTextboxEnter(widget) |
| 11 local setting = widget:GetUserData("setting") | 12 local setting = widget:GetUserData("setting") |
| 12 local val = widget:GetText() | 13 local val = widget:GetText() |
| 111 _chkAutoGear:SetPoint("TOPLEFT", desc.frame, "BOTTOMLEFT", -24, -20) | 112 _chkAutoGear:SetPoint("TOPLEFT", desc.frame, "BOTTOMLEFT", -24, -20) |
| 112 | 113 |
| 113 _chkAh, desc = createCheck(container, "shopAh", L.OptionsShopAhName, L.OptionsShopAhDesc) | 114 _chkAh, desc = createCheck(container, "shopAh", L.OptionsShopAhName, L.OptionsShopAhDesc) |
| 114 _chkAh:SetPoint("TOPLEFT", desc2.frame, "BOTTOMLEFT", -24, -20) | 115 _chkAh:SetPoint("TOPLEFT", desc2.frame, "BOTTOMLEFT", -24, -20) |
| 115 | 116 |
| 116 _txtScale, desc2 = createSmallTextbox(container, "uiScale", L.OptionsUiScaleName, L.OptionsUiScaleDesc) | 117 _chkEm, desc2 = createCheck(container, "disableEm", L.OptionsDisableEmName, L.OptionsDisableEmDesc) |
| 117 _txtScale:SetPoint("TOPLEFT", desc.frame, "BOTTOMLEFT", -43, -20) | 118 _chkEm:SetPoint("TOPLEFT", desc.frame, "BOTTOMLEFT", -24, -20) |
| 119 | |
| 120 _txtScale, desc = createSmallTextbox(container, "uiScale", L.OptionsUiScaleName, L.OptionsUiScaleDesc) | |
| 121 _txtScale:SetPoint("TOPLEFT", desc2.frame, "BOTTOMLEFT", -43, -20) | |
| 118 | 122 |
| 119 -- initialize state of controls | 123 -- initialize state of controls |
| 120 Amr:RefreshOptionsUi() | 124 Amr:RefreshOptionsUi() |
| 121 end | 125 end |
| 122 | 126 |
| 136 | 140 |
| 137 if _chkAh then | 141 if _chkAh then |
| 138 _chkAh:SetChecked(self.db.profile.options.shopAh) | 142 _chkAh:SetChecked(self.db.profile.options.shopAh) |
| 139 end | 143 end |
| 140 | 144 |
| 145 if _chkEm then | |
| 146 _chkEm:SetChecked(self.db.profile.options.disableEm) | |
| 147 end | |
| 148 | |
| 141 if _txtScale then | 149 if _txtScale then |
| 142 _txtScale:SetText(self.db.profile.options.uiScale) | 150 _txtScale:SetText(self.db.profile.options.uiScale) |
| 143 _txtScale:ClearFocus() | 151 _txtScale:ClearFocus() |
| 144 end | 152 end |
| 145 end | 153 end |
