Skip to content

Commit

Permalink
Preliminary 10.0 update
Browse files Browse the repository at this point in the history
  • Loading branch information
AcidWeb committed Oct 29, 2022
1 parent 3741fb6 commit 5644f56
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 48 deletions.
2 changes: 1 addition & 1 deletion Bindings.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Bindings>
<Binding name="REFLEXOPEN" header="REFLEXB">
<Binding category="BINDING_HEADER_REFLEXB" name="REFLEXOPEN">
if not REFlexFrame:IsVisible() then
REFlexFrame:Show()
else
Expand Down
4 changes: 2 additions & 2 deletions REFlex.lua
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ local SendAddonMessage = _G.C_ChatInfo.SendAddonMessage
local PlaySound = _G.PlaySound
local ElvUI = _G.ElvUI

RE.Version = 3210
RE.Version = 3220
RE.LastSquash = 1602662400
RE.FoundNewVersion = false

Expand Down Expand Up @@ -233,7 +233,7 @@ function RE:OnEvent(_, event, ...)
_G.LibStub("AceConfigRegistry-3.0"):RegisterOptionsTable("REFlex", RE.AceConfig)
RE.OptionsMenu = _G.LibStub("AceConfigDialog-3.0"):AddToBlizOptions("REFlex", "REFlex")
RegisterAddonMessagePrefix("REFlex")
_G.BINDING_HEADER_REFLEXB = "REFlex"
_G.BINDING_HEADER_REFLEXB = "|cFF74D06CRE|rFlex"
_G.BINDING_NAME_REFLEXOPEN = L["Show main window"]
_G.SlashCmdList["REFLEX"] = function()
if not _G.REFlexFrame:IsVisible() then
Expand Down
2 changes: 1 addition & 1 deletion REFlex.toc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## Interface: 100000
## Title: |cFF74D06CRE|rFlex
## Notes: Collect statistics of played arena matches and battlegrounds.
## Version: 3.2.1
## Version: 3.2.2
## Author: AcidWeb
## SavedVariablesPerCharacter: REFlexSettings, REFlexDatabase, REFlexHonorDatabase
## X-WoWI-ID: 19190
Expand Down
8 changes: 2 additions & 6 deletions REFlexFunctions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ local DUMP = LibStub("LibTextDump-1.0")

local tinsert, tsort, tconcat, tremove = _G.table.insert, _G.table.sort, _G.table.concat, _G.table.remove
local mfloor, min, mfmod = _G.math.floor, _G.math.min, _G.math.fmod
local sgsub, sbyte = _G.string.gsub, _G.string.byte
local sgsub, sbyte, slower = _G.string.gsub, _G.string.byte, _G.string.lower
local strsplit, date, select, tostring, PlaySound, time, pairs, ipairs = _G.strsplit, _G.date, _G.select, _G.tostring, _G.PlaySound, _G.time, _G.pairs, _G.ipairs
local GetAchievementCriteriaInfo = _G.GetAchievementCriteriaInfo
local GetHonorRewardInfo = _G.C_PvP.GetHonorRewardInfo
Expand Down Expand Up @@ -449,11 +449,7 @@ function RE:GetMapColorArena(_, realrow, _, table)
end

function RE:GetClassIcon(token, size)
return "|TInterface\\Glues\\CharacterCreate\\UI-CharacterCreate-Classes:"..size..":"..size..":0:0:256:256:" ..
_G.CLASS_ICON_TCOORDS[token][1]*256+5 ..
":" .. _G.CLASS_ICON_TCOORDS[token][2]*256-5 ..
":" .. _G.CLASS_ICON_TCOORDS[token][3]*256+5 ..
":" .. _G.CLASS_ICON_TCOORDS[token][4]*256-5 .. "|t"
return "|A:classicon-"..slower(token)..":"..size..":"..size.."|a"
end

function RE:GetRaceIcon(token, size)
Expand Down
76 changes: 38 additions & 38 deletions REFlexStructures.lua
Original file line number Diff line number Diff line change
Expand Up @@ -123,44 +123,44 @@ RE.MapListStat = {
}

RE.RaceIcons = {
["Human"] = "raceicon-human-male",
["Humans"] = "raceicon-human-male",
["Dwarf"] = "raceicon-dwarf-male",
["Dwarves"] = "raceicon-dwarf-male",
["Gnome"] = "raceicon-gnome-male",
["Gnomes"] = "raceicon-gnome-male",
["Night Elf"] = "raceicon-nightelf-male",
["Night elves"] = "raceicon-nightelf-male",
["Tauren"] = "raceicon-tauren-male",
["Undead"] = "raceicon-undead-male",
["Troll"] = "raceicon-troll-male",
["Trolls"] = "raceicon-troll-male",
["Orc"] = "raceicon-orc-male",
["Orcs"] = "raceicon-orc-male",
["Blood Elf"] = "raceicon-bloodelf-male",
["Blood elves"] = "raceicon-bloodelf-male",
["Draenei"] = "raceicon-draenei-male",
["Goblin"] = "raceicon-goblin-male",
["Goblins"] = "raceicon-goblin-male",
["Worgen"] = "raceicon-worgen-male",
["Pandaren"] = "raceicon-pandaren-male",
["Nightborne"] = "raceicon-nightborne-male",
["Highmountain Tauren"] = "",
["Void Elf"] = "raceicon-voidelf-male",
["Void elves"] = "raceicon-voidelf-male",
["Lightforged Draenei"] = "raceicon-lightforged-male",
["Dark Iron Dwarf"] = "raceicon-darkirondwarf-male",
["Dark Iron Dwarves"] = "raceicon-darkirondwarf-male",
["Mag'har Orc"] = "raceicon-magharorc-male",
["Zandalari Troll"] = "raceicon-zandalari-male",
["Zandalari Trolls"] = "raceicon-zandalari-male",
["Kul Tiran"] = "raceicon-kultiran-male",
["Vulpera"] = "raceicon-vulpera-male",
["Vulperas"] = "raceicon-vulpera-male",
["Mechagnome"] = "raceicon-mechagnome-male",
["Mechagnomes"] = "raceicon-mechagnome-male",
["Dracthyr"] = "raceicon-dracthyr-male",
["Dracthyrs"] = "raceicon-dracthyr-male",
["Human"] = "raceicon128-human-male",
["Humans"] = "raceicon128-human-male",
["Dwarf"] = "raceicon128-dwarf-male",
["Dwarves"] = "raceicon128-dwarf-male",
["Gnome"] = "raceicon128-gnome-male",
["Gnomes"] = "raceicon128-gnome-male",
["Night Elf"] = "raceicon128-nightelf-male",
["Night elves"] = "raceicon128-nightelf-male",
["Tauren"] = "raceicon128-tauren-male",
["Undead"] = "raceicon128-undead-male",
["Troll"] = "raceicon128-troll-male",
["Trolls"] = "raceicon128-troll-male",
["Orc"] = "raceicon128-orc-male",
["Orcs"] = "raceicon128-orc-male",
["Blood Elf"] = "raceicon128-bloodelf-male",
["Blood elves"] = "raceicon128-bloodelf-male",
["Draenei"] = "raceicon128-draenei-male",
["Goblin"] = "raceicon128-goblin-male",
["Goblins"] = "raceicon128-goblin-male",
["Worgen"] = "raceicon128-worgen-male",
["Pandaren"] = "raceicon128-pandaren-male",
["Nightborne"] = "raceicon128-nightborne-male",
["Highmountain Tauren"] = "raceicon128-highmountain-male",
["Void Elf"] = "raceicon128-voidelf-male",
["Void elves"] = "raceicon128-voidelf-male",
["Lightforged Draenei"] = "raceicon128-lightforged-male",
["Dark Iron Dwarf"] = "raceicon128-darkirondwarf-male",
["Dark Iron Dwarves"] = "raceicon128-darkirondwarf-male",
["Mag'har Orc"] = "raceicon128-magharorc-male",
["Zandalari Troll"] = "raceicon128-zandalari-male",
["Zandalari Trolls"] = "raceicon128-zandalari-male",
["Kul Tiran"] = "raceicon128-kultiran-male",
["Vulpera"] = "raceicon128-vulpera-male",
["Vulperas"] = "raceicon128-vulpera-male",
["Mechagnome"] = "raceicon128-mechagnome-male",
["Mechagnomes"] = "raceicon128-mechagnome-male",
["Dracthyr"] = "raceicon128-dracthyr-male",
["Dracthyrs"] = "raceicon128-dracthyr-male"
}

RE.BracketNames = {
Expand Down

0 comments on commit 5644f56

Please sign in to comment.