Comments (8)
Its called "ElvUI_StanceBar" I dont know if this is just ElvUI or if its called "StanceBar" in Default UI too.
from bdactionbars.
Its called "ElvUI_StanceBar" I dont know if this is just ElvUI or if its called "StanceBar" in Default UI too.
from bdactionbars.
from bdactionbars.
https://github.com/blooblahguy/bdActionbars/blob/master/backup/stancebar.lua#L4
thats the issue. But its not movable.
from bdactionbars.
Its moveable, but I had to change "num rows" to 1 so it resizes itself. And then I could click and move the frame properly.
from bdactionbars.
local addon, ab = ...
local config = bdCore.config.profile['Actionbars']
--if (bdCore.isLegion) then return end
bdCore:makeMovable(ab.stancebar)
StanceBarFrame:SetParent(ab.stancebar)
StanceBarFrame:SetScript("OnHide", function() ab.stancebar:Hide() end)
StanceBarFrame:SetScript("OnShow", function() ab.stancebar:Show() end)
--StanceBarFrame:SetPoint("TOPLEFT", ab.stancebar, "TOPLEFT", -7, 0)
--StanceBarFrame:EnableMouse(false)
--StanceBarLeft:Hide()
--StanceBarLeft.Show = nil
--StanceBarRight:Hide()
--StanceBarRight.Show = nil
function ab.stancebar:Update()
config = bdCore.config.profile['Actionbars']
local num = GetNumShapeshiftForms()
local rows = math.floor(num/config.stancebarrows)
local index = 1
local lastrow = StanceButton1
local lastbutton = nil
ab:Size(ab.stancebar,'stancebarrows',num)
for i = 1, NUM_STANCE_SLOTS do
local Button = _G["StanceButton"..i]
local border = bdCore.config.persistent['General'].border
Button:SetSize(config.buttonsize,config.buttonsize)
Button:ClearAllPoints()
Button:SetFrameStrata("BACKGROUND")
Button:SetFrameLevel(15)
Button:SetAttribute("flyoutDirection","UP")
ab:skinButton(Button,"stancebar",ab.stancebar)
if (not lastbutton) then
Button:SetPoint("TOPLEFT", self, "TOPLEFT", 0, 0)
else
Button:SetPoint("LEFT", lastbutton, "RIGHT", config.buttonspacing+border, 0)
if (i > rows and index >= rows) then
Button:SetPoint("TOPLEFT", lastrow, "BOTTOMLEFT", 0, -config.buttonspacing-border)
index = 0
lastrow = Button
end
end
index = index + 1
lastbutton = Button
ab.stancebar["Button"..i] = Button
end
end
--dCore:hookEvent("bd_reconfig",function() ab.stancebar:Update() end)
ab.stancebar:RegisterEvent("PLAYER_ENTERING_WORLD")
ab.stancebar:RegisterEvent("PLAYER_TALENT_UPDATE")
ab.stancebar:RegisterEvent("SPELLS_CHANGED")
ab.stancebar:SetScript("OnEvent", function(self, event, ...)
ab.stancebar:Update()
end)
ab.stancebar:Update()
RegisterStateDriver(ab.stancebar, "visibility", "[vehicleui][petbattle][overridebar] hide; show")
from bdactionbars.
local addon, ab = ...
local config = bdCore.config.profile['Actionbars']
--if (bdCore.isLegion) then return end
bdCore:makeMovable(ab.stancebar)
StanceBarFrame:SetParent(ab.stancebar)
StanceBarFrame:SetScript("OnHide", function() ab.stancebar:Hide() end)
StanceBarFrame:SetScript("OnShow", function() ab.stancebar:Show() end)
--StanceBarFrame:SetPoint("TOPLEFT", ab.stancebar, "TOPLEFT", -7, 0)
--StanceBarFrame:EnableMouse(false)
--StanceBarLeft:Hide()
--StanceBarLeft.Show = nil
--StanceBarRight:Hide()
--StanceBarRight.Show = nil
function ab.stancebar:Update()
config = bdCore.config.profile['Actionbars']
local num = GetNumShapeshiftForms()
local rows = math.floor(num/config.stancebarrows)
local index = 1
local lastrow = StanceButton1
local lastbutton = nil
ab:Size(ab.stancebar,'stancebarrows',num)
for i = 1, NUM_STANCE_SLOTS do
local Button = _G["StanceButton"..i]
local border = bdCore.config.persistent['General'].border
Button:SetSize(config.buttonsize,config.buttonsize)
Button:ClearAllPoints()
Button:SetFrameStrata("BACKGROUND")
Button:SetFrameLevel(15)
Button:SetAttribute("flyoutDirection","UP")
ab:skinButton(Button,"stancebar",ab.stancebar)
if (not lastbutton) then
Button:SetPoint("TOPLEFT", self, "TOPLEFT", 0, 0)
else
Button:SetPoint("LEFT", lastbutton, "RIGHT", config.buttonspacing+border, 0)
if (i > rows and index >= rows) then
Button:SetPoint("TOPLEFT", lastrow, "BOTTOMLEFT", 0, -config.buttonspacing-border)
index = 0
lastrow = Button
end
end
index = index + 1
lastbutton = Button
ab.stancebar["Button"..i] = Button
end
end
--dCore:hookEvent("bd_reconfig",function() ab.stancebar:Update() end)
ab.stancebar:RegisterEvent("PLAYER_ENTERING_WORLD")
ab.stancebar:RegisterEvent("UPDATE_SHAPESHIFT_FORMS")
ab.stancebar:RegisterEvent("SPELL_UPDATE_COOLDOWN")
ab.stancebar:RegisterEvent("SPELL_UPDATE_USABLE")
ab.stancebar:RegisterEvent("PLAYER_AURAS_CHANGED")
ab.stancebar:RegisterEvent("PLAYER_REGEN_ENABLED")
ab.stancebar:RegisterEvent("ACTIONBAR_PAGE_CHANGED")
ab.stancebar:SetScript("OnEvent", function(self, event, ...)
ab.stancebar:Update()
end)
ab.stancebar:Update()
RegisterStateDriver(ab.stancebar, "visibility", "[vehicleui][petbattle][overridebar] hide; show")
from bdactionbars.
Now all its missing is the hotkey text. I think its this line, not triggering for "Special Action Button 1...10"
https://github.com/blooblahguy/bdActionbars/blob/master/core.lua#L57
from bdactionbars.
Related Issues (8)
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 bdactionbars.