mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-15 09:40:49 +00:00
Split the vendor price tables into their own manifests
Turtle's pfSellData moves out of modules\turtle-wow.lua into env\selldata_turtle.lua, matching env\selldata.lua for the stock list, and each is pulled in by the manifest for its client: init\stock.xml from pfUI_ClassicAPI.toc, init\turtle.xml from pfUI_Turtle.toc. Either way it loads after init\env.xml and replaces the empty pfSellData declared there. Turtle's prices used to be assigned inside the turtle-wow module body, which put them on pfUI.env and skipped them entirely when that module was disabled. At file scope they land on _G and apply either way.
This commit is contained in:
Vendored
-47
@@ -1,44 +1,3 @@
|
||||
CLASS_ICON_TCOORDS = CLASS_ICON_TCOORDS or {
|
||||
["WARRIOR"] = {0, 0.25, 0, 0.25},
|
||||
["MAGE"] = {0.25, 0.49609375, 0, 0.25},
|
||||
["ROGUE"] = {0.49609375, 0.7421875, 0, 0.25},
|
||||
["DRUID"] = {0.7421875, 0.98828125, 0, 0.25},
|
||||
["HUNTER"] = {0, 0.25, 0.25, 0.5},
|
||||
["SHAMAN"] = {0.25, 0.49609375, 0.25, 0.5},
|
||||
["PRIEST"] = {0.49609375, 0.7421875, 0.25, 0.5},
|
||||
["WARLOCK"] = {0.7421875, 0.98828125, 0.25, 0.5},
|
||||
["PALADIN"] = {0, 0.25, 0.5, 0.75},
|
||||
["DEATHKNIGHT"] = {0.25, .5, 0.5, .75},
|
||||
["GM"] = {0.5, 0.73828125, 0.5, .75},
|
||||
}
|
||||
|
||||
-- race icons live in Interface\Glues\CharacterCreate\UI-CharacterCreate-Races
|
||||
-- keyed by RACEKEY_GENDER (englishRace .. sex); mirrors the GlueXML table,
|
||||
-- which isn't loaded in-world. includes the Turtle-specific BloodElf/Goblin.
|
||||
RACE_ICON_TCOORDS = RACE_ICON_TCOORDS or {
|
||||
["HUMAN_MALE"] = {0, 0.125, 0, 0.25},
|
||||
["DWARF_MALE"] = {0.125, 0.25, 0, 0.25},
|
||||
["GNOME_MALE"] = {0.25, 0.375, 0, 0.25},
|
||||
["NIGHTELF_MALE"] = {0.375, 0.5, 0, 0.25},
|
||||
["TAUREN_MALE"] = {0, 0.125, 0.25, 0.5},
|
||||
["SCOURGE_MALE"] = {0.125, 0.25, 0.25, 0.5},
|
||||
["TROLL_MALE"] = {0.25, 0.375, 0.25, 0.5},
|
||||
["ORC_MALE"] = {0.375, 0.5, 0.25, 0.5},
|
||||
["BLOODELF_MALE"] = {0.5, 0.625, 0.25, 0.5},
|
||||
["GOBLIN_MALE"] = {0.5, 0.625, 0, 0.25},
|
||||
|
||||
["HUMAN_FEMALE"] = {0, 0.125, 0.5, 0.75},
|
||||
["DWARF_FEMALE"] = {0.125, 0.25, 0.5, 0.75},
|
||||
["GNOME_FEMALE"] = {0.25, 0.375, 0.5, 0.75},
|
||||
["NIGHTELF_FEMALE"] = {0.375, 0.5, 0.5, 0.75},
|
||||
["TAUREN_FEMALE"] = {0, 0.125, 0.75, 1.0},
|
||||
["SCOURGE_FEMALE"] = {0.125, 0.25, 0.75, 1.0},
|
||||
["TROLL_FEMALE"] = {0.25, 0.375, 0.75, 1.0},
|
||||
["ORC_FEMALE"] = {0.375, 0.5, 0.75, 1.0},
|
||||
["BLOODELF_FEMALE"] = {0.5, 0.625, 0.75, 1.0},
|
||||
["GOBLIN_FEMALE"] = {0.5, 0.625, 0.5, 0.75},
|
||||
}
|
||||
|
||||
-- barlength = {[formfactor]={cols, rows}}
|
||||
pfGridmath = {
|
||||
[1] = {{1,1}},
|
||||
@@ -89,9 +48,3 @@ for i=1,40 do
|
||||
pfValidUnits["nameplate" .. i] = true
|
||||
pfValidUnits["nameplate" .. i .. "target"] = true
|
||||
end
|
||||
|
||||
-- Vendor-buy prices. env\selldata.lua fills this in on stock clients; on
|
||||
-- Turtle, modules\turtle-wow.lua supplies the server's own table. Declared
|
||||
-- empty here so modules\sellvalue.lua always has a table to index, even with
|
||||
-- the turtle-wow module disabled.
|
||||
pfSellData = {}
|
||||
|
||||
Reference in New Issue
Block a user