Mercurial > wow > buffalo2
comparison ObjectiveUI.lua @ 14:ed642234f017
ObjectiveFrame
- implement proper tracker name text
- expanded tracker prototypes to cover "objective lines" formatting and accommodation of widget variables
- implement the progress bars for bonus objectives
ObjectiveStyle
- moved `UpdateWrapperStyle` over and renamed it to fit semantics
- change the formula for block.`height` to measure non-widget content only
- allows widgets to position relative to text
- size FontString `status` to match block.`height`
- full block height is acquired by adding block.`height` and block.`attachmentHeight` which is calculated during objective parsing
ObjectiveWidgets
- use string keys for generated widgets to deal with multiple objectives under the same questID, and maybe dungeon objectives
- wrapper buttons use a common code path
- specialized handlers for wheel scrolling moved over to fit semantics
author | Nenue |
---|---|
date | Mon, 04 Apr 2016 03:16:22 -0400 |
parents | 9455693fc290 |
children | 880828018bf4 |
comparison
equal
deleted
inserted
replaced
13:9455693fc290 | 14:ed642234f017 |
---|---|
22 Tracker.Report = function(self) | 22 Tracker.Report = function(self) |
23 print('Stats:', self.numWatched,'items tracked,', self.numBlocks,'blocks assigned.') | 23 print('Stats:', self.numWatched,'items tracked,', self.numBlocks,'blocks assigned.') |
24 end | 24 end |
25 | 25 |
26 Tracker.OnMouseUp = function(self, button) | 26 Tracker.OnMouseUp = function(self, button) |
27 print(self.handler.name, self.mainStyle, self.subStyle) | |
27 if button == 'LeftButton' then | 28 if button == 'LeftButton' then |
28 if IsModifiedClick("CHATLINK") and ChatEdit_GetActiveWindow() then | 29 if IsModifiedClick("CHATLINK") and ChatEdit_GetActiveWindow() then |
29 self:Link() | 30 self:Link() |
30 self:SetStyle('TrackerBlock', self.info.type, 'Normal') | |
31 elseif IsModifiedClick("QUESTWATCHTOGGLE") then | 31 elseif IsModifiedClick("QUESTWATCHTOGGLE") then |
32 self:Remove() | 32 self:Remove() |
33 else | 33 else |
34 self:Select() | 34 self:Select() |
35 end | 35 end |
36 elseif button == 'RightButton' then | 36 elseif button == 'RightButton' then |
37 self:Open() | 37 self:Open() |
38 self:SetStyle('TrackerBlock', self.info.type, 'Normal') | |
39 end | 38 end |
40 self.initialButton = nil | 39 self.initialButton = nil |
41 self.modChatLink = nil | 40 self.modChatLink = nil |
42 self.modQuestWatch = nil | 41 self.modQuestWatch = nil |
42 self:SetStyle('TrackerBlock', self.handler.name, self.mainStyle, self.subStyle) | |
43 print('|cFFFF8800'..tostring(self:GetName())..':MouseUp()|r') | 43 print('|cFFFF8800'..tostring(self:GetName())..':MouseUp()|r') |
44 end | 44 end |
45 | 45 |
46 Tracker.OnMouseDown = function(self, button) | 46 Tracker.OnMouseDown = function(self, button) |
47 self:SetStyle('TrackerBlock', 'MouseDown') | 47 self:SetStyle('TrackerBlock', self.handler.name, 'MouseDown') |
48 print(IsModifiedClick("CHATLINK"), IsModifiedClick("QUESTWATCHTOGGLE")) | 48 print(IsModifiedClick("CHATLINK"), IsModifiedClick("QUESTWATCHTOGGLE")) |
49 print(self.info.title) | 49 print(self.info.title) |
50 end | 50 end |
51 | 51 |
52 Quest.Select = function(self) | 52 Quest.Select = function(self) |