/trunk
</Anchors> |
<TexCoords left="0.8046875" right="1" top="0" bottom="1"/> |
</Texture> |
<FontString name="$parentText" inherits="GameFontHighlightSmall" wordwrap="false" justifyH="RIGHT"> |
<FontString parentKey="Text" name="$parentText" inherits="GameFontHighlightSmall" wordwrap="false" justifyH="RIGHT"> |
<Size> |
<AbsDimension x="0" y="10"/> |
</Size> |
</FontString> |
</Layer> |
<Layer level="OVERLAY"> |
<Texture name="$parentIcon" hidden="true"> |
<Texture parentKey="Icon" name="$parentIcon" hidden="true"> |
<Size> |
<AbsDimension x="16" y="16"/> |
</Size> |
</Layer> |
</Layers> |
<Frames> |
<Button name="$parentButton" motionScriptsWhileDisabled="true" > |
<Button parentKey="Button" name="$parentButton" motionScriptsWhileDisabled="true" > |
<Size> |
<AbsDimension x="24" y="24"/> |
</Size> |
LIB_UIDROPDOWNMENU_MAXLEVELS = LIB_UIDROPDOWNMENU_MAXLEVELS + 1; |
local newList = CreateFrame("Button", "Lib_DropDownList"..LIB_UIDROPDOWNMENU_MAXLEVELS, nil, "Lib_UIDropDownListTemplate"); |
newList:SetFrameStrata("FULLSCREEN_DIALOG"); |
newList:SetToplevel(1); |
newList:SetToplevel(true); |
newList:Hide(); |
newList:SetID(LIB_UIDROPDOWNMENU_MAXLEVELS); |
newList:SetWidth(180) |
-- If not clickable then disable the button and set it white |
if ( info.notClickable ) then |
info.disabled = 1; |
info.disabled = true; |
button:SetDisabledFontObject(GameFontHighlightSmallLeft); |
end |
-- Set the text color and disable it if its a title |
if ( info.isTitle ) then |
info.disabled = 1; |
info.disabled = true; |
button:SetDisabledFontObject(GameFontNormalSmallLeft); |
end |