mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-30 15:40:51 +00:00
CreateUnitFrame and CreateCastbar could take a character name instead of a unit token, but every caller passes a token, so that mode and the empty-label guards around it were dead. The OnClick TargetByName branch could never run anyway: label was always a string, and "" is truthy. With that gone, the aggro scan was the only reader of pfValidUnits, so its unit list now lives in unitframes.lua and is built once at load. /focusname resolves the name with UnitTokenFromName (exact first, then prefix) instead of swapping the target and muting UIErrorsFrame.
16 lines
410 B
Lua
16 lines
410 B
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}}
|
|
}
|