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
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
local pmems = GetNumPartyMembers()
local rmems = GetNumRaidMembers()
if (pmems < 2 and pmems and rmems < 2) then
elseif (pmems > 1 and rmems > 1 and rmems < 6) then
elseif (rmems > 5 and rmems < 11) then
elseif (rmems > 10 and rmems < 26) then
elseif (rmems > 25) then
what am I doing wrong?
sorry if this is very obvious, but I really dont know:confused:
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
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
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.
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
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.