Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TargetTarget, Focus & FocusTarget Castbar #2

Closed
Flowieyay opened this issue Sep 1, 2018 · 2 comments
Closed

TargetTarget, Focus & FocusTarget Castbar #2

Flowieyay opened this issue Sep 1, 2018 · 2 comments

Comments

@Flowieyay
Copy link

Hey there,

I just stumbled across an Issue(?), where I could not move the Castbars of, either the TargetTarget nor the FocusTarget on the most recent version. aswell as the FocusCastbar. aswell as the Icons of these castbars which can not be moved either and therefor block some vision as seen in the uploaded file.
As I'm not much into Scripting i had a buddy of mine look over it and he could not find a fix to it aswell.

free

@fafaraway
Copy link
Owner

a simple fix for your layout
open this file FreeUI/scripts/unitframes/unitframes.lua
find cb.OnUpdate = cast.OnCastbarUpdate
then add following code before that line

if self.unitStyle == "focus" then
cb:ClearAllPoints()
cb:SetPoint("BOTTOMRIGHT", self, "TOPRIGHT", 0, 30)
iconFrame:ClearAllPoints()
iconFrame:SetPoint("LEFT", cb, "RIGHT", 4, 0)
elseif self.unitStyle == "targettarget" then
iconFrame:ClearAllPoints()
iconFrame:SetPoint("LEFT", self, "RIGHT", 4, 0)
elseif self.unitStyle == "focustarget" then
iconFrame:ClearAllPoints()
iconFrame:SetPoint("RIGHT", self, "LEFT", -4, 0)
end

@Flowieyay
Copy link
Author

Thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants