mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-28 08:54:43 +00:00
cleanup
This commit is contained in:
@@ -14,7 +14,7 @@ local lib = LibStub:NewLibrary(MAJOR, MINOR)
|
||||
|
||||
if not lib then return end
|
||||
|
||||
local _G = getfenv(0)
|
||||
local _G = _G
|
||||
|
||||
local pairs = _G.pairs
|
||||
local type = _G.type
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
-- LibStub is a simple versioning stub meant for use in Libraries. http://www.wowace.com/wiki/LibStub for more info
|
||||
-- LibStub is hereby placed in the Public Domain Credits: Kaelten, Cladhaire, ckknight, Mikk, Ammo, Nevcairiel, joshborke
|
||||
local LIBSTUB_MAJOR, LIBSTUB_MINOR = "LibStub", 2 -- NEVER MAKE THIS AN SVN REVISION! IT NEEDS TO BE USABLE IN ALL REPOS!
|
||||
local _G = getfenv()
|
||||
local _G = _G
|
||||
local strfind, strfmt = string.find, string.format
|
||||
local LibStub = _G[LIBSTUB_MAJOR]
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
-- ----------------------------------------------------------------------------
|
||||
-- Localized Lua globals.
|
||||
-- ----------------------------------------------------------------------------
|
||||
local _G = getfenv(0)
|
||||
local _G = _G
|
||||
local strsub, strlen, strmatch, gsub = strsub, strlen, strmatch, gsub
|
||||
local max, match = max, match
|
||||
local securecall, issecure = securecall, issecure
|
||||
@@ -477,7 +477,7 @@ function L_UIDropDownMenu_AddButton(info, level)
|
||||
end
|
||||
|
||||
|
||||
if not info.notCheckable then
|
||||
if not info.notCheckable then
|
||||
if ( info.disabled ) then
|
||||
_G[listFrameName.."Button"..index.."Check"]:SetDesaturated(true);
|
||||
_G[listFrameName.."Button"..index.."Check"]:SetAlpha(0.5);
|
||||
@@ -502,7 +502,7 @@ function L_UIDropDownMenu_AddButton(info, level)
|
||||
end
|
||||
else
|
||||
_G[listFrameName.."Button"..index.."Check"]:Hide();
|
||||
end
|
||||
end
|
||||
button.checked = info.checked;
|
||||
|
||||
-- If has a colorswatch, show it and vertex color it
|
||||
@@ -579,7 +579,7 @@ end
|
||||
function L_UIDropDownMenu_Refresh(frame, useValue, dropdownLevel)
|
||||
local button, checked, checkImage, normalText, width;
|
||||
local maxWidth = 0;
|
||||
local somethingChecked = nil;
|
||||
local somethingChecked = nil;
|
||||
if ( not dropdownLevel ) then
|
||||
dropdownLevel = L_UIDROPDOWNMENU_MENU_LEVEL;
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user