rangecheck: rewrite of the 40y range check

* remove the bad notice in GUI
* set default interval to "2"
* prevent all frames of being updated at once
* refresh one unit after the other
* use textures insted of spellnames
* change interval settings to dropdown
* remove no longer required locales
This commit is contained in:
shagu
2017-12-31 17:41:18 +01:00
parent f2543d71af
commit 7e8f2fbb4c
12 changed files with 157 additions and 97 deletions
+10 -2
View File
@@ -406,6 +406,14 @@ pfUI:RegisterModule("gui", function ()
"13:" .. T["Very Slow"],
}
pfUI.gui.dropdowns.uf_rangecheckinterval = {
"1:" .. T["Very Fast"],
"2:" .. T["Fast"],
"4:" .. T["Medium"],
"8:" .. T["Slow"],
"16:" .. T["Very Slow"],
}
pfUI.gui.dropdowns.uf_powerbar_position = {
"TOPLEFT:" .. T["Left"],
"TOP:" .. T["Center"],
@@ -704,8 +712,8 @@ pfUI:RegisterModule("gui", function ()
CreateConfig(this, T["Always Use 2D Portraits"], C.unitframes, "always2dportrait", "checkbox")
CreateConfig(this, T["Enable 2D Portraits As Fallback"], C.unitframes, "portraittexture", "checkbox")
CreateConfig(this, T["Unit Frame Layout"], C.unitframes, "layout", "dropdown", pfUI.gui.dropdowns.uf_layout)
CreateConfig(this, T["Aggressive 40y-Range Check (Will break stuff)"], C.unitframes, "rangecheck", "checkbox")
CreateConfig(this, T["40y-Range Check Interval"], C.unitframes, "rangechecki")
CreateConfig(this, T["Enable 40y-Range Check"], C.unitframes, "rangecheck", "checkbox")
CreateConfig(this, T["Range Check Interval"], C.unitframes, "rangechecki", "dropdown", pfUI.gui.dropdowns.uf_rangecheckinterval)
CreateConfig(this, T["Combopoint Size"], C.unitframes, "combosize")
CreateConfig(this, T["Abbreviate Numbers (4200 -> 4.2k)"], C.unitframes, "abbrevnum", "checkbox")
CreateConfig(this, T["Show PvP Icon"], C.unitframes.player, "showPVP", "checkbox")