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)
feat: Add power bar to raid unit button b25bd8d28c30cb003bf8cfe2886e2cfd8442d32f Vladyslav Bondarenko 2023-08-17 18:48:29
feat!: Add basic raid frame stub 66e27810a396b564cf7cd737e1f402f4f433b879 Vladyslav Bondarenko 2023-08-17 17:40:08
feat: Add raid frame stub 5fd737cef8e3fc700bab1e6a89ceb68c21495eea Vladyslav Bondarenko 2023-08-16 02:35:08
fix: Show auras correctly at startup 54136c9cedf83fa2a8559b879ab8410a6e28646c Vladyslav Bondarenko 2023-08-15 19:15:48
fix!: Shadowing correct functions 53991b2f7093e765993f8423377602ca22e234da Vladyslav Bondarenko 2023-08-15 18:22:56
fix: Add UnitClass shadowing local e87c61c3cae4cdb945714c67259a6304201968d0 Vladyslav Bondarenko 2023-08-15 18:21:32
feat!: Add unit name b8358f834b4a9c25a6d057d91ed56e3b4d7dc320 Vladyslav Bondarenko 2023-08-15 18:21:12
feat!: Add power bar 654fe43cb55a0e440bdead43d86e3d49bf331c3a Vladyslav Bondarenko 2023-08-15 17:43:59
feat!: Add health bar 16bcad2d2169a7caa2a0f17513202673d178fa98 Vladyslav Bondarenko 2023-08-14 21:59:43
feat!: Add target aura tracker 96105088fc793845cde21639e0221b82de897262 Vladyslav Bondarenko 2023-08-12 21:49:26
Commit b25bd8d28c30cb003bf8cfe2886e2cfd8442d32f - feat: Add power bar to raid unit button
Add micro power or mana bar to raid unit button templte. The overlay
text label on the progress bar is not optional and will be automatically
hidden for tiny bars and shown for larger ones.
Author: Vladyslav Bondarenko
Author date (UTC): 2023-08-17 18:48
Committer name: Vladyslav Bondarenko
Committer date (UTC): 2023-08-17 18:48
Parent(s): 66e27810a396b564cf7cd737e1f402f4f433b879
Signer:
Signing key: EFF9624877D25D02
Signing status: E
Tree: 116ef426ff9356dea95ac5c59e9f612814df4351
File Lines added Lines deleted
src/ChorusProgressFrameTemplate.lua 16 1
src/ChorusRaidUnitButtonTemplate.lua 5 0
src/ChorusRaidUnitButtonTemplate.xml 14 2
File src/ChorusProgressFrameTemplate.lua changed (mode: 100644) (index 98e309b..920cebf)
... ... local function getRatio(a, b)
100 100 return ratio return ratio
101 101 end end
102 102
103 local function applySize(self)
104 assert(self ~= nil)
105
106 local label = self.label
107 assert(label ~= nil)
108
109 if self:GetHeight() >= 12 then
110 label:Show()
111 else
112 label:Hide()
113 end
114 end
115
103 116 local function applyRatio(self, a, b) local function applyRatio(self, a, b)
104 117 self.ratio = getRatio(a, b) self.ratio = getRatio(a, b)
105 118 end end
 
... ... local function healthFrameEventProcessor(self)
277 290 return return
278 291 end end
279 292
293 applySize(self)
280 294 applyRatioHealth(self, unitDesignation) applyRatioHealth(self, unitDesignation)
281 295 applyOverlayHealth(self, unitDesignation) applyOverlayHealth(self, unitDesignation)
282 296
 
... ... local function powerFrameEventProcessor(self)
331 345
332 346 local unitDesignation = self.unit local unitDesignation = self.unit
333 347 if not unitDesignation and p then if not unitDesignation and p then
334 unitDesignation = unitDesignation or p.unit
348 unitDesignation = unitDesignation or p.unit or p:GetAttribute('unit')
335 349 end end
336 350
337 351 assert(unitDesignation ~= nil) assert(unitDesignation ~= nil)
 
... ... local function powerFrameEventProcessor(self)
373 387
374 388 if UnitPowerMax(unitDesignation, powerTypeEnum) > 0 then if UnitPowerMax(unitDesignation, powerTypeEnum) > 0 then
375 389 self:Show() self:Show()
390 applySize(self)
376 391 applyRatioPower(self, unitDesignation, powerTypeEnum) applyRatioPower(self, unitDesignation, powerTypeEnum)
377 392 applyOverlayPower(self, unitDesignation, powerTypeEnum) applyOverlayPower(self, unitDesignation, powerTypeEnum)
378 393 applyPowerFrameColor(self, powerTypeEnum) applyPowerFrameColor(self, powerTypeEnum)
File src/ChorusRaidUnitButtonTemplate.lua changed (mode: 100644) (index d7812c2..79ee895)
... ... function Chorus.raidUnitButtonAttributeChangedProcessor(self, name, value)
13 13 return return
14 14 end end
15 15
16 --[[ FIXME SecureGroupHandlerTemplate empties unit property for all children ]]--
17 if not value then
18 return
19 end
20
16 21 self[name] = value self[name] = value
17 22
18 23 local t = {self:GetChildren()} local t = {self:GetChildren()}
File src/ChorusRaidUnitButtonTemplate.xml changed (mode: 100644) (index 6f7a673..0688b53)
37 37 </Anchor> </Anchor>
38 38 </Anchors> </Anchors>
39 39 </Frame> </Frame>
40 <Frame name="$parentPowerFrame" inherits="ChorusPowerFrameTemplate">
41 <Size>
42 <AbsDimension x="144" y="6"/>
43 </Size>
44 <Anchors>
45 <Anchor point="TOPLEFT" relativeTo="$parentHealthFrame" relativePoint="BOTTOMLEFT">
46 <Offset>
47 <AbsDimension x="0" y="0"/>
48 </Offset>
49 </Anchor>
50 </Anchors>
51 </Frame>
40 52 <Frame name="$parentBuffFrame" inherits="ChorusAuraFrameTemplate"> <Frame name="$parentBuffFrame" inherits="ChorusAuraFrameTemplate">
41 53 <Size> <Size>
42 54 <AbsDimension x="144" y="24"/> <AbsDimension x="144" y="24"/>
43 55 </Size> </Size>
44 56 <Anchors> <Anchors>
45 <Anchor point="TOPLEFT">
57 <Anchor point="TOPLEFT" relativeTo="$parentPowerFrame" relativePoint="BOTTOMLEFT">
46 58 <Offset> <Offset>
47 <AbsDimension x="0" y="-36"/>
59 <AbsDimension x="0" y="0"/>
48 60 </Offset> </Offset>
49 61 </Anchor> </Anchor>
50 62 </Anchors> </Anchors>
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