WoWInterface SVN NoTaint_UIDropDownMenu_Update

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk
    from Rev 2 to Rev 3
    Reverse comparison

Rev 2 → Rev 3

UIDropDownMenuTemplates.xml
312,7 → 312,7
</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>
326,7 → 326,7
</FontString>
</Layer>
<Layer level="OVERLAY">
<Texture name="$parentIcon" hidden="true">
<Texture parentKey="Icon" name="$parentIcon" hidden="true">
<Size>
<AbsDimension x="16" y="16"/>
</Size>
339,7 → 339,7
</Layer>
</Layers>
<Frames>
<Button name="$parentButton" motionScriptsWhileDisabled="true" >
<Button parentKey="Button" name="$parentButton" motionScriptsWhileDisabled="true" >
<Size>
<AbsDimension x="24" y="24"/>
</Size>
UIDropDownMenu.lua
225,7 → 225,7
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)
284,13 → 284,13
 
-- 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