Looks great :D
BTW, it would be ToggleFrame(QuestLogFrame). |
Quote:
|
I got a question how can I make the background of some panels transparent or partially transparent? I can't figure it out. :S
|
Quote:
|
I have another question. I have the default Viewport done now however when I try to make a new layout it won't show it.
Here's the code: Code:
lpanels:CreateLayout("Simple Viewport", { |
You are anchoring it to the bottom of your screen not on the bottom-part of your viewport, so they overlap and you see nothing.
You should try setting the parent of your top panel as the viewport. Code:
parent = 'GreyBox' |
Ah I see, I feel stupid not noticing that. :o
|
Hi just a couple of questions.
The first is how can I make button show a frame on left click then hide it again on another left click, I so far can only do this using right click to hide and left click to show, this is the code I'm using currently: Code:
{ name="DSHider", parent="BB", anchor_from="right", anchor_to="right", width=64, height=32, tex_file="mybutton", x_off=-45, i.e. I have a frame that runs across the bottom of my UI, and another frame parented to that, but I want the second frame to only appear when I click the first frame. Thanks for anyones help. Lordy |
You'd want to do something like:
Code:
OnLoad = function(self) |
Quote:
Code:
OnClick = function(self, button) |
Looking at Fer's noVel ui, I can see it's possible to code in clicks to the panels (IE: toggle char frame..etc) Would it be possible to tie the click to a slash command? Example : Make a panel like one of fer's on the bottom of the screen that says 'Sort' or something that runs the /sort command of BankStack
Sorry If I happened to overlook this if its been asked >< prolly to early to ask questions. -Thanks, Demo |
Quote:
Here it is: Code:
BankStack.SortBags() |
Code:
{ name = "game menu", |
Quote:
Edit: and for the example |
Thank Katae and Ferous, both them scripts worked perfectly.
I'm pretty new to scripting, and playing with LitePanels has helped me somewhat. |
Buff Reminder
Is it possible to create a script to remind us of a buff such as fort or inner fire? recently got rid of powerauras for raid because it was very cpu-intensive. So now I find myself mid-fight sometimes without my spellpower buffs
thank you :) |
Quote:
Here's a quick buff check that will watch a specific buff and tell you if it's down. As a bonus, I added a 10 second countdown for when it's falling off. Code:
{ name = "WatchBuff", |
Quote:
|
Is there a way to make a panel appear and disappear ingame with a command? Thanks :P
|
Quote:
Maybe stick it in a macro or make your own SlashCmd function. Edit: or maybe simply ToggleFrame(panel) |
Quote:
I wanted to add to that to make it much more similar to power auras. I first added a box with a background around the text (anchored to the WatchBuff frame) then I added a texture. I first noticed when I buffed myself, the textures wouldn't go disappear. I then looked at the AFK timer to see how you made the box disappear, you used this Code:
self:RegisterEvent("PLAYER_FLAGS_CHANGED") instead of PLAYER_FLAGS_CHANGED I tried COMBAT_LOG_EVENT That worked for buffing myself but didn't work so well when I right clicked the buff off, as no combat log event occured during that time. I tried PLAYER_AURAS_CHANGED Seems to be a broken function, unless it perhaps it means like a paladin aura or something. How would I set it up to be like the afk set up? You are afk --> box shows You are not afk --> box disappears You are unbuffed --> box shows You are not unbuffed (or you are buffed) --> box disappears Below is the code I have so far... Code:
{ name = "WatchBuff", |
I am sorry if this has already been discussed, but I was wondering if there was a way to make a class colored bar that shows the class color of your target (and either no bar when no target or just make the bar a default color like black.)
Any help would be much appreciated. :) |
Quote:
Code:
OnLoad = function(self) |
Quote:
Code:
{ name = "WatchBuff", |
Quote:
Reading on the forum I see you might ask for a link to the layout like this: http://pastebin.com/m1959cf0a I really do appreciate your help, you definitely go above and beyond here. |
Quote:
|
I'm not sure if I've seen this option before, but I wanna repeat an image file over the span of the block. Does a repeat option exist within the options?
I'm also having issues getting the frames to line up properly. Is there a set way to make each frame in a row show up one against the next instead of overlapping? |
Quote:
Quote:
|
Ultra thanks, it works perfectly now. It looks pretty wicked too :D
|
After a bit of work, I have failed to figure out why my images aren't working the way I wanted them to. I'd love to know what I'm doing wrong.
Here's a link to the pastebin I have uploaded the images I'm using to a friends website |
I don't think you need to include the .tga extensions for the texture files.
|
I've finally figured out what the problem was, I'm putting it on pastebin for reference
http://pastebin.com/m48d88472 |
I'm having a bit of trouble getting started. I made my own layout.lua file, and this is what I have in it:
Code:
lpanels:CreateLayout("ActionBars", { |
Code:
LPanels = { edit - I think the reason why yours wasn't working was it doesn't have a comma after the }, should be }, |
Dead on! I was missing a comma. Thanks mate :)
|
I was having a problem where an image file was just not showing up not matter what I did. After I left the computer for a couple hours though and logged on after it showed up. I hadn't touched anything since when it was not showing up... *is confused*
Anyways! I was hoping for a suggestion again. I'm trying now to have a texture file show up only if there is a target, and I tried salvaging as much I could from your original suggestion to me and it starts when you log in with the image hidden, then when you select your first target the texture file is shown.. easy. Problem is I am not sure what code I would use to make it hide again after you remove a target. Code:
{ name="Art_P", parent="UIParent", anchor_to="BOTTOM", height=70, |
hi,
Is it possible to create a script to remind me of a weapon enchant, like windfury weapon or poisons? I´ve read the code for "normal" buffs, but this won´t work for weapon buffs. thanks in advance keep on your great work |
Quote:
Code:
OnLoad = function(self) Quote:
http://www.wowwiki.com/API_GetWeaponEnchantInfo |
Quote:
|
1 Attachment(s)
i copy afker and minimap layout into layout.lua but can't work
Quote:
|
Quote:
Code:
"n:Character r:Realm c:Class" Code:
lpanels:ApplyLayout(nil, "Minimap", "Afker") |
Quote:
afk is work now, but the difault minimap(round) not gone=.= |
Quote:
|
Quote:
|
Thank you!!
Just wanted to say a big 'Thank you!!' for this addon. :) It's been fun learning to code for it.
Oh.. and here is a SS. It's a bit generic, but I love it! |
Hi. I can not understand.
I created a panel for the buttons. Create a button that launches the setup DBM. And like that would bar was mousover. All is well, everything works, and the panel and the button. DBM run. But mousover works only on an area of the panel, where there is no text. And if you move the cursor to an area where there is text, the panel does not appear. Where can I go wrong in the code? Code:
{ name = "Buttons panel", |
Quote:
You can get around this pretty easily by checking if the cursor is not hovering over a child panel: Code:
OnLeave = function(self) |
Quote:
Now, sometimes diverting the cursor on the panel, it does not disappear. Code: Code:
{ name = "Buttons panel", |
Hehe sry to bust in again :o
I wrote a new code after my hard-drive crashed. Though again it doesn't show up =S. I thought I did everything right this time... here's the code Code:
lpanels:CreateLayout("Chat", { |
These commas, delete them:
}), |
Guys I have a question, I have my UI set up and i placed a bottom panel on the (of course) bottom of screen which is 200px height.
and using bartender as actionbar mod, i like to use the blizzard vehicle ui as default, so what i wanted to do is, when i enter on vehicle, when that frame pops up, a black panel shows behind which hides my current panel (its texture) i guess u can have a clear view from these picz http://img692.imageshack.us/img692/8...0310231112.jpg http://img442.imageshack.us/img442/6...0310231139.jpg thanks guys ;) |
You'll need to script a little to watch the UNIT_ENTERED_VEHICLE and UNIT_EXITED_VEHICLE events. You'll also need to set the strata of this new panel to be just high enough to cover your textures.
As an example: Code:
{ |
Border disappearing
Why, oh why, do the border keep disappearing and reappearing when the values of x_off and y_off are changed? Am trying to parent a panel with a background color and border to a Bartender4 bar (well, button to be specific as there's no frame for the bar, sucks -- any suggestion on that anyone?), and it's driving me insane.
|
Quote:
btw love this! makes my ui look so clean! |
|
Quote:
|
Quote:
Code:
-- Server Clock |
Quote:
Code:
lpanels:CreateLayout("Stats", { |
Code:
"am" or "") Code:
return format(":: %s :: %s%%dur :: %sfps :: %smB :: %sms :: %s:%s%s ::", gold, durability, fps, memory, latency, hour, minute, aptime and (pm and "pm" or "am") or "") |
Quote:
Code:
lpanels:CreateLayout("Stats", { |
All times are GMT -6. The time now is 09:23 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI