oUF Phanx Castbar
First off I want to thank you for your great work on oUF_Phanx.
I am a bit lost, I see that you are able to adjust the cast bar over or under the unitframe. I was wondering if you are able to move it to the right of the player frame and to the left of the target frame. So it would be like [Player Frame] [ Playercastbar ] [Target Frame] -------------- [Targetcastbar]---------------- |
core.lua, after line 1166, add the 3 green lines:
Code:
if unit == "player" then Code:
elseif (uconfig.width or 1) > 0.75 then |
Worked great no errors. Thank you so much.
|
Its now
-------------- [Targetcastbar]---------------- -------------- [Playercastbar]---------------- [Player Frame] ---------------- [Target Frame] |
Are you asking how to make it look that way, or pointlessly saying that you changed it to look that way, or just posting something totally random for no reason?
|
Quote:
This makes -------------- [Targetcastbar]---------------- -------------- [Playercastbar]---------------- [Player Frame] ---------------- [Target Frame] Not [Player Frame] [ Playercastbar ] [Target Frame] -------------- [Targetcastbar]---------------- sry |
The code in my post says:
1. Move the player castbar so that the middle of its bottom edge is 100 pixels below the center of the screen. 2. Move the target castbar so that the middle of its top edge is 112 pixels below the center of the screen. Since 112 pixels below the center of the screen is further toward the bottom of the screen than 100 pixels, the top edge of the target castbar is 12 pixels further down the screen than the bottom edge of the player castbar. If you are seeing something else, you probably pasted the code in the wrong place, or tried to change something and did it wrong. Just download a clean copy and try again. If it still doesn't look right, post a screenshot and your modified core.lua file. |
2 Attachment(s)
Quote:
|
Burn,
You just need to adjust the set point a little. The SetPoint api works like this: Part of the frame you are anchoring from ie Castbar; the frame you are anchoring to ie UI Parent; part of the frame you are anchoring the part of the frame you are anchoring from to ie Center; horizontal offset; vertical offset. From what I understand of your reqest you should just be able to do the below, but you will need to either move the unit frames a little further apart or change the size of the cast bar. If you wish to move the frames either ouf:Movable frames or edit the point value in the config for player and target. Lua Code:
Lua Code:
I hope I've understood your request correctly and not confused you. Ekat |
Quote:
1. You are confusing the player/target castbars. In your own screenshot, the player castbar is the one on top with time text, and the target castbar is the one on the bottom with the name shown. 2. I was looking at the wrong coordinate when I wrote that code, and based the castbar position on the frame X position, not the frame Y position. Here are the correct castbar coordinates, also adjusted to take into account the extra width of the icon, and made taller to match the full height of the player/target unit frames: Code:
if unit == "player" then Code:
elseif (uconfig.width or 1) > 0.75 then Code:
ns.uconfig = { |
Phanx great layout! Trying to make it a bit more friendly for myself (i mostly pvp). Would it be simple to add cast bar to my focus target?
|
Just add the castbar = true line you see in other unit seconds of the uconfig table to the focus section.
|
All times are GMT -6. The time now is 02:22 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI