Mercurial > wow > hansgar_and_franzok_assist
comparison Libs/DF/panel.lua @ 55:307f5af3ad02
- Framework update.
| author | Tercio |
|---|---|
| date | Sat, 09 Dec 2017 11:49:01 -0200 |
| parents | 36b4d9559b69 |
| children | 7c0f819a85c6 |
comparison
equal
deleted
inserted
replaced
| 54:def82fea66d4 | 55:307f5af3ad02 |
|---|---|
| 961 end) | 961 end) |
| 962 | 962 |
| 963 for index, t in ipairs (rows) do | 963 for index, t in ipairs (rows) do |
| 964 panel.AddRow (panel, t) | 964 panel.AddRow (panel, t) |
| 965 end | 965 end |
| 966 | 966 |
| 967 local refresh_fillbox = function (self) | 967 local refresh_fillbox = function (self) |
| 968 | 968 |
| 969 local offset = FauxScrollFrame_GetOffset (self) | 969 local offset = FauxScrollFrame_GetOffset (self) |
| 970 local filled_lines = panel._totalfunc (panel) | 970 local filled_lines = panel._totalfunc (panel) |
| 971 | 971 |
| 2727 return new_value | 2727 return new_value |
| 2728 end | 2728 end |
| 2729 | 2729 |
| 2730 end | 2730 end |
| 2731 | 2731 |
| 2732 local chart_panel_onresize = function (self) | |
| 2733 local width, height = self:GetSize() | |
| 2734 local spacement = width - 78 - 60 | |
| 2735 spacement = spacement / 16 | |
| 2736 | |
| 2737 for i = 1, 17 do | |
| 2738 local label = self.TimeLabels [i] | |
| 2739 label:SetPoint ("bottomleft", self, "bottomleft", 78 + ((i-1)*spacement), 13) | |
| 2740 label.line:SetHeight (height - 45) | |
| 2741 end | |
| 2742 | |
| 2743 local spacement = (self.Graphic:GetHeight()) / 8 | |
| 2744 for i = 1, 8 do | |
| 2745 self ["dpsamt"..i]:SetPoint ("TOPLEFT", self, "TOPLEFT", 27, -25 + (-(spacement* (i-1))) ) | |
| 2746 self ["dpsamt"..i].line:SetWidth (width-20) | |
| 2747 end | |
| 2748 | |
| 2749 self.Graphic:SetSize (width - 135, height - 67) | |
| 2750 self.Graphic:SetPoint ("topleft", self, "topleft", 108, -35) | |
| 2751 end | |
| 2752 | |
| 2732 local chart_panel_add_data = function (self, graphicData, color, name, elapsed_time, lineTexture, smoothLevel, firstIndex) | 2753 local chart_panel_add_data = function (self, graphicData, color, name, elapsed_time, lineTexture, smoothLevel, firstIndex) |
| 2733 | 2754 |
| 2734 local f = self | 2755 local f = self |
| 2735 self = self.Graphic | 2756 self = self.Graphic |
| 2736 | 2757 |
| 2861 end | 2882 end |
| 2862 end | 2883 end |
| 2863 | 2884 |
| 2864 f:SetTime (max_time) | 2885 f:SetTime (max_time) |
| 2865 | 2886 |
| 2866 end | 2887 chart_panel_onresize (f) |
| 2867 | 2888 |
| 2868 local chart_panel_onresize = function (self) | 2889 end |
| 2869 local width, height = self:GetSize() | 2890 |
| 2870 local spacement = width - 78 - 60 | 2891 |
| 2871 spacement = spacement / 16 | |
| 2872 | |
| 2873 for i = 1, 17 do | |
| 2874 local label = self.TimeLabels [i] | |
| 2875 label:SetPoint ("bottomleft", self, "bottomleft", 78 + ((i-1)*spacement), 13) | |
| 2876 label.line:SetHeight (height - 45) | |
| 2877 end | |
| 2878 | |
| 2879 local spacement = (self.Graphic:GetHeight()) / 8 | |
| 2880 for i = 1, 8 do | |
| 2881 self ["dpsamt"..i]:SetPoint ("TOPLEFT", self, "TOPLEFT", 27, -25 + (-(spacement* (i-1))) ) | |
| 2882 self ["dpsamt"..i].line:SetWidth (width-20) | |
| 2883 end | |
| 2884 | |
| 2885 self.Graphic:SetSize (width - 135, height - 67) | |
| 2886 self.Graphic:SetPoint ("topleft", self, "topleft", 108, -35) | |
| 2887 end | |
| 2888 | 2892 |
| 2889 local chart_panel_vlines_on = function (self) | 2893 local chart_panel_vlines_on = function (self) |
| 2890 for i = 1, 17 do | 2894 for i = 1, 17 do |
| 2891 local label = self.TimeLabels [i] | 2895 local label = self.TimeLabels [i] |
| 2892 label.line:Show() | 2896 label.line:Show() |
