How to make a visible window? image link in disc
http://imgur.com/a/a6RGc
How do i create a window like this one in wow? Pretty straight forward question^^ |
That looks like SexyInterrrupter, in which case, look at the code in any text editor.
|
Quote:
Just the code for the window , |
Here is github page for sexyinterrupter, I have tried to find what code section that creates the window but i have failed. I really can not find it.
https://github.com/apnotix/SexyInter...aster/core.lua |
Lines 69 -95. The rest is either creating the anchor, or the announce frame.
|
Create a window table().
http://imgur.com/9X12qCc
Hello! how do i create a window like this shown with the image link above? Without the names , just the window it is from sexyinterrupter. I just want to be able to have the code that makes the window. All help i need is to create a window like that and then i can continue , Here is the github code for sexyinterrupter. https://github.com/apnotix/SexyInter...aster/core.lua Please help me with this . I made a post about this before but did not get the help i needed. Best regards! |
You said you want the code to make that window, but you just linked it. The basic creation of the box is under SexyInterrupter:CreateUi(). Do what I do: take a chunk of that code, research the function/widget names, and make a standalone example work.
|
Quote:
Yeah i have tried but there is alot of unverified variables just taking from the createui() block. There included ("LibSharedMedia-3.0"); which i have in my folder but there is also that function at line 18 (self) which is included in createui block which i just can't get to work :/ |
If all you want is a frame with a border, and not have to worry about Libs, this should create a simple 200x100 frame for you to work with
Lua Code:
|
I've merged your two threads together.
|
Quote:
best regards! |
Just a question off topic.
Is this a acceptable way to store variables in an array? Going to have mulitple spellinfos in debuffs array and i want unitdebuff("raid1", debuffs) to look for any of those debuffs on the raid1 unit. Lua Code:
If this is the wrong way please help me just make the correct array : ). What i want in short is to unitdebuff() to be searching the debuffs array for any of those debuffs on the raid1 unutid target. best regards! |
Do unpack(debuffs).
Edit: Or wait, you want to look for two different buffs? Then you need to do a loop over debuffs and call UnitDebuff for both values individually. |
Quote:
Basicly it will list characther name in a window. That is why i have an array of debuffs that i want unitdebuff to be looking for. So i dont have to create different unitdebuff() methods for each debuff. Please help me give a example code :) Best regards! |
Lua Code:
does an unordered loop throught the table. |
Quote:
For i=0, 2 do local name, _, _, _, _, duration, expires = UnitDebuff("raid1",debuffs[i]) |
Quote:
... end lua is 1 based but that would have worked also as the keys will be created when you add items to the table. If you print the key in the pairs loop it will print 1, 2 etc. |
All times are GMT -6. The time now is 05:42 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI