Subject | Hash | Author | Date (UTC) |
---|---|---|---|
feat: unknown unit level is rendered as red | f830dfcf22bf2f8e5c087de8f42a89f6733f5269 | Vladyslav Bondarenko | 2024-06-14 13:51:34 |
fix: make unit level text bold | 2a4ea6baea2107a3f1ec8ab7bca4edb169a4575b | Vladyslav Bondarenko | 2024-06-14 13:51:01 |
feat: narrow backdrop for larger frames | 77b080701c68bb8f6e353e15586f0e8063266d5c | Vladyslav Bondarenko | 2024-06-14 11:24:16 |
fix!: clever defaults for backdrop dimensions | 2b894d724b4c9c97f5c27b98f43bf3e4616cb1ed | Vladyslav Bondarenko | 2024-06-14 10:58:30 |
fix!: render backdrop reliably for TOT frames | 2f45f0afaee507cc5fc88a9892bf4474c644f173 | Vladyslav Bondarenko | 2024-06-14 09:55:18 |
fix: solo and party frames must never overlap | 6776655fe59277688c4cb6b19d00f6dcf41cca89 | Vladyslav Bondarenko | 2024-06-14 09:13:23 |
fix: tiny unit frame border visual glitch | 14090239c7535614ce4a02c7ee06d8204dd90a74 | Vladyslav Bondarenko | 2024-06-13 14:36:22 |
fix: generalize frame backdrop color picker | 9960ac95ee03be3d8c93c49f773b850b057d9502 | Vladyslav Bondarenko | 2024-06-12 10:04:46 |
fix: remove some obsolete notes | 2e0bd3ec7f1e445473836d4a97817dece7e8e4c3 | Vladyslav Bondarenko | 2024-06-12 09:11:32 |
fix: show aura tooltip given spell name | 75860ee70c3e2fdcef8c51b56e86eaa3178c9a0d | Vladyslav Bondarenko | 2024-02-06 22:04:10 |
fix!: correct aura weight map validator | 9df60b2e2da12d9f6f1470610a638aa6de3b31e7 | Vladyslav Bondarenko | 2024-01-28 22:27:59 |
doc: add `ldoc` annotations | 0f7e2cbf74fe354c1c34fc9cd63b8b53237f8682 | Vladyslav Bondarenko | 2024-01-28 21:58:55 |
fix!: load the add-on correctly | b857b8764be59195f65137f2bd577289d7c76cc9 | Vladyslav Bondarenko | 2024-01-28 04:46:25 |
release: prepare release 0.7.0 | ba97f4d7e7eb9ff984d88d75a740e24c0e90bb05 | Vladyslav Bondarenko | 2024-01-27 15:10:27 |
doc: add recipe to produce documentation | de290d89eee64d11752024b3b7dd5eeea062414e | Vladyslav Bondarenko | 2024-01-27 15:03:45 |
build: move test files to separate directory | 629a79fd7ea24f487655001cee2364ea3398628b | Vladyslav Bondarenko | 2024-01-26 00:59:22 |
build: minor patch to appease static analysis | 7c3af6a2309236acd2d2de3eccfe550d296aba39 | Vladyslav Bondarenko | 2024-01-26 00:45:50 |
fix: hide cast bar when unit is absent | 1d439ef7752b03dad32f5bff1a40e60db1e7d2b2 | Vladyslav Bondarenko | 2024-01-25 14:40:53 |
fix!: toggle group frames correctly when in combat | d206255d8aa9c6fd1fa6cbbc591192269a2ffd47 | Vladyslav Bondarenko | 2024-01-24 22:36:19 |
feat: add unit frame borders that are color coded | fb8e310e827c1cbdafa6ff2bc7760ef8fc617a16 | Vladyslav Bondarenko | 2024-01-24 20:23:43 |
File | Lines added | Lines deleted |
---|---|---|
src/ChorusUnitLevelFrameTemplate.lua | 7 | 2 |
File src/ChorusUnitLevelFrameTemplate.lua changed (mode: 100644) (index 40ca7ee..d22d8b7) | |||
1 | 1 | --[[-- | --[[-- |
2 | `ChorusUnitLevelFrameTemplate` shows the number of corresponding unit's level, conditionally decorated for elite and rare enemies. | ||
2 | `ChorusUnitLevelFrameTemplate` shows the number of corresponding unit's level, | ||
3 | conditionally decorated for elite and rare enemies. | ||
3 | 4 | ||
4 | 5 | @submodule chorus | @submodule chorus |
5 | 6 | ]] | ]] |
... | ... | local function applyUnitLevel(self, unitDesignation) | |
76 | 77 | local g = 1 | local g = 1 |
77 | 78 | local b = 1 | local b = 1 |
78 | 79 | local colorTuple = GetQuestDifficultyColor(unitLevel) | local colorTuple = GetQuestDifficultyColor(unitLevel) |
79 | if UnitCanAttack('player', unitDesignation) and colorTuple then | ||
80 | if unitLevel <= 0 then | ||
81 | r = 1 | ||
82 | g = 0 | ||
83 | b = 0 | ||
84 | elseif UnitCanAttack('player', unitDesignation) and colorTuple then | ||
80 | 85 | assert(colorTuple ~= nil) | assert(colorTuple ~= nil) |
81 | 86 | assert('table' == type(colorTuple)) | assert('table' == type(colorTuple)) |
82 | 87 |