vrtc / chorus (public) (License: CC0) (since 2023-08-12) (hash sha1)
World of Warcraft add-on stub. The overall goal is to create a specialized raid frame.
List of commits:
Subject Hash Author Date (UTC)
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
fix: typo in src/ChorusUnitFrameTemplate.lua 62ccfd2a62ce4ec8d9be7658663d06c9d39f743a Vladyslav Bondarenko 2024-01-24 18:57:02
fix: single frame toggles every group frame 44d20820afb80aa381c2cfb1272123ba9a8e6156 Vladyslav Bondarenko 2024-01-24 18:47:12
build: migrate to make and adoc 1e410bff214b6a32cd13343d3b7e521afa0cf93f Vladyslav Bondarenko 2024-01-23 14:42:21
doc: note the need to backport GetSpellName 8dac49bb037de94b2980a45b91152691d9c5b98b Vladyslav Bondarenko 2024-01-23 14:24:44
feat: show remaining aura charges beedf659895a3ecdd0df97e14e63d87f534d0bbc Vladyslav Bondarenko 2024-01-23 14:24:01
fix: remove aura button overlay and artwork gap d0785edceabe16095e6e56aa42d88fb25bca3eb7 Vladyslav Bondarenko 2024-01-21 22:35:02
Release 0.6 d76ca463e13d1a47b68541f33faa9c44ec745347 Vladyslav Bondarenko 2023-09-12 02:02:46
Commit 9960ac95ee03be3d8c93c49f773b850b057d9502 - fix: generalize frame backdrop color picker
Author: Vladyslav Bondarenko
Author date (UTC): 2024-06-12 10:04
Committer name: Vladyslav Bondarenko
Committer date (UTC): 2024-06-12 10:04
Parent(s): 2e0bd3ec7f1e445473836d4a97817dece7e8e4c3
Signer:
Signing key: EFF9624877D25D02
Signing status: E
Tree: bdb79707a13626eec8e710195074b0315d233b1c
File Lines added Lines deleted
src/ChorusUnitBackdropTemplate.lua 62 8
File src/ChorusUnitBackdropTemplate.lua changed (mode: 100644) (index 7738bbc..ed397b4)
... ... frame borders.
7 7
8 8 local SecureButton_GetUnit = SecureButton_GetUnit local SecureButton_GetUnit = SecureButton_GetUnit
9 9
10 local function getDefaultBackdropColorMap()
11
12 --[[ player: gold; target: magenta; focus: cyan; none: grey; ]]--
13
14 return {
15 target = {
16 1, 0, 1, 1,
17 },
18 focus = {
19 0, 1, 1, 1,
20 },
21 player = {
22 1, 225 / 255, 0, 1,
23 },
24 }
25 end
26
10 27 local function unitBackdropEventProcessor(unitBackdrop) local function unitBackdropEventProcessor(unitBackdrop)
11 28 assert(unitBackdrop ~= nil) assert(unitBackdrop ~= nil)
12 29
 
... ... local function unitBackdropEventProcessor(unitBackdrop)
20 37 unitBackdrop:Show() unitBackdrop:Show()
21 38 else else
22 39 unitBackdrop:Hide() unitBackdrop:Hide()
40 return
23 41 end end
24 42
25 if UnitIsUnit(unitDesignation, 'target') then
26 unitBackdrop:SetBackdropBorderColor(178 / 255, 34 / 255, 34 / 255, 1)
27 elseif UnitIsUnit(unitDesignation, 'focus') then
28 unitBackdrop:SetBackdropBorderColor(72 / 255, 118 / 255, 1, 1)
29 elseif UnitIsUnit(unitDesignation, 'player') then
30 unitBackdrop:SetBackdropBorderColor(1, 225 / 255, 0, 1)
31 else
32 unitBackdrop:SetBackdropBorderColor(1, 1, 1, 1)
43 --[[ Load backdrop color configuration options. ]]--
44
45 local colorMap = Chorus.backdropColorMap or getDefaultBackdropColorMap()
46 assert(colorMap ~= nil)
47 assert('table' == type(colorMap))
48
49 local r = 1.0
50 local g = 1.0
51 local b = 1.0
52 local a = 1.0
53
54 --[[ Find valid setting. ]]--
55
56 --[[ Order is important. The first matching unit category will yield
57 corresponding color. ]]--
58
59 local t = {'player', 'target', 'focus',}
60 local i = 0
61 while (i < #t) do
62 i = i + 1
63 local u = t[i]
64 assert(u ~= nil)
65 assert('string' == type(u))
66 if UnitIsUnit(unitDesignation, u) then
67 local e = colorMap[u] or {1.0, 1.0, 1.0, 1.0}
68 if e ~= nil and 'table' == type(e) then
69 r = e[1] or 1.0
70 g = e[2] or 1.0
71 b = e[3] or 1.0
72 a = e[4] or 1.0
73 end
74 break
75 end
33 76 end end
77
78 --[[ Apply setting. ]]--
79
80 unitBackdrop:SetBackdropBorderColor(r, g, b, a)
81 unitBackdrop:SetBackdropColor(r / 6.0, g / 6.0, b / 6.0, a)
34 82 end end
35 83
36 84 function Chorus.unitBackdropMain(unitBackdrop) function Chorus.unitBackdropMain(unitBackdrop)
37 85 assert(unitBackdrop ~= nil) assert(unitBackdrop ~= nil)
38 86
87 local colorMap = Chorus.backdropColorMap
88 if not colorMap then
89 colorMap = getDefaultBackdropColorMap()
90 end
91 Chorus.backdropColorMap = colorMap
92
39 93 unitBackdrop:SetBackdropBorderColor(1, 1, 1, 1) unitBackdrop:SetBackdropBorderColor(1, 1, 1, 1)
40 94 unitBackdrop:SetBackdropColor(0, 0, 0, 0.8) unitBackdrop:SetBackdropColor(0, 0, 0, 0.8)
41 95
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/vrtc/chorus

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/vrtc/chorus

Clone this repository using git:
git clone git://git.rocketgit.com/user/vrtc/chorus

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main