From 506673b6c87d1775bbf8592f17492c66d4865f95 Mon Sep 17 00:00:00 2001 From: Taidtuskecyh Date: Thu, 2 Sep 2021 08:32:36 +0200 Subject: [PATCH] fixing my mistake in lib --- Libs/LibUIDropDownMenu/LibUIDropDownMenu.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Libs/LibUIDropDownMenu/LibUIDropDownMenu.lua b/Libs/LibUIDropDownMenu/LibUIDropDownMenu.lua index 7b68ddc4..0ac306cd 100644 --- a/Libs/LibUIDropDownMenu/LibUIDropDownMenu.lua +++ b/Libs/LibUIDropDownMenu/LibUIDropDownMenu.lua @@ -1267,10 +1267,10 @@ function lib:UIDropDownMenu_Refresh(frame, useValue, dropdownLevel) if (button.iconOnly and icon and button.icon) then lib:UIDropDownMenu_SetIconImage(icon, button.icon, button.iconInfo); elseif ( useValue ) then - lib:LibDD:UIDropDownMenu_SetText(frame, button.value); + lib:UIDropDownMenu_SetText(frame, button.value); icon:Hide(); else - lib:LibDD:UIDropDownMenu_SetText(frame, button:GetText()); + lib:UIDropDownMenu_SetText(frame, button:GetText()); icon:Hide(); end end @@ -1292,7 +1292,7 @@ function lib:UIDropDownMenu_Refresh(frame, useValue, dropdownLevel) end end if(somethingChecked == nil) then - lib:LibDD:UIDropDownMenu_SetText(frame, VIDEO_QUALITY_LABEL6); + lib:UIDropDownMenu_SetText(frame, VIDEO_QUALITY_LABEL6); local icon = GetChild(frame, frame:GetName(), "Icon"); icon:Hide(); end @@ -1702,7 +1702,7 @@ function lib:UIDropDownMenu_SetButtonWidth(frame, width) frame.noResize = 1; end -function lib:LibDD:UIDropDownMenu_SetText(frame, text) +function lib:UIDropDownMenu_SetText(frame, text) local frameName = frame:GetName(); GetChild(frame, frameName, "Text"):SetText(text); end @@ -1717,7 +1717,7 @@ function lib:UIDropDownMenu_ClearAll(frame) frame.selectedID = nil; frame.selectedName = nil; frame.selectedValue = nil; - lib:LibDD:UIDropDownMenu_SetText(frame, ""); + lib:UIDropDownMenu_SetText(frame, ""); local button, checkImage, uncheckImage; for i=1, L_UIDROPDOWNMENU_MAXBUTTONS do