Thread Tools Display Modes
03-27-11, 09:56 AM   #21
Aprikot
A Frostmaul Preserver
 
Aprikot's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2010
Posts: 284
Originally Posted by Oraknathal View Post
This is what it looks like after the,
local barHeight, barWidth = 3, Minimap:GetWidth() code was input


http://img825.imageshack.us/f/wowscr...711093623.jpg/
Originally Posted by Dainton View Post
If you want it to be the width of your minimap then shouldn't it be something like
Code:
local barHeight, barWidth = 3, Minimap:GetWidth()*Minimap:GetScale()
that?
Originally Posted by Oraknathal View Post
so how do I unparent it?
Did you try the thing from Dainton? What minimap addon are you using (what scale)? Adding the right number to GetWidth() seems easier than x/y tweak reload ad nauseum.
  Reply With Quote
03-27-11, 10:39 AM   #22
Lily.Petal
A Molten Giant
 
Lily.Petal's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2010
Posts: 540
Originally Posted by Aprikot View Post
Did you try the thing from Dainton? What minimap addon are you using (what scale)? Adding the right number to GetWidth() seems easier than x/y tweak reload ad nauseum.
He might not want it attached to his Minimap as well~
__________________

Aggro Color to KG Panels Borders - Nibelheim
Lua Based UI Hider - Nibelheim
Custom LUA PowerText - Stuf - Nibelheim, Seerah
  Reply With Quote
03-27-11, 02:36 PM   #23
Oraknathal
A Flamescale Wyrmkin
 
Oraknathal's Avatar
Join Date: Sep 2010
Posts: 143
Originally Posted by Nibelheim View Post
Code:
local Anchor = { "TOP", Minimap, "TOP", 0 , 0 }
to

Code:
local Anchor = { "TOPRIGHT", UIParent, "TOPRIGHT", 0 , 0 }
You'll need to change the last two numbers (X, Y) to move your bar. Both numbers will go negative to move the bar left and down. I.e.

Code:
local Anchor = { "TOPRIGHT", UIParent, "TOPRIGHT", -20 , -10 }
Will move your bar 20 pixels left, and 10 pixels down.
this just moved the bar i know how to do that.
I need to know how to change its width.
I want to completely delete all affiliations with the minimap and be able to increase the width to my whim and by a scale set by the map.
  Reply With Quote
03-27-11, 04:31 PM   #24
Aprikot
A Frostmaul Preserver
 
Aprikot's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2010
Posts: 284
Originally Posted by Oraknathal View Post
this just moved the bar i know how to do that.
I need to know how to change its width.
I want to completely delete all affiliations with the minimap and be able to increase the width to my whim and by a scale set by the map.
This is a contradiction but w/e. Below removes parenting & width dependency...plops it in the middle of your screen and you can x,y it from there. 3 is 3 pixels high...100 is 100 pixels wide.

lua Code:
  1. -- Config ----------------
  2. --------------------------
  3. --Bar Height and Width
  4. local barHeight, barWidth = 3, 100
  5.  
  6. --Where you want the fame to be anchored
  7. --------AnchorPoint, AnchorTo, RelativePoint, xOffset, yOffset
  8. local Anchor = { "CENTER", UIParent, "CENTER", 0 , 0 }
  Reply With Quote
03-27-11, 04:51 PM   #25
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
Just fyi, parent is separate from anchor. Anchors are set by :SetPoint(). Parents are set by :SetParent()
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
03-27-11, 05:05 PM   #26
Nibelheim
local roygbi-
 
Nibelheim's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2010
Posts: 1,600
Originally Posted by Seerah View Post
Just fyi, parent is separate from anchor. Anchors are set by :SetPoint(). Parents are set by :SetParent()
+ this.

(10 characters)
  Reply With Quote
03-27-11, 10:00 PM   #27
Oraknathal
A Flamescale Wyrmkin
 
Oraknathal's Avatar
Join Date: Sep 2010
Posts: 143
Originally Posted by Aprikot View Post
This is a contradiction but w/e. Below removes parenting & width dependency...plops it in the middle of your screen and you can x,y it from there. 3 is 3 pixels high...100 is 100 pixels wide.

lua Code:
  1. -- Config ----------------
  2. --------------------------
  3. --Bar Height and Width
  4. local barHeight, barWidth = 3, 100
  5.  
  6. --Where you want the fame to be anchored
  7. --------AnchorPoint, AnchorTo, RelativePoint, xOffset, yOffset
  8. local Anchor = { "CENTER", UIParent, "CENTER", 0 , 0 }
OMG!!! I finally did it ty everyone.
I just have 1 more question lol I am currently using bminimap so It can be moved in-game is there a way to move the xp bar with the map without having to go through LUA? although I would like to keep it in the exact same position?
  Reply With Quote
03-27-11, 10:36 PM   #28
Aprikot
A Frostmaul Preserver
 
Aprikot's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2010
Posts: 284
Originally Posted by Oraknathal View Post
...is there a way to move the xp bar with the map without having to go through LUA?
Yes, by anchoring it to Minimap. :P Maybe post a screenie of the positioning you like, and we help w/coords?
  Reply With Quote
03-27-11, 11:14 PM   #29
Oraknathal
A Flamescale Wyrmkin
 
Oraknathal's Avatar
Join Date: Sep 2010
Posts: 143
dw fixed it.
Man I am glad thats all over tyvm everyone that helped.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Xpbar


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off