- overall updates.
This commit is contained in:
@@ -557,13 +557,6 @@ function DetailsDropDownOnMouseDown (button)
|
||||
local selectedTexture = _G [button:GetName() .. "_ScrollFrame_ScrollChild_SelectedTexture"]
|
||||
local mouseOverTexture = _G [button:GetName() .. "_ScrollFrame_ScrollChild_MouseOverTexture"]
|
||||
|
||||
--scrollFrame:SetFrameStrata ("DIALOG")
|
||||
--scrollBorder:SetFrameStrata ("DIALOG")
|
||||
--scrollChild:SetFrameStrata ("DIALOG")
|
||||
|
||||
--print (scrollFrame:GetFrameStrata())
|
||||
--print (_G ["DetailsOptionsWindow1FragsPvpSlider"]:GetFrameStrata())
|
||||
|
||||
local i = 1
|
||||
local showing = 0
|
||||
local currentText = button.text:GetText() or ""
|
||||
@@ -637,7 +630,7 @@ function DetailsDropDownOnMouseDown (button)
|
||||
|
||||
if (currentText and currentText == _table.label) then
|
||||
if (_table.icon) then
|
||||
selectedTexture:SetPoint ("left", _this_row.icon, "right", -5, -2)
|
||||
selectedTexture:SetPoint ("left", _this_row.icon, "left", -3, 0)
|
||||
else
|
||||
selectedTexture:SetPoint ("left", _this_row.statusbar, "left", 0, 0)
|
||||
end
|
||||
@@ -695,6 +688,8 @@ function DetailsDropDownOnMouseDown (button)
|
||||
scrollChild:SetHeight ((showing*20)+20)
|
||||
--mouse over texture
|
||||
mouseOverTexture:SetWidth (frame_witdh-7)
|
||||
--selected
|
||||
selectedTexture:SetWidth (frame_witdh - 9)
|
||||
|
||||
for index, row in ipairs (object.menus) do
|
||||
row:SetPoint ("topright", scrollChild, "topright", -22, ((-index-1)*20)-5)
|
||||
@@ -713,6 +708,8 @@ function DetailsDropDownOnMouseDown (button)
|
||||
scrollFrame:SetHeight ((showing*20) + 25)
|
||||
--mouse over texture
|
||||
mouseOverTexture:SetWidth (frame_witdh-10)
|
||||
--selected
|
||||
selectedTexture:SetWidth (frame_witdh - 9)
|
||||
|
||||
for index, row in ipairs (object.menus) do
|
||||
row:SetPoint ("topright", scrollChild, "topright", -5, ((-index-1)*20)-5)
|
||||
@@ -916,7 +913,7 @@ function gump:NewDropDown (parent, container, name, member, w, h, func, default)
|
||||
|
||||
local scroll = _G [DropDownObject.dropdown:GetName() .. "_ScrollFrame"]
|
||||
|
||||
DropDownObject.scroll = gump:NewScrollBar (scroll, _G [DropDownObject.dropdown:GetName() .. "_ScrollFrame".."_ScrollChild"], -20, -18)
|
||||
DropDownObject.scroll = gump:NewScrollBar (scroll, _G [DropDownObject.dropdown:GetName() .. "_ScrollFrame".."_ScrollChild"], -25, -18)
|
||||
|
||||
function DropDownObject:HideScroll()
|
||||
scroll.baixo:Hide()
|
||||
|
||||
@@ -79,15 +79,15 @@
|
||||
<Anchor point="TOPLEFT" relativeTo="$Parent" relativePoint="BOTTOMLEFT"/>
|
||||
</Anchors>
|
||||
|
||||
<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background-Dark" edgeFile="Interface\Buttons\UI-SliderBar-Border" tile="true">
|
||||
<Backdrop bgFile="Interface\AddOns\Details\images\background" edgeFile="Interface\AddOns\Details\images\border_3" tile="true">
|
||||
<EdgeSize>
|
||||
<AbsValue val="10"/>
|
||||
<AbsValue val="16"/>
|
||||
</EdgeSize>
|
||||
<TileSize>
|
||||
<AbsValue val="256"/>
|
||||
</TileSize>
|
||||
<BackgroundInsets>
|
||||
<AbsInset left="0" right="0" top="5" bottom="5"/>
|
||||
<AbsInset left="4" right="4" top="4" bottom="5"/>
|
||||
</BackgroundInsets>
|
||||
</Backdrop>
|
||||
|
||||
@@ -96,7 +96,7 @@
|
||||
DetailsDropDownOptionsFrameOnHide (self);
|
||||
</OnHide>
|
||||
<OnLoad>
|
||||
self:SetBackdropColor (1, 1, 1, 1);
|
||||
self:SetBackdropColor (0, 0, 0, 0.95);
|
||||
</OnLoad>
|
||||
</Scripts>
|
||||
|
||||
@@ -120,9 +120,9 @@
|
||||
<Layers>
|
||||
<Layer level="BACKGROUND">
|
||||
<!-- selected texture -->
|
||||
<Texture name="$parent_SelectedTexture" parentKey="selected" hidden="true" file="Interface\SPELLBOOK\Spellbook-Parts">
|
||||
<Size x="150" y="35" />
|
||||
<TexCoords left="0.31250000" right="0.78515625" top="0.00390625" bottom="0.36328125"/>
|
||||
<Texture name="$parent_SelectedTexture" parentKey="selected" hidden="true" file="Interface\AddOns\Details\framework\cooltip_background">
|
||||
<Size x="150" y="16" />
|
||||
<!--<TexCoords left="0.31250000" right="0.78515625" top="0.00390625" bottom="0.36328125"/>-->
|
||||
<Anchors>
|
||||
<Anchor point="LEFT" relativeTo="$parent" relativePoint="LEFT" x="2" y="0"/>
|
||||
</Anchors>
|
||||
@@ -196,8 +196,8 @@
|
||||
<Texture name="$parent_StatusBarTexture" parentKey="statusbar">
|
||||
<Size x="150" y="20" />
|
||||
<Anchors>
|
||||
<Anchor point="LEFT" relativeTo="$parent" relativePoint="LEFT" x="0" y="0"/>
|
||||
<Anchor point="RIGHT" relativeTo="$parent" relativePoint="RIGHT" x="0" y="0"/>
|
||||
<Anchor point="LEFT" relativeTo="$parent" relativePoint="LEFT" x="1" y="0"/>
|
||||
<Anchor point="RIGHT" relativeTo="$parent" relativePoint="RIGHT" x="-10" y="0"/>
|
||||
</Anchors>
|
||||
</Texture>
|
||||
</Layer>
|
||||
|
||||
Reference in New Issue
Block a user