mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-01 11:20:01 +00:00
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.
51 lines
1.3 KiB
Lua
51 lines
1.3 KiB
Lua
-- barlength = {[formfactor]={cols, rows}}
|
|
pfGridmath = {
|
|
[1] = {{1,1}},
|
|
[2] = {{2,1},{1,2}},
|
|
[3] = {{3,1},{1,3}},
|
|
[4] = {{4,1},{2,2},{1,4}},
|
|
[5] = {{5,1},{1,5}},
|
|
[6] = {{6,1},{3,2},{2,3},{1,6}},
|
|
[7] = {{7,1},{1,7}},
|
|
[8] = {{8,1},{4,2},{2,4},{1,8}},
|
|
[9] = {{9,1},{3,3},{1,9}},
|
|
[10] = {{10,1},{5,2},{2,5},{1,10}},
|
|
[11] = {{11,1},{1,11}},
|
|
[12] = {{12,1},{6,2},{4,3},{3,4},{2,6},{1,12}}
|
|
}
|
|
|
|
-- list of valid unitstrings
|
|
pfValidUnits = {}
|
|
pfValidUnits["pet"] = true
|
|
pfValidUnits["player"] = true
|
|
pfValidUnits["target"] = true
|
|
pfValidUnits["mouseover"] = true
|
|
|
|
pfValidUnits["focus"] = true
|
|
pfValidUnits["focustarget"] = true
|
|
pfValidUnits["focustargettarget"] = true
|
|
|
|
pfValidUnits["pettarget"] = true
|
|
pfValidUnits["playertarget"] = true
|
|
pfValidUnits["targettarget"] = true
|
|
pfValidUnits["mouseovertarget"] = true
|
|
pfValidUnits["targettargettarget"] = true
|
|
|
|
for i=1,4 do
|
|
pfValidUnits["party" .. i] = true
|
|
pfValidUnits["party" .. i .. "target"] = true
|
|
pfValidUnits["partypet" .. i] = true
|
|
pfValidUnits["partypet" .. i .. "target"] = true
|
|
end
|
|
|
|
for i=1,40 do
|
|
pfValidUnits["raid" .. i] = true
|
|
pfValidUnits["raid" .. i .. "target"] = true
|
|
|
|
pfValidUnits["raidpet" .. i] = true
|
|
pfValidUnits["raidpet" .. i .. "target"] = true
|
|
|
|
pfValidUnits["nameplate" .. i] = true
|
|
pfValidUnits["nameplate" .. i .. "target"] = true
|
|
end
|