ok now i have a new problem. I'm trying to make the OnEnter and OnLeave work right and i can get it to hide but not show back up. all i can think of is
OnEnter
self:Hide()
OnLeave
self:Show()
after alot of thinking and looking on forums i found no fix so i used the before asked question (self:SetFrameStrata) but that made the panel blink when the mouse was movin in it. am i donig something wroung or should i just learn to deal with the bliking
When a frame is hidden, it's not there to catch mouse events. ;) Depending on where your frame is on screen, you may wish to try using self:SetAlpha(0) and self:SetAlpha(1).
Hi, I've been trying to get my panels to work for some time now.
I want a panel to resize depending on if I'm in a party or if I'm in a raid. And if I'm in a raid, I want it to resize on how many raidmembers in the raid.
local pmems = GetNumPartyMembers()
local rmems = GetNumRaidMembers()
if (pmems < 2 and pmems and rmems < 2) then
slef:hide()
elseif (pmems > 1 and rmems > 1 and rmems < 6) then
self:SetWidth(70)
self:show()
elseif (rmems > 5 and rmems < 11) then
self:SetWidth(140)
self:show()
elseif (rmems > 10 and rmems < 26) then
self:SetWidth(280)
self:show()
elseif (rmems > 25) then
self:hide()
end
what am I doing wrong?
sorry if this is very obvious, but I really dont know:confused:
I am hoping someone can help since my LUA knowledge is lacking, and the search feature didn't turn up an answer.
I am looking to see if i can use kgpanels to recreate what sexymaps does, with the auto rotating runes and such. Any idea how I would go about doing this? Thanks!
I would like to set kgPanels up to use onClick raid markers similar to MarkingBar or several other addons that do this. Unfortunately the addon customization is never up to par.
I would like to set marking icons up myself with kgPanels and scripting. Since to me this seems like something someone else may have already worked on--I wanted to ask here to see if they have any code.
I do not yet know the scripting language to code this, but I will go learn it if need be. I kind of messed around with it a little and I found that SetRaidTarget("target",8) does not work exactly as intended.
I changed my script to have a variable that will "toggle" between zero and whatever raid marker number that script is assigned.
Problem: If a mob dies with a marker then I have to click the button twice to mark a new mob (toggle to 0 first, then back to the marker)
I am new to this and I am sure there is a lot I need to do for this to actually function like these addons. If anyone has any code I can work off of/from it would be much appreciated.
First off I want to say I love this add-on to death, but for the life of me I cannot get my created Artwork to display. Yes I am am imputing the correct path to the file, it has to do something with the way I'm saving the file or something. I have tried to edit files I know show up and copy and paste my image over top of them and saving, which works other than the background showing up when I don't want it to. I have tried to get around this by cropping the image and saving again, and I get that dang green box as I would if I tried to import my custom created files. Please someone help me I have been killing myself trying to figure out what I'm doing incorrectly. I am attaching the full image to this post, maybe someone else can fix it for me. Yes I took the Image from Spartan UI. I took a Screen capture of it. as the add-on does not have the tga files in it they are some other type of file that i can not convert due to owning a mac.
Ok I finally got my artwork to show up in kgpanels, now how the hell do I make it so the dang background doesn't show up with the image? I have tried making the image with the Transparent Background Contents, (background shows up white in kgpanels), I have tried using the White Background Contents, (shows up white in kgpanels) and I have tried using the Background Color Background Contents (shows up whatever color I make the background) Not a clue what I am doing wrong
Hi everyone, what I'm trying to do is have the BattlefieldMinimap appear above my Combat Log, which I have placed on the bottom right side of my screen. The Battlemap is shown as being on the "background" strata, and the Combat Log is on the same strata according to /framestack. So, whenever I put the Battlemap in the same corner as my Combat Log, the Battlemap stays -behind- the Combat Log.
I'm trying to attach a panel to the Battlemap so that I can bring it to a higher strata and thus effectively hide the Combat Log. I've successively attached the panel, but can't bring the map's strata up. What happens is the panel hides the map and log whenever I raise the panel's strata.
Is there any way to bring the Battlemap's strata up higher than "background"?
local party_members = GetNumPartyMembers();
local raid_members = GetNumRaidMembers();
if (party_members < 1 and raid_members < 1) then
Recount.MainWindow:Hide();
self:Hide();
else
Recount.RefreshMainWindow();
Recount.MainWindow:Show();
self:Show();
end;
The Box in kgpanels hides, when I'm not in a group but recount is still visible.
The funny things is that when I create an oncklick event within kgpanels:
Recount.MainWindow:Hide();
self:Hide();
or run a macro with
/run Recount.MainWindow:Hide();
Recount Hides.
Where is the problem in my kgpanel scripts? I can't figure out the misstake.
Hello, my name is victor, first thanks for this fantastic addon, without which my interface no longer be what it is;)
I intend to create toolbars type windows / Mac using only KgPanels ...
I am a maniac of the addons, I have about 120 and that is why I need to replace the ones I have other lighter and, because the API uses Kgpanels wow so great, I am collecting all the instructions I've seen in the forum and I will implement, so if you can help me I would greatly appreciate it.
The first thing I want to create in my project are the types of buttons:
Normal state---------------unfolded state
P.D.: The buttons will work in 2 ways, will open automatically when you move the mouse, and closed when not pass the mouse, and will remain open if you click.
Each button is linked to a panel container, for example:
_____________________________________ |character | menu | lag | time | money | etc |
The instruction I need is to grab the position of a reference panel X / Y, and to making it to the panel of our buttons, so if we move the menu, or the bar will always be together and not have to be moving them from manually.
I know I complicate life by creating something that other people already made ??addons for this, but I'm so, I like programming and I like to leave my best UI and clean.
I like people who read this, contribute ideas that should have or could show things automatically, trying to emulate the functions of the UI TUKUI, but only with that which would lead us like our bars optimized so I need ideas to create my bar, and if someone wants and likes my idea, to help each other ;)
P.D.: I did not write English very well, just read above, and used the google translator, sorry if there are errors of translation
Hello, I'm here again, searching the internet for useful functions to implement KgPanels, I found one in particular that we can create a flicker effect or flash, which makes our creations have a more finished PRO.
OnUpdate
UIFrameFlash (self, 1.5, 1.5, 1.5, true, 0, 0)
and if only you wish that the effect only happens if you have your mouse over the panel, just put the same code just in OnEnter
OnEnter
UIFrameFlash (self, 1.5, 1.5, 1.5, true, 0, 0)
I put the page where you can find all the information concerning this function LUA API wow.
OnEnter
self:Hide()
OnLeave
self:Show()
after alot of thinking and looking on forums i found no fix so i used the before asked question (self:SetFrameStrata) but that made the panel blink when the mouse was movin in it. am i donig something wroung or should i just learn to deal with the bliking
2. time/date
3. location
4. durability
5. mail
also trying to get kgpanels to show the matching tooltip for the micro menu buttons.
any help at all is much needed and appreciated.
GetGameTime() is to show server time?
GetTime() is for local time?
OnLoad:
OnEvent:
OnUpdate:
0:49 which is 10:49 and 12:49 on my clock
the result of this code is missing a digit and it shows in 24 hour instead of 12?
I want a panel to resize depending on if I'm in a party or if I'm in a raid. And if I'm in a raid, I want it to resize on how many raidmembers in the raid.
the code I've been trying to use:
what am I doing wrong?
sorry if this is very obvious, but I really dont know:confused:
I am looking to see if i can use kgpanels to recreate what sexymaps does, with the auto rotating runes and such. Any idea how I would go about doing this? Thanks!
I would like to set kgPanels up to use onClick raid markers similar to MarkingBar or several other addons that do this. Unfortunately the addon customization is never up to par.
I would like to set marking icons up myself with kgPanels and scripting. Since to me this seems like something someone else may have already worked on--I wanted to ask here to see if they have any code.
I do not yet know the scripting language to code this, but I will go learn it if need be. I kind of messed around with it a little and I found that SetRaidTarget("target",8) does not work exactly as intended.
I changed my script to have a variable that will "toggle" between zero and whatever raid marker number that script is assigned.
Problem: If a mob dies with a marker then I have to click the button twice to mark a new mob (toggle to 0 first, then back to the marker)
I am new to this and I am sure there is a lot I need to do for this to actually function like these addons. If anyone has any code I can work off of/from it would be much appreciated.
Regards,
Taz
http://www.mmo-champion.com/threads/994107-Hiding-Kgpanels-if-the-parent-frame-addon-is-not-loaded?p=13576293#post13576293
I'm trying to attach a panel to the Battlemap so that I can bring it to a higher strata and thus effectively hide the Combat Log. I've successively attached the panel, but can't bring the map's strata up. What happens is the panel hides the map and log whenever I raise the panel's strata.
Is there any way to bring the Battlemap's strata up higher than "background"?
/click CompactRaidFrameManagerDisplayFrameLeaderOptionsRaidWorldMarkerButton
/click DropDownList1Button1
I want to turn the above macro to run with an OnClick Script for a kgpanel so I can set custom kgPanels for my raid flares. Any help appreciated.
Thanks,
-Taz
I'd like to hide recount when I'm not in a party oder raid. Therefore I wrote some Scripts in kgpanels.
ONLOAD:
ONEVENT:
The Box in kgpanels hides, when I'm not in a group but recount is still visible.
The funny things is that when I create an oncklick event within kgpanels:
or run a macro with
Recount Hides.
Where is the problem in my kgpanel scripts? I can't figure out the misstake.
Thanks in advance for any help
Cheers
lemmi
EDIT:
Got a solution for it. See: http://www.wowinterface.com/forums/showthread.php?p=252251#post252251
I intend to create toolbars type windows / Mac using only KgPanels ...
I am a maniac of the addons, I have about 120 and that is why I need to replace the ones I have other lighter and, because the API uses Kgpanels wow so great, I am collecting all the instructions I've seen in the forum and I will implement, so if you can help me I would greatly appreciate it.
The first thing I want to create in my project are the types of buttons:
Normal state---------------unfolded state
P.D.: The buttons will work in 2 ways, will open automatically when you move the mouse, and closed when not pass the mouse, and will remain open if you click.
Each button is linked to a panel container, for example:
_____________________________________
|character | menu | lag | time | money | etc |
The instruction I need is to grab the position of a reference panel X / Y, and to making it to the panel of our buttons, so if we move the menu, or the bar will always be together and not have to be moving them from manually.
I know I complicate life by creating something that other people already made ??addons for this, but I'm so, I like programming and I like to leave my best UI and clean.
I like people who read this, contribute ideas that should have or could show things automatically, trying to emulate the functions of the UI TUKUI, but only with that which would lead us like our bars optimized so I need ideas to create my bar, and if someone wants and likes my idea, to help each other ;)
P.D.: I did not write English very well, just read above, and used the google translator, sorry if there are errors of translation
OnUpdate
and if only you wish that the effect only happens if you have your mouse over the panel, just put the same code just in OnEnter
OnEnter
I put the page where you can find all the information concerning this function LUA API wow.
http://www.wowwiki.com/API_UIFrameFlash
I hope you find it as useful as it has been for me :)