Thread Tools Display Modes
10-28-10, 02:33 PM   #1
Silverstyle
A Kobold Labourer
Join Date: Oct 2010
Posts: 1
Red face Texture Size Warp SetHeight

hey,

im a "beginner" in lua and i want to make a wow addon like IceHud,
but my problem is:
the vertical texture (my health) sizes down if i have no health is warped



here my code:
Code:
local Silverstyle     = CreateFrame("Frame", "SilverstyleBackground")
local SilverstyleBar  = Silverstyle:CreateTexture("SilverstyleStatusBar")
Silverstyle:SetWidth(128)
Silverstyle:SetHeight(256)
SilverstyleBar:SetWidth(128)
SilverstyleBar:SetHeight(256)
Silverstyle:SetPoint("CENTER", -100, 0)
SilverstyleBar:SetPoint("CENTER", Silverstyle)
Silverstyle:SetBackdrop({bgFile = "Interface\\AddOns\\Silverstyle\\BarBackground.tga"})
SilverstyleBar:SetTexture("Interface\\AddOns\\Silverstyle\\BarTexture.tga")
Silverstyle:SetScript("OnUpdate", function()
	SilverstyleBar:SetHeight(floor(UnitHealth("player") / UnitHealthMax("player") * 256))
end )
is it possible to cut the full texture from top to bottom without sizing?

sry for bad english, im german..
thanks 4 answers!

Last edited by Silverstyle : 11-01-10 at 01:25 PM. Reason: Removed link to offsite download. You can post your code at http://wowi.pastey.net/
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Frame Transparent Like IceHud


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