Ya basically I want the panels to be positioned in roughly the same screen location no matter what screen resolution I am using I am going to check this out and see if this will work.
|
Quote:
An extra panel is displayed when I am in the raid then you can see where to Grid and Decursive. |
Quote:
Assuming you are using a texture, I'll give an example. This will only show the panel frame when the raid frame is there, and will disappear when the raid frame is not there. Code:
{ name="TheNameOfYourFrame", parent="YourRaidFrameName", tex_file="YourTextureFileNameInMediaFolder.tga", I hope this helps, and wasn't overkill on information you already knew. If you want a dynamic panel (adjusts to size), then hopefully someone with more skill than I have can help (if it's possible). There's more information inside the example layout.lua file also, if needed. |
Quote:
For the moment, a % uses the parent's dimensions, but the next version will use anchor_frame's. |
Quote:
{ if blah blah blah = "10", then "100%"; if blah blah blah = "15", then "201%"; end... } etc.. situation. Does that even make any sense?:confused: Sorry for the terrible example, I've been studying button/bar api and lua manual for about 14 hours and have work in 1 1/2 hours... I hate my OCD and already (before fixations..) abnormal sleep habits. All of which should should make my lazy example inexcusable... but there it is.:rolleyes: |
Quote:
It's totally possible to implement that sort of behavior. For instance, allowing width/height to be a function and change itself conditionally. But for the time being, to alter the width/height as a % conditionally, something like this could be used... Code:
OnUpdate = function(self) |
Simply Clock/WG Timer Display
Quote:
I never figured out why your lua code never worked for me... But it gave me a good start for the Clock and WG timer codes. Not sure how they are in terms of efficiency but it appears to work fine, I have yet to test the clock in PM range and yet to test the WG timer in progress and in an instance away from map, but I guess it should get the timer from our BG queueing window. Code:
-- Left mid-section of the box Edit: So after adding in the tooltip part, I noticed mousing over back and forth, the tooltip doesn't disappear instantaneously, in fact, sometimes it seems random as if it takes forever until it disappears when moving my mouse up and down. left and right mousing motion seems better it seems. Also after enabling tooltip, is there a function supported to disable mouse clicks? say if I were to remove the OnClick function? Thanks :) |
Quote:
Code:
function() ToggleFrame(GameTooltip) end Quote:
Also, I wonder if it didn't work because of my font, did you remove that bit? |
I took this lua text from the "LuaTexts" thread in EJ, which collects some lua stuff for Pitbull. Since it's a bit different to import that to LitePanels, I'm wondering what's the correct way to update this info:
Code:
local base, posBuff, negBuff = UnitRangedAttackPower("player"); |
Quote:
I don't think it would be necessary to check if specific stats have changed, since your variable assignments are pretty light already. I imagine that these events may, at times, fire more than a 1 sec timer during a raid scenario, but I don't believe it would make a noticeable impact on performance. |
Made big changes to the layout and profile system with 1.5 and edited some of my posts to reflect them. Older layout code should still work with this version.
|
Hi,
Ive juist updated to the latest version and i'm having an issue with my code and cant figure out whats wrong with it. The error mrssage i get is: ID: -1 Error occured in: Global Count: 1 Message: ..\AddOns\LitePanels\layout.lua line 473: unexpected symbol near ')' the full code is here: Pastebin Link (ps line 473 in my layout lua is line 189 on the pastebin) Any help would be greatly appreciated. Cani |
Is there more to the file? That code alone doesn't produce an error for me. There must be a syntax error somewhere else.
But there is one problem, your layout is contained in an extra pair of braces. http://pastebin.com/m6f1bff10 Quote:
|
Any idea how to make a frame hide/show in combat? like i have a dps frame, but i dont wanna see it when im not in combat :)
EDIT: Or rather, making it so it doesn't show unless it's updated, like if you are a healer, you dont want a dps frame showing, but want it show on a dps char. If you follow how i mean ;) |
Quote:
Code:
{ width=50, height=50, Quote:
|
Quote:
Anyhow, that wasn't how i meant really. I meant if you could make it ONLY show it when u do damage to something, in compilation with the hide/show in combat. So when you dont do damage in combat, it stays hidden :) EDIT: Hmm, now i notice something weird... The frame like is like flashing shown/hidden all the time o.O Seems to happen when i just do something, like moving the mouse or typing something o.O Can provide u with the code, see if u can find the problem ;) Code:
-- DPS Frame |
Take out the RegisterEvents I gave you since it is already registered on your side. Instead of the toggle, you can approach this another way by showing when damage is done and hiding when leaving combat.
See lines 24 and 32: http://pastebin.com/m71acbac3 |
Katae,
Thanks for that, I will give that a try when I get back from work this afternoon. The only other information in the file is the coding notation, will try it with creating a new LUA file. Quote:
Cani |
Just a bit of code i want to share. Use this in a text element and it will display when you have new mail.
Code:
string = function() |
One thing that still buggers me that keeps me from completely go from kgPanels to LitePanels is the way that it works with blending textures...
for example, here's a screenshot with kgPanels (and LitePanels for gradient style) that im currently using: but when i switch entirely to LitePanels (used class color gradient this time), it shows like this: It doesn't blend in as nicely as kgPanel does or is there a way to do that? |
Quote:
|
Quote:
|
Quote:
|
Quote:
i can PM u the code that im using and my WTF for kgpanels. |
Quote:
|
Okay nvm. I don't know what I did but its working now lol. Is there a way to set strata?
i.e. Code:
framestrata = "background" |
Quote:
Code:
strata = "BACKGROUND" |
Quote:
|
Okay one more question for you katae, how do I make experience on mouseover? Im sort of boggled on that one, and I am a noob! :) Thanks again and sorry to bug you! :)
-Ferous |
Here is my progress :) LitePanels and Litestats! :O
http://i48.tinypic.com/2rndmdd.jpg most of my addon memory is due to carbonite so ignore it :P My addon memory is around 2.5 to 3 MB |
Quote:
Quote:
|
Hey there katae, I was curious as to why my border is showing up so funny? It is on the panel I want but it has some grey around it as well and I don't understand why its doing that >.> Here is the screeny:
http://i49.tinypic.com/x40huh.jpg and here is the layout for this particular panel: Code:
{ name = "Actionbar", so I dont confizzle you as to what border im talking about :P You know what Katae, never mind. I just saw there was a border_size and Im just an idiot! :) Sorry to bug you lol -Ferous |
Quote:
Thanks for bringing it to my attention ;) edit - Bug: When setting border_size, it sets inset to that number instead of the 0.25 multiplier as intended. Normally, if that multiplier doesn't yield the right inset size you need, you'd set inset manually, i.e inset = 16. Long story short, in the next update you'll need to make use of inset if your border/inset doesn't match up. I'll probably hold off uploading until the 3.3 toc update. |
Quote:
-Ferous |
I hope it was okay, as I seen some other Uis using litepanels, I included it in my package for noVeL Ui.
Heres a preview - http://s.wowinterface.com/preview/pvw33674.jpg Much love to this awesome addon, it does so much more than I could imagine from kgPanels and I actually have to have less knowledge to use litepanels! :) Thank you katae :) -Ferous |
Quote:
|
Having trouble
Sadly, i'm having trouble getting this addon to show anything on my screen.
-I saved "layout_example" as "layout.lua" to the LitePanels folder in the addons folder, then enabled the addon on the character select screen. Nothing. -Next, i wiped "layout.lua" and replaced it with the code you suggested under 'getting started' above, hoping to see the same bar in the screen shot. Restarted the game. Nothing. At this point, i'm convinced i either A) am not putting "layout.lua" in the right place, or else B) i am missing some critical piece of code that should enable the whole thing. Any help would be much appreciated. |
Your layout should look something like this. Make sure you don't have any syntax errors.
|
Thanks. That helped immensely.
And i have to say, that's some pretty quick service! Blizz could learn a thing or two from you :) Happy holiday. EDIT: Thanks for helping me build this: http://i45.tinypic.com/actkc8.jpg |
Super minimalist--anyone interested? Dominos, LitePanels, LiteStats, Prat, pMinimap, Forte, SBF, MSBT, TipTac, Skada, cargBags, BigWigs and Vuhdo. |
Okay I got it down, but I really wanna avoid working on it luls.
I wanna copy your panel in the first one, but it keeps having me copying numbers. Could you post another one? |
Quote:
|
Thanks, so if I wanna move it, do you have any addons that tell you the X and Y offset in-game? It might help :D
|
Quote:
|
Here's a simple macro I just wrote for the x-y coords of the cursor.
Code:
/script local x,y=GetCursorPosition() local scale=UIParent:GetEffectiveScale() print(format(" x=%d y=%d",x/scale,y/scale)) |
Hi just wondering if its possible to set a standand text format for all texts applied to my layout?
i.e. So when I changed the standard text formatting all my texts change. |
Quote:
Code:
local text = { |
Thanks for your quick reply, I'm gonna work on that now. :)
|
Is there anyway I can make my panels say 1% of from the edges of the screen, with a standard issue width and height for a panel.
|
Quote:
|
Thanks for your reply! :D
|
HI there again!
I've been trying to figure out what's wrong but I can't find anything. :S But somehow the code just doesn't work. Here's a link to what I have: http://pastebin.com/m78ff171b |
Quote:
|
Wow that was fast!
Thank you very much! I'll go try it out right now. :D |
Hey there katae, I hve a question. How would I go about adding a script to a panel and having an onclick so i can click it ingame for it to do something i.e.
Code:
/script ToggleHelpFrame() -Ferous |
Quote:
Code:
OnClick = function(self, button) |
zomg i got it thanks! :)
Quote:
kk having problem adding text for some reason? :O Here is the link its kinda long didn't want to make post big http://snipt.org/pnok |
Quote:
|
oh hahah its always the little things :P
Thanks again katae :) |
Just an update to show you what I did Katae :)
http://i47.tinypic.com/2uxxst1.jpg ? is GM and help and ! is achievements :p I couldn't figure out how to toggle the QuestLogFrame >.> |
All times are GMT -6. The time now is 08:33 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI