Skip to content

Commit

Permalink
Fixed race display
Browse files Browse the repository at this point in the history
  • Loading branch information
AcidWeb committed Oct 16, 2020
1 parent 07db206 commit 64b8646
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 41 deletions.
10 changes: 5 additions & 5 deletions REFlexFunctions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -447,11 +447,11 @@ function RE:GetRaceIcon(token, size)
return "|TInterface\\Icons\\INV_Misc_QuestionMark:"..size..":"..size.."|t"
else
token = sgsub(BR[token], "_PL", "")
return "|TInterface\\Glues\\CharacterCreate\\CharacterCreateIcons:"..size..":"..size..":0:0:256:256:" ..
RE.RaceIcons[token][1]*256+5 ..
":" .. RE.RaceIcons[token][2]*256-5 ..
":" .. RE.RaceIcons[token][3]*256+5 ..
":" .. RE.RaceIcons[token][4]*256-5 .. "|t"
return "|TInterface\\Glues\\CharacterCreate\\CharacterCreateIcons:"..size..":"..size..":0:0:2048:1024:" ..
RE.RaceIcons[token][1]*2048+5 ..
":" .. RE.RaceIcons[token][2]*2048-5 ..
":" .. RE.RaceIcons[token][3]*1024+5 ..
":" .. RE.RaceIcons[token][4]*1024-5 .. "|t"
end
end

Expand Down
72 changes: 36 additions & 36 deletions REFlexStructures.lua
Original file line number Diff line number Diff line change
Expand Up @@ -118,42 +118,42 @@ RE.MapListStat = {
}

RE.RaceIcons = {
["Human"] = {0.388672, 0.513672, 0.130859, 0.255859},
["Humans"] = {0.388672, 0.513672, 0.130859, 0.255859},
["Dwarf"] = {0.00195312, 0.126953, 0.130859, 0.255859},
["Dwarves"] = {0.00195312, 0.126953, 0.130859, 0.255859},
["Gnome"] = {0.00195312, 0.126953, 0.388672, 0.513672},
["Gnomes"] = {0.00195312, 0.126953, 0.388672, 0.513672},
["Night Elf"] = {0.388672, 0.513672, 0.259766, 0.384766},
["Night elves"] = {0.388672, 0.513672, 0.259766, 0.384766},
["Tauren"] = {0.259766, 0.384766, 0.646484, 0.771484},
["Undead"] = {0.646484, 0.771484, 0.388672, 0.513672},
["Troll"] = {0.388672, 0.513672, 0.388672, 0.513672},
["Trolls"] = {0.388672, 0.513672, 0.388672, 0.513672},
["Orc"] = {0.646484, 0.771484, 0.259766, 0.384766},
["Orcs"] = {0.646484, 0.771484, 0.259766, 0.384766},
["Blood Elf"] = {0.130859, 0.255859, 0.00195312, 0.126953},
["Blood elves"] = {0.130859, 0.255859, 0.00195312, 0.126953},
["Draenei"] = {0.646484, 0.771484, 0.00195312, 0.126953},
["Goblin"] = {0.00195312, 0.126953, 0.646484, 0.771484},
["Goblins"] = {0.00195312, 0.126953, 0.646484, 0.771484},
["Worgen"] = {0.388672, 0.513672, 0.775391, 0.900391},
["Pandaren"] = {0.259766, 0.384766, 0.388672, 0.513672},
["Nightborne"] = {0.130859, 0.255859, 0.775391, 0.900391},
["Highmountain Tauren"] = {0.130859, 0.255859, 0.130859, 0.255859},
["Void Elf"] = {0.388672, 0.513672, 0.517578, 0.642578},
["Void elves"] = {0.388672, 0.513672, 0.517578, 0.642578},
["Lightforged Draenei"] = {0.130859, 0.255859, 0.259766, 0.384766},
["Dark Iron Dwarf"] = {0.388672, 0.513672, 0.00195312, 0.126953},
["Dark Iron Dwarves"] = {0.388672, 0.513672, 0.00195312, 0.126953},
["Mag'har Orc"] = {0.130859, 0.255859, 0.517578, 0.642578},
["Zandalari Troll"] = {0.646484, 0.771484, 0.517578, 0.642578},
["Zandalari Trolls"] = {0.646484, 0.771484, 0.517578, 0.642578},
["Kul Tiran"] = {0.646484, 0.771484, 0.130859, 0.255859},
["Vulpera"] = {0.646484, 0.771484, 0.646484, 0.771484},
["Vulperas"] = {0.646484, 0.771484, 0.646484, 0.771484},
["Mechagnome"] = {0.517578, 0.642578, 0.646484, 0.771484},
["Mechagnomes"] = {0.517578, 0.642578, 0.646484, 0.771484}
["Human"] = {0.86084, 0.89209, 0.000976562, 0.0634766},
["Humans"] = {0.86084, 0.89209, 0.000976562, 0.0634766},
["Dwarf"] = {0.444824, 0.476074, 0.889648, 0.952148},
["Dwarves"] = {0.444824, 0.476074, 0.889648, 0.952148},
["Gnome"] = {0.66748, 0.69873, 0.000976562, 0.0634766},
["Gnomes"] = {0.66748, 0.69873, 0.000976562, 0.0634766},
["Night Elf"] = {0.508301, 0.539551, 0.643555, 0.706055},
["Night elves"] = {0.508301, 0.539551, 0.643555, 0.706055},
["Tauren"] = {0.540527, 0.571777, 0.192383, 0.254883},
["Undead"] = {0.540527, 0.571777, 0.450195, 0.512695},
["Troll"] = {0.540527, 0.571777, 0.321289, 0.383789},
["Trolls"] = {0.540527, 0.571777, 0.321289, 0.383789},
["Orc"] = {0.508301, 0.539551, 0.772461, 0.834961},
["Orcs"] = {0.508301, 0.539551, 0.772461, 0.834961},
["Blood Elf"] = {0.0639648, 0.0952148, 0.889648, 0.952148},
["Blood elves"] = {0.0639648, 0.0952148, 0.889648, 0.952148},
["Draenei"] = {0.317871, 0.349121, 0.889648, 0.952148},
["Goblin"] = {0.731934, 0.763184, 0.000976562, 0.0634766},
["Goblins"] = {0.731934, 0.763184, 0.000976562, 0.0634766},
["Worgen"] = {0.540527, 0.571777, 0.836914, 0.899414},
["Pandaren"] = {0.508301, 0.539551, 0.901367, 0.963867},
["Nightborne"] = {0.508301, 0.539551, 0.514648, 0.577148},
["Highmountain Tauren"] = {0.796387, 0.827637, 0.000976562, 0.0634766},
["Void Elf"] = {0.540527, 0.571777, 0.579102, 0.641602},
["Void elves"] = {0.540527, 0.571777, 0.579102, 0.641602},
["Lightforged Draenei"] = {0.508301, 0.539551, 0.12793, 0.19043},
["Dark Iron Dwarf"] = {0.190918, 0.222168, 0.889648, 0.952148},
["Dark Iron Dwarves"] = {0.190918, 0.222168, 0.889648, 0.952148},
["Mag'har Orc"] = {0.508301, 0.539551, 0.256836, 0.319336},
["Zandalari Troll"] = {0.572754, 0.604004, 0.12793, 0.19043},
["Zandalari Trolls"] = {0.572754, 0.604004, 0.12793, 0.19043},
["Kul Tiran"] = {0.925293, 0.956543, 0.000976562, 0.0634766},
["Vulpera"] = {0.540527, 0.571777, 0.708008, 0.770508},
["Vulperas"] = {0.540527, 0.571777, 0.708008, 0.770508},
["Mechagnome"] = {0.508301, 0.539551, 0.385742, 0.448242},
["Mechagnomes"] = {0.508301, 0.539551, 0.385742, 0.448242}
}

RE.BracketNames = {
Expand Down

0 comments on commit 64b8646

Please sign in to comment.