Xpbar
Stexperience bar.
I have the look I want but I cant get it to the width i Want when i change the width it dissapears atm it is anchored to the top of my minimap. here is the start lua if that helps. -- Config ---------------- -------------------------- --Bar Height and Width local barHeight, barWidth = 3, Minimap:GetWidth()2 --Where you want the fame to be anchored --------AnchorPoint, AnchorTo, RelativePoint, xOffset, yOffset local Anchor = { "TOP", Minimap, "TOP", 0 , 0 } --Fonts local showText = false -- Set to false to hide text local mouseoverText = true -- Set to true to only show text on mouseover local font,fontsize,flags = [[Interface\Addons\stExperienceBar\Media\homespun.ttf]], 10, "MONOCHROMEOUTLINE" --Textures local barTex = [[Interface\Addons\stExperienceBar\Media\Flat.tga]] local flatTex = [[Interface\Addons\stExperienceBar\Media\Flat.tga]] |
Quote:
|
Quote:
As in how should it look like after i remove the minimap:getwidth()? Soz im just not good at lua |
Quote:
|
Its from carebears ui and it was meant to say -2 But I dont really want it there I just want my bar width to match my map I Dont know what to change in the code to change the width.
|
Minimap:GetWidth()
^^ == get the width of the minimap. Carebear's -2 was 2 less than the width of the minimap. |
the minimap is about 140 pixels long but when I try put lets say 0 as the width instead of -2 the bar will disappear
|
Quote:
Code:
local barHeight, barWidth = 3, Minimap:GetWidth() |
Quote:
|
Quote:
|
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/ |
lol forgot to add to question in earlier post.
what I mean to say is what exactly should my LUA look like. without the numbers obviously I'll input the numbers to make the the bar's width,height to my preference but what should change in my code to allow me do this. I want to delete the getminimap lua line thingy so I can personally adjust mu width and height but how should the lua look like after? |
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() |
If he has his minimap scaled to something other than 1, yeah.
and... Quote:
|
Quote:
Please tell me to go away if I'm wrong though lol |
local barHeight, barWidth = 3, Minimap:GetWidth()
means the barheight is 3 and barwidth is Minimap:GetWidth() ...seperated by the comma. |
It's like saying "a and b are equal to 1 and 2 respectively".
|
Quote:
|
so how do I unparent it?
|
Quote:
Code:
local Anchor = { "TOP", Minimap, "TOP", 0 , 0 } Code:
local Anchor = { "TOPRIGHT", UIParent, "TOPRIGHT", 0 , 0 } Code:
local Anchor = { "TOPRIGHT", UIParent, "TOPRIGHT", -20 , -10 } |
All times are GMT -6. The time now is 02:46 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI