- Pre Patch 6.0.2

This commit is contained in:
tercio
2014-10-14 16:27:43 -03:00
parent 645e19783b
commit c4d8cddc1f
60 changed files with 3057 additions and 1533 deletions
+25 -1
View File
@@ -88,6 +88,7 @@ function DetailsCreateCoolTip()
["TextSize"] = true,
["TextFont"] = true,
["TextColor"] = true,
["TextColorRight"] = true,
["TextShadow"] = true,
["LeftTextWidth"] = true,
["RightTextWidth"] = true,
@@ -105,6 +106,7 @@ function DetailsCreateCoolTip()
["IconBlendMode"] = true,
["IconBlendModeHover"] = true,
["SubFollowButton"] = true,
["IgnoreArrows"] = true,
}
CoolTip.OptionsTable = {}
@@ -638,7 +640,11 @@ function DetailsCreateCoolTip()
local r, g, b, a = rightTextTable [2], rightTextTable [3], rightTextTable [4], rightTextTable [5]
if (r == 0 and g == 0 and b == 0 and a == 0) then
if (CoolTip.OptionsTable.TextColor) then
if (CoolTip.OptionsTable.TextColorRight) then
r, g, b, a = gump:ParseColors (CoolTip.OptionsTable.TextColorRight)
menuButton.rightText:SetTextColor (r, g, b, a)
elseif (CoolTip.OptionsTable.TextColor) then
r, g, b, a = gump:ParseColors (CoolTip.OptionsTable.TextColor)
menuButton.rightText:SetTextColor (r, g, b, a)
else
@@ -1388,6 +1394,19 @@ function DetailsCreateCoolTip()
frame1:SetHeight (_math_max ( (frame1.hHeight * CoolTip.Indexes) + 12 + (-spacing) + mod, 22 ))
end
--> sub menu arrows
if (CoolTip.HaveSubMenu and not CoolTip.OptionsTable.IgnoreArrows and not CoolTip.OptionsTable.SubMenuIsTooltip) then
for i = 1, CoolTip.Indexes do
if (CoolTip.IndexesSub [i] and CoolTip.IndexesSub [i] > 0) then
frame1.Lines [i].statusbar.subMenuArrow:Show()
else
frame1.Lines [i].statusbar.subMenuArrow:Hide()
end
end
frame1:SetWidth (frame1:GetWidth() + 16)
end
frame1:ClearAllPoints()
CoolTip:SetMyPoint (host)
@@ -1792,6 +1811,11 @@ function DetailsCreateCoolTip()
CoolTip:ClearAllOptions()
CoolTip:SetColor (1, "transparent")
CoolTip:SetColor (2, "transparent")
local f1Lines = frame1.Lines
for i = 1, #f1Lines do
f1Lines [i].statusbar.subMenuArrow:Hide()
end
end
----------------------------------------------------------------------
+9
View File
@@ -221,6 +221,15 @@
<Anchor point="LEFT" relativeTo="$parent" relativePoint="RIGHT" x="-17" y="-1"/>
</Anchors>
</Texture>
<!-- sub menu arrow -->
<Texture name="$parent_SubMenuArrow" hidden="true" parentKey="subMenuArrow" file = "Interface\CHATFRAME\ChatFrameExpandArrow" alphaMode="BLEND">
<Size>
<AbsDimension x="12" y="12"/>
</Size>
<Anchors>
<Anchor point="RIGHT" relativeTo="$parent" relativePoint="RIGHT" x="3" y="0"/>
</Anchors>
</Texture>
</Layer>
</Layers>
+2 -2
View File
@@ -239,7 +239,7 @@ function gump:ShowTutorialAlertFrame (maintext, desctext, clickfunc)
if (not TutorialAlertFrame) then
TutorialAlertFrame = CreateFrame ("ScrollFrame", "DetailsTutorialAlertFrame", UIParent, "WatchFrameAutoQuestPopUpTemplate")
TutorialAlertFrame = CreateFrame ("ScrollFrame", "DetailsTutorialAlertFrame", UIParent, "DetailsTutorialAlertFrameTemplate")
TutorialAlertFrame.isFirst = true
TutorialAlertFrame:SetPoint ("left", UIParent, "left", -20, 100)
@@ -295,5 +295,5 @@ function gump:ShowTutorialAlertFrame (maintext, desctext, clickfunc)
TutorialAlertFrame.clickfunc = clickfunc
TutorialAlertFrame:Show()
WatchFrame_SlideInFrame (TutorialAlertFrame, "AUTOQUEST")
DetailsTutorialAlertFrame_SlideInFrame (TutorialAlertFrame, "AUTOQUEST")
end