Thread Tools Display Modes
05-19-13, 04:49 PM   #1
lovash
A Kobold Labourer
Join Date: May 2013
Posts: 1
Help me please





Who knows how add text on myself cast bar
Attached Thumbnails
Click image for larger version

Name:	WoWScrnShot_052013_012518.jpg
Views:	274
Size:	575.9 KB
ID:	7715  
  Reply With Quote
05-19-13, 05:49 PM   #2
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
When asking for help with an addon, you should include the name of the addon, and a link to its download page. You're fortunate that in this case I recognized my own addon in your screenshot.

Open Frames.lua in Notepad or another plain-text editor. Go to the block starting at line 700:

Code:
		if unit == "player" then
			local SafeZone = Castbar:CreateTexture(nil, "BORDER")
			SafeZone:SetTexture(config.statusbar)
			SafeZone:SetVertexColor(1, 0.5, 0, 0.75)
			Castbar.SafeZone = SafeZone

			Castbar.Time = ns.CreateFontString(Castbar, 20, "RIGHT")
			Castbar.Time:SetPoint("RIGHT", Castbar, "RIGHT", -4, 0)

		elseif (uconfig.width or 1) > 0.75 then
			Castbar.Text = ns.CreateFontString(Castbar, 16, "LEFT")
			Castbar.Text:SetPoint("LEFT", Castbar, "LEFT", 4, 0)
		end
Replace that block with this:

Code:
		if unit == "player" then
			local SafeZone = Castbar:CreateTexture(nil, "BORDER")
			SafeZone:SetTexture(config.statusbar)
			SafeZone:SetVertexColor(1, 0.5, 0, 0.75)
			Castbar.SafeZone = SafeZone

			Castbar.Time = ns.CreateFontString(Castbar, 20, "RIGHT")
			Castbar.Time:SetPoint("RIGHT", Castbar, "RIGHT", -4, 0)
		end
		if unit == "player" or (uconfig.width or 1) > 0.75 then
			Castbar.Text = ns.CreateFontString(Castbar, 16, "LEFT")
			Castbar.Text:SetPoint("LEFT", Castbar, "LEFT", 4, 0)
		end
The lines in green are the ones that changed. Save the file, then reload your UI (if WoW was already running).

However, you may want to think about whether you really need this -- did you really forget which spell you just started casting? Can you really not recognize the icon of your own spell?
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » Help me please


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