Am I being stupid, but how on earth do you get things onto the bar ?
I cant seem to drag icons from either my spellbook, or my macro page onto kappa - either the main buttons, or the popups. Ive tried with the frames both locked and unlocked.
Am I missing something obvious and need more coffee to notice it ?
You have to drag the spell/item/macro. The left mouse button have to be pressed, just release the left mousebutton when you are over a Klappa button.
This should work.
Quote from forfeitr »
I love it, but atm it only works on the main button, not the pop outs. Is this intentional?
Thanks. The popup buttons should work too. I have changed something now, but I dont know if that helps with the problem.
To forfeitr and Lewzephyr:
Sorry I could no reproduce your problems and could not find any other issue. I have deleted my own Klappa folder and downloaded it with the ACEUpdater, then deleted my Klappa Saved Variables to check the problems.
Perhaps you can try the same. If the there are still the problems, tell my and I will make more investigations :-)
You have to drag the spell/item/macro. The left mouse button have to be pressed, just release the left mousebutton when you are over a Klappa button.
This should work.
Ahh! It was me being stupid then. I didnt realise the button had to be depressed the whole time it was being dragged ! Thanks !
Now that I have it working, can I echo the request for macro text to be displayed on the buttons =)
EDIT :
I've added macro text display into my local copy (it doesnt restrict length to width of button, so if you have long labels it could look a little unusual):
KlappaPopUp.lua
function Klappa.PopUpButton.prototype:UpdateText()
Klappa:Debug("UpdateText:");
Klappa:Debug(self.button.type);
if(self.button.type == "item") then
if(IsConsumableItem(self.button.spellID)) then
local count = GetItemCount(self.button.spellID);
Klappa:Debug("count: "..count);
self.button.text:SetText(count);
end
elseif(self.button.type == "macro") then
self.button.text:SetText(self.spell)
end
end
function Klappa.PopUpButton.prototype:ButtonDrop()
if(CursorHasSpell()) then
...
self.button:SetText("")
elseif(CursorHasItem()) then
...
elseif(CursorHasMacro()) then
...
self:UpdateText();
end
KlappaButton.lua
function Klappa.Button.prototype:ButtonDrop()
if(CursorHasSpell()) then
...
self.button:SetText("")
elseif(CursorHasItem()) then
...
elseif(CursorHasMacro()) then
...
self:UpdateText();
end
function Klappa.Button.prototype:UpdateText()
if(self.button.type == "item") then
...
elseif(self.button.type == "macro") then
self.button.text:SetText(self.spell)
end
Klappa.lua
function Klappa:LoadSpells()
if(buttonClass.button.type ~= nil) then
...
buttonClass:UpdateText()
end
if(popupbuttonClass.button.type ~= nil) then
...
popupbuttonClass:UpdateText()
end
I also was having problems with it not restoring its position correctly, I "fixed" that by removing the scaling in LoadPosition() and SavePosition()
Klappa.lua
function Klappa:LoadPosition()
local x, y, s = self.db.profile.rootX, self.db.profile.rootY, self.root:GetEffectiveScale();
-- if x and y then
-- x, y = x/s, y/s;
-- end
self.root:ClearAllPoints();
self.root:SetPoint(x and "TOPLEFT" or "CENTER", UIParent, x and "BOTTOMLEFT" or "CENTER", x or 0, y or 0);
end
function Klappa:SavePosition()
local x, y, s = self.root:GetLeft(), self.root:GetTop(), self.root:GetEffectiveScale();
-- x, y = x*s, y*s;
self.db.profile.rootX = x;
self.db.profile.rootY = y;
end
Great work so far with this, i'm having a small problem with it though. I have the bar scaled to 1.15 and positioned on the right hand side of my screen, whenever i reload ui or log in the bar is shifted about 2 inches higher than where i locked it.
I just started using Klappa, and it's awesome. I've always thought it would be a good idea, but never went to the effort of cleaning my bars up - now that I have I'm glad I've done so.
I have a few suggestions that I hope you agree would make Klappa even better than it already is, if I may:
a slash command for locking / unlocking the Klappa bars
a key binding for locking / unlocking the Klappa bars
key bindings for adding / removing buttons (I would love to be able to ctrl+click to add a button and alt+click to remove one
DrDamage support (this may have been asked for before, or you're already planning to add it; apologies if so :))
(I would love to be able to ctrl+click to add a button and alt+click to remove one
Actually, this would be my ideal way for it to work: if there was always a spare empty button at the end of the row (or column) of buttons, so that you could always drop something else there. Whenever it gets used, another one would appear, and if you removed the penultimate button, it would shrink. But that's slightly more complicated than key bindings, and actually key bindings are always a good idea I think so hey. :)
Thx to all for your support and new suggestions.
Like I said before, I dont have much time, so progress will be very slow.
I would appreciate if someone could help me like Adelea did, with some code snippets or whatever.
I'm having problem with the majority of my buttons dissappearing when I relog in... I deleted all my saved variables, updated klappa with WAU, and started from scratch, however, after I set everything up, logged out, and directly back in, half my buttons were gone.. and some of the main bars themselves had lost all the popup buttons completely. Anyone else having this?
I'm having problem with the majority of my buttons dissappearing when I relog in... I deleted all my saved variables, updated klappa with WAU, and started from scratch, however, after I set everything up, logged out, and directly back in, half my buttons were gone.. and some of the main bars themselves had lost all the popup buttons completely. Anyone else having this?
Ive had this happen, but only when i've inadvertently dragged off or replaced the contents of one of the top level buttons.
Just got around to try this today a little and wanted to drop a bravo so far. Looks really good already. Main feature I'm missing is keybindings. The second feature (for later maybe) is multiple base bars. Once that's the case this addon can basically replace a lot of class specific addons like totem bars or aspect/tracking bars and will help make similar bar type solutions for classes that I don't know any addon for that goes the unfolding button route (think mage shields or mage wards).
Very nice, keep it up!
P.S. Didn't find any specific errors while I tested it. All the functionality I tried seemed stable.
Ive had this happen, but only when i've inadvertently dragged off or replaced the contents of one of the top level buttons.
I've had this too and I think it can be solved by changing:
Klappa.db.profile.buttons[self.index] = {};
to:
local pbuttons = Klappa.db.profile.buttons[self.index].popupButtons;
local npopups = Klappa.db.profile.buttons[self.index].popups;
Klappa.db.profile.buttons[self.index] = {};
Klappa.db.profile.buttons[self.index].popupButtons = pbuttons;
Klappa.db.profile.buttons[self.index].popups = npopups;
close to the top in the function Klappa.Button.prototype:ButtonDrop() in KlappaButton.lua.
Info about the popup buttons is lost when replacing the spell on a main button.
I'm new to lua so this is the qnd way to fix it but at least it seems to work for me locally :)
I've had this too and I think it can be solved by changing:
Klappa.db.profile.buttons[self.index] = {};
to:
local pbuttons = Klappa.db.profile.buttons[self.index].popupButtons;
local npopups = Klappa.db.profile.buttons[self.index].popups;
Klappa.db.profile.buttons[self.index] = {};
Klappa.db.profile.buttons[self.index].popupButtons = pbuttons;
Klappa.db.profile.buttons[self.index].popups = npopups;
close to the top in the function Klappa.Button.prototype:ButtonDrop() in KlappaButton.lua.
Info about the popup buttons is lost when replacing the spell on a main button.
I'm new to lua so this is the qnd way to fix it but at least it seems to work for me locally :)
Seems to fix the problem nicely !
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
You have to drag the spell/item/macro. The left mouse button have to be pressed, just release the left mousebutton when you are over a Klappa button.
This should work.
Thanks. The popup buttons should work too. I have changed something now, but I dont know if that helps with the problem.
To forfeitr and Lewzephyr:
Sorry I could no reproduce your problems and could not find any other issue. I have deleted my own Klappa folder and downloaded it with the ACEUpdater, then deleted my Klappa Saved Variables to check the problems.
Perhaps you can try the same. If the there are still the problems, tell my and I will make more investigations :-)
Ahh! It was me being stupid then. I didnt realise the button had to be depressed the whole time it was being dragged ! Thanks !
Now that I have it working, can I echo the request for macro text to be displayed on the buttons =)
EDIT :
I've added macro text display into my local copy (it doesnt restrict length to width of button, so if you have long labels it could look a little unusual):
KlappaPopUp.lua
KlappaButton.lua
Klappa.lua
I also was having problems with it not restoring its position correctly, I "fixed" that by removing the scaling in LoadPosition() and SavePosition()
Klappa.lua
Thnx, I updated this morning and the popup buttons are working perfectly.. keep up the amazing work on a great mod
Somebody help me out here it's diving me insane.
-Added macrotext (thx to Adelea), just the first four character will be displayed
-fixed the position loading (thx Adelea)
I have found one bug though using a macro such as
the modifier keys do not work, they do work on a normal Action bar though. Everything else works however just not the modifier's.
Really loving this addon so far =)
That would be a nice replacement for Sprocket <3
For that, look at Geist:
- http://www.wowinterface.com/downloads/info4766-Geist.html
I'm not sure which I prefer out of Klappa and Geist, actually. Both awesome.
I'm currently using Geist but Klappa would be much more flexible.
I have a few suggestions that I hope you agree would make Klappa even better than it already is, if I may:
Thanks again for an awesome mod.
Actually, this would be my ideal way for it to work: if there was always a spare empty button at the end of the row (or column) of buttons, so that you could always drop something else there. Whenever it gets used, another one would appear, and if you removed the penultimate button, it would shrink. But that's slightly more complicated than key bindings, and actually key bindings are always a good idea I think so hey. :)
Bug report: items dragged from Bartender and Infinibar didn't seem to save after a reload.
[edit: noted Infinibar also.]
Like I said before, I dont have much time, so progress will be very slow.
I would appreciate if someone could help me like Adelea did, with some code snippets or whatever.
Sure, no problem for me. I'm the same, although I have more time than you right now (new job starts in a week though! Woohoo!).
Actually I was thinking about looking at the code, I hope I'll be able to contribute in some way.
cheers,
- Fin
Ive had this happen, but only when i've inadvertently dragged off or replaced the contents of one of the top level buttons.
Very nice, keep it up!
P.S. Didn't find any specific errors while I tested it. All the functionality I tried seemed stable.
I've had this too and I think it can be solved by changing:
to:
close to the top in the function Klappa.Button.prototype:ButtonDrop() in KlappaButton.lua.
Info about the popup buttons is lost when replacing the spell on a main button.
I'm new to lua so this is the qnd way to fix it but at least it seems to work for me locally :)
Seems to fix the problem nicely !