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: Further sanitize health bar 3318dee15eac9b8205e287997800c080b0aaf12d Vladyslav Bondarenko 2023-08-23 14:56:00
feat!: Correct range indcator for all characters 8ef1a987ac4431ce90131c354d1a1775b653f3e3 Vladyslav Bondarenko 2023-08-22 15:05:35
fix: Improve health bar robustness 2be053184653a6cd282437f8190e9196af495d81 Vladyslav Bondarenko 2023-08-22 13:24:12
fix: Upgrade aura sorting a2132995674f81e0775def67b0f5786945b0bba3 Vladyslav Bondarenko 2023-08-22 13:21:37
feat: Add threat percentage for hostiles 590bc95167dfc0f22a135fe173182104b6f5b923 Vladyslav Bondarenko 2023-08-22 13:17:57
feat: Add threat for hostiles 22562481a0c9dfb297ebbe47da4aa19046cf6eeb Vladyslav Bondarenko 2023-08-21 22:28:50
fix(build): Add more luacheck definitions aac4bb444d894b5d565af3abe417cbafd4f966f5 Vladyslav Bondarenko 2023-08-21 18:09:50
fix: Ensure TargetFrame is hidden 98bd355e604bf1c51791d5f5874ef33ab640123c Vladyslav Bondarenko 2023-08-21 14:04:40
fix: Show only meaningful numbers for health 37217b1dc78c0a2b4711dc45ada0c4873e904a1f Vladyslav Bondarenko 2023-08-21 13:32:19
fix: Remove testing range frame 4fcfd5c7bf4626137a1251cbcbe54157055ac875 Vladyslav Bondarenko 2023-08-21 13:10:16
fix: Place solo frames range frame correctly f926b1fb857a48b14a706926f14b5da730d210f1 Vladyslav Bondarenko 2023-08-21 13:08:42
feat!: Re-add player solo frames bf5346aa96a3daeadafeb3a723f7821012f1d5e5 Vladyslav Bondarenko 2023-08-21 12:22:48
fix: Render raid target icon on correct layer 890bb5340a3876b611f67ac1277cc009e5e4df5b Vladyslav Bondarenko 2023-08-20 18:12:31
feat: Display health deficit 0620038bf95d2c8e77eb088f2345764f428563d4 Vladyslav Bondarenko 2023-08-20 17:55:49
fix(build): Update rockspec dcffb9897deb97fa4039cd4513a51e397ebc4ab7 Vladyslav Bondarenko 2023-08-20 17:16:25
feat!: Update raid frame layout ad51f7e37e8babd30ee45c5b87d931a09c1fc0f3 Vladyslav Bondarenko 2023-08-20 14:45:38
fix: Do not show range to oneself c055a76806c5646e4027698c6a105f06199be4ae Vladyslav Bondarenko 2023-08-20 04:29:32
feat!: Add raid targeting icons 53121d5d75fb55d745734337ab70283496e46e7c Vladyslav Bondarenko 2023-08-19 23:22:01
feat!: Add general threat situation widget a002db1c9c810f21fe1e1c042a435875bbe5f317 Vladyslav Bondarenko 2023-08-19 22:20:58
fix!: Highlight offline players 7c28b6efa34f6e5450d2999acfd5a54880aa6df0 Vladyslav Bondarenko 2023-08-19 21:06:38
Commit 3318dee15eac9b8205e287997800c080b0aaf12d - fix: Further sanitize health bar
Author: Vladyslav Bondarenko
Author date (UTC): 2023-08-23 14:56
Committer name: Vladyslav Bondarenko
Committer date (UTC): 2023-08-23 14:56
Parent(s): 8ef1a987ac4431ce90131c354d1a1775b653f3e3
Signer:
Signing key: EFF9624877D25D02
Signing status: E
Tree: ed64e96efd2280f5187b8076c4a4d258329ac1b3
File Lines added Lines deleted
src/ChorusProgressFrameTemplate.lua 24 7
File src/ChorusProgressFrameTemplate.lua changed (mode: 100644) (index 905b966..ece5e63)
... ... local function applySize(self)
93 93 local label3 = self.label3 local label3 = self.label3
94 94 assert(label3 ~= nil) assert(label3 ~= nil)
95 95
96 if self:GetHeight() >= 12 then
96 if self:GetHeight() >= 36 then
97 97 label1:Show() label1:Show()
98 98 label2:Show() label2:Show()
99 99 label3:Show() label3:Show()
100 elseif self:GetHeight() >= 12 then
101 label1:Show()
102 label2:Show()
103 label3:Hide()
100 104 else else
101 105 label1:Hide() label1:Hide()
102 106 label2:Hide() label2:Hide()
 
... ... local function applySize(self)
105 109 end end
106 110
107 111 local function applyRatio(self, a, b) local function applyRatio(self, a, b)
108 --[[ Work around quirks of the native API. ]]--
109 b = math.max(b, 1)
112 assert(self ~= nil)
113
114 local ratio = 0
115
116 --[[ Strict sanitization to work around WoW API quirks. ]]--
117 if a and b then
118 assert('number' == type(a))
119 assert('number' == type(b))
120 local x = math.min(a, b)
121 local y = math.max(a, b)
122 if x <= y then
123 ratio = getRatio(x, y)
124 end
125 end
110 126
111 self:SetValue(getRatio(a, b))
127 self:SetValue(ratio)
112 128 end end
113 129
114 130 local function formatQuantity(quantity) local function formatQuantity(quantity)
 
... ... local function applyRatioHealth(self, unitDesignation)
168 184
169 185 local a local a
170 186 local b local b
171 if UnitIsDead(unitDesignation) or
187 if not UnitExists(unitDesignation) or
188 not UnitIsConnected(unitDesignation) or
189 UnitIsDead(unitDesignation) or
172 190 UnitIsCorpse(unitDesignation) or UnitIsCorpse(unitDesignation) or
173 UnitIsGhost(unitDesignation) or
174 not UnitIsConnected(unitDesignation) then
191 UnitIsGhost(unitDesignation) then
175 192 a = 0 a = 0
176 193 b = 1 b = 1
177 194 else else
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