Comments (2)
local dropdown = CreateFrame('Frame', 'oUF_NeavDropDown', UIParent, 'UIDropDownMenuTemplate')
local function CreateDropDownMenu(self)
dropdown:SetParent(self)
return ToggleDropDownMenu(nil, nil, dropdown, 'cursor', 0, 0)
end
UIDropDownMenu_Initialize(dropdown, function(self)
local unit = self:GetParent().unit
local menu, name, id
if(not unit) then
return
end
if(UnitIsUnit(unit, 'player')) then
menu = 'SELF'
elseif(UnitIsUnit(unit, 'vehicle')) then
menu = 'VEHICLE'
elseif(UnitIsUnit(unit, 'pet')) then
menu = 'PET'
elseif(UnitIsPlayer(unit)) then
id = UnitInRaid(unit)
if(id) then
menu = 'RAID_PLAYER'
name = GetRaidRosterInfo(id)
elseif(UnitInParty(unit)) then
menu = 'PARTY'
else
menu = 'PLAYER'
end
else
menu = 'TARGET'
name = RAID_TARGET_ICON
end
if(menu) then
UnitPopup_ShowMenu(self, menu, unit, name, id)
end
end, 'MENU')
from neavui.
This has been fixed in recent versions of WoW.
from neavui.
Related Issues (20)
- nTooltip Double Backgrounds HOT 5
- nPower\core.lua:13: attempt to perform arithmetic on local 'start' (a nil value) HOT 8
- Dressing Room naked fix HOT 1
- oUF_MovableFrames: attempt to call method 'SetBackdrop' (a nil value)
- nCore: attempt to perform arithmetic on local 'leftX' (a nil value)
- Option to reduce the number of groups (raid container)
- Slash /neav command to move stuff around not working HOT 1
- npower ERROR HOT 2
- nMinimap: Fix for Garrison button HOT 1
- nMainbar not showing keybinds HOT 2
- nMainbar error HOT 2
- nMinimap, empty error
- nCore DBM skin: attempt to call method 'SetBackdropColor' (a nil value) HOT 4
- Binding for nMainbar is broken
- Mage's arcane charges shows for all specs
- Missing Aura Updates for SL
- Can't click on FakeBottomRightBar when ExtraActionBar is active HOT 1
- It's time to update version 9.1 HOT 2
- look forward to a version for wotlk classic
- It's time to update version for 10.0 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neavui.