|
1 | 1 |
|
2 | 2 | do
|
| 3 | + local _ |
3 | 4 | local Details = Details
|
| 5 | + |
4 | 6 | if (not Details) then
|
5 | 7 | print("Details! Not Found.")
|
6 | 8 | return
|
7 | 9 | end
|
8 | 10 |
|
| 11 | + ---@type detailsframework |
| 12 | + local detailsFramework = DetailsFramework |
| 13 | + |
9 | 14 | local CONST_COMPARETYPE_SPEC = 1
|
10 | 15 | local CONST_COMPARETYPE_SEGMENT = 2
|
11 | 16 |
|
|
150 | 155 | --> create a plugin object
|
151 | 156 | local compareTwo = Details:NewPluginObject("Details_Compare2", _G.DETAILSPLUGIN_ALWAYSENABLED)
|
152 | 157 |
|
153 |
| - ---@type detailsframework |
154 |
| - local detailsFramework = DetailsFramework |
155 |
| - |
156 | 158 | --> set the description
|
157 | 159 | compareTwo:SetPluginDescription("Replaces the default comparison window on the player breakdown.")
|
158 | 160 |
|
@@ -1932,12 +1934,15 @@ do
|
1932 | 1934 | newComparisonFrame.titleIcon = detailsFramework:CreateTexture(newComparisonFrame)
|
1933 | 1935 | newComparisonFrame.titleIcon:SetPoint("topleft", newComparisonFrame, "topleft", 0, comparisonFrameSettings.playerNameYOffset)
|
1934 | 1936 |
|
1935 |
| - --player name shown above the scrolls |
| 1937 | + --player name or segment name shown above the scrolls |
1936 | 1938 | ---@type df_label
|
1937 | 1939 | newComparisonFrame.titleLabel = detailsFramework:CreateLabel(newComparisonFrame, "")
|
1938 | 1940 | newComparisonFrame.titleLabel:SetPoint("left", newComparisonFrame.titleIcon, "right", 2, 0)
|
1939 | 1941 | newComparisonFrame.titleLabel.fontsize = comparisonFrameSettings.playerNameSize
|
1940 | 1942 |
|
| 1943 | + --combat selector dropdown |
| 1944 | + --todo: create a dropdown to select the combat |
| 1945 | + |
1941 | 1946 | --grandient texture above the comparison frame
|
1942 | 1947 | local gradientTitle = detailsFramework:CreateTexture(newComparisonFrame, {gradient = "vertical", fromColor = {0, 0, 0, 0.25}, toColor = "transparent"}, 1, 16, "artwork", {0, 1, 0, 1})
|
1943 | 1948 | gradientTitle:SetPoint("bottomleft", newComparisonFrame, "topleft", 0, 0)
|
|
0 commit comments