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 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
fix!: Change aura sorting ba249c7309ccbcb14fea727b347c3dd532af73ee Vladyslav Bondarenko 2023-08-19 20:40:31
feat: Show player in party 198e8c86b9b93dd9c3edf7045d5bbcb9142d76d6 Vladyslav Bondarenko 2023-08-19 20:38:40
feat(doc)!: Add project description 4b406a549e83dda3845104e8a6a233eae481a3c8 Vladyslav Bondarenko 2023-08-19 05:58:50
fix: Typo in ChorusRaidFrame 61fb4f93c227e3b94a52df26eeffece12fe86e55 Vladyslav Bondarenko 2023-08-18 21:00:34
feat(build): Document build validation scripts d19d03c4a20c8c02fee8b4c1c00241c58baa12eb Vladyslav Bondarenko 2023-08-18 20:57:35
feat: Update raid frame ff5ad9619c6af14f7e1719cbaaf34fa0465c1f12 Vladyslav Bondarenko 2023-08-18 20:54:29
feat: Update add-on loading mechanism 2d8df81c17fbfcaf8d0bb966a3373503bb32a585 Vladyslav Bondarenko 2023-08-18 19:59:39
feat: Update progress frames on demand only 7c18488e61b5889eca4b057602fbc41883fc53f1 Vladyslav Bondarenko 2023-08-18 19:50:41
feat: Add basic font customization 321c2e6251e2e619101f8d57b4d4b1ef10a79694 Vladyslav Bondarenko 2023-08-18 17:29:12
fix: Improve range indicator accuracy 17ee7011ae6bdd3e28bae4694d40a68ea799d001 Vladyslav Bondarenko 2023-08-17 23:52:43
feat!: Add target range indicator 83b3fae1f675042b7d9e89c09aedc864e8fcaa27 Vladyslav Bondarenko 2023-08-17 22:41:08
feat: Add class color code to target frame 990cdf1d9f44c9916948697e74f86d6490d83304 Vladyslav Bondarenko 2023-08-17 20:59:28
feat: Add solo unit buttons 4658af2b5142ff2ca86c2c4b48577879117a9ecc Vladyslav Bondarenko 2023-08-17 20:38:10
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
Commit 53121d5d75fb55d745734337ab70283496e46e7c - feat!: Add raid targeting icons
Author: Vladyslav Bondarenko
Author date (UTC): 2023-08-19 23:22
Committer name: Vladyslav Bondarenko
Committer date (UTC): 2023-08-19 23:22
Parent(s): a002db1c9c810f21fe1e1c042a435875bbe5f317
Signer:
Signing key: EFF9624877D25D02
Signing status: E
Tree: 03c69aaf560511c1ce2d36462326852b429662aa
File Lines added Lines deleted
etc/luacheckrc.lua 2 0
src/Chorus.xml 1 0
src/ChorusRaidTargetIconFrameTemplate.lua 60 0
src/ChorusRaidTargetIconFrameTemplate.xml 17 0
src/ChorusRaidUnitButtonTemplate.xml 12 3
File etc/luacheckrc.lua changed (mode: 100644) (index e094554..218577d)
1 1 --[[ http://luacheck.readthedocs.io/en/stable/config.html ]]-- --[[ http://luacheck.readthedocs.io/en/stable/config.html ]]--
2 2 stds.wow = { stds.wow = {
3 3 read_globals = { read_globals = {
4 'GetRaidTargetIndex',
5 'SetRaidTargetIconTexture',
4 6 'CreateFrame', 'CreateFrame',
5 7 'DebuffTypeColor', 'DebuffTypeColor',
6 8 'GetPlayerInfoByGUID', 'GetPlayerInfoByGUID',
File src/Chorus.xml changed (mode: 100644) (index 7bc96db..873ba45)
10 10 <Include file="ChorusUnitNameFrameTemplate.xml"/> <Include file="ChorusUnitNameFrameTemplate.xml"/>
11 11 <Include file="ChorusRangeFrameTemplate.xml"/> <Include file="ChorusRangeFrameTemplate.xml"/>
12 12 <Include file="ChorusThreatFrameTemplate.xml"/> <Include file="ChorusThreatFrameTemplate.xml"/>
13 <Include file="ChorusRaidTargetIconFrameTemplate.xml"/>
13 14 <Include file="ChorusRaidUnitButtonTemplate.xml"/> <Include file="ChorusRaidUnitButtonTemplate.xml"/>
14 15 <Include file="ChorusRaidFrame.xml"/> <Include file="ChorusRaidFrame.xml"/>
15 16 <Include file="ChorusTestFrame.xml"/> <Include file="ChorusTestFrame.xml"/>
File src/ChorusRaidTargetIconFrameTemplate.lua added (mode: 100644) (index 0000000..78e29ea)
1 local Chorus = Chorus
2
3 --[[ See FrameXML/TargetFrame.lua:682 ]]--
4 local SetRaidTargetIconTexture = SetRaidTargetIconTexture
5
6 local function raidTargetIconFrameEventProcessor(self)
7 local p = self:GetParent()
8
9 local u = self.unit or self:GetAttribute('unit')
10 if p and not u then
11 u = p.unit or p:GetAttribute('unit')
12 end
13 u = u or 'none'
14
15 assert(u ~= nil)
16 assert('string' == type(u))
17 u = string.lower(strtrim(u))
18 assert(string.len(u) >= 1)
19 assert(string.len(u) <= 256)
20
21 if UnitExists(u) and UnitIsConnected(u) then
22 self:Show()
23 else
24 self:Hide()
25 return
26 end
27
28 local raidIconIndex = GetRaidTargetIndex(u)
29 if not raidIconIndex then
30 self:Hide()
31 return
32 end
33
34 local artwork = self.artwork or _G[self:GetName() .. 'Artwork']
35 assert(artwork ~= nil)
36
37 SetRaidTargetIconTexture(artwork, raidIconIndex)
38 end
39
40 function Chorus.raidTargetIconFrameMain(self)
41 assert(self ~= nil)
42
43 local artwork = _G[self:GetName() .. 'Artwork']
44 assert(artwork ~= nil)
45 self.artwork = artwork
46
47 --artwork:SetSize(RAID_TARGET_ICON_DIMENSION, RAID_TARGET_ICON_DIMENSION)
48 SetRaidTargetIconTexture(artwork, 0)
49
50 self:SetScript('OnEvent', raidTargetIconFrameEventProcessor)
51
52 self:RegisterEvent('ADDON_LOADED')
53 self:RegisterEvent('PARTY_CONVERTED_TO_RAID')
54 self:RegisterEvent('PARTY_MEMBERS_CHANGED')
55 self:RegisterEvent('PLAYER_FOCUS_CHANGED')
56 self:RegisterEvent('PLAYER_LOGIN')
57 self:RegisterEvent('PLAYER_TARGET_CHANGED')
58 self:RegisterEvent('RAID_ROSTER_UPDATE')
59 self:RegisterEvent('RAID_TARGET_UPDATE')
60 end
File src/ChorusRaidTargetIconFrameTemplate.xml added (mode: 100644) (index 0000000..04a7f3c)
1 <?xml version="1.0" encoding="UTF-8"?>
2 <Ui xmlns="http://www.blizzard.com/wow/ui/">
3 <Script file="ChorusRaidTargetIconFrameTemplate.lua"/>
4 <Frame name="ChorusRaidTargetIconFrameTemplate" virtual="true">
5 <Size>
6 <AbsDimension x="16" y="16" />
7 </Size>
8 <Layers>
9 <Layer level="ARTWORK">
10 <Texture name="$parentArtwork" file="Interface\TargetingFrame\UI-RaidTargetingIcons" setAllPoints="true"/>
11 </Layer>
12 </Layers>
13 <Scripts>
14 <OnLoad>Chorus.raidTargetIconFrameMain(self);</OnLoad>
15 </Scripts>
16 </Frame>
17 </Ui>
File src/ChorusRaidUnitButtonTemplate.xml changed (mode: 100644) (index 19db816..f5c692a)
55 55 </Anchor> </Anchor>
56 56 </Anchors> </Anchors>
57 57 </StatusBar> </StatusBar>
58 <Frame name="$parentThreatFrame" inherits="ChorusThreatFrameTemplate">
58 <Frame name="$parentRaidTargetIconFrame" inherits="ChorusRaidTargetIconFrameTemplate">
59 59 <Anchors> <Anchors>
60 60 <Anchor point="TOPLEFT" relativeTo="$parentPowerFrame" relativePoint="BOTTOMLEFT"> <Anchor point="TOPLEFT" relativeTo="$parentPowerFrame" relativePoint="BOTTOMLEFT">
61 61 <Offset> <Offset>
 
64 64 </Anchor> </Anchor>
65 65 </Anchors> </Anchors>
66 66 </Frame> </Frame>
67 <Frame name="$parentThreatFrame" inherits="ChorusThreatFrameTemplate">
68 <Anchors>
69 <Anchor point="TOPLEFT" relativeTo="$parentPowerFrame" relativePoint="BOTTOMLEFT">
70 <Offset>
71 <AbsDimension x="16" y="0"/>
72 </Offset>
73 </Anchor>
74 </Anchors>
75 </Frame>
67 76 <Frame name="$parentRangeFrame" inherits="ChorusRangeFrameTemplate"> <Frame name="$parentRangeFrame" inherits="ChorusRangeFrameTemplate">
68 77 <Anchors> <Anchors>
69 78 <Anchor point="TOPRIGHT" relativeTo="$parentPowerFrame" relativePoint="BOTTOMRIGHT"> <Anchor point="TOPRIGHT" relativeTo="$parentPowerFrame" relativePoint="BOTTOMRIGHT">
 
78 87 <AbsDimension x="144" y="24"/> <AbsDimension x="144" y="24"/>
79 88 </Size> </Size>
80 89 <Anchors> <Anchors>
81 <Anchor point="TOPLEFT" relativeTo="$parentThreatFrame" relativePoint="BOTTOMLEFT">
90 <Anchor point="TOPLEFT" relativeTo="$parentPowerFrame" relativePoint="BOTTOMLEFT">
82 91 <Offset> <Offset>
83 <AbsDimension x="0" y="0"/>
92 <AbsDimension x="0" y="-16"/>
84 93 </Offset> </Offset>
85 94 </Anchor> </Anchor>
86 95 </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