comparison Modules/ProspectMe_Config.lua @ 67:33d421188c8f v2.7.1.3

Minor bugfix for the configuration window and economics tooltip (thanks Aisenfaire for reporting)
author Vynn <mischivin@gmail.com>
date Fri, 20 Jan 2017 00:09:28 -0500
parents 155fa49865f2
children
comparison
equal deleted inserted replaced
66:8722807f7765 67:33d421188c8f
21 SpewMessage(PM_EPIC, PM_EPICTOOLTIP) 21 SpewMessage(PM_EPIC, PM_EPICTOOLTIP)
22 SpewMessage(PM_RARE, PM_RARETOOLTIP) 22 SpewMessage(PM_RARE, PM_RARETOOLTIP)
23 SpewMessage(PM_UNCOMMON, PM_UNCOMMONTOOLTIP) 23 SpewMessage(PM_UNCOMMON, PM_UNCOMMONTOOLTIP)
24 SpewMessage(PM_COMMON, PM_COMMONTOOLTIP) 24 SpewMessage(PM_COMMON, PM_COMMONTOOLTIP)
25 SpewMessage(PM_POOR, PM_POORTOOLTIP) 25 SpewMessage(PM_POOR, PM_POORTOOLTIP)
26 SpewMEssage(PM_ECON, PM_ECONTOOLTIP) 26 SpewMessage(PM_ECON, PM_ECONTOOLTIP)
27 SpewMessage(PM_SESSION, PM_SESSIONTOOLTIP) 27 SpewMessage(PM_SESSION, PM_SESSIONTOOLTIP)
28 SpewMessage(PM_PERCENT, PM_PERCENTTOOLTIP) 28 SpewMessage(PM_PERCENT, PM_PERCENTTOOLTIP)
29 SpewMessage(PM_NUMBER, PM_NUMBERTOOLTIP) 29 SpewMessage(PM_NUMBER, PM_NUMBERTOOLTIP)
30 SpewMessage(PM_RESET, PM_RESETTOOLTIP) 30 SpewMessage(PM_RESET, PM_RESETTOOLTIP)
31 else 31 else
68 ProspectMeFrame.name = "Prospect Me" 68 ProspectMeFrame.name = "Prospect Me"
69 69
70 ProspectMeTitle:SetPoint("TOP", 0, -16) 70 ProspectMeTitle:SetPoint("TOP", 0, -16)
71 ProspectMeTitle:SetText(GetAddOnMetadata("ProspectMe", "Title") .. " v" .. GetAddOnMetadata("ProspectMe", "Version")) 71 ProspectMeTitle:SetText(GetAddOnMetadata("ProspectMe", "Title") .. " v" .. GetAddOnMetadata("ProspectMe", "Version"))
72 72
73 ProspectMeEconToggle:SetPoint( "TOPLEFT", 16, -46 ) 73 ProspectMeEconToggle:SetPoint( "TOPLEFT", 32, -46 )
74 ProspectMeEconToggle:SetScript("OnClick", UpdateConfig) 74 ProspectMeEconToggle:SetScript("OnClick", UpdateConfig)
75 ProspectMeEconToggle:SetChecked(ProspectMe.Config.ShowEconomics) 75 ProspectMeEconToggle:SetChecked(ProspectMe.Config.ShowEconomics)
76 ProspectMeEconToggleText:SetText(PM_ECONTOGGLE) 76 ProspectMeEconToggleText:SetText(PM_ECONTOGGLE)
77 ProspectMeEconToggle.tooltipText = PM_ECONTOOLTIP 77 ProspectMeEconToggle.tooltipText = PM_ECONTOOLTIP
78 78
79 ProspectMeSessionToggle:SetPoint( "TOPLEFT", 32, -46 ) 79 ProspectMeSessionToggle:SetPoint( "TOPLEFT", 32, -70 )
80 ProspectMeSessionToggle:SetScript("OnClick", UpdateConfig) 80 ProspectMeSessionToggle:SetScript("OnClick", UpdateConfig)
81 ProspectMeSessionToggle:SetChecked(ProspectMe.Config.PerSession) 81 ProspectMeSessionToggle:SetChecked(ProspectMe.Config.PerSession)
82 ProspectMeSessionToggleText:SetText(PM_SESSIONTOGGLE) 82 ProspectMeSessionToggleText:SetText(PM_SESSIONTOGGLE)
83 ProspectMeSessionToggle.tooltipText = PM_SESSIONTOOLTIP 83 ProspectMeSessionToggle.tooltipText = PM_SESSIONTOOLTIP
84 84
85 ProspectMePercentToggle:SetPoint( "TOPLEFT", 32, -70 ) 85 ProspectMePercentToggle:SetPoint( "TOPLEFT", 32, -94 )
86 ProspectMePercentToggle:SetScript("OnClick", UpdateConfig) 86 ProspectMePercentToggle:SetScript("OnClick", UpdateConfig)
87 ProspectMePercentToggle:SetChecked(ProspectMe.Config.ShowPercent) 87 ProspectMePercentToggle:SetChecked(ProspectMe.Config.ShowPercent)
88 ProspectMePercentToggleText:SetText(PM_PERCENTTOGGLE) 88 ProspectMePercentToggleText:SetText(PM_PERCENTTOGGLE)
89 ProspectMePercentToggle.tooltipText = PM_PERCENTTOOLTIP 89 ProspectMePercentToggle.tooltipText = PM_PERCENTTOOLTIP
90 90
91 ProspectMeNumberToggle:SetPoint( "TOPLEFT", 32, -94 ) 91 ProspectMeNumberToggle:SetPoint( "TOPLEFT", 32, -118 )
92 ProspectMeNumberToggle:SetScript("OnClick", UpdateConfig) 92 ProspectMeNumberToggle:SetScript("OnClick", UpdateConfig)
93 ProspectMeNumberToggle:SetChecked(ProspectMe.Config.ShowNumber) 93 ProspectMeNumberToggle:SetChecked(ProspectMe.Config.ShowNumber)
94 ProspectMeNumberToggleText:SetText(PM_NUMBERTOGGLE) 94 ProspectMeNumberToggleText:SetText(PM_NUMBERTOGGLE)
95 ProspectMeNumberToggle.tooltipText = PM_NUMBERTOOLTIP 95 ProspectMeNumberToggle.tooltipText = PM_NUMBERTOOLTIP
96 96
97 ProspectMeEpicToggle:SetPoint( "TOPLEFT", 32, -118 ) 97 ProspectMeEpicToggle:SetPoint( "TOPLEFT", 32, -142 )
98 ProspectMeEpicToggle:SetScript("OnClick", UpdateConfig) 98 ProspectMeEpicToggle:SetScript("OnClick", UpdateConfig)
99 ProspectMeEpicToggle:SetChecked(ProspectMe.Config.ShowQualities.Epic) 99 ProspectMeEpicToggle:SetChecked(ProspectMe.Config.ShowQualities.Epic)
100 ProspectMeEpicToggleText:SetText(PM_EPICTOGGLE) 100 ProspectMeEpicToggleText:SetText(PM_EPICTOGGLE)
101 ProspectMeEpicToggle.tooltipText = PM_EPICTOOLTIP 101 ProspectMeEpicToggle.tooltipText = PM_EPICTOOLTIP
102 102
103 ProspectMeRareToggle:SetPoint( "TOPLEFT", 32, -142 ) 103 ProspectMeRareToggle:SetPoint( "TOPLEFT", 32, -166 )
104 ProspectMeRareToggle:SetScript("OnClick", UpdateConfig) 104 ProspectMeRareToggle:SetScript("OnClick", UpdateConfig)
105 ProspectMeRareToggle:SetChecked(ProspectMe.Config.ShowQualities.Rare) 105 ProspectMeRareToggle:SetChecked(ProspectMe.Config.ShowQualities.Rare)
106 ProspectMeRareToggleText:SetText(PM_RARETOGGLE) 106 ProspectMeRareToggleText:SetText(PM_RARETOGGLE)
107 ProspectMeRareToggle.tooltipText = PM_RARETOOLTIP 107 ProspectMeRareToggle.tooltipText = PM_RARETOOLTIP
108 108
109 ProspectMeUncommonToggle:SetPoint( "TOPLEFT", 32, -166 ) 109 ProspectMeUncommonToggle:SetPoint( "TOPLEFT", 32, -190 )
110 ProspectMeUncommonToggle:SetScript("OnClick", UpdateConfig) 110 ProspectMeUncommonToggle:SetScript("OnClick", UpdateConfig)
111 ProspectMeUncommonToggle:SetChecked(ProspectMe.Config.ShowQualities.Uncommon) 111 ProspectMeUncommonToggle:SetChecked(ProspectMe.Config.ShowQualities.Uncommon)
112 ProspectMeUncommonToggleText:SetText(PM_UNCOMMONTOGGLE) 112 ProspectMeUncommonToggleText:SetText(PM_UNCOMMONTOGGLE)
113 ProspectMeUncommonToggle.tooltipText = PM_UNCOMMONTOOLTIP 113 ProspectMeUncommonToggle.tooltipText = PM_UNCOMMONTOOLTIP
114 114
115 ProspectMeCommonToggle:SetPoint( "TOPLEFT", 32, -190 ) 115 ProspectMeCommonToggle:SetPoint( "TOPLEFT", 32, -214 )
116 ProspectMeCommonToggle:SetScript("OnClick", UpdateConfig) 116 ProspectMeCommonToggle:SetScript("OnClick", UpdateConfig)
117 ProspectMeCommonToggle:SetChecked(ProspectMe.Config.ShowQualities.Common) 117 ProspectMeCommonToggle:SetChecked(ProspectMe.Config.ShowQualities.Common)
118 ProspectMeCommonToggleText:SetText(PM_COMMONTOGGLE) 118 ProspectMeCommonToggleText:SetText(PM_COMMONTOGGLE)
119 ProspectMeCommonToggle.tooltipText = PM_COMMONTOOLTIP 119 ProspectMeCommonToggle.tooltipText = PM_COMMONTOOLTIP
120 120
121 ProspectMePoorToggle:SetPoint( "TOPLEFT", 32, -214 ) 121 ProspectMePoorToggle:SetPoint( "TOPLEFT", 32, -238 )
122 ProspectMePoorToggle:SetScript("OnClick", UpdateConfig) 122 ProspectMePoorToggle:SetScript("OnClick", UpdateConfig)
123 ProspectMePoorToggle:SetChecked(ProspectMe.Config.ShowQualities.Poor) 123 ProspectMePoorToggle:SetChecked(ProspectMe.Config.ShowQualities.Poor)
124 ProspectMePoorToggleText:SetText(PM_POORTOGGLE) 124 ProspectMePoorToggleText:SetText(PM_POORTOGGLE)
125 ProspectMePoorToggle.tooltipText = PM_POORTOOLTIP 125 ProspectMePoorToggle.tooltipText = PM_POORTOOLTIP
126 126