Subject | Hash | Author | Date (UTC) |
---|---|---|---|
feat: Add arrow graphics to aura tooltip button | 12129625fc1277c77974cc9a2b63b3cfc592cdf6 | Vladyslav Bondarenko | 2023-09-11 16:35:40 |
fix: Improve small raid layout | a4e48cb4e4b198d141abd4ce3914e71f5155f502 | Vladyslav Bondarenko | 2023-09-07 06:55:19 |
fix!: Simplify aura sorting algorithm | a2a294f60cee50ab51d044139f50d784bb8f3455 | Vladyslav Bondarenko | 2023-09-07 01:49:15 |
feat!: Add raid frame with 25 small buttons | 5bdc57423adeb4137bc796932657cf64f22ef8ad | Vladyslav Bondarenko | 2023-09-01 01:12:15 |
feat!: Add UnitSetRole backport | 1eb6a3777cb6361f57386959cdec4066715bb0a6 | Vladyslav Bondarenko | 2023-08-31 18:07:35 |
feat(build): Add separation for Cata and Wrath API | c1ec823b22648324afb48852149296f6b0612830 | Vladyslav Bondarenko | 2023-08-31 18:05:42 |
feat!: Release 0.5 | ff0038bc36df311a01b038e192c3e6b495e5c509 | Vladyslav Bondarenko | 2023-08-30 23:45:43 |
fix!: Remove old flavour of unit frames | 58d82ae1ba66bfc0acf41b97df99746a57a7a7cd | Vladyslav Bondarenko | 2023-08-30 23:38:49 |
fix: Update solo tot frames | 4204e7a2649b970d28f4b0f38f4dc60e90cd40d0 | Vladyslav Bondarenko | 2023-08-30 23:37:37 |
fix!: Update party frame to unprotected strategy | 470935eb589f7ab2fa77ae1335a194420e597340 | Vladyslav Bondarenko | 2023-08-30 22:52:34 |
fix!: Render solo status bar textures correctly | 22d89fffabad69df1e7dcf078805e3ff341c5023 | Vladyslav Bondarenko | 2023-08-30 19:14:13 |
fix!: Restore solo frame context menu popup | 0cc446f33351c8998d2359a42000f84da19defcd | Vladyslav Bondarenko | 2023-08-29 22:43:22 |
feat!: Update unit frame layout framework | 1af4c0bd53a474483d60425f2a4e40250367ecf1 | Vladyslav Bondarenko | 2023-08-29 21:20:40 |
feat: Classify rare or elite units | dd2c1f490c08a75774be085b318ebcd1b2788a2b | Vladyslav Bondarenko | 2023-08-29 21:18:49 |
feat(build): Remove cgitrc | 1e6b59264abab70e1f2fa9ae494c74d2606c060f | Vladyslav Bondarenko | 2023-08-29 14:37:03 |
feat(build): Add cgitrc | 7288f0336e36010fb92bf60479fdca3a0082ecd1 | Vladyslav Bondarenko | 2023-08-29 14:14:24 |
feat(build): Add cgitrc | ea45afc0375774c2fe6bb0a3237cfd1817529ff0 | Vladyslav Bondarenko | 2023-08-29 14:14:24 |
feat(test)!: Toggle debug mode at runtime | 23c37e3ab2eaf924f41fe51adc1e54f525222a8b | Vladyslav Bondarenko | 2023-08-29 03:41:55 |
fix: Aura tooltip is always opaque | 1f7ba009c71796093b8cfa63cb38d918b9696c79 | Vladyslav Bondarenko | 2023-08-29 01:31:40 |
fix: Adjust aura tooltip toggle button layout | fc72d10b09f44ef9ba6f2f93413a20def40c2d4a | Vladyslav Bondarenko | 2023-08-29 01:30:27 |
File | Lines added | Lines deleted |
---|---|---|
src/ChorusAuraTooltipFrameTemplate.lua | 19 | 4 |
src/ChorusAuraTooltipFrameTemplate.xml | 6 | 3 |
src/ChorusHugeUnitFrameTemplate.xml | 0 | 3 |
src/ChorusLargeUnitFrameTemplate.xml | 0 | 3 |
File src/ChorusAuraTooltipFrameTemplate.lua changed (mode: 100644) (index bf93574..73e9b6e) | |||
... | ... | local Chorus = Chorus | |
2 | 2 | ||
3 | 3 | local strtrim = strtrim | local strtrim = strtrim |
4 | 4 | ||
5 | local function getButtonAssociatedTooltipFrame(self) | ||
6 | assert(self ~= nil) | ||
7 | |||
8 | local p = self:GetParent() | ||
9 | |||
10 | assert(p ~= nil, 'invalid state: aura tooltip toggle button ' .. | ||
11 | 'must have siblings and therefore must have a parent') | ||
12 | |||
13 | local tooltipFrame = _G[p:GetName() .. 'AuraTooltipFrame'] | ||
14 | |||
15 | return tooltipFrame | ||
16 | end | ||
17 | |||
5 | 18 | local function auraTooltipToggleButtonMain(self) | local function auraTooltipToggleButtonMain(self) |
6 | 19 | assert(self ~= nil) | assert(self ~= nil) |
7 | 20 | ||
... | ... | local function auraTooltipToggleButtonMain(self) | |
13 | 26 | CreateFrame('FRAME', self:GetName() .. 'SecureClickHandlerFrame', self, 'SecureHandlerClickTemplate'); | CreateFrame('FRAME', self:GetName() .. 'SecureClickHandlerFrame', self, 'SecureHandlerClickTemplate'); |
14 | 27 | assert(secureClickHandler ~= nil) | assert(secureClickHandler ~= nil) |
15 | 28 | ||
16 | local p = self:GetParent() | ||
17 | assert(p ~= nil, 'invalid state: aura tooltip toggle button must have siblings ' .. | ||
18 | 'and therefore must have a parent') | ||
19 | local tooltipFrame = _G[p:GetName() .. 'AuraTooltipFrame'] | ||
29 | local tooltipFrame = getButtonAssociatedTooltipFrame(self) | ||
20 | 30 | assert(tooltipFrame ~= nil, 'invalid state: sibling aura tooltip frame must exist'); | assert(tooltipFrame ~= nil, 'invalid state: sibling aura tooltip frame must exist'); |
21 | 31 | ||
22 | 32 | secureClickHandler:SetFrameRef('ChorusAuraTooltipFrame', tooltipFrame); | secureClickHandler:SetFrameRef('ChorusAuraTooltipFrame', tooltipFrame); |
... | ... | local function auraTooltipToggleButtonMain(self) | |
34 | 44 | return | return |
35 | 45 | end | end |
36 | 46 | ]=]); | ]=]); |
47 | |||
48 | --[[ Aura tooltip toggle button is a protected frame. It's visibility | ||
49 | must be toggled with a unit watch. Most likely. ]]-- | ||
50 | |||
51 | RegisterUnitWatch(self) | ||
37 | 52 | end | end |
38 | 53 | ||
39 | 54 | local function auraTooltipFrameMain(self) | local function auraTooltipFrameMain(self) |
File src/ChorusAuraTooltipFrameTemplate.xml changed (mode: 100644) (index 9221d05..5079fab) | |||
80 | 80 | <Attributes> | <Attributes> |
81 | 81 | <Attribute name="useparent-unit" type="boolean" value="true"/> | <Attribute name="useparent-unit" type="boolean" value="true"/> |
82 | 82 | </Attributes> | </Attributes> |
83 | <KeyValues> | ||
84 | </KeyValues> | ||
83 | 85 | </Frame> | </Frame> |
84 | 86 | <Button name="ChorusAuraTooltipFrameToggleButtonTemplate" virtual="true" enableMouse="true" inherits="SecureActionButtonTemplate"> | <Button name="ChorusAuraTooltipFrameToggleButtonTemplate" virtual="true" enableMouse="true" inherits="SecureActionButtonTemplate"> |
85 | 87 | <Size> | <Size> |
86 | 88 | <AbsDimension x="16" y="16"/> | <AbsDimension x="16" y="16"/> |
87 | 89 | </Size> | </Size> |
88 | 90 | <Layers> | <Layers> |
89 | <Layer level="OVERLAY"> | ||
90 | <FontString name="$parentText" inherits="ChorusFont12Sans" setAllPoints="true" justifyH="CENTER" justifyV="MIDDLE" text="…"/> | ||
91 | <Layer level="BACKGROUND"> | ||
91 | 92 | <Texture setAllPoints="true"> | <Texture setAllPoints="true"> |
92 | 93 | <Color r="0" g="0" b="0" a="0.6"/> | <Color r="0" g="0" b="0" a="0.6"/> |
93 | 94 | </Texture> | </Texture> |
97 | 98 | <OnLoad>Chorus.auraTooltipToggleButtonMain(self);</OnLoad> | <OnLoad>Chorus.auraTooltipToggleButtonMain(self);</OnLoad> |
98 | 99 | </Scripts> | </Scripts> |
99 | 100 | <Attributes> | <Attributes> |
100 | <!-- FIXME Use keyType `global' for the frame reference to the tooltip. --> | ||
101 | 101 | <Attribute name="useparent-unit" type="boolean" value="true"/> | <Attribute name="useparent-unit" type="boolean" value="true"/> |
102 | 102 | </Attributes> | </Attributes> |
103 | <NormalTexture file="Interface\MoneyFrame\Arrow-Right-Up"/> | ||
104 | <PushedTexture file="Interface\MoneyFrame\Arrow-Right-Down"/> | ||
105 | <DisabledTexture file="Interface\MoneyFrame\Arrow-Right-Disabled"/> | ||
103 | 106 | </Button> | </Button> |
104 | 107 | </Ui> | </Ui> |
File src/ChorusHugeUnitFrameTemplate.xml changed (mode: 100644) (index 2f83523..d8b5f27) | |||
151 | 151 | <Anchor point="TOPRIGHT"> | <Anchor point="TOPRIGHT"> |
152 | 152 | <Offset x="0" y="-90"/> | <Offset x="0" y="-90"/> |
153 | 153 | </Anchor> | </Anchor> |
154 | <Anchor point="BOTTOMLEFT" relativeTo="$parent" relativePoint="TOPRIGHT"> | ||
155 | <Offset x="-12" y="-150"/> | ||
156 | </Anchor> | ||
157 | 154 | </Anchors> | </Anchors> |
158 | 155 | </Button> | </Button> |
159 | 156 | </Frames> | </Frames> |
File src/ChorusLargeUnitFrameTemplate.xml changed (mode: 100644) (index c43da34..b8fe4e1) | |||
131 | 131 | </Anchors> | </Anchors> |
132 | 132 | </Frame> | </Frame> |
133 | 133 | <Button name="$parentAuraTooltipToggleButton" inherits="ChorusAuraTooltipFrameToggleButtonTemplate"> | <Button name="$parentAuraTooltipToggleButton" inherits="ChorusAuraTooltipFrameToggleButtonTemplate"> |
134 | <Size> | ||
135 | <AbsDimension x="10" y="30"/> | ||
136 | </Size> | ||
137 | 134 | <Anchors> | <Anchors> |
138 | 135 | <Anchor point="BOTTOMRIGHT"> | <Anchor point="BOTTOMRIGHT"> |
139 | 136 | <Offset x="0" y="0"/> | <Offset x="0" y="0"/> |